-
Notifications
You must be signed in to change notification settings - Fork 55
/
liquidity.pb.go
3444 lines (3361 loc) · 93 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 types
import (
fmt "fmt"
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"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// 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
// SwapDirection enumerates swap directions.
type SwapDirection int32
const (
// SWAP_DIRECTION_UNSPECIFIED specifies unknown swap direction
SwapDirectionUnspecified SwapDirection = 0
// SWAP_DIRECTION_BUY specifies buy(swap quote coin to base coin) swap direction
SwapDirectionBuy SwapDirection = 1
// SWAP_DIRECTION_SELL specifies sell(swap base coin to quote coin) swap direction
SwapDirectionSell SwapDirection = 2
)
var SwapDirection_name = map[int32]string{
0: "SWAP_DIRECTION_UNSPECIFIED",
1: "SWAP_DIRECTION_BUY",
2: "SWAP_DIRECTION_SELL",
}
var SwapDirection_value = map[string]int32{
"SWAP_DIRECTION_UNSPECIFIED": 0,
"SWAP_DIRECTION_BUY": 1,
"SWAP_DIRECTION_SELL": 2,
}
func (x SwapDirection) String() string {
return proto.EnumName(SwapDirection_name, int32(x))
}
func (SwapDirection) 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}
}
// SwapRequestStatus enumerates swap request statuses.
type SwapRequestStatus int32
const (
// SWAP_REQUEST_STATUS_UNSPECIFIED specifies unknown swap request status
SwapRequestStatusUnspecified SwapRequestStatus = 0
// SWAP_REQUEST_STATUS_NOT_EXECUTED indicates the request is not executed yet
SwapRequestStatusNotExecuted SwapRequestStatus = 1
// SWAP_REQUEST_STATUS_EXECUTED indicates the request has been executed
SwapRequestStatusExecuted SwapRequestStatus = 2
// SWAP_REQUEST_STATUS_CANCELED indicates the request is canceled
SwapRequestStatusCanceled SwapRequestStatus = 3
// SWAP_REQUEST_STATUS_EXPIRED indicates the request is expired
SwapRequestStatusExpired SwapRequestStatus = 4
)
var SwapRequestStatus_name = map[int32]string{
0: "SWAP_REQUEST_STATUS_UNSPECIFIED",
1: "SWAP_REQUEST_STATUS_NOT_EXECUTED",
2: "SWAP_REQUEST_STATUS_EXECUTED",
3: "SWAP_REQUEST_STATUS_CANCELED",
4: "SWAP_REQUEST_STATUS_EXPIRED",
}
var SwapRequestStatus_value = map[string]int32{
"SWAP_REQUEST_STATUS_UNSPECIFIED": 0,
"SWAP_REQUEST_STATUS_NOT_EXECUTED": 1,
"SWAP_REQUEST_STATUS_EXECUTED": 2,
"SWAP_REQUEST_STATUS_CANCELED": 3,
"SWAP_REQUEST_STATUS_EXPIRED": 4,
}
func (x SwapRequestStatus) String() string {
return proto.EnumName(SwapRequestStatus_name, int32(x))
}
func (SwapRequestStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{2}
}
// Params defines the parameters for the liquidity module.
type Params struct {
InitialPoolCoinSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=initial_pool_coin_supply,json=initialPoolCoinSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_pool_coin_supply"`
BatchSize uint32 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
TickPrecision uint32 `protobuf:"varint,3,opt,name=tick_precision,json=tickPrecision,proto3" json:"tick_precision,omitempty"`
MinInitialDepositAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_initial_deposit_amount,json=minInitialDepositAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_initial_deposit_amount"`
PairCreationFee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,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,6,rep,name=pool_creation_fee,json=poolCreationFee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"pool_creation_fee"`
FeeCollectorAddress string `protobuf:"bytes,7,opt,name=fee_collector_address,json=feeCollectorAddress,proto3" json:"fee_collector_address,omitempty"`
MaxPriceLimitRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,8,opt,name=max_price_limit_ratio,json=maxPriceLimitRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_price_limit_ratio"`
SwapFeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,9,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,10,opt,name=withdraw_fee_rate,json=withdrawFeeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"withdraw_fee_rate"`
MaxOrderLifespan time.Duration `protobuf:"bytes,11,opt,name=max_order_lifespan,json=maxOrderLifespan,proto3,stdduration" json:"max_order_lifespan"`
}
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"`
LastSwapRequestId uint64 `protobuf:"varint,5,opt,name=last_swap_request_id,json=lastSwapRequestId,proto3" json:"last_swap_request_id,omitempty"`
LastCancelSwapRequestId uint64 `protobuf:"varint,6,opt,name=last_cancel_swap_request_id,json=lastCancelSwapRequestId,proto3" json:"last_cancel_swap_request_id,omitempty"`
LastPrice *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=last_price,json=lastPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_price,omitempty"`
CurrentBatchId uint64 `protobuf:"varint,8,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
// SwapRequest defines a swap request.
type SwapRequest 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 to swap from the pool
Orderer string `protobuf:"bytes,4,opt,name=orderer,proto3" json:"orderer,omitempty"`
// direction specifies the swap direction; either buy or sell
Direction SwapDirection `protobuf:"varint,5,opt,name=direction,proto3,enum=crescent.liquidity.v1beta1.SwapDirection" json:"direction,omitempty"`
// price specifies the price that an orderer is willing to swap
Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"`
// remaining_coin specifies the remaining coin after the swap
RemainingCoin types.Coin `protobuf:"bytes,7,opt,name=remaining_coin,json=remainingCoin,proto3" json:"remaining_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"`
// batch_id specifies the pair's batch id when the request is stored
BatchId uint64 `protobuf:"varint,9,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
CanceledAt time.Time `protobuf:"bytes,10,opt,name=canceled_at,json=canceledAt,proto3,stdtime" json:"canceled_at"`
Matched bool `protobuf:"varint,11,opt,name=matched,proto3" json:"matched,omitempty"`
Status SwapRequestStatus `protobuf:"varint,12,opt,name=status,proto3,enum=crescent.liquidity.v1beta1.SwapRequestStatus" json:"status,omitempty"`
}
func (m *SwapRequest) Reset() { *m = SwapRequest{} }
func (m *SwapRequest) String() string { return proto.CompactTextString(m) }
func (*SwapRequest) ProtoMessage() {}
func (*SwapRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{5}
}
func (m *SwapRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SwapRequest.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 *SwapRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SwapRequest.Merge(m, src)
}
func (m *SwapRequest) XXX_Size() int {
return m.Size()
}
func (m *SwapRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SwapRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SwapRequest proto.InternalMessageInfo
// CancelSwapRequest defines a request to cancel a swap request.
type CancelSwapRequest 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"`
MsgHeight int64 `protobuf:"varint,3,opt,name=msg_height,json=msgHeight,proto3" json:"msg_height,omitempty"`
Orderer string `protobuf:"bytes,4,opt,name=orderer,proto3" json:"orderer,omitempty"`
SwapRequestId uint64 `protobuf:"varint,5,opt,name=swap_request_id,json=swapRequestId,proto3" json:"swap_request_id,omitempty"`
BatchId uint64 `protobuf:"varint,6,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
Status RequestStatus `protobuf:"varint,7,opt,name=status,proto3,enum=crescent.liquidity.v1beta1.RequestStatus" json:"status,omitempty"`
}
func (m *CancelSwapRequest) Reset() { *m = CancelSwapRequest{} }
func (m *CancelSwapRequest) String() string { return proto.CompactTextString(m) }
func (*CancelSwapRequest) ProtoMessage() {}
func (*CancelSwapRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9be4f53a63dce2f, []int{6}
}
func (m *CancelSwapRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CancelSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CancelSwapRequest.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 *CancelSwapRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CancelSwapRequest.Merge(m, src)
}
func (m *CancelSwapRequest) XXX_Size() int {
return m.Size()
}
func (m *CancelSwapRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CancelSwapRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CancelSwapRequest proto.InternalMessageInfo
func init() {
proto.RegisterEnum("crescent.liquidity.v1beta1.SwapDirection", SwapDirection_name, SwapDirection_value)
proto.RegisterEnum("crescent.liquidity.v1beta1.RequestStatus", RequestStatus_name, RequestStatus_value)
proto.RegisterEnum("crescent.liquidity.v1beta1.SwapRequestStatus", SwapRequestStatus_name, SwapRequestStatus_value)
proto.RegisterType((*Params)(nil), "crescent.liquidity.v1beta1.Params")
proto.RegisterType((*Pair)(nil), "crescent.liquidity.v1beta1.Pair")
proto.RegisterType((*Pool)(nil), "crescent.liquidity.v1beta1.Pool")
proto.RegisterType((*DepositRequest)(nil), "crescent.liquidity.v1beta1.DepositRequest")
proto.RegisterType((*WithdrawRequest)(nil), "crescent.liquidity.v1beta1.WithdrawRequest")
proto.RegisterType((*SwapRequest)(nil), "crescent.liquidity.v1beta1.SwapRequest")
proto.RegisterType((*CancelSwapRequest)(nil), "crescent.liquidity.v1beta1.CancelSwapRequest")
}
func init() {
proto.RegisterFile("crescent/liquidity/v1beta1/liquidity.proto", fileDescriptor_c9be4f53a63dce2f)
}
var fileDescriptor_c9be4f53a63dce2f = []byte{
// 1556 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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e, 0xf1, 0x22, 0xad, 0xab, 0xed, 0x17, 0xdf, 0x15,
0xa6, 0x5e, 0xbc, 0x29, 0x24, 0x5e, 0xbe, 0x29, 0x24, 0xbe, 0x7d, 0x53, 0x48, 0x3c, 0x7f, 0x5b,
0x98, 0x7a, 0xf9, 0xb6, 0x30, 0xf5, 0xf5, 0xdb, 0xc2, 0xd4, 0xe3, 0x7f, 0x0e, 0xb6, 0xef, 0xf0,
0xf6, 0xdd, 0x75, 0x30, 0x3b, 0xa2, 0xde, 0x61, 0x1c, 0x28, 0x1f, 0x0f, 0xfc, 0x17, 0x44, 0xb4,
0xf4, 0x4e, 0x5a, 0x74, 0xc0, 0xbf, 0xff, 0x12, 0x00, 0x00, 0xff, 0xff, 0x65, 0xbb, 0x7d, 0xb1,
0x28, 0x11, 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
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] = 0x5a
{
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] = 0x52
{
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] = 0x4a
{
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] = 0x42
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] = 0x3a
}
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] = 0x32
}
}
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] = 0x2a
}
}
{
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] = 0x22
if m.TickPrecision != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.TickPrecision))
i--
dAtA[i] = 0x18
}
if m.BatchSize != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.BatchSize))
i--
dAtA[i] = 0x10
}
{
size := m.InitialPoolCoinSupply.Size()
i -= size
if _, err := m.InitialPoolCoinSupply.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintLiquidity(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
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] = 0x40
}
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] = 0x3a
}
if m.LastCancelSwapRequestId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.LastCancelSwapRequestId))
i--
dAtA[i] = 0x30
}
if m.LastSwapRequestId != 0 {
i = encodeVarintLiquidity(dAtA, i, uint64(m.LastSwapRequestId))
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
}