/
tx.pb.go
9037 lines (8649 loc) · 235 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: regen/ecocredit/v1/tx.proto
package core
import (
context "context"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
_ "github.com/gogo/protobuf/types"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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
// MsgCreateClass is the Msg/CreateClass request type.
type MsgCreateClass struct {
// admin is the address of the account creating the credit class that will
// become the admin of the credit class upon creation. The admin will have
// permissions within the credit class to update the credit class including
// the list of approved issuers. If Params.allowlist_enabled is set to true,
// this address must be included in Params.allowed_class_creators.
Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
// issuers are the addresses of the accounts that will have permissions within
// the credit class to create projects and issue credits.
Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"`
// metadata is any arbitrary string with a maximum length of 256 characters
// that includes or references metadata to attach to the credit class.
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// credit_type_abbrev is the abbreviation of the credit type under which the
// credit class will be created (e.g. "C", "BIO").
CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
// fee is the credit class creation fee. The specified fee must be one of the
// fees listed in Params.credit_class_fee. The specified amount can be greater
// than or equal to the listed amount but the credit class creator will only
// be charged the listed amount (i.e. the minimum amount).
Fee *types.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
}
func (m *MsgCreateClass) Reset() { *m = MsgCreateClass{} }
func (m *MsgCreateClass) String() string { return proto.CompactTextString(m) }
func (*MsgCreateClass) ProtoMessage() {}
func (*MsgCreateClass) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{0}
}
func (m *MsgCreateClass) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateClass.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 *MsgCreateClass) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateClass.Merge(m, src)
}
func (m *MsgCreateClass) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateClass) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateClass.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateClass proto.InternalMessageInfo
func (m *MsgCreateClass) GetAdmin() string {
if m != nil {
return m.Admin
}
return ""
}
func (m *MsgCreateClass) GetIssuers() []string {
if m != nil {
return m.Issuers
}
return nil
}
func (m *MsgCreateClass) GetMetadata() string {
if m != nil {
return m.Metadata
}
return ""
}
func (m *MsgCreateClass) GetCreditTypeAbbrev() string {
if m != nil {
return m.CreditTypeAbbrev
}
return ""
}
func (m *MsgCreateClass) GetFee() *types.Coin {
if m != nil {
return m.Fee
}
return nil
}
// MsgCreateClassResponse is the Msg/CreateClass response type.
type MsgCreateClassResponse struct {
// class_id is the unique identifier of the credit class.
ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}
func (m *MsgCreateClassResponse) Reset() { *m = MsgCreateClassResponse{} }
func (m *MsgCreateClassResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateClassResponse) ProtoMessage() {}
func (*MsgCreateClassResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{1}
}
func (m *MsgCreateClassResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateClassResponse.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 *MsgCreateClassResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateClassResponse.Merge(m, src)
}
func (m *MsgCreateClassResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateClassResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateClassResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateClassResponse proto.InternalMessageInfo
func (m *MsgCreateClassResponse) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
// MsgCreateProjectResponse is the Msg/CreateProject request type.
type MsgCreateProject struct {
// admin is the address of the account creating the project that will become
// the admin of the project upon creation. The creator of the project must be
// an approved issuer within the credit class under which the project is being
// created. The admin will have permissions to update the project including
// the ability to reassign the admin role to another account.
Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
// class_id is the unique identifier of the credit class under which the
// project will be created.
ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
// metadata is any arbitrary string with a maximum length of 256 characters
// that includes or references metadata to attach to the project.
Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// jurisdiction is the jurisdiction of the project. A jurisdiction has with
// the format: <country-code>[-<sub-national-code>[ <postal-code>]]
// The country-code must be 2 alphabetic characters, the sub-national-code
// can be 1-3 alphanumeric characters, and the postal-code can be up to 64
// alphanumeric characters. Only the country-code is required, while the
// sub-national-code and postal-code are optional and can be added for
// increased precision.
Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
// reference_id is any arbitrary string used to reference the project with a
// maximum length of 32 characters.
ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
}
func (m *MsgCreateProject) Reset() { *m = MsgCreateProject{} }
func (m *MsgCreateProject) String() string { return proto.CompactTextString(m) }
func (*MsgCreateProject) ProtoMessage() {}
func (*MsgCreateProject) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{2}
}
func (m *MsgCreateProject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateProject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateProject.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 *MsgCreateProject) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateProject.Merge(m, src)
}
func (m *MsgCreateProject) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateProject) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateProject.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateProject proto.InternalMessageInfo
func (m *MsgCreateProject) GetAdmin() string {
if m != nil {
return m.Admin
}
return ""
}
func (m *MsgCreateProject) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
func (m *MsgCreateProject) GetMetadata() string {
if m != nil {
return m.Metadata
}
return ""
}
func (m *MsgCreateProject) GetJurisdiction() string {
if m != nil {
return m.Jurisdiction
}
return ""
}
func (m *MsgCreateProject) GetReferenceId() string {
if m != nil {
return m.ReferenceId
}
return ""
}
// MsgCreateProjectResponse is the Msg/CreateProject response type.
type MsgCreateProjectResponse struct {
// project_id is the unique identifier of the project.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}
func (m *MsgCreateProjectResponse) Reset() { *m = MsgCreateProjectResponse{} }
func (m *MsgCreateProjectResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateProjectResponse) ProtoMessage() {}
func (*MsgCreateProjectResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{3}
}
func (m *MsgCreateProjectResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateProjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateProjectResponse.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 *MsgCreateProjectResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateProjectResponse.Merge(m, src)
}
func (m *MsgCreateProjectResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateProjectResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateProjectResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateProjectResponse proto.InternalMessageInfo
func (m *MsgCreateProjectResponse) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// MsgCreateBatch is the Msg/CreateBatch request type.
type MsgCreateBatch struct {
// issuer is the address of the account issuing the credits and must be an
// approved issuer within the credit class of the project.
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// project_id is the unique identifier of the project under which the credit
// batch will be created.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// issuance specifies the amount of tradable and retired credits that will be
// issued to each recipient and the jurisdiction in which the credits will be
// retired if credits are to be retired upon receipt.
Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"`
// metadata is any arbitrary string with a maximum length of 256 characters
// that includes or references metadata to attach to the credit batch.
Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
// start_date is the beginning of the period during which this credit batch
// was quantified and verified.
StartDate *time.Time `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
// end_date is the end of the period during which this credit batch was
// quantified and verified.
EndDate *time.Time `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
// open determines whether or not the credits can be dynamically minted to the
// credit batch following the creation of the credit batch. This field should
// only be set to true when bridging credits from another chain or registry as
// a result of a bridge operation and is not intended for native issuance.
Open bool `protobuf:"varint,7,opt,name=open,proto3" json:"open,omitempty"`
// origin_tx is the transaction from another chain or registry that triggered
// the creation of the credit batch. This field can be ignored when natively
// issuing credits and should only be set when bridging assets from another
// chain or registry as a result of a bridge operation.
OriginTx *OriginTx `protobuf:"bytes,8,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
}
func (m *MsgCreateBatch) Reset() { *m = MsgCreateBatch{} }
func (m *MsgCreateBatch) String() string { return proto.CompactTextString(m) }
func (*MsgCreateBatch) ProtoMessage() {}
func (*MsgCreateBatch) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{4}
}
func (m *MsgCreateBatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateBatch.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 *MsgCreateBatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateBatch.Merge(m, src)
}
func (m *MsgCreateBatch) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateBatch) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateBatch.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateBatch proto.InternalMessageInfo
func (m *MsgCreateBatch) GetIssuer() string {
if m != nil {
return m.Issuer
}
return ""
}
func (m *MsgCreateBatch) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *MsgCreateBatch) GetIssuance() []*BatchIssuance {
if m != nil {
return m.Issuance
}
return nil
}
func (m *MsgCreateBatch) GetMetadata() string {
if m != nil {
return m.Metadata
}
return ""
}
func (m *MsgCreateBatch) GetStartDate() *time.Time {
if m != nil {
return m.StartDate
}
return nil
}
func (m *MsgCreateBatch) GetEndDate() *time.Time {
if m != nil {
return m.EndDate
}
return nil
}
func (m *MsgCreateBatch) GetOpen() bool {
if m != nil {
return m.Open
}
return false
}
func (m *MsgCreateBatch) GetOriginTx() *OriginTx {
if m != nil {
return m.OriginTx
}
return nil
}
// MsgCreateBatchResponse is the Msg/CreateBatch response type.
type MsgCreateBatchResponse struct {
// batch_denom is the unique identifier of the credit batch.
BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}
func (m *MsgCreateBatchResponse) Reset() { *m = MsgCreateBatchResponse{} }
func (m *MsgCreateBatchResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateBatchResponse) ProtoMessage() {}
func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{5}
}
func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateBatchResponse.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 *MsgCreateBatchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateBatchResponse.Merge(m, src)
}
func (m *MsgCreateBatchResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateBatchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateBatchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateBatchResponse proto.InternalMessageInfo
func (m *MsgCreateBatchResponse) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
// MsgMintBatchCredits is the Msg/MintBatchCredits request type.
type MsgMintBatchCredits struct {
// issuer is the address of the account minting the credits and must be the
// same issuer who created the credit batch.
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// batch_denom is the unique identifier of the credit batch.
BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// issuance specifies the amount of tradable and retired credits that will be
// issued to each recipient and the jurisdiction in which the credits will be
// retired if credits are to be retired upon receipt.
Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"`
// origin_tx is the transaction from another chain or registry that triggered
// the minting of credits.
OriginTx *OriginTx `protobuf:"bytes,4,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
}
func (m *MsgMintBatchCredits) Reset() { *m = MsgMintBatchCredits{} }
func (m *MsgMintBatchCredits) String() string { return proto.CompactTextString(m) }
func (*MsgMintBatchCredits) ProtoMessage() {}
func (*MsgMintBatchCredits) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{6}
}
func (m *MsgMintBatchCredits) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgMintBatchCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgMintBatchCredits.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 *MsgMintBatchCredits) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgMintBatchCredits.Merge(m, src)
}
func (m *MsgMintBatchCredits) XXX_Size() int {
return m.Size()
}
func (m *MsgMintBatchCredits) XXX_DiscardUnknown() {
xxx_messageInfo_MsgMintBatchCredits.DiscardUnknown(m)
}
var xxx_messageInfo_MsgMintBatchCredits proto.InternalMessageInfo
func (m *MsgMintBatchCredits) GetIssuer() string {
if m != nil {
return m.Issuer
}
return ""
}
func (m *MsgMintBatchCredits) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *MsgMintBatchCredits) GetIssuance() []*BatchIssuance {
if m != nil {
return m.Issuance
}
return nil
}
func (m *MsgMintBatchCredits) GetOriginTx() *OriginTx {
if m != nil {
return m.OriginTx
}
return nil
}
// MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type.
type MsgMintBatchCreditsResponse struct {
}
func (m *MsgMintBatchCreditsResponse) Reset() { *m = MsgMintBatchCreditsResponse{} }
func (m *MsgMintBatchCreditsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgMintBatchCreditsResponse) ProtoMessage() {}
func (*MsgMintBatchCreditsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{7}
}
func (m *MsgMintBatchCreditsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgMintBatchCreditsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgMintBatchCreditsResponse.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 *MsgMintBatchCreditsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgMintBatchCreditsResponse.Merge(m, src)
}
func (m *MsgMintBatchCreditsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgMintBatchCreditsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgMintBatchCreditsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgMintBatchCreditsResponse proto.InternalMessageInfo
// MsgSealBatch is the Msg/MintBatchCredits request type.
type MsgSealBatch struct {
// issuer is the address of the account that created the credit batch and the
// only account with permissions to seal the credit batch.
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
// batch_denom is the unique identifier of the credit batch.
BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}
func (m *MsgSealBatch) Reset() { *m = MsgSealBatch{} }
func (m *MsgSealBatch) String() string { return proto.CompactTextString(m) }
func (*MsgSealBatch) ProtoMessage() {}
func (*MsgSealBatch) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{8}
}
func (m *MsgSealBatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSealBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSealBatch.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 *MsgSealBatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSealBatch.Merge(m, src)
}
func (m *MsgSealBatch) XXX_Size() int {
return m.Size()
}
func (m *MsgSealBatch) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSealBatch.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSealBatch proto.InternalMessageInfo
func (m *MsgSealBatch) GetIssuer() string {
if m != nil {
return m.Issuer
}
return ""
}
func (m *MsgSealBatch) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
// MsgSealBatchResponse is the Msg/SealBatch response type.
type MsgSealBatchResponse struct {
}
func (m *MsgSealBatchResponse) Reset() { *m = MsgSealBatchResponse{} }
func (m *MsgSealBatchResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSealBatchResponse) ProtoMessage() {}
func (*MsgSealBatchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{9}
}
func (m *MsgSealBatchResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSealBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSealBatchResponse.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 *MsgSealBatchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSealBatchResponse.Merge(m, src)
}
func (m *MsgSealBatchResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgSealBatchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSealBatchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSealBatchResponse proto.InternalMessageInfo
// MsgSend is the Msg/Send request type.
type MsgSend struct {
// sender is the address of the account sending credits.
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
// recipient is the address of the account receiving credits.
Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
// credits are the credits being sent to the recipient.
Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
}
func (m *MsgSend) Reset() { *m = MsgSend{} }
func (m *MsgSend) String() string { return proto.CompactTextString(m) }
func (*MsgSend) ProtoMessage() {}
func (*MsgSend) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{10}
}
func (m *MsgSend) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSend.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 *MsgSend) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSend.Merge(m, src)
}
func (m *MsgSend) XXX_Size() int {
return m.Size()
}
func (m *MsgSend) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSend.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSend proto.InternalMessageInfo
func (m *MsgSend) GetSender() string {
if m != nil {
return m.Sender
}
return ""
}
func (m *MsgSend) GetRecipient() string {
if m != nil {
return m.Recipient
}
return ""
}
func (m *MsgSend) GetCredits() []*MsgSend_SendCredits {
if m != nil {
return m.Credits
}
return nil
}
// SendCredits specifies the amount of tradable and retired credits of a
// credit batch that will be sent to the recipient and the jurisdiction in
// which the credits will be retired upon receipt.
type MsgSend_SendCredits struct {
// batch_denom is the unique identifier of the credit batch.
BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// tradable_amount is the amount of credits in this transfer that can be
// traded by the recipient. The number of decimal places must be less than
// or equal to the credit type precision.
TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
// retired_amount is the amount of credits in this transfer that are retired
// upon receipt. The number of decimal places must be less than or equal to
// the credit type precision.
RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
// retirement_jurisdiction is the jurisdiction of the recipient and is only
// required if retired_amount is positive. A jurisdiction has the format:
// <country-code>[-<sub-national-code>[ <postal-code>]]
// The country-code and sub-national-code must conform to ISO 3166-2 and the
// postal-code can be up to 64 alphanumeric characters. Only the
// country-code is required, while the sub-national-code and postal-code are
// optional and can be added for increased precision.
RetirementJurisdiction string `protobuf:"bytes,4,opt,name=retirement_jurisdiction,json=retirementJurisdiction,proto3" json:"retirement_jurisdiction,omitempty"`
}
func (m *MsgSend_SendCredits) Reset() { *m = MsgSend_SendCredits{} }
func (m *MsgSend_SendCredits) String() string { return proto.CompactTextString(m) }
func (*MsgSend_SendCredits) ProtoMessage() {}
func (*MsgSend_SendCredits) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{10, 0}
}
func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSend_SendCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSend_SendCredits.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 *MsgSend_SendCredits) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSend_SendCredits.Merge(m, src)
}
func (m *MsgSend_SendCredits) XXX_Size() int {
return m.Size()
}
func (m *MsgSend_SendCredits) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSend_SendCredits.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSend_SendCredits proto.InternalMessageInfo
func (m *MsgSend_SendCredits) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *MsgSend_SendCredits) GetTradableAmount() string {
if m != nil {
return m.TradableAmount
}
return ""
}
func (m *MsgSend_SendCredits) GetRetiredAmount() string {
if m != nil {
return m.RetiredAmount
}
return ""
}
func (m *MsgSend_SendCredits) GetRetirementJurisdiction() string {
if m != nil {
return m.RetirementJurisdiction
}
return ""
}
// MsgSendResponse is the Msg/Send response type.
type MsgSendResponse struct {
}
func (m *MsgSendResponse) Reset() { *m = MsgSendResponse{} }
func (m *MsgSendResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSendResponse) ProtoMessage() {}
func (*MsgSendResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{11}
}
func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSendResponse.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 *MsgSendResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSendResponse.Merge(m, src)
}
func (m *MsgSendResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgSendResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSendResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSendResponse proto.InternalMessageInfo
// MsgRetire is the Msg/Retire request type.
type MsgRetire struct {
// owner is the address of the account that owns the credits being retired.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// credits specifies a credit batch and the number of credits being retired.
Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
// jurisdiction is the jurisdiction of the credit owner. A jurisdiction has
// the format: <country-code>[-<sub-national-code>[ <postal-code>]]
// The country-code must be 2 alphabetic characters, the sub-national-code
// can be 1-3 alphanumeric characters, and the postal-code can be up to 64
// alphanumeric characters. Only the country-code is required, while the
// sub-national-code and postal-code are optional and can be added for
// increased precision.
Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
}
func (m *MsgRetire) Reset() { *m = MsgRetire{} }
func (m *MsgRetire) String() string { return proto.CompactTextString(m) }
func (*MsgRetire) ProtoMessage() {}
func (*MsgRetire) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{12}
}
func (m *MsgRetire) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRetire.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 *MsgRetire) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRetire.Merge(m, src)
}
func (m *MsgRetire) XXX_Size() int {
return m.Size()
}
func (m *MsgRetire) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRetire.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRetire proto.InternalMessageInfo
func (m *MsgRetire) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *MsgRetire) GetCredits() []*Credits {
if m != nil {
return m.Credits
}
return nil
}
func (m *MsgRetire) GetJurisdiction() string {
if m != nil {
return m.Jurisdiction
}
return ""
}
// MsgRetire is the Msg/Retire response type.
type MsgRetireResponse struct {
}
func (m *MsgRetireResponse) Reset() { *m = MsgRetireResponse{} }
func (m *MsgRetireResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRetireResponse) ProtoMessage() {}
func (*MsgRetireResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{13}
}
func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRetireResponse.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 *MsgRetireResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRetireResponse.Merge(m, src)
}
func (m *MsgRetireResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRetireResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRetireResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRetireResponse proto.InternalMessageInfo
// MsgCancel is the Msg/Cancel request type.
type MsgCancel struct {
// owner is the address of the account that owns the credits being cancelled.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// credits specifies a credit batch and the number of credits being cancelled.
Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
// reason is any arbitrary string that specifies the reason for cancelling
// credits.
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
}
func (m *MsgCancel) Reset() { *m = MsgCancel{} }
func (m *MsgCancel) String() string { return proto.CompactTextString(m) }
func (*MsgCancel) ProtoMessage() {}
func (*MsgCancel) Descriptor() ([]byte, []int) {
return fileDescriptor_2b8ae49f50a3ddbd, []int{14}
}
func (m *MsgCancel) XXX_Unmarshal(b []byte) error {