-
Notifications
You must be signed in to change notification settings - Fork 13
/
types.pb.go
5998 lines (5782 loc) · 147 KB
/
types.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: fx/crosschain/v1/types.proto
package types
import (
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
types1 "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/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
// ClaimType is the cosmos type of an event from the counterpart chain that can
// be handled
type ClaimType int32
const (
CLAIM_TYPE_UNSPECIFIED ClaimType = 0
CLAIM_TYPE_SEND_TO_FX ClaimType = 1
CLAIM_TYPE_SEND_TO_EXTERNAL ClaimType = 2
CLAIM_TYPE_BRIDGE_TOKEN ClaimType = 3
CLAIM_TYPE_ORACLE_SET_UPDATED ClaimType = 4
CLAIM_TYPE_BRIDGE_CALL ClaimType = 5
CLAIM_TYPE_BRIDGE_CALL_RESULT ClaimType = 6
)
var ClaimType_name = map[int32]string{
0: "CLAIM_TYPE_UNSPECIFIED",
1: "CLAIM_TYPE_SEND_TO_FX",
2: "CLAIM_TYPE_SEND_TO_EXTERNAL",
3: "CLAIM_TYPE_BRIDGE_TOKEN",
4: "CLAIM_TYPE_ORACLE_SET_UPDATED",
5: "CLAIM_TYPE_BRIDGE_CALL",
6: "CLAIM_TYPE_BRIDGE_CALL_RESULT",
}
var ClaimType_value = map[string]int32{
"CLAIM_TYPE_UNSPECIFIED": 0,
"CLAIM_TYPE_SEND_TO_FX": 1,
"CLAIM_TYPE_SEND_TO_EXTERNAL": 2,
"CLAIM_TYPE_BRIDGE_TOKEN": 3,
"CLAIM_TYPE_ORACLE_SET_UPDATED": 4,
"CLAIM_TYPE_BRIDGE_CALL": 5,
"CLAIM_TYPE_BRIDGE_CALL_RESULT": 6,
}
func (x ClaimType) String() string {
return proto.EnumName(ClaimType_name, int32(x))
}
func (ClaimType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{0}
}
type ProposalOracle struct {
Oracles []string `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles,omitempty"`
}
func (m *ProposalOracle) Reset() { *m = ProposalOracle{} }
func (m *ProposalOracle) String() string { return proto.CompactTextString(m) }
func (*ProposalOracle) ProtoMessage() {}
func (*ProposalOracle) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{0}
}
func (m *ProposalOracle) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ProposalOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ProposalOracle.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 *ProposalOracle) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposalOracle.Merge(m, src)
}
func (m *ProposalOracle) XXX_Size() int {
return m.Size()
}
func (m *ProposalOracle) XXX_DiscardUnknown() {
xxx_messageInfo_ProposalOracle.DiscardUnknown(m)
}
var xxx_messageInfo_ProposalOracle proto.InternalMessageInfo
func (m *ProposalOracle) GetOracles() []string {
if m != nil {
return m.Oracles
}
return nil
}
type Oracle struct {
OracleAddress string `protobuf:"bytes,1,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"`
BridgerAddress string `protobuf:"bytes,2,opt,name=bridger_address,json=bridgerAddress,proto3" json:"bridger_address,omitempty"`
ExternalAddress string `protobuf:"bytes,3,opt,name=external_address,json=externalAddress,proto3" json:"external_address,omitempty"`
DelegateAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=delegate_amount,json=delegateAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"delegate_amount"`
// start oracle height
StartHeight int64 `protobuf:"varint,5,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
Online bool `protobuf:"varint,6,opt,name=online,proto3" json:"online,omitempty"`
DelegateValidator string `protobuf:"bytes,7,opt,name=delegate_validator,json=delegateValidator,proto3" json:"delegate_validator,omitempty"`
SlashTimes int64 `protobuf:"varint,8,opt,name=slash_times,json=slashTimes,proto3" json:"slash_times,omitempty"`
}
func (m *Oracle) Reset() { *m = Oracle{} }
func (m *Oracle) String() string { return proto.CompactTextString(m) }
func (*Oracle) ProtoMessage() {}
func (*Oracle) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{1}
}
func (m *Oracle) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Oracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Oracle.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 *Oracle) XXX_Merge(src proto.Message) {
xxx_messageInfo_Oracle.Merge(m, src)
}
func (m *Oracle) XXX_Size() int {
return m.Size()
}
func (m *Oracle) XXX_DiscardUnknown() {
xxx_messageInfo_Oracle.DiscardUnknown(m)
}
var xxx_messageInfo_Oracle proto.InternalMessageInfo
func (m *Oracle) GetOracleAddress() string {
if m != nil {
return m.OracleAddress
}
return ""
}
func (m *Oracle) GetBridgerAddress() string {
if m != nil {
return m.BridgerAddress
}
return ""
}
func (m *Oracle) GetExternalAddress() string {
if m != nil {
return m.ExternalAddress
}
return ""
}
func (m *Oracle) GetStartHeight() int64 {
if m != nil {
return m.StartHeight
}
return 0
}
func (m *Oracle) GetOnline() bool {
if m != nil {
return m.Online
}
return false
}
func (m *Oracle) GetDelegateValidator() string {
if m != nil {
return m.DelegateValidator
}
return ""
}
func (m *Oracle) GetSlashTimes() int64 {
if m != nil {
return m.SlashTimes
}
return 0
}
// BridgeValidator represents a validator's external address and its power
type BridgeValidator struct {
Power uint64 `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"`
ExternalAddress string `protobuf:"bytes,2,opt,name=external_address,json=externalAddress,proto3" json:"external_address,omitempty"`
}
func (m *BridgeValidator) Reset() { *m = BridgeValidator{} }
func (m *BridgeValidator) String() string { return proto.CompactTextString(m) }
func (*BridgeValidator) ProtoMessage() {}
func (*BridgeValidator) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{2}
}
func (m *BridgeValidator) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BridgeValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BridgeValidator.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 *BridgeValidator) XXX_Merge(src proto.Message) {
xxx_messageInfo_BridgeValidator.Merge(m, src)
}
func (m *BridgeValidator) XXX_Size() int {
return m.Size()
}
func (m *BridgeValidator) XXX_DiscardUnknown() {
xxx_messageInfo_BridgeValidator.DiscardUnknown(m)
}
var xxx_messageInfo_BridgeValidator proto.InternalMessageInfo
func (m *BridgeValidator) GetPower() uint64 {
if m != nil {
return m.Power
}
return 0
}
func (m *BridgeValidator) GetExternalAddress() string {
if m != nil {
return m.ExternalAddress
}
return ""
}
// OracleSet is the external Chain Bridge Multsig Set, each gravity validator
// also maintains an external key to sign messages, these are used to check
// signatures on external because of the significant gas savings
type OracleSet struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
Members []BridgeValidator `protobuf:"bytes,2,rep,name=members,proto3" json:"members"`
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}
func (m *OracleSet) Reset() { *m = OracleSet{} }
func (m *OracleSet) String() string { return proto.CompactTextString(m) }
func (*OracleSet) ProtoMessage() {}
func (*OracleSet) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{3}
}
func (m *OracleSet) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OracleSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OracleSet.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 *OracleSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_OracleSet.Merge(m, src)
}
func (m *OracleSet) XXX_Size() int {
return m.Size()
}
func (m *OracleSet) XXX_DiscardUnknown() {
xxx_messageInfo_OracleSet.DiscardUnknown(m)
}
var xxx_messageInfo_OracleSet proto.InternalMessageInfo
func (m *OracleSet) GetNonce() uint64 {
if m != nil {
return m.Nonce
}
return 0
}
func (m *OracleSet) GetMembers() []BridgeValidator {
if m != nil {
return m.Members
}
return nil
}
func (m *OracleSet) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
// LastObservedBlockHeight stores the last observed
// external block height along with the our block height that
// it was observed at. These two numbers can be used to project
// outward and always produce batches with timeouts in the future
// even if no Ethereum block height has been relayed for a long time
type LastObservedBlockHeight struct {
ExternalBlockHeight uint64 `protobuf:"varint,1,opt,name=external_block_height,json=externalBlockHeight,proto3" json:"external_block_height,omitempty"`
BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}
func (m *LastObservedBlockHeight) Reset() { *m = LastObservedBlockHeight{} }
func (m *LastObservedBlockHeight) String() string { return proto.CompactTextString(m) }
func (*LastObservedBlockHeight) ProtoMessage() {}
func (*LastObservedBlockHeight) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{4}
}
func (m *LastObservedBlockHeight) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *LastObservedBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_LastObservedBlockHeight.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 *LastObservedBlockHeight) XXX_Merge(src proto.Message) {
xxx_messageInfo_LastObservedBlockHeight.Merge(m, src)
}
func (m *LastObservedBlockHeight) XXX_Size() int {
return m.Size()
}
func (m *LastObservedBlockHeight) XXX_DiscardUnknown() {
xxx_messageInfo_LastObservedBlockHeight.DiscardUnknown(m)
}
var xxx_messageInfo_LastObservedBlockHeight proto.InternalMessageInfo
func (m *LastObservedBlockHeight) GetExternalBlockHeight() uint64 {
if m != nil {
return m.ExternalBlockHeight
}
return 0
}
func (m *LastObservedBlockHeight) GetBlockHeight() uint64 {
if m != nil {
return m.BlockHeight
}
return 0
}
// BridgeToken
type BridgeToken struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
//Deprecated: after upgrade v3
ChannelIbc string `protobuf:"bytes,3,opt,name=channel_ibc,json=channelIbc,proto3" json:"channel_ibc,omitempty"`
}
func (m *BridgeToken) Reset() { *m = BridgeToken{} }
func (m *BridgeToken) String() string { return proto.CompactTextString(m) }
func (*BridgeToken) ProtoMessage() {}
func (*BridgeToken) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{5}
}
func (m *BridgeToken) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BridgeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BridgeToken.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 *BridgeToken) XXX_Merge(src proto.Message) {
xxx_messageInfo_BridgeToken.Merge(m, src)
}
func (m *BridgeToken) XXX_Size() int {
return m.Size()
}
func (m *BridgeToken) XXX_DiscardUnknown() {
xxx_messageInfo_BridgeToken.DiscardUnknown(m)
}
var xxx_messageInfo_BridgeToken proto.InternalMessageInfo
func (m *BridgeToken) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *BridgeToken) GetDenom() string {
if m != nil {
return m.Denom
}
return ""
}
func (m *BridgeToken) GetChannelIbc() string {
if m != nil {
return m.ChannelIbc
}
return ""
}
// Attestation is an aggregate of `claims` that eventually becomes `observed` by
// all bridger set
// EVENT_NONCE:
// EventNonce a nonce provided by the gravity contract that is unique per event
// fired These event nonces must be relayed in order. This is a correctness
// issue, if relaying out of order transaction replay attacks become possible
// OBSERVED:
// Observed indicates that >67% of validators have attested to the event,
// and that the event should be executed by the gravity state machine
//
// The actual content of the claims is passed in with the transaction making the
// claim and then passed through the call stack alongside the attestation while
// it is processed the key in which the attestation is stored is keyed on the
// exact details of the claim but there is no reason to store those exact
// details becuause the next message sender will kindly provide you with them.
type Attestation struct {
Observed bool `protobuf:"varint,1,opt,name=observed,proto3" json:"observed,omitempty"`
Votes []string `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"`
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Claim *types.Any `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty"`
}
func (m *Attestation) Reset() { *m = Attestation{} }
func (m *Attestation) String() string { return proto.CompactTextString(m) }
func (*Attestation) ProtoMessage() {}
func (*Attestation) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{6}
}
func (m *Attestation) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Attestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Attestation.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 *Attestation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Attestation.Merge(m, src)
}
func (m *Attestation) XXX_Size() int {
return m.Size()
}
func (m *Attestation) XXX_DiscardUnknown() {
xxx_messageInfo_Attestation.DiscardUnknown(m)
}
var xxx_messageInfo_Attestation proto.InternalMessageInfo
func (m *Attestation) GetObserved() bool {
if m != nil {
return m.Observed
}
return false
}
func (m *Attestation) GetVotes() []string {
if m != nil {
return m.Votes
}
return nil
}
func (m *Attestation) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
func (m *Attestation) GetClaim() *types.Any {
if m != nil {
return m.Claim
}
return nil
}
// OutgoingTxBatch represents a batch of transactions going from gravity to ETH
type OutgoingTxBatch struct {
BatchNonce uint64 `protobuf:"varint,1,opt,name=batch_nonce,json=batchNonce,proto3" json:"batch_nonce,omitempty"`
BatchTimeout uint64 `protobuf:"varint,2,opt,name=batch_timeout,json=batchTimeout,proto3" json:"batch_timeout,omitempty"`
Transactions []*OutgoingTransferTx `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"`
TokenContract string `protobuf:"bytes,4,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
Block uint64 `protobuf:"varint,5,opt,name=block,proto3" json:"block,omitempty"`
FeeReceive string `protobuf:"bytes,6,opt,name=feeReceive,proto3" json:"feeReceive,omitempty"`
}
func (m *OutgoingTxBatch) Reset() { *m = OutgoingTxBatch{} }
func (m *OutgoingTxBatch) String() string { return proto.CompactTextString(m) }
func (*OutgoingTxBatch) ProtoMessage() {}
func (*OutgoingTxBatch) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{7}
}
func (m *OutgoingTxBatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OutgoingTxBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OutgoingTxBatch.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 *OutgoingTxBatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutgoingTxBatch.Merge(m, src)
}
func (m *OutgoingTxBatch) XXX_Size() int {
return m.Size()
}
func (m *OutgoingTxBatch) XXX_DiscardUnknown() {
xxx_messageInfo_OutgoingTxBatch.DiscardUnknown(m)
}
var xxx_messageInfo_OutgoingTxBatch proto.InternalMessageInfo
func (m *OutgoingTxBatch) GetBatchNonce() uint64 {
if m != nil {
return m.BatchNonce
}
return 0
}
func (m *OutgoingTxBatch) GetBatchTimeout() uint64 {
if m != nil {
return m.BatchTimeout
}
return 0
}
func (m *OutgoingTxBatch) GetTransactions() []*OutgoingTransferTx {
if m != nil {
return m.Transactions
}
return nil
}
func (m *OutgoingTxBatch) GetTokenContract() string {
if m != nil {
return m.TokenContract
}
return ""
}
func (m *OutgoingTxBatch) GetBlock() uint64 {
if m != nil {
return m.Block
}
return 0
}
func (m *OutgoingTxBatch) GetFeeReceive() string {
if m != nil {
return m.FeeReceive
}
return ""
}
// OutgoingTransferTx represents an individual send from gravity to ETH
type OutgoingTransferTx struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
DestAddress string `protobuf:"bytes,3,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
Token ERC20Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token"`
Fee ERC20Token `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee"`
}
func (m *OutgoingTransferTx) Reset() { *m = OutgoingTransferTx{} }
func (m *OutgoingTransferTx) String() string { return proto.CompactTextString(m) }
func (*OutgoingTransferTx) ProtoMessage() {}
func (*OutgoingTransferTx) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{8}
}
func (m *OutgoingTransferTx) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OutgoingTransferTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OutgoingTransferTx.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 *OutgoingTransferTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutgoingTransferTx.Merge(m, src)
}
func (m *OutgoingTransferTx) XXX_Size() int {
return m.Size()
}
func (m *OutgoingTransferTx) XXX_DiscardUnknown() {
xxx_messageInfo_OutgoingTransferTx.DiscardUnknown(m)
}
var xxx_messageInfo_OutgoingTransferTx proto.InternalMessageInfo
func (m *OutgoingTransferTx) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *OutgoingTransferTx) GetSender() string {
if m != nil {
return m.Sender
}
return ""
}
func (m *OutgoingTransferTx) GetDestAddress() string {
if m != nil {
return m.DestAddress
}
return ""
}
func (m *OutgoingTransferTx) GetToken() ERC20Token {
if m != nil {
return m.Token
}
return ERC20Token{}
}
func (m *OutgoingTransferTx) GetFee() ERC20Token {
if m != nil {
return m.Fee
}
return ERC20Token{}
}
// OutgoingTransferTx represents an individual send from gravity to ETH
type PendingOutgoingTransferTx struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
DestAddress string `protobuf:"bytes,3,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
TokenContract string `protobuf:"bytes,4,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
Token types1.Coin `protobuf:"bytes,5,opt,name=token,proto3" json:"token"`
Fee types1.Coin `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee"`
Rewards []types1.Coin `protobuf:"bytes,7,rep,name=rewards,proto3" json:"rewards"`
}
func (m *PendingOutgoingTransferTx) Reset() { *m = PendingOutgoingTransferTx{} }
func (m *PendingOutgoingTransferTx) String() string { return proto.CompactTextString(m) }
func (*PendingOutgoingTransferTx) ProtoMessage() {}
func (*PendingOutgoingTransferTx) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{9}
}
func (m *PendingOutgoingTransferTx) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PendingOutgoingTransferTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PendingOutgoingTransferTx.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 *PendingOutgoingTransferTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_PendingOutgoingTransferTx.Merge(m, src)
}
func (m *PendingOutgoingTransferTx) XXX_Size() int {
return m.Size()
}
func (m *PendingOutgoingTransferTx) XXX_DiscardUnknown() {
xxx_messageInfo_PendingOutgoingTransferTx.DiscardUnknown(m)
}
var xxx_messageInfo_PendingOutgoingTransferTx proto.InternalMessageInfo
func (m *PendingOutgoingTransferTx) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *PendingOutgoingTransferTx) GetSender() string {
if m != nil {
return m.Sender
}
return ""
}
func (m *PendingOutgoingTransferTx) GetDestAddress() string {
if m != nil {
return m.DestAddress
}
return ""
}
func (m *PendingOutgoingTransferTx) GetTokenContract() string {
if m != nil {
return m.TokenContract
}
return ""
}
func (m *PendingOutgoingTransferTx) GetToken() types1.Coin {
if m != nil {
return m.Token
}
return types1.Coin{}
}
func (m *PendingOutgoingTransferTx) GetFee() types1.Coin {
if m != nil {
return m.Fee
}
return types1.Coin{}
}
func (m *PendingOutgoingTransferTx) GetRewards() []types1.Coin {
if m != nil {
return m.Rewards
}
return nil
}
// ERC20Token unique identifier for an Ethereum ERC20 token.
type ERC20Token struct {
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}
func (m *ERC20Token) Reset() { *m = ERC20Token{} }
func (m *ERC20Token) String() string { return proto.CompactTextString(m) }
func (*ERC20Token) ProtoMessage() {}
func (*ERC20Token) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{10}
}
func (m *ERC20Token) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ERC20Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ERC20Token.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 *ERC20Token) XXX_Merge(src proto.Message) {
xxx_messageInfo_ERC20Token.Merge(m, src)
}
func (m *ERC20Token) XXX_Size() int {
return m.Size()
}
func (m *ERC20Token) XXX_DiscardUnknown() {
xxx_messageInfo_ERC20Token.DiscardUnknown(m)
}
var xxx_messageInfo_ERC20Token proto.InternalMessageInfo
func (m *ERC20Token) GetContract() string {
if m != nil {
return m.Contract
}
return ""
}
type BatchFees struct {
TokenContract string `protobuf:"bytes,1,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
TotalFees github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=total_fees,json=totalFees,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_fees"`
TotalTxs uint64 `protobuf:"varint,3,opt,name=total_txs,json=totalTxs,proto3" json:"total_txs,omitempty"`
TotalAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_amount,json=totalAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_amount"`
}
func (m *BatchFees) Reset() { *m = BatchFees{} }
func (m *BatchFees) String() string { return proto.CompactTextString(m) }
func (*BatchFees) ProtoMessage() {}
func (*BatchFees) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{11}
}
func (m *BatchFees) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BatchFees) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BatchFees.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 *BatchFees) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchFees.Merge(m, src)
}
func (m *BatchFees) XXX_Size() int {
return m.Size()
}
func (m *BatchFees) XXX_DiscardUnknown() {
xxx_messageInfo_BatchFees.DiscardUnknown(m)
}
var xxx_messageInfo_BatchFees proto.InternalMessageInfo
func (m *BatchFees) GetTokenContract() string {
if m != nil {
return m.TokenContract
}
return ""
}
func (m *BatchFees) GetTotalTxs() uint64 {
if m != nil {
return m.TotalTxs
}
return 0
}
type MinBatchFee struct {
TokenContract string `protobuf:"bytes,1,opt,name=token_contract,json=tokenContract,proto3" json:"token_contract,omitempty"`
BaseFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=baseFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"baseFee"`
}
func (m *MinBatchFee) Reset() { *m = MinBatchFee{} }
func (m *MinBatchFee) String() string { return proto.CompactTextString(m) }
func (*MinBatchFee) ProtoMessage() {}
func (*MinBatchFee) Descriptor() ([]byte, []int) {
return fileDescriptor_77fbd2eeeb010d9d, []int{12}
}
func (m *MinBatchFee) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MinBatchFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MinBatchFee.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 *MinBatchFee) XXX_Merge(src proto.Message) {
xxx_messageInfo_MinBatchFee.Merge(m, src)
}
func (m *MinBatchFee) XXX_Size() int {
return m.Size()
}
func (m *MinBatchFee) XXX_DiscardUnknown() {
xxx_messageInfo_MinBatchFee.DiscardUnknown(m)
}
var xxx_messageInfo_MinBatchFee proto.InternalMessageInfo
func (m *MinBatchFee) GetTokenContract() string {
if m != nil {
return m.TokenContract
}
return ""
}
// oracle_set_update_power_change_percent
//
// If power change between validators of CurrentOracleSet and latest oracle set
// request is > 10%
type Params struct {
GravityId string `protobuf:"bytes,1,opt,name=gravity_id,json=gravityId,proto3" json:"gravity_id,omitempty"`
AverageBlockTime uint64 `protobuf:"varint,2,opt,name=average_block_time,json=averageBlockTime,proto3" json:"average_block_time,omitempty"`
ExternalBatchTimeout uint64 `protobuf:"varint,3,opt,name=external_batch_timeout,json=externalBatchTimeout,proto3" json:"external_batch_timeout,omitempty"`
AverageExternalBlockTime uint64 `protobuf:"varint,4,opt,name=average_external_block_time,json=averageExternalBlockTime,proto3" json:"average_external_block_time,omitempty"`
SignedWindow uint64 `protobuf:"varint,5,opt,name=signed_window,json=signedWindow,proto3" json:"signed_window,omitempty"`
SlashFraction github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=slash_fraction,json=slashFraction,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction"`
OracleSetUpdatePowerChangePercent github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=oracle_set_update_power_change_percent,json=oracleSetUpdatePowerChangePercent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"oracle_set_update_power_change_percent"`
IbcTransferTimeoutHeight uint64 `protobuf:"varint,8,opt,name=ibc_transfer_timeout_height,json=ibcTransferTimeoutHeight,proto3" json:"ibc_transfer_timeout_height,omitempty"`
// Deprecated: after block 5713000
Oracles []string `protobuf:"bytes,9,rep,name=oracles,proto3" json:"oracles,omitempty"`
DelegateThreshold types1.Coin `protobuf:"bytes,10,opt,name=delegate_threshold,json=delegateThreshold,proto3" json:"delegate_threshold"`
DelegateMultiple int64 `protobuf:"varint,11,opt,name=delegate_multiple,json=delegateMultiple,proto3" json:"delegate_multiple,omitempty"`
BridgeCallTimeout uint64 `protobuf:"varint,12,opt,name=bridge_call_timeout,json=bridgeCallTimeout,proto3" json:"bridge_call_timeout,omitempty"`
BridgeCallMaxGasLimit uint64 `protobuf:"varint,13,opt,name=bridge_call_max_gas_limit,json=bridgeCallMaxGasLimit,proto3" json:"bridge_call_max_gas_limit,omitempty"`
}
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_77fbd2eeeb010d9d, []int{13}
}
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
func (m *Params) GetGravityId() string {
if m != nil {
return m.GravityId
}
return ""
}
func (m *Params) GetAverageBlockTime() uint64 {
if m != nil {
return m.AverageBlockTime
}
return 0
}
func (m *Params) GetExternalBatchTimeout() uint64 {
if m != nil {
return m.ExternalBatchTimeout
}
return 0
}