forked from crescent-network/crescent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
liquidity.pb.go
3319 lines (3245 loc) · 90.7 KB
/
liquidity.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: crescent/liquidity/v1beta1/liquidity.proto
package v1
import (
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
time "time"
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
_ "google.golang.org/protobuf/types/known/durationpb"
_ "google.golang.org/protobuf/types/known/timestamppb"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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
// OrderDirection enumerates order directions.
type OrderDirection int32
const (
// ORDER_DIRECTION_UNSPECIFIED specifies unknown order direction
OrderDirectionUnspecified OrderDirection = 0
// ORDER_DIRECTION_BUY specifies buy(swap quote coin to base coin) order direction
OrderDirectionBuy OrderDirection = 1
// ORDER_DIRECTION_SELL specifies sell(swap base coin to quote coin) order direction
OrderDirectionSell OrderDirection = 2
)
var OrderDirection_name = map[int32]string{
0: "ORDER_DIRECTION_UNSPECIFIED",
1: "ORDER_DIRECTION_BUY",
2: "ORDER_DIRECTION_SELL",
}
var OrderDirection_value = map[string]int32{
"ORDER_DIRECTION_UNSPECIFIED": 0,
"ORDER_DIRECTION_BUY": 1,
"ORDER_DIRECTION_SELL": 2,
}
func (x OrderDirection) String() string {
return proto.EnumName(OrderDirection_name, int32(x))
}
func (OrderDirection) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{0}
}
// RequestStatus enumerates request statuses.
type RequestStatus int32
const (
// REQUEST_STATUS_UNSPECIFIED specifies unknown request status
RequestStatusUnspecified RequestStatus = 0
// REQUEST_STATUS_NOT_EXECUTED indicates the request is not executed yet
RequestStatusNotExecuted RequestStatus = 1
// REQUEST_STATUS_SUCCEEDED indicates the request has been succeeded
RequestStatusSucceeded RequestStatus = 2
// REQUEST_STATUS_FAILED indicates the request is failed
RequestStatusFailed RequestStatus = 3
)
var RequestStatus_name = map[int32]string{
0: "REQUEST_STATUS_UNSPECIFIED",
1: "REQUEST_STATUS_NOT_EXECUTED",
2: "REQUEST_STATUS_SUCCEEDED",
3: "REQUEST_STATUS_FAILED",
}
var RequestStatus_value = map[string]int32{
"REQUEST_STATUS_UNSPECIFIED": 0,
"REQUEST_STATUS_NOT_EXECUTED": 1,
"REQUEST_STATUS_SUCCEEDED": 2,
"REQUEST_STATUS_FAILED": 3,
}
func (x RequestStatus) String() string {
return proto.EnumName(RequestStatus_name, int32(x))
}
func (RequestStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{1}
}
// OrderStatus enumerates order statuses.
type OrderStatus int32
const (
// ORDER_STATUS_UNSPECIFIED specifies unknown order status
OrderStatusUnspecified OrderStatus = 0
// ORDER_STATUS_NOT_EXECUTED indicates the order has not been executed yet
OrderStatusNotExecuted OrderStatus = 1
// ORDER_STATUS_NOT_MATCHED indicates the order has been executed but has no match
OrderStatusNotMatched OrderStatus = 2
// ORDER_STATUS_PARTIALLY_MATCHED indicates the order has been partially matched
OrderStatusPartiallyMatched OrderStatus = 3
// ORDER_STATUS_COMPLETED indicates the order has been fully matched and completed
OrderStatusCompleted OrderStatus = 4
// ORDER_STATUS_CANCELED indicates the order has been canceled
OrderStatusCanceled OrderStatus = 5
// ORDER_STATUS_EXPIRED indicates the order has been expired
OrderStatusExpired OrderStatus = 6
)
var OrderStatus_name = map[int32]string{
0: "ORDER_STATUS_UNSPECIFIED",
1: "ORDER_STATUS_NOT_EXECUTED",
2: "ORDER_STATUS_NOT_MATCHED",
3: "ORDER_STATUS_PARTIALLY_MATCHED",
4: "ORDER_STATUS_COMPLETED",
5: "ORDER_STATUS_CANCELED",
6: "ORDER_STATUS_EXPIRED",
}
var OrderStatus_value = map[string]int32{
"ORDER_STATUS_UNSPECIFIED": 0,
"ORDER_STATUS_NOT_EXECUTED": 1,
"ORDER_STATUS_NOT_MATCHED": 2,
"ORDER_STATUS_PARTIALLY_MATCHED": 3,
"ORDER_STATUS_COMPLETED": 4,
"ORDER_STATUS_CANCELED": 5,
"ORDER_STATUS_EXPIRED": 6,
}
func (x OrderStatus) String() string {
return proto.EnumName(OrderStatus_name, int32(x))
}
func (OrderStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{2}
}
// Params defines the parameters for the liquidity module.
type Params struct {
BatchSize uint32 `protobuf:"varint,1,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
TickPrecision uint32 `protobuf:"varint,2,opt,name=tick_precision,json=tickPrecision,proto3" json:"tick_precision,omitempty"`
FeeCollectorAddress string `protobuf:"bytes,3,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"`
DustCollectorAddress string `protobuf:"bytes,4,opt,name=dust_collector_address,json=dustCollectorAddress,proto3" json:"dust_collector_address,omitempty"`
MinInitialPoolCoinSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=min_initial_pool_coin_supply,json=minInitialPoolCoinSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_initial_pool_coin_supply"`
PairCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=pair_creation_fee,json=pairCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"pair_creation_fee"`
PoolCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=pool_creation_fee,json=poolCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"pool_creation_fee"`
MinInitialDepositAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=min_initial_deposit_amount,json=minInitialDepositAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_initial_deposit_amount"`
MaxPriceLimitRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,9,opt,name=max_price_limit_ratio,json=maxPriceLimitRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_price_limit_ratio"`
MaxOrderLifespan time.Duration `protobuf:"bytes,10,opt,name=max_order_lifespan,json=maxOrderLifespan,proto3,stdduration" json:"max_order_lifespan"`
SwapFeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=swap_fee_rate,json=swapFeeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"swap_fee_rate"`
WithdrawFeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,12,opt,name=withdraw_fee_rate,json=withdrawFeeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"withdraw_fee_rate"`
DepositExtraGas github_com_cosmos_cosmos_sdk_types.Gas `protobuf:"varint,13,opt,name=deposit_extra_gas,json=depositExtraGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Gas" json:"deposit_extra_gas"`
WithdrawExtraGas github_com_cosmos_cosmos_sdk_types.Gas `protobuf:"varint,14,opt,name=withdraw_extra_gas,json=withdrawExtraGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Gas" json:"withdraw_extra_gas"`
OrderExtraGas github_com_cosmos_cosmos_sdk_types.Gas `protobuf:"varint,15,opt,name=order_extra_gas,json=orderExtraGas,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Gas" json:"order_extra_gas"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
// Pair defines a coin pair.
type Pair struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
BaseCoinDenom string `protobuf:"bytes,2,opt,name=base_coin_denom,json=baseCoinDenom,proto3" json:"base_coin_denom,omitempty"`
QuoteCoinDenom string `protobuf:"bytes,3,opt,name=quote_coin_denom,json=quoteCoinDenom,proto3" json:"quote_coin_denom,omitempty"`
EscrowAddress string `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
LastOrderId uint64 `protobuf:"varint,5,opt,name=last_order_id,json=lastOrderId,proto3" json:"last_order_id,omitempty"`
LastPrice *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=last_price,json=lastPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_price,omitempty"`
CurrentBatchId uint64 `protobuf:"varint,7,opt,name=current_batch_id,json=currentBatchId,proto3" json:"current_batch_id,omitempty"`
}
func (m *Pair) Reset() { *m = Pair{} }
func (m *Pair) String() string { return proto.CompactTextString(m) }
func (*Pair) ProtoMessage() {}
func (*Pair) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{1}
}
func (m *Pair) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Pair.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 *Pair) XXX_Merge(src proto.Message) {
xxx_messageInfo_Pair.Merge(m, src)
}
func (m *Pair) XXX_Size() int {
return m.Size()
}
func (m *Pair) XXX_DiscardUnknown() {
xxx_messageInfo_Pair.DiscardUnknown(m)
}
var xxx_messageInfo_Pair proto.InternalMessageInfo
// Pool defines a basic liquidity pool with no min-price and max-price.
type Pool struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
PairId uint64 `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"`
ReserveAddress string `protobuf:"bytes,3,opt,name=reserve_address,json=reserveAddress,proto3" json:"reserve_address,omitempty"`
PoolCoinDenom string `protobuf:"bytes,4,opt,name=pool_coin_denom,json=poolCoinDenom,proto3" json:"pool_coin_denom,omitempty"`
LastDepositRequestId uint64 `protobuf:"varint,5,opt,name=last_deposit_request_id,json=lastDepositRequestId,proto3" json:"last_deposit_request_id,omitempty"`
LastWithdrawRequestId uint64 `protobuf:"varint,6,opt,name=last_withdraw_request_id,json=lastWithdrawRequestId,proto3" json:"last_withdraw_request_id,omitempty"`
Disabled bool `protobuf:"varint,7,opt,name=disabled,proto3" json:"disabled,omitempty"`
}
func (m *Pool) Reset() { *m = Pool{} }
func (m *Pool) String() string { return proto.CompactTextString(m) }
func (*Pool) ProtoMessage() {}
func (*Pool) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{2}
}
func (m *Pool) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Pool.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 *Pool) XXX_Merge(src proto.Message) {
xxx_messageInfo_Pool.Merge(m, src)
}
func (m *Pool) XXX_Size() int {
return m.Size()
}
func (m *Pool) XXX_DiscardUnknown() {
xxx_messageInfo_Pool.DiscardUnknown(m)
}
var xxx_messageInfo_Pool proto.InternalMessageInfo
// DepositRequest defines a deposit request.
type DepositRequest struct {
// id specifies the id for the request
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// pool_id specifies the pool id
PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
// msg_height specifies the block height when the request is stored for the batch execution
MsgHeight int64 `protobuf:"varint,3,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty"`
// depositor specifies the bech32-encoded address that makes a deposit to the pool
Depositor string `protobuf:"bytes,4,opt,name=depositor,proto3" json:"depositor,omitempty"`
// deposit_coins specifies the amount of coins to deposit.
DepositCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=deposit_coins,json=depositCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"deposit_coins"`
// accepted_coins specifies the amount of coins that are accepted.
AcceptedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=accepted_coins,json=acceptedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"accepted_coins"`
MintedPoolCoin types.Coin `protobuf:"bytes,7,opt,name=minted_pool_coin,json=mintedPoolCoin,proto3" json:"minted_pool_coin"`
Status RequestStatus `protobuf:"varint,8,opt,name=status,proto3,enum=crescent.liquidity.v1beta1.RequestStatus" json:"status,omitempty"`
}
func (m *DepositRequest) Reset() { *m = DepositRequest{} }
func (m *DepositRequest) String() string { return proto.CompactTextString(m) }
func (*DepositRequest) ProtoMessage() {}
func (*DepositRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{3}
}
func (m *DepositRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DepositRequest.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 *DepositRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DepositRequest.Merge(m, src)
}
func (m *DepositRequest) XXX_Size() int {
return m.Size()
}
func (m *DepositRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DepositRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DepositRequest proto.InternalMessageInfo
// WithdrawRequest defines a withdraw request.
type WithdrawRequest struct {
// id specifies the id for the request
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// pool_id specifies the pool id
PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
// msg_height specifies the block height when the request is stored for the batch execution
MsgHeight int64 `protobuf:"varint,3,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty"`
// withdrawer specifies the bech32-encoded address that withdraws pool coin from the pool
Withdrawer string `protobuf:"bytes,4,opt,name=withdrawer,proto3" json:"withdrawer,omitempty"`
// pool_coin specifies the pool coin that is a proof of liquidity provider for the pool
PoolCoin types.Coin `protobuf:"bytes,5,opt,name=pool_coin,json=poolCoin,proto3" json:"pool_coin"`
// withdrawn_coins specifies the amount of coins that are withdrawn.
WithdrawnCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=withdrawn_coins,json=withdrawnCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"withdrawn_coins"`
Status RequestStatus `protobuf:"varint,7,opt,name=status,proto3,enum=crescent.liquidity.v1beta1.RequestStatus" json:"status,omitempty"`
}
func (m *WithdrawRequest) Reset() { *m = WithdrawRequest{} }
func (m *WithdrawRequest) String() string { return proto.CompactTextString(m) }
func (*WithdrawRequest) ProtoMessage() {}
func (*WithdrawRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{4}
}
func (m *WithdrawRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *WithdrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_WithdrawRequest.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 *WithdrawRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WithdrawRequest.Merge(m, src)
}
func (m *WithdrawRequest) XXX_Size() int {
return m.Size()
}
func (m *WithdrawRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WithdrawRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WithdrawRequest proto.InternalMessageInfo
// Order defines an order.
type Order struct {
// id specifies the id for the request
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// pair_id specifies the pair id
PairId uint64 `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty"`
// msg_height specifies the block height when the request is stored for the batch execution
MsgHeight int64 `protobuf:"varint,3,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty"`
// orderer specifies the bech32-encoded address that makes an order
Orderer string `protobuf:"bytes,4,opt,name=orderer,proto3" json:"orderer,omitempty"`
// direction specifies the order direction; either buy or sell
Direction OrderDirection `protobuf:"varint,5,opt,name=direction,proto3,enum=crescent.liquidity.v1beta1.OrderDirection" json:"direction,omitempty"`
OfferCoin types.Coin `protobuf:"bytes,6,opt,name=offer_coin,json=offerCoin,proto3" json:"offer_coin"`
// remaining_offer_coin specifies the remaining offer coin
RemainingOfferCoin types.Coin `protobuf:"bytes,7,opt,name=remaining_offer_coin,json=remainingOfferCoin,proto3" json:"remaining_offer_coin"`
// received_coin specifies the received coin after the swap
ReceivedCoin types.Coin `protobuf:"bytes,8,opt,name=received_coin,json=receivedCoin,proto3" json:"received_coin"`
// price specifies the price that an orderer is willing to swap
Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,9,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"`
Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
OpenAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=open_amount,json=openAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"open_amount"`
// batch_id specifies the pair's batch id when the request is stored
BatchId uint64 `protobuf:"varint,12,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
ExpireAt time.Time `protobuf:"bytes,13,opt,name=expire_at,json=expireAt,proto3,stdtime" json:"expire_at"`
Status OrderStatus `protobuf:"varint,14,opt,name=status,proto3,enum=crescent.liquidity.v1beta1.OrderStatus" json:"status,omitempty"`
}
func (m *Order) Reset() { *m = Order{} }
func (m *Order) String() string { return proto.CompactTextString(m) }
func (*Order) ProtoMessage() {}
func (*Order) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{5}
}
func (m *Order) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Order.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 *Order) XXX_Merge(src proto.Message) {
xxx_messageInfo_Order.Merge(m, src)
}
func (m *Order) XXX_Size() int {
return m.Size()
}
func (m *Order) XXX_DiscardUnknown() {
xxx_messageInfo_Order.DiscardUnknown(m)
}
var xxx_messageInfo_Order proto.InternalMessageInfo
var fileDescriptor_c9be4f53a63dce2f = []by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, 0x17, 0xd5, 0x85, 0x6f, 0x5e, 0x54,
0x17, 0xfe, 0xf1, 0xa2, 0xba, 0xf0, 0xe5, 0xcf, 0x93, 0x33, 0x25, 0xea, 0xdd, 0xf7, 0x5d, 0xe4,
0x17, 0xcc, 0x7f, 0x3c, 0x31, 0x34, 0x2e, 0x13, 0x7f, 0x06, 0x92, 0x73, 0xe6, 0x34, 0x27, 0x27,
0xc4, 0x4f, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xc8, 0xbc, 0xb1, 0x75, 0x29, 0x12, 0x00, 0x00,
}
func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.OrderExtraGas != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.OrderExtraGas))
i--
dAtA[i] = 0x78
}
if m.WithdrawExtraGas != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.WithdrawExtraGas))
i--
dAtA[i] = 0x70
}
if m.DepositExtraGas != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.DepositExtraGas))
i--
dAtA[i] = 0x68
}
{
size := m.WithdrawFeeRate.Size()
i -= size
if _, err := m.WithdrawFeeRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x62
{
size := m.SwapFeeRate.Size()
i -= size
if _, err := m.SwapFeeRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x5a
n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MaxOrderLifespan, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxOrderLifespan):])
if err1 != nil {
return 0, err1
}
i -= n1
i = encodeVarintLiquidity(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x52
{
size := m.MaxPriceLimitRatio.Size()
i -= size
if _, err := m.MaxPriceLimitRatio.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x4a
{
size := m.MinInitialDepositAmount.Size()
i -= size
if _, err := m.MinInitialDepositAmount.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x42
if len(m.PoolCreationFee) > 0 {
for iNdEx := len(m.PoolCreationFee) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.PoolCreationFee[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x3a
}
}
if len(m.PairCreationFee) > 0 {
for iNdEx := len(m.PairCreationFee) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.PairCreationFee[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
}
{
size := m.MinInitialPoolCoinSupply.Size()
i -= size
if _, err := m.MinInitialPoolCoinSupply.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
if len(m.DustCollectorAddress) > 0 {
i -= len(m.DustCollectorAddress)
copy(dAtA[i:], m.DustCollectorAddress)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.DustCollectorAddress)))
i--
dAtA[i] = 0x22
}
if len(m.FeeCollectorAddress) > 0 {
i -= len(m.FeeCollectorAddress)
copy(dAtA[i:], m.FeeCollectorAddress)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.FeeCollectorAddress)))
i--
dAtA[i] = 0x1a
}
if m.TickPrecision != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.TickPrecision))
i--
dAtA[i] = 0x10
}
if m.BatchSize != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.BatchSize))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *Pair) 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 *Pair) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Pair) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.CurrentBatchId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.CurrentBatchId))
i--
dAtA[i] = 0x38
}
if m.LastPrice != nil {
{
size := m.LastPrice.Size()
i -= size
if _, err := m.LastPrice.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
if m.LastOrderId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.LastOrderId))
i--
dAtA[i] = 0x28
}
if len(m.EscrowAddress) > 0 {
i -= len(m.EscrowAddress)
copy(dAtA[i:], m.EscrowAddress)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.EscrowAddress)))
i--
dAtA[i] = 0x22
}
if len(m.QuoteCoinDenom) > 0 {
i -= len(m.QuoteCoinDenom)
copy(dAtA[i:], m.QuoteCoinDenom)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.QuoteCoinDenom)))
i--
dAtA[i] = 0x1a
}
if len(m.BaseCoinDenom) > 0 {
i -= len(m.BaseCoinDenom)
copy(dAtA[i:], m.BaseCoinDenom)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.BaseCoinDenom)))
i--
dAtA[i] = 0x12
}
if m.Id != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *Pool) 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 *Pool) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Disabled {
i--
if m.Disabled {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x38
}
if m.LastWithdrawRequestId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.LastWithdrawRequestId))
i--
dAtA[i] = 0x30
}
if m.LastDepositRequestId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.LastDepositRequestId))
i--
dAtA[i] = 0x28
}
if len(m.PoolCoinDenom) > 0 {
i -= len(m.PoolCoinDenom)
copy(dAtA[i:], m.PoolCoinDenom)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.PoolCoinDenom)))
i--
dAtA[i] = 0x22
}
if len(m.ReserveAddress) > 0 {
i -= len(m.ReserveAddress)
copy(dAtA[i:], m.ReserveAddress)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.ReserveAddress)))
i--
dAtA[i] = 0x1a
}
if m.PairId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.PairId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *DepositRequest) 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 *DepositRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Status != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.Status))
i--
dAtA[i] = 0x40
}
{
size, err := m.MintedPoolCoin.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x3a
if len(m.AcceptedCoins) > 0 {
for iNdEx := len(m.AcceptedCoins) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.AcceptedCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
}
if len(m.DepositCoins) > 0 {
for iNdEx := len(m.DepositCoins) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.DepositCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
}
if len(m.Depositor) > 0 {
i -= len(m.Depositor)
copy(dAtA[i:], m.Depositor)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.Depositor)))
i--
dAtA[i] = 0x22
}
if m.MsgHeight != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgHeight))
i--
dAtA[i] = 0x18
}
if m.PoolId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.PoolId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *WithdrawRequest) 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 *WithdrawRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *WithdrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Status != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.Status))
i--
dAtA[i] = 0x38
}
if len(m.WithdrawnCoins) > 0 {
for iNdEx := len(m.WithdrawnCoins) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.WithdrawnCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
}
{
size, err := m.PoolCoin.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
if len(m.Withdrawer) > 0 {
i -= len(m.Withdrawer)
copy(dAtA[i:], m.Withdrawer)
i = encodeVarintLiquidity(dAtA, i, uint64(len(m.Withdrawer)))
i--
dAtA[i] = 0x22
}
if m.MsgHeight != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.MsgHeight))
i--
dAtA[i] = 0x18
}
if m.PoolId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.PoolId))
i--
dAtA[i] = 0x10
}