/
clob.pb.go
1280 lines (1208 loc) · 37.8 KB
/
clob.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: furyaprotocol/indexer/protocol/v1/clob.proto
package v1
import (
encoding_binary "encoding/binary"
fmt "fmt"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Status of the CLOB.
// Defined in clob.clob_pair
type ClobPairStatus int32
const (
// Default value. This value is invalid and unused.
ClobPairStatus_CLOB_PAIR_STATUS_UNSPECIFIED ClobPairStatus = 0
// CLOB_PAIR_STATUS_ACTIVE behavior is unfinalized.
// TODO(DEC-600): update this documentation.
ClobPairStatus_CLOB_PAIR_STATUS_ACTIVE ClobPairStatus = 1
// CLOB_PAIR_STATUS_PAUSED behavior is unfinalized.
// TODO(DEC-600): update this documentation.
ClobPairStatus_CLOB_PAIR_STATUS_PAUSED ClobPairStatus = 2
// CLOB_PAIR_STATUS_CANCEL_ONLY behavior is unfinalized.
// TODO(DEC-600): update this documentation.
ClobPairStatus_CLOB_PAIR_STATUS_CANCEL_ONLY ClobPairStatus = 3
// CLOB_PAIR_STATUS_POST_ONLY behavior is unfinalized.
// TODO(DEC-600): update this documentation.
ClobPairStatus_CLOB_PAIR_STATUS_POST_ONLY ClobPairStatus = 4
// CLOB_PAIR_STATUS_INITIALIZING represents a newly-added clob pair.
// Clob pairs in this state only accept orders which are
// both short-term and post-only.
ClobPairStatus_CLOB_PAIR_STATUS_INITIALIZING ClobPairStatus = 5
// CLOB_PAIR_STATUS_FINAL_SETTLEMENT represents a clob pair that has been
// deactivated. Clob pairs in this state do not accept new orders and trading
// is blocked. All open positions are closed by the protocol when the clob
// pair gains this status.
ClobPairStatus_CLOB_PAIR_STATUS_FINAL_SETTLEMENT ClobPairStatus = 6
)
var ClobPairStatus_name = map[int32]string{
0: "CLOB_PAIR_STATUS_UNSPECIFIED",
1: "CLOB_PAIR_STATUS_ACTIVE",
2: "CLOB_PAIR_STATUS_PAUSED",
3: "CLOB_PAIR_STATUS_CANCEL_ONLY",
4: "CLOB_PAIR_STATUS_POST_ONLY",
5: "CLOB_PAIR_STATUS_INITIALIZING",
6: "CLOB_PAIR_STATUS_FINAL_SETTLEMENT",
}
var ClobPairStatus_value = map[string]int32{
"CLOB_PAIR_STATUS_UNSPECIFIED": 0,
"CLOB_PAIR_STATUS_ACTIVE": 1,
"CLOB_PAIR_STATUS_PAUSED": 2,
"CLOB_PAIR_STATUS_CANCEL_ONLY": 3,
"CLOB_PAIR_STATUS_POST_ONLY": 4,
"CLOB_PAIR_STATUS_INITIALIZING": 5,
"CLOB_PAIR_STATUS_FINAL_SETTLEMENT": 6,
}
func (x ClobPairStatus) String() string {
return proto.EnumName(ClobPairStatus_name, int32(x))
}
func (ClobPairStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{0}
}
// Represents the side of the orderbook the order will be placed on.
// Note that Side.SIDE_UNSPECIFIED is an invalid order and cannot be
// placed on the orderbook.
type IndexerOrder_Side int32
const (
// Default value. This value is invalid and unused.
IndexerOrder_SIDE_UNSPECIFIED IndexerOrder_Side = 0
// SIDE_BUY is used to represent a BUY order.
IndexerOrder_SIDE_BUY IndexerOrder_Side = 1
// SIDE_SELL is used to represent a SELL order.
IndexerOrder_SIDE_SELL IndexerOrder_Side = 2
)
var IndexerOrder_Side_name = map[int32]string{
0: "SIDE_UNSPECIFIED",
1: "SIDE_BUY",
2: "SIDE_SELL",
}
var IndexerOrder_Side_value = map[string]int32{
"SIDE_UNSPECIFIED": 0,
"SIDE_BUY": 1,
"SIDE_SELL": 2,
}
func (x IndexerOrder_Side) String() string {
return proto.EnumName(IndexerOrder_Side_name, int32(x))
}
func (IndexerOrder_Side) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{1, 0}
}
// TimeInForce indicates how long an order will remain active before it
// is executed or expires.
type IndexerOrder_TimeInForce int32
const (
// TIME_IN_FORCE_UNSPECIFIED represents the default behavior where an
// order will first match with existing orders on the book, and any
// remaining size will be added to the book as a maker order.
IndexerOrder_TIME_IN_FORCE_UNSPECIFIED IndexerOrder_TimeInForce = 0
// TIME_IN_FORCE_IOC enforces that an order only be matched with
// maker orders on the book. If the order has remaining size after
// matching with existing orders on the book, the remaining size
// is not placed on the book.
IndexerOrder_TIME_IN_FORCE_IOC IndexerOrder_TimeInForce = 1
// TIME_IN_FORCE_POST_ONLY enforces that an order only be placed
// on the book as a maker order. Note this means that validators will cancel
// any newly-placed post only orders that would cross with other maker
// orders.
IndexerOrder_TIME_IN_FORCE_POST_ONLY IndexerOrder_TimeInForce = 2
// TIME_IN_FORCE_FILL_OR_KILL enforces that an order will either be filled
// completely and immediately by maker orders on the book or canceled if the
// entire amount can‘t be matched.
IndexerOrder_TIME_IN_FORCE_FILL_OR_KILL IndexerOrder_TimeInForce = 3
)
var IndexerOrder_TimeInForce_name = map[int32]string{
0: "TIME_IN_FORCE_UNSPECIFIED",
1: "TIME_IN_FORCE_IOC",
2: "TIME_IN_FORCE_POST_ONLY",
3: "TIME_IN_FORCE_FILL_OR_KILL",
}
var IndexerOrder_TimeInForce_value = map[string]int32{
"TIME_IN_FORCE_UNSPECIFIED": 0,
"TIME_IN_FORCE_IOC": 1,
"TIME_IN_FORCE_POST_ONLY": 2,
"TIME_IN_FORCE_FILL_OR_KILL": 3,
}
func (x IndexerOrder_TimeInForce) String() string {
return proto.EnumName(IndexerOrder_TimeInForce_name, int32(x))
}
func (IndexerOrder_TimeInForce) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{1, 1}
}
type IndexerOrder_ConditionType int32
const (
// CONDITION_TYPE_UNSPECIFIED represents the default behavior where an
// order will be placed immediately on the orderbook.
IndexerOrder_CONDITION_TYPE_UNSPECIFIED IndexerOrder_ConditionType = 0
// CONDITION_TYPE_STOP_LOSS represents a stop order. A stop order will
// trigger when the oracle price moves at or above the trigger price for
// buys, and at or below the trigger price for sells.
IndexerOrder_CONDITION_TYPE_STOP_LOSS IndexerOrder_ConditionType = 1
// CONDITION_TYPE_TAKE_PROFIT represents a take profit order. A take profit
// order will trigger when the oracle price moves at or below the trigger
// price for buys and at or above the trigger price for sells.
IndexerOrder_CONDITION_TYPE_TAKE_PROFIT IndexerOrder_ConditionType = 2
)
var IndexerOrder_ConditionType_name = map[int32]string{
0: "CONDITION_TYPE_UNSPECIFIED",
1: "CONDITION_TYPE_STOP_LOSS",
2: "CONDITION_TYPE_TAKE_PROFIT",
}
var IndexerOrder_ConditionType_value = map[string]int32{
"CONDITION_TYPE_UNSPECIFIED": 0,
"CONDITION_TYPE_STOP_LOSS": 1,
"CONDITION_TYPE_TAKE_PROFIT": 2,
}
func (x IndexerOrder_ConditionType) String() string {
return proto.EnumName(IndexerOrder_ConditionType_name, int32(x))
}
func (IndexerOrder_ConditionType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{1, 2}
}
// IndexerOrderId refers to a single order belonging to a Subaccount.
type IndexerOrderId struct {
// The subaccount ID that opened this order.
// Note that this field has `gogoproto.nullable = false` so that it is
// generated as a value instead of a pointer. This is because the `OrderId`
// proto is used as a key within maps, and map comparisons will compare
// pointers for equality (when the desired behavior is to compare the values).
SubaccountId IndexerSubaccountId `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id"`
// The client ID of this order, unique with respect to the specific
// sub account (I.E., the same subaccount can't have two orders with
// the same ClientId).
ClientId uint32 `protobuf:"fixed32,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// order_flags represent order flags for the order. This field is invalid if
// it's greater than 127 (larger than one byte). Each bit in the first byte
// represents a different flag. Currently only two flags are supported.
//
// Starting from the bit after the most MSB (note that the MSB is used in
// proto varint encoding, and therefore cannot be used): Bit 1 is set if this
// order is a Long-Term order (0x40, or 64 as a uint8). Bit 2 is set if this
// order is a Conditional order (0x20, or 32 as a uint8).
//
// If neither bit is set, the order is assumed to be a Short-Term order.
//
// If both bits are set or bits other than the 2nd and 3rd are set, the order
// ID is invalid.
OrderFlags uint32 `protobuf:"varint,3,opt,name=order_flags,json=orderFlags,proto3" json:"order_flags,omitempty"`
// ID of the CLOB the order is created for.
ClobPairId uint32 `protobuf:"varint,4,opt,name=clob_pair_id,json=clobPairId,proto3" json:"clob_pair_id,omitempty"`
}
func (m *IndexerOrderId) Reset() { *m = IndexerOrderId{} }
func (m *IndexerOrderId) String() string { return proto.CompactTextString(m) }
func (*IndexerOrderId) ProtoMessage() {}
func (*IndexerOrderId) Descriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{0}
}
func (m *IndexerOrderId) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IndexerOrderId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IndexerOrderId.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IndexerOrderId) XXX_Merge(src proto.Message) {
xxx_messageInfo_IndexerOrderId.Merge(m, src)
}
func (m *IndexerOrderId) XXX_Size() int {
return m.Size()
}
func (m *IndexerOrderId) XXX_DiscardUnknown() {
xxx_messageInfo_IndexerOrderId.DiscardUnknown(m)
}
var xxx_messageInfo_IndexerOrderId proto.InternalMessageInfo
func (m *IndexerOrderId) GetSubaccountId() IndexerSubaccountId {
if m != nil {
return m.SubaccountId
}
return IndexerSubaccountId{}
}
func (m *IndexerOrderId) GetClientId() uint32 {
if m != nil {
return m.ClientId
}
return 0
}
func (m *IndexerOrderId) GetOrderFlags() uint32 {
if m != nil {
return m.OrderFlags
}
return 0
}
func (m *IndexerOrderId) GetClobPairId() uint32 {
if m != nil {
return m.ClobPairId
}
return 0
}
// IndexerOrderV1 represents a single order belonging to a `Subaccount`
// for a particular `ClobPair`.
type IndexerOrder struct {
// The unique ID of this order. Meant to be unique across all orders.
OrderId IndexerOrderId `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id"`
Side IndexerOrder_Side `protobuf:"varint,2,opt,name=side,proto3,enum=furyaprotocol.indexer.protocol.v1.IndexerOrder_Side" json:"side,omitempty"`
// The size of this order in base quantums. Must be a multiple of
// `ClobPair.StepBaseQuantums` (where `ClobPair.Id = orderId.ClobPairId`).
Quantums uint64 `protobuf:"varint,3,opt,name=quantums,proto3" json:"quantums,omitempty"`
// The price level that this order will be placed at on the orderbook,
// in subticks. Must be a multiple of ClobPair.SubticksPerTick
// (where `ClobPair.Id = orderId.ClobPairId`).
Subticks uint64 `protobuf:"varint,4,opt,name=subticks,proto3" json:"subticks,omitempty"`
// Information about when the order expires.
//
// Types that are valid to be assigned to GoodTilOneof:
// *IndexerOrder_GoodTilBlock
// *IndexerOrder_GoodTilBlockTime
GoodTilOneof isIndexerOrder_GoodTilOneof `protobuf_oneof:"good_til_oneof"`
// The time in force of this order.
TimeInForce IndexerOrder_TimeInForce `protobuf:"varint,7,opt,name=time_in_force,json=timeInForce,proto3,enum=furyaprotocol.indexer.protocol.v1.IndexerOrder_TimeInForce" json:"time_in_force,omitempty"`
// Enforces that the order can only reduce the size of an existing position.
// If a ReduceOnly order would change the side of the existing position,
// its size is reduced to that of the remaining size of the position.
// If existing orders on the book with ReduceOnly
// would already close the position, the least aggressive (out-of-the-money)
// ReduceOnly orders are resized and canceled first.
ReduceOnly bool `protobuf:"varint,8,opt,name=reduce_only,json=reduceOnly,proto3" json:"reduce_only,omitempty"`
// Set of bit flags set arbitrarily by clients and ignored by the protocol.
// Used by indexer to infer information about a placed order.
ClientMetadata uint32 `protobuf:"varint,9,opt,name=client_metadata,json=clientMetadata,proto3" json:"client_metadata,omitempty"`
ConditionType IndexerOrder_ConditionType `protobuf:"varint,10,opt,name=condition_type,json=conditionType,proto3,enum=furyaprotocol.indexer.protocol.v1.IndexerOrder_ConditionType" json:"condition_type,omitempty"`
// conditional_order_trigger_subticks represents the price at which this order
// will be triggered. If the condition_type is CONDITION_TYPE_UNSPECIFIED,
// this value is enforced to be 0. If this value is nonzero, condition_type
// cannot be CONDITION_TYPE_UNSPECIFIED. Value is in subticks.
// Must be a multiple of ClobPair.SubticksPerTick (where `ClobPair.Id =
// orderId.ClobPairId`).
ConditionalOrderTriggerSubticks uint64 `protobuf:"varint,11,opt,name=conditional_order_trigger_subticks,json=conditionalOrderTriggerSubticks,proto3" json:"conditional_order_trigger_subticks,omitempty"`
}
func (m *IndexerOrder) Reset() { *m = IndexerOrder{} }
func (m *IndexerOrder) String() string { return proto.CompactTextString(m) }
func (*IndexerOrder) ProtoMessage() {}
func (*IndexerOrder) Descriptor() ([]byte, []int) {
return fileDescriptor_fac8923e70f7ca3c, []int{1}
}
func (m *IndexerOrder) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IndexerOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IndexerOrder.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IndexerOrder) XXX_Merge(src proto.Message) {
xxx_messageInfo_IndexerOrder.Merge(m, src)
}
func (m *IndexerOrder) XXX_Size() int {
return m.Size()
}
func (m *IndexerOrder) XXX_DiscardUnknown() {
xxx_messageInfo_IndexerOrder.DiscardUnknown(m)
}
var xxx_messageInfo_IndexerOrder proto.InternalMessageInfo
type isIndexerOrder_GoodTilOneof interface {
isIndexerOrder_GoodTilOneof()
MarshalTo([]byte) (int, error)
Size() int
}
type IndexerOrder_GoodTilBlock struct {
GoodTilBlock uint32 `protobuf:"varint,5,opt,name=good_til_block,json=goodTilBlock,proto3,oneof" json:"good_til_block,omitempty"`
}
type IndexerOrder_GoodTilBlockTime struct {
GoodTilBlockTime uint32 `protobuf:"fixed32,6,opt,name=good_til_block_time,json=goodTilBlockTime,proto3,oneof" json:"good_til_block_time,omitempty"`
}
func (*IndexerOrder_GoodTilBlock) isIndexerOrder_GoodTilOneof() {}
func (*IndexerOrder_GoodTilBlockTime) isIndexerOrder_GoodTilOneof() {}
func (m *IndexerOrder) GetGoodTilOneof() isIndexerOrder_GoodTilOneof {
if m != nil {
return m.GoodTilOneof
}
return nil
}
func (m *IndexerOrder) GetOrderId() IndexerOrderId {
if m != nil {
return m.OrderId
}
return IndexerOrderId{}
}
func (m *IndexerOrder) GetSide() IndexerOrder_Side {
if m != nil {
return m.Side
}
return IndexerOrder_SIDE_UNSPECIFIED
}
func (m *IndexerOrder) GetQuantums() uint64 {
if m != nil {
return m.Quantums
}
return 0
}
func (m *IndexerOrder) GetSubticks() uint64 {
if m != nil {
return m.Subticks
}
return 0
}
func (m *IndexerOrder) GetGoodTilBlock() uint32 {
if x, ok := m.GetGoodTilOneof().(*IndexerOrder_GoodTilBlock); ok {
return x.GoodTilBlock
}
return 0
}
func (m *IndexerOrder) GetGoodTilBlockTime() uint32 {
if x, ok := m.GetGoodTilOneof().(*IndexerOrder_GoodTilBlockTime); ok {
return x.GoodTilBlockTime
}
return 0
}
func (m *IndexerOrder) GetTimeInForce() IndexerOrder_TimeInForce {
if m != nil {
return m.TimeInForce
}
return IndexerOrder_TIME_IN_FORCE_UNSPECIFIED
}
func (m *IndexerOrder) GetReduceOnly() bool {
if m != nil {
return m.ReduceOnly
}
return false
}
func (m *IndexerOrder) GetClientMetadata() uint32 {
if m != nil {
return m.ClientMetadata
}
return 0
}
func (m *IndexerOrder) GetConditionType() IndexerOrder_ConditionType {
if m != nil {
return m.ConditionType
}
return IndexerOrder_CONDITION_TYPE_UNSPECIFIED
}
func (m *IndexerOrder) GetConditionalOrderTriggerSubticks() uint64 {
if m != nil {
return m.ConditionalOrderTriggerSubticks
}
return 0
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*IndexerOrder) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*IndexerOrder_GoodTilBlock)(nil),
(*IndexerOrder_GoodTilBlockTime)(nil),
}
}
func init() {
proto.RegisterEnum("furyaprotocol.indexer.protocol.v1.ClobPairStatus", ClobPairStatus_name, ClobPairStatus_value)
proto.RegisterEnum("furyaprotocol.indexer.protocol.v1.IndexerOrder_Side", IndexerOrder_Side_name, IndexerOrder_Side_value)
proto.RegisterEnum("furyaprotocol.indexer.protocol.v1.IndexerOrder_TimeInForce", IndexerOrder_TimeInForce_name, IndexerOrder_TimeInForce_value)
proto.RegisterEnum("furyaprotocol.indexer.protocol.v1.IndexerOrder_ConditionType", IndexerOrder_ConditionType_name, IndexerOrder_ConditionType_value)
proto.RegisterType((*IndexerOrderId)(nil), "furyaprotocol.indexer.protocol.v1.IndexerOrderId")
proto.RegisterType((*IndexerOrder)(nil), "furyaprotocol.indexer.protocol.v1.IndexerOrder")
}
func init() {
proto.RegisterFile("furyaprotocol/indexer/protocol/v1/clob.proto", fileDescriptor_fac8923e70f7ca3c)
}
var fileDescriptor_fac8923e70f7ca3c = []byte{
// 830 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x73, 0xdb, 0x54,
0x14, 0xb5, 0x1c, 0x37, 0x71, 0xae, 0x3f, 0x10, 0x8f, 0x32, 0x15, 0x49, 0xeb, 0xb8, 0x9e, 0x01,
0x32, 0x30, 0xd8, 0xa4, 0x85, 0x05, 0x0c, 0x2c, 0x6c, 0x45, 0x6e, 0xdf, 0x44, 0x91, 0x8c, 0xf4,
0x02, 0x93, 0x2e, 0x78, 0xc8, 0xd2, 0x8b, 0xfb, 0xa6, 0xb2, 0x5e, 0x90, 0xe5, 0x4c, 0xbd, 0xe3,
0x27, 0xf0, 0xb3, 0xba, 0xec, 0xb0, 0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, 0x3c, 0xea, 0xfd, 0xd7, 0x87, 0x62, 0xbc, 0x99, 0x16, 0x8f,
0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x08, 0xc4, 0xc7, 0xa2, 0x06, 0x00, 0x00,
}
func (m *IndexerOrderId) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *IndexerOrderId) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *IndexerOrderId) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ClobPairId != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.ClobPairId))
i--
dAtA[i] = 0x20
}
if m.OrderFlags != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.OrderFlags))
i--
dAtA[i] = 0x18
}
if m.ClientId != 0 {
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.ClientId))
i--
dAtA[i] = 0x15
}
{
size, err := m.SubaccountId.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintClob(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *IndexerOrder) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *IndexerOrder) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *IndexerOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ConditionalOrderTriggerSubticks != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.ConditionalOrderTriggerSubticks))
i--
dAtA[i] = 0x58
}
if m.ConditionType != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.ConditionType))
i--
dAtA[i] = 0x50
}
if m.ClientMetadata != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.ClientMetadata))
i--
dAtA[i] = 0x48
}
if m.ReduceOnly {
i--
if m.ReduceOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x40
}
if m.TimeInForce != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.TimeInForce))
i--
dAtA[i] = 0x38
}
if m.GoodTilOneof != nil {
{
size := m.GoodTilOneof.Size()
i -= size
if _, err := m.GoodTilOneof.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
}
}
if m.Subticks != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.Subticks))
i--
dAtA[i] = 0x20
}
if m.Quantums != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.Quantums))
i--
dAtA[i] = 0x18
}
if m.Side != 0 {
i = encodeVarintClob(dAtA, i, uint64(m.Side))
i--
dAtA[i] = 0x10
}
{
size, err := m.OrderId.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintClob(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *IndexerOrder_GoodTilBlock) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *IndexerOrder_GoodTilBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
i = encodeVarintClob(dAtA, i, uint64(m.GoodTilBlock))
i--
dAtA[i] = 0x28
return len(dAtA) - i, nil
}
func (m *IndexerOrder_GoodTilBlockTime) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *IndexerOrder_GoodTilBlockTime) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
i -= 4
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.GoodTilBlockTime))
i--
dAtA[i] = 0x35
return len(dAtA) - i, nil
}
func encodeVarintClob(dAtA []byte, offset int, v uint64) int {
offset -= sovClob(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *IndexerOrderId) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.SubaccountId.Size()
n += 1 + l + sovClob(uint64(l))
if m.ClientId != 0 {
n += 5
}
if m.OrderFlags != 0 {
n += 1 + sovClob(uint64(m.OrderFlags))
}
if m.ClobPairId != 0 {
n += 1 + sovClob(uint64(m.ClobPairId))
}
return n
}
func (m *IndexerOrder) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.OrderId.Size()
n += 1 + l + sovClob(uint64(l))
if m.Side != 0 {
n += 1 + sovClob(uint64(m.Side))
}
if m.Quantums != 0 {
n += 1 + sovClob(uint64(m.Quantums))
}
if m.Subticks != 0 {
n += 1 + sovClob(uint64(m.Subticks))
}
if m.GoodTilOneof != nil {
n += m.GoodTilOneof.Size()
}
if m.TimeInForce != 0 {
n += 1 + sovClob(uint64(m.TimeInForce))
}
if m.ReduceOnly {
n += 2
}
if m.ClientMetadata != 0 {
n += 1 + sovClob(uint64(m.ClientMetadata))
}
if m.ConditionType != 0 {
n += 1 + sovClob(uint64(m.ConditionType))
}
if m.ConditionalOrderTriggerSubticks != 0 {
n += 1 + sovClob(uint64(m.ConditionalOrderTriggerSubticks))
}
return n
}
func (m *IndexerOrder_GoodTilBlock) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
n += 1 + sovClob(uint64(m.GoodTilBlock))
return n
}
func (m *IndexerOrder_GoodTilBlockTime) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
n += 5
return n
}
func sovClob(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozClob(x uint64) (n int) {
return sovClob(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *IndexerOrderId) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: IndexerOrderId: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: IndexerOrderId: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthClob
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthClob
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.SubaccountId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 5 {
return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType)
}
m.ClientId = 0
if (iNdEx + 4) > l {
return io.ErrUnexpectedEOF
}
m.ClientId = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
iNdEx += 4
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field OrderFlags", wireType)
}
m.OrderFlags = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.OrderFlags |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ClobPairId", wireType)
}
m.ClobPairId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ClobPairId |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipClob(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthClob
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *IndexerOrder) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: IndexerOrder: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: IndexerOrder: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OrderId", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthClob
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthClob
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.OrderId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Side", wireType)
}
m.Side = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowClob
}