-
Notifications
You must be signed in to change notification settings - Fork 558
/
tx.pb.go
2902 lines (2744 loc) · 83.2 KB
/
tx.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: osmosis/valsetpref/v1beta1/tx.proto
package types
import (
context "context"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
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
// MsgCreateValidatorSetPreference is a list that holds validator-set.
type MsgSetValidatorSetPreference struct {
// delegator is the user who is trying to create a validator-set.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// list of {valAddr, weight} to delegate to
Preferences []ValidatorPreference `protobuf:"bytes,2,rep,name=preferences,proto3" json:"preferences" yaml:"preferences"`
}
func (m *MsgSetValidatorSetPreference) Reset() { *m = MsgSetValidatorSetPreference{} }
func (m *MsgSetValidatorSetPreference) String() string { return proto.CompactTextString(m) }
func (*MsgSetValidatorSetPreference) ProtoMessage() {}
func (*MsgSetValidatorSetPreference) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{0}
}
func (m *MsgSetValidatorSetPreference) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetValidatorSetPreference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetValidatorSetPreference.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 *MsgSetValidatorSetPreference) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetValidatorSetPreference.Merge(m, src)
}
func (m *MsgSetValidatorSetPreference) XXX_Size() int {
return m.Size()
}
func (m *MsgSetValidatorSetPreference) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetValidatorSetPreference.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetValidatorSetPreference proto.InternalMessageInfo
func (m *MsgSetValidatorSetPreference) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgSetValidatorSetPreference) GetPreferences() []ValidatorPreference {
if m != nil {
return m.Preferences
}
return nil
}
type MsgSetValidatorSetPreferenceResponse struct {
}
func (m *MsgSetValidatorSetPreferenceResponse) Reset() { *m = MsgSetValidatorSetPreferenceResponse{} }
func (m *MsgSetValidatorSetPreferenceResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSetValidatorSetPreferenceResponse) ProtoMessage() {}
func (*MsgSetValidatorSetPreferenceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{1}
}
func (m *MsgSetValidatorSetPreferenceResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetValidatorSetPreferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetValidatorSetPreferenceResponse.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 *MsgSetValidatorSetPreferenceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetValidatorSetPreferenceResponse.Merge(m, src)
}
func (m *MsgSetValidatorSetPreferenceResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgSetValidatorSetPreferenceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetValidatorSetPreferenceResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetValidatorSetPreferenceResponse proto.InternalMessageInfo
// MsgDelegateToValidatorSet allows users to delegate to an existing
// validator-set
type MsgDelegateToValidatorSet struct {
// delegator is the user who is trying to delegate.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// the amount of tokens the user is trying to delegate.
// For ex: delegate 10osmo with validator-set {ValA -> 0.5, ValB -> 0.3, ValC
// -> 0.2} our staking logic would attempt to delegate 5osmo to A , 3osmo to
// B, 2osmo to C.
Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}
func (m *MsgDelegateToValidatorSet) Reset() { *m = MsgDelegateToValidatorSet{} }
func (m *MsgDelegateToValidatorSet) String() string { return proto.CompactTextString(m) }
func (*MsgDelegateToValidatorSet) ProtoMessage() {}
func (*MsgDelegateToValidatorSet) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{2}
}
func (m *MsgDelegateToValidatorSet) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDelegateToValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDelegateToValidatorSet.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 *MsgDelegateToValidatorSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDelegateToValidatorSet.Merge(m, src)
}
func (m *MsgDelegateToValidatorSet) XXX_Size() int {
return m.Size()
}
func (m *MsgDelegateToValidatorSet) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDelegateToValidatorSet.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDelegateToValidatorSet proto.InternalMessageInfo
func (m *MsgDelegateToValidatorSet) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgDelegateToValidatorSet) GetCoin() types.Coin {
if m != nil {
return m.Coin
}
return types.Coin{}
}
type MsgDelegateToValidatorSetResponse struct {
}
func (m *MsgDelegateToValidatorSetResponse) Reset() { *m = MsgDelegateToValidatorSetResponse{} }
func (m *MsgDelegateToValidatorSetResponse) String() string { return proto.CompactTextString(m) }
func (*MsgDelegateToValidatorSetResponse) ProtoMessage() {}
func (*MsgDelegateToValidatorSetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{3}
}
func (m *MsgDelegateToValidatorSetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDelegateToValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDelegateToValidatorSetResponse.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 *MsgDelegateToValidatorSetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDelegateToValidatorSetResponse.Merge(m, src)
}
func (m *MsgDelegateToValidatorSetResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgDelegateToValidatorSetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDelegateToValidatorSetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDelegateToValidatorSetResponse proto.InternalMessageInfo
type MsgUndelegateFromValidatorSet struct {
// delegator is the user who is trying to undelegate.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// the amount the user wants to undelegate
// For ex: Undelegate 10osmo with validator-set {ValA -> 0.5, ValB -> 0.3,
// ValC
// -> 0.2} our undelegate logic would attempt to undelegate 5osmo from A ,
// 3osmo from B, 2osmo from C
Coin types.Coin `protobuf:"bytes,3,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}
func (m *MsgUndelegateFromValidatorSet) Reset() { *m = MsgUndelegateFromValidatorSet{} }
func (m *MsgUndelegateFromValidatorSet) String() string { return proto.CompactTextString(m) }
func (*MsgUndelegateFromValidatorSet) ProtoMessage() {}
func (*MsgUndelegateFromValidatorSet) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{4}
}
func (m *MsgUndelegateFromValidatorSet) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUndelegateFromValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUndelegateFromValidatorSet.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 *MsgUndelegateFromValidatorSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUndelegateFromValidatorSet.Merge(m, src)
}
func (m *MsgUndelegateFromValidatorSet) XXX_Size() int {
return m.Size()
}
func (m *MsgUndelegateFromValidatorSet) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUndelegateFromValidatorSet.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUndelegateFromValidatorSet proto.InternalMessageInfo
func (m *MsgUndelegateFromValidatorSet) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgUndelegateFromValidatorSet) GetCoin() types.Coin {
if m != nil {
return m.Coin
}
return types.Coin{}
}
type MsgUndelegateFromValidatorSetResponse struct {
}
func (m *MsgUndelegateFromValidatorSetResponse) Reset() { *m = MsgUndelegateFromValidatorSetResponse{} }
func (m *MsgUndelegateFromValidatorSetResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUndelegateFromValidatorSetResponse) ProtoMessage() {}
func (*MsgUndelegateFromValidatorSetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{5}
}
func (m *MsgUndelegateFromValidatorSetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUndelegateFromValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUndelegateFromValidatorSetResponse.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 *MsgUndelegateFromValidatorSetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUndelegateFromValidatorSetResponse.Merge(m, src)
}
func (m *MsgUndelegateFromValidatorSetResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUndelegateFromValidatorSetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUndelegateFromValidatorSetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUndelegateFromValidatorSetResponse proto.InternalMessageInfo
type MsgUndelegateFromRebalancedValidatorSet struct {
// delegator is the user who is trying to undelegate.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// the amount the user wants to undelegate
// For ex: Undelegate 50 osmo with validator-set {ValA -> 0.5, ValB -> 0.5}
// Our undelegate logic would first check the current delegation balance.
// If the user has 90 osmo delegated to ValA and 10 osmo delegated to ValB,
// the rebalanced validator set would be {ValA -> 0.9, ValB -> 0.1}
// So now the 45 osmo would be undelegated from ValA and 5 osmo would be
// undelegated from ValB.
Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}
func (m *MsgUndelegateFromRebalancedValidatorSet) Reset() {
*m = MsgUndelegateFromRebalancedValidatorSet{}
}
func (m *MsgUndelegateFromRebalancedValidatorSet) String() string { return proto.CompactTextString(m) }
func (*MsgUndelegateFromRebalancedValidatorSet) ProtoMessage() {}
func (*MsgUndelegateFromRebalancedValidatorSet) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{6}
}
func (m *MsgUndelegateFromRebalancedValidatorSet) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUndelegateFromRebalancedValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSet.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 *MsgUndelegateFromRebalancedValidatorSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSet.Merge(m, src)
}
func (m *MsgUndelegateFromRebalancedValidatorSet) XXX_Size() int {
return m.Size()
}
func (m *MsgUndelegateFromRebalancedValidatorSet) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSet.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSet proto.InternalMessageInfo
func (m *MsgUndelegateFromRebalancedValidatorSet) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgUndelegateFromRebalancedValidatorSet) GetCoin() types.Coin {
if m != nil {
return m.Coin
}
return types.Coin{}
}
type MsgUndelegateFromRebalancedValidatorSetResponse struct {
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) Reset() {
*m = MsgUndelegateFromRebalancedValidatorSetResponse{}
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgUndelegateFromRebalancedValidatorSetResponse) ProtoMessage() {}
func (*MsgUndelegateFromRebalancedValidatorSetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{7}
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSetResponse.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 *MsgUndelegateFromRebalancedValidatorSetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSetResponse.Merge(m, src)
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUndelegateFromRebalancedValidatorSetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUndelegateFromRebalancedValidatorSetResponse proto.InternalMessageInfo
type MsgRedelegateValidatorSet struct {
// delegator is the user who is trying to create a validator-set.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// list of {valAddr, weight} to delegate to
Preferences []ValidatorPreference `protobuf:"bytes,2,rep,name=preferences,proto3" json:"preferences" yaml:"preferences"`
}
func (m *MsgRedelegateValidatorSet) Reset() { *m = MsgRedelegateValidatorSet{} }
func (m *MsgRedelegateValidatorSet) String() string { return proto.CompactTextString(m) }
func (*MsgRedelegateValidatorSet) ProtoMessage() {}
func (*MsgRedelegateValidatorSet) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{8}
}
func (m *MsgRedelegateValidatorSet) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRedelegateValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRedelegateValidatorSet.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 *MsgRedelegateValidatorSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRedelegateValidatorSet.Merge(m, src)
}
func (m *MsgRedelegateValidatorSet) XXX_Size() int {
return m.Size()
}
func (m *MsgRedelegateValidatorSet) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRedelegateValidatorSet.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRedelegateValidatorSet proto.InternalMessageInfo
func (m *MsgRedelegateValidatorSet) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgRedelegateValidatorSet) GetPreferences() []ValidatorPreference {
if m != nil {
return m.Preferences
}
return nil
}
type MsgRedelegateValidatorSetResponse struct {
}
func (m *MsgRedelegateValidatorSetResponse) Reset() { *m = MsgRedelegateValidatorSetResponse{} }
func (m *MsgRedelegateValidatorSetResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRedelegateValidatorSetResponse) ProtoMessage() {}
func (*MsgRedelegateValidatorSetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{9}
}
func (m *MsgRedelegateValidatorSetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRedelegateValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRedelegateValidatorSetResponse.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 *MsgRedelegateValidatorSetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRedelegateValidatorSetResponse.Merge(m, src)
}
func (m *MsgRedelegateValidatorSetResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRedelegateValidatorSetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRedelegateValidatorSetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRedelegateValidatorSetResponse proto.InternalMessageInfo
// MsgWithdrawDelegationRewards allows user to claim staking rewards from the
// validator set.
type MsgWithdrawDelegationRewards struct {
// delegator is the user who is trying to claim staking rewards.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
}
func (m *MsgWithdrawDelegationRewards) Reset() { *m = MsgWithdrawDelegationRewards{} }
func (m *MsgWithdrawDelegationRewards) String() string { return proto.CompactTextString(m) }
func (*MsgWithdrawDelegationRewards) ProtoMessage() {}
func (*MsgWithdrawDelegationRewards) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{10}
}
func (m *MsgWithdrawDelegationRewards) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgWithdrawDelegationRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgWithdrawDelegationRewards.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 *MsgWithdrawDelegationRewards) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithdrawDelegationRewards.Merge(m, src)
}
func (m *MsgWithdrawDelegationRewards) XXX_Size() int {
return m.Size()
}
func (m *MsgWithdrawDelegationRewards) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithdrawDelegationRewards.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithdrawDelegationRewards proto.InternalMessageInfo
func (m *MsgWithdrawDelegationRewards) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
type MsgWithdrawDelegationRewardsResponse struct {
}
func (m *MsgWithdrawDelegationRewardsResponse) Reset() { *m = MsgWithdrawDelegationRewardsResponse{} }
func (m *MsgWithdrawDelegationRewardsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgWithdrawDelegationRewardsResponse) ProtoMessage() {}
func (*MsgWithdrawDelegationRewardsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{11}
}
func (m *MsgWithdrawDelegationRewardsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgWithdrawDelegationRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgWithdrawDelegationRewardsResponse.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 *MsgWithdrawDelegationRewardsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithdrawDelegationRewardsResponse.Merge(m, src)
}
func (m *MsgWithdrawDelegationRewardsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgWithdrawDelegationRewardsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithdrawDelegationRewardsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithdrawDelegationRewardsResponse proto.InternalMessageInfo
// MsgDelegateBondedTokens breaks bonded lockup (by ID) of osmo, of
// length <= 2 weeks and takes all that osmo and delegates according to
// delegator's current validator set preference.
type MsgDelegateBondedTokens struct {
// delegator is the user who is trying to force unbond osmo and delegate.
Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty" yaml:"delegator"`
// lockup id of osmo in the pool
LockID uint64 `protobuf:"varint,2,opt,name=lockID,proto3" json:"lockID,omitempty"`
}
func (m *MsgDelegateBondedTokens) Reset() { *m = MsgDelegateBondedTokens{} }
func (m *MsgDelegateBondedTokens) String() string { return proto.CompactTextString(m) }
func (*MsgDelegateBondedTokens) ProtoMessage() {}
func (*MsgDelegateBondedTokens) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{12}
}
func (m *MsgDelegateBondedTokens) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDelegateBondedTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDelegateBondedTokens.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 *MsgDelegateBondedTokens) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDelegateBondedTokens.Merge(m, src)
}
func (m *MsgDelegateBondedTokens) XXX_Size() int {
return m.Size()
}
func (m *MsgDelegateBondedTokens) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDelegateBondedTokens.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDelegateBondedTokens proto.InternalMessageInfo
func (m *MsgDelegateBondedTokens) GetDelegator() string {
if m != nil {
return m.Delegator
}
return ""
}
func (m *MsgDelegateBondedTokens) GetLockID() uint64 {
if m != nil {
return m.LockID
}
return 0
}
type MsgDelegateBondedTokensResponse struct {
}
func (m *MsgDelegateBondedTokensResponse) Reset() { *m = MsgDelegateBondedTokensResponse{} }
func (m *MsgDelegateBondedTokensResponse) String() string { return proto.CompactTextString(m) }
func (*MsgDelegateBondedTokensResponse) ProtoMessage() {}
func (*MsgDelegateBondedTokensResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3fff1326c2fd6b4c, []int{13}
}
func (m *MsgDelegateBondedTokensResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDelegateBondedTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDelegateBondedTokensResponse.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 *MsgDelegateBondedTokensResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDelegateBondedTokensResponse.Merge(m, src)
}
func (m *MsgDelegateBondedTokensResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgDelegateBondedTokensResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDelegateBondedTokensResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDelegateBondedTokensResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgSetValidatorSetPreference)(nil), "osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreference")
proto.RegisterType((*MsgSetValidatorSetPreferenceResponse)(nil), "osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreferenceResponse")
proto.RegisterType((*MsgDelegateToValidatorSet)(nil), "osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSet")
proto.RegisterType((*MsgDelegateToValidatorSetResponse)(nil), "osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSetResponse")
proto.RegisterType((*MsgUndelegateFromValidatorSet)(nil), "osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSet")
proto.RegisterType((*MsgUndelegateFromValidatorSetResponse)(nil), "osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSetResponse")
proto.RegisterType((*MsgUndelegateFromRebalancedValidatorSet)(nil), "osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSet")
proto.RegisterType((*MsgUndelegateFromRebalancedValidatorSetResponse)(nil), "osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSetResponse")
proto.RegisterType((*MsgRedelegateValidatorSet)(nil), "osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSet")
proto.RegisterType((*MsgRedelegateValidatorSetResponse)(nil), "osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSetResponse")
proto.RegisterType((*MsgWithdrawDelegationRewards)(nil), "osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewards")
proto.RegisterType((*MsgWithdrawDelegationRewardsResponse)(nil), "osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewardsResponse")
proto.RegisterType((*MsgDelegateBondedTokens)(nil), "osmosis.valsetpref.v1beta1.MsgDelegateBondedTokens")
proto.RegisterType((*MsgDelegateBondedTokensResponse)(nil), "osmosis.valsetpref.v1beta1.MsgDelegateBondedTokensResponse")
}
func init() {
proto.RegisterFile("osmosis/valsetpref/v1beta1/tx.proto", fileDescriptor_3fff1326c2fd6b4c)
}
var fileDescriptor_3fff1326c2fd6b4c = []byte{
// 754 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcb, 0x4f, 0xd4, 0x5a,
0x18, 0x9f, 0x03, 0x84, 0x5c, 0x0e, 0x9b, 0x7b, 0x1b, 0xc2, 0x85, 0xe6, 0xde, 0x19, 0x28, 0x4f,
0x49, 0xe8, 0xc9, 0x0c, 0x31, 0x2a, 0xc6, 0x44, 0x07, 0x62, 0x62, 0xcc, 0x24, 0x5a, 0x10, 0x13,
0x17, 0x26, 0x67, 0xa6, 0x1f, 0xa5, 0xa1, 0xed, 0x99, 0xf4, 0x1c, 0x5e, 0x0b, 0xf7, 0xc6, 0x85,
0x71, 0x67, 0xe2, 0x9f, 0xe0, 0xca, 0xa5, 0x2b, 0xd7, 0x2c, 0xd9, 0xe9, 0x0a, 0x0c, 0x24, 0xea,
0xc2, 0x15, 0x7f, 0x81, 0xe9, 0x63, 0x4a, 0xcd, 0xf4, 0x81, 0x15, 0x8d, 0x9b, 0x99, 0xe9, 0x7c,
0xaf, 0xdf, 0xf7, 0xfb, 0xfa, 0xfd, 0xce, 0xc1, 0x13, 0x8c, 0xdb, 0x8c, 0x9b, 0x9c, 0x6c, 0x53,
0x8b, 0x83, 0x68, 0xbb, 0xb0, 0x4e, 0xb6, 0xab, 0x4d, 0x10, 0xb4, 0x4a, 0xc4, 0xae, 0xda, 0x76,
0x99, 0x60, 0x92, 0x1c, 0x3a, 0xa9, 0x67, 0x4e, 0x6a, 0xe8, 0x24, 0x0f, 0x19, 0xcc, 0x60, 0xbe,
0x1b, 0xf1, 0x7e, 0x05, 0x11, 0xf2, 0x3f, 0xd4, 0x36, 0x1d, 0x46, 0xfc, 0xcf, 0xf0, 0xaf, 0x8a,
0xc1, 0x98, 0x61, 0x01, 0xf1, 0x9f, 0x9a, 0x5b, 0xeb, 0x44, 0x98, 0x36, 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 0xd7, 0xe3, 0x79, 0xff, 0x7e, 0xec, 0x9f, 0x9d, 0xcd,
0x7e, 0xff, 0x62, 0xbc, 0xf0, 0x2d, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x95, 0xf1, 0x25, 0xed, 0x0b,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// SetValidatorSetPreference creates a set of validator preference.
// This message will process both create + update request.
SetValidatorSetPreference(ctx context.Context, in *MsgSetValidatorSetPreference, opts ...grpc.CallOption) (*MsgSetValidatorSetPreferenceResponse, error)
// DelegateToValidatorSet gets the owner, coins and delegates to a
// validator-set.
DelegateToValidatorSet(ctx context.Context, in *MsgDelegateToValidatorSet, opts ...grpc.CallOption) (*MsgDelegateToValidatorSetResponse, error)
// UndelegateFromValidatorSet gets the owner and coins and undelegates from
// validator-set. The unbonding logic will follow the `Undelegate` logic from
// the sdk.
UndelegateFromValidatorSet(ctx context.Context, in *MsgUndelegateFromValidatorSet, opts ...grpc.CallOption) (*MsgUndelegateFromValidatorSetResponse, error)
// UndelegateFromRebalancedValidatorSet undelegates the proivded amount from
// the validator set, but takes into consideration the current delegations
// to the user's validator set to determine the weights assigned to each.
UndelegateFromRebalancedValidatorSet(ctx context.Context, in *MsgUndelegateFromRebalancedValidatorSet, opts ...grpc.CallOption) (*MsgUndelegateFromRebalancedValidatorSetResponse, error)
// RedelegateValidatorSet takes the existing validator set and redelegates to
// a new set.
RedelegateValidatorSet(ctx context.Context, in *MsgRedelegateValidatorSet, opts ...grpc.CallOption) (*MsgRedelegateValidatorSetResponse, error)
// WithdrawDelegationRewards allows users to claim rewards from the
// validator-set.
WithdrawDelegationRewards(ctx context.Context, in *MsgWithdrawDelegationRewards, opts ...grpc.CallOption) (*MsgWithdrawDelegationRewardsResponse, error)
// DelegateBondedTokens allows users to break the lockup bond and delegate
// osmo tokens to a predefined validator-set.
DelegateBondedTokens(ctx context.Context, in *MsgDelegateBondedTokens, opts ...grpc.CallOption) (*MsgDelegateBondedTokensResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) SetValidatorSetPreference(ctx context.Context, in *MsgSetValidatorSetPreference, opts ...grpc.CallOption) (*MsgSetValidatorSetPreferenceResponse, error) {
out := new(MsgSetValidatorSetPreferenceResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/SetValidatorSetPreference", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) DelegateToValidatorSet(ctx context.Context, in *MsgDelegateToValidatorSet, opts ...grpc.CallOption) (*MsgDelegateToValidatorSetResponse, error) {
out := new(MsgDelegateToValidatorSetResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/DelegateToValidatorSet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UndelegateFromValidatorSet(ctx context.Context, in *MsgUndelegateFromValidatorSet, opts ...grpc.CallOption) (*MsgUndelegateFromValidatorSetResponse, error) {
out := new(MsgUndelegateFromValidatorSetResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/UndelegateFromValidatorSet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UndelegateFromRebalancedValidatorSet(ctx context.Context, in *MsgUndelegateFromRebalancedValidatorSet, opts ...grpc.CallOption) (*MsgUndelegateFromRebalancedValidatorSetResponse, error) {
out := new(MsgUndelegateFromRebalancedValidatorSetResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/UndelegateFromRebalancedValidatorSet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RedelegateValidatorSet(ctx context.Context, in *MsgRedelegateValidatorSet, opts ...grpc.CallOption) (*MsgRedelegateValidatorSetResponse, error) {
out := new(MsgRedelegateValidatorSetResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/RedelegateValidatorSet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) WithdrawDelegationRewards(ctx context.Context, in *MsgWithdrawDelegationRewards, opts ...grpc.CallOption) (*MsgWithdrawDelegationRewardsResponse, error) {
out := new(MsgWithdrawDelegationRewardsResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/WithdrawDelegationRewards", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) DelegateBondedTokens(ctx context.Context, in *MsgDelegateBondedTokens, opts ...grpc.CallOption) (*MsgDelegateBondedTokensResponse, error) {
out := new(MsgDelegateBondedTokensResponse)
err := c.cc.Invoke(ctx, "/osmosis.valsetpref.v1beta1.Msg/DelegateBondedTokens", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// SetValidatorSetPreference creates a set of validator preference.
// This message will process both create + update request.
SetValidatorSetPreference(context.Context, *MsgSetValidatorSetPreference) (*MsgSetValidatorSetPreferenceResponse, error)
// DelegateToValidatorSet gets the owner, coins and delegates to a
// validator-set.
DelegateToValidatorSet(context.Context, *MsgDelegateToValidatorSet) (*MsgDelegateToValidatorSetResponse, error)
// UndelegateFromValidatorSet gets the owner and coins and undelegates from
// validator-set. The unbonding logic will follow the `Undelegate` logic from
// the sdk.
UndelegateFromValidatorSet(context.Context, *MsgUndelegateFromValidatorSet) (*MsgUndelegateFromValidatorSetResponse, error)
// UndelegateFromRebalancedValidatorSet undelegates the proivded amount from
// the validator set, but takes into consideration the current delegations
// to the user's validator set to determine the weights assigned to each.
UndelegateFromRebalancedValidatorSet(context.Context, *MsgUndelegateFromRebalancedValidatorSet) (*MsgUndelegateFromRebalancedValidatorSetResponse, error)
// RedelegateValidatorSet takes the existing validator set and redelegates to
// a new set.
RedelegateValidatorSet(context.Context, *MsgRedelegateValidatorSet) (*MsgRedelegateValidatorSetResponse, error)
// WithdrawDelegationRewards allows users to claim rewards from the
// validator-set.
WithdrawDelegationRewards(context.Context, *MsgWithdrawDelegationRewards) (*MsgWithdrawDelegationRewardsResponse, error)
// DelegateBondedTokens allows users to break the lockup bond and delegate
// osmo tokens to a predefined validator-set.
DelegateBondedTokens(context.Context, *MsgDelegateBondedTokens) (*MsgDelegateBondedTokensResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) SetValidatorSetPreference(ctx context.Context, req *MsgSetValidatorSetPreference) (*MsgSetValidatorSetPreferenceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetValidatorSetPreference not implemented")
}
func (*UnimplementedMsgServer) DelegateToValidatorSet(ctx context.Context, req *MsgDelegateToValidatorSet) (*MsgDelegateToValidatorSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DelegateToValidatorSet not implemented")
}
func (*UnimplementedMsgServer) UndelegateFromValidatorSet(ctx context.Context, req *MsgUndelegateFromValidatorSet) (*MsgUndelegateFromValidatorSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UndelegateFromValidatorSet not implemented")
}
func (*UnimplementedMsgServer) UndelegateFromRebalancedValidatorSet(ctx context.Context, req *MsgUndelegateFromRebalancedValidatorSet) (*MsgUndelegateFromRebalancedValidatorSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UndelegateFromRebalancedValidatorSet not implemented")
}
func (*UnimplementedMsgServer) RedelegateValidatorSet(ctx context.Context, req *MsgRedelegateValidatorSet) (*MsgRedelegateValidatorSetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RedelegateValidatorSet not implemented")
}
func (*UnimplementedMsgServer) WithdrawDelegationRewards(ctx context.Context, req *MsgWithdrawDelegationRewards) (*MsgWithdrawDelegationRewardsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method WithdrawDelegationRewards not implemented")
}
func (*UnimplementedMsgServer) DelegateBondedTokens(ctx context.Context, req *MsgDelegateBondedTokens) (*MsgDelegateBondedTokensResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DelegateBondedTokens not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_SetValidatorSetPreference_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgSetValidatorSetPreference)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).SetValidatorSetPreference(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/osmosis.valsetpref.v1beta1.Msg/SetValidatorSetPreference",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).SetValidatorSetPreference(ctx, req.(*MsgSetValidatorSetPreference))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_DelegateToValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgDelegateToValidatorSet)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).DelegateToValidatorSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/osmosis.valsetpref.v1beta1.Msg/DelegateToValidatorSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).DelegateToValidatorSet(ctx, req.(*MsgDelegateToValidatorSet))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UndelegateFromValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUndelegateFromValidatorSet)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UndelegateFromValidatorSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/osmosis.valsetpref.v1beta1.Msg/UndelegateFromValidatorSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UndelegateFromValidatorSet(ctx, req.(*MsgUndelegateFromValidatorSet))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UndelegateFromRebalancedValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUndelegateFromRebalancedValidatorSet)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UndelegateFromRebalancedValidatorSet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/osmosis.valsetpref.v1beta1.Msg/UndelegateFromRebalancedValidatorSet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UndelegateFromRebalancedValidatorSet(ctx, req.(*MsgUndelegateFromRebalancedValidatorSet))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RedelegateValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRedelegateValidatorSet)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RedelegateValidatorSet(ctx, in)
}
info := &grpc.UnaryServerInfo{