/
events.pb.go
4137 lines (3956 loc) · 101 KB
/
events.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/events.proto
package core
import (
fmt "fmt"
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
// EventCreateClass is an event emitted when a credit class is created.
type EventCreateClass 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 *EventCreateClass) Reset() { *m = EventCreateClass{} }
func (m *EventCreateClass) String() string { return proto.CompactTextString(m) }
func (*EventCreateClass) ProtoMessage() {}
func (*EventCreateClass) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{0}
}
func (m *EventCreateClass) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCreateClass.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 *EventCreateClass) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCreateClass.Merge(m, src)
}
func (m *EventCreateClass) XXX_Size() int {
return m.Size()
}
func (m *EventCreateClass) XXX_DiscardUnknown() {
xxx_messageInfo_EventCreateClass.DiscardUnknown(m)
}
var xxx_messageInfo_EventCreateClass proto.InternalMessageInfo
func (m *EventCreateClass) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
// EventCreateProject is an event emitted when a project is created.
type EventCreateProject 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 *EventCreateProject) Reset() { *m = EventCreateProject{} }
func (m *EventCreateProject) String() string { return proto.CompactTextString(m) }
func (*EventCreateProject) ProtoMessage() {}
func (*EventCreateProject) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{1}
}
func (m *EventCreateProject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCreateProject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCreateProject.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 *EventCreateProject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCreateProject.Merge(m, src)
}
func (m *EventCreateProject) XXX_Size() int {
return m.Size()
}
func (m *EventCreateProject) XXX_DiscardUnknown() {
xxx_messageInfo_EventCreateProject.DiscardUnknown(m)
}
var xxx_messageInfo_EventCreateProject proto.InternalMessageInfo
func (m *EventCreateProject) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// EventCreateBatch is an event emitted when a credit batch is created.
type EventCreateBatch 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"`
// origin_tx is the transaction from another chain or registry that triggered
// the creation of the credit batch.
OriginTx *OriginTx `protobuf:"bytes,2,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
}
func (m *EventCreateBatch) Reset() { *m = EventCreateBatch{} }
func (m *EventCreateBatch) String() string { return proto.CompactTextString(m) }
func (*EventCreateBatch) ProtoMessage() {}
func (*EventCreateBatch) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{2}
}
func (m *EventCreateBatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCreateBatch.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 *EventCreateBatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCreateBatch.Merge(m, src)
}
func (m *EventCreateBatch) XXX_Size() int {
return m.Size()
}
func (m *EventCreateBatch) XXX_DiscardUnknown() {
xxx_messageInfo_EventCreateBatch.DiscardUnknown(m)
}
var xxx_messageInfo_EventCreateBatch proto.InternalMessageInfo
func (m *EventCreateBatch) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventCreateBatch) GetOriginTx() *OriginTx {
if m != nil {
return m.OriginTx
}
return nil
}
// EventMint is an event emitted when credits are minted either when creating a
// credit batch or when bridging assets from another chain or registry.
type EventMint struct {
// batch_denom is the unique identifier of the credit batch within which the
// credits were minted.
BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// tradable_amount is the amount of tradable credits minted.
TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
// retired_amount is the amount of retired credits minted.
RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
}
func (m *EventMint) Reset() { *m = EventMint{} }
func (m *EventMint) String() string { return proto.CompactTextString(m) }
func (*EventMint) ProtoMessage() {}
func (*EventMint) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{3}
}
func (m *EventMint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventMint.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 *EventMint) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventMint.Merge(m, src)
}
func (m *EventMint) XXX_Size() int {
return m.Size()
}
func (m *EventMint) XXX_DiscardUnknown() {
xxx_messageInfo_EventMint.DiscardUnknown(m)
}
var xxx_messageInfo_EventMint proto.InternalMessageInfo
func (m *EventMint) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventMint) GetTradableAmount() string {
if m != nil {
return m.TradableAmount
}
return ""
}
func (m *EventMint) GetRetiredAmount() string {
if m != nil {
return m.RetiredAmount
}
return ""
}
// EventMintBatchCredits is an event emitted when credits are minted to an
// existing open credit batch.
type EventMintBatchCredits struct {
// batch_denom is the unique identifier of the credit batch within which the
// credits were minted.
BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// origin_tx is the transaction from another chain or registry that triggered
// the minting of credits within the credit batch.
OriginTx *OriginTx `protobuf:"bytes,2,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
}
func (m *EventMintBatchCredits) Reset() { *m = EventMintBatchCredits{} }
func (m *EventMintBatchCredits) String() string { return proto.CompactTextString(m) }
func (*EventMintBatchCredits) ProtoMessage() {}
func (*EventMintBatchCredits) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{4}
}
func (m *EventMintBatchCredits) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventMintBatchCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventMintBatchCredits.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 *EventMintBatchCredits) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventMintBatchCredits.Merge(m, src)
}
func (m *EventMintBatchCredits) XXX_Size() int {
return m.Size()
}
func (m *EventMintBatchCredits) XXX_DiscardUnknown() {
xxx_messageInfo_EventMintBatchCredits.DiscardUnknown(m)
}
var xxx_messageInfo_EventMintBatchCredits proto.InternalMessageInfo
func (m *EventMintBatchCredits) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventMintBatchCredits) GetOriginTx() *OriginTx {
if m != nil {
return m.OriginTx
}
return nil
}
// EventTransfer is an event emitted when credits are transferred from one
// account to another including transfers to or from a module account.
type EventTransfer struct {
// sender is the sender of the credits. In the case that the credits were
// transferred from a base account, this will be the account address. In the
// case that the credits were transferred from a module, this will be the
// module address (i.e. either the ecocredit module or basket submodule).
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
// recipient is the recipient of the credits. In the case that the credits
// were transferred to a base account, this will be the account address. In
// the case that the credits were transferred to a module, this will be the
// module address (i.e. either the ecocredit module or basket submodule).
Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
// batch_denom is the unique identifier of the credit batch.
BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// tradable_amount is the decimal number of tradable credits received.
TradableAmount string `protobuf:"bytes,4,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
// retired_amount is the decimal number of retired credits received.
RetiredAmount string `protobuf:"bytes,5,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
}
func (m *EventTransfer) Reset() { *m = EventTransfer{} }
func (m *EventTransfer) String() string { return proto.CompactTextString(m) }
func (*EventTransfer) ProtoMessage() {}
func (*EventTransfer) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{5}
}
func (m *EventTransfer) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventTransfer.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 *EventTransfer) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventTransfer.Merge(m, src)
}
func (m *EventTransfer) XXX_Size() int {
return m.Size()
}
func (m *EventTransfer) XXX_DiscardUnknown() {
xxx_messageInfo_EventTransfer.DiscardUnknown(m)
}
var xxx_messageInfo_EventTransfer proto.InternalMessageInfo
func (m *EventTransfer) GetSender() string {
if m != nil {
return m.Sender
}
return ""
}
func (m *EventTransfer) GetRecipient() string {
if m != nil {
return m.Recipient
}
return ""
}
func (m *EventTransfer) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventTransfer) GetTradableAmount() string {
if m != nil {
return m.TradableAmount
}
return ""
}
func (m *EventTransfer) GetRetiredAmount() string {
if m != nil {
return m.RetiredAmount
}
return ""
}
// EventRetire is an event emitted when credits are retired. When credits are
// retired from multiple batches in the same transaction, a separate event is
// emitted for each batch_denom. This allows for easier indexing.
type EventRetire struct {
// owner is the address of the account that owns the retired credits. This
// will be the account receiving credits in the case that credits were retired
// upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send,
// retired upon taking from a basket using basket.Msg/Take, or retired upon
// purchase using marketplace.Msg/BuyDirect.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// batch_denom is the unique identifier of the credit batch within which the
// credits were retired.
BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// amount is the decimal number of credits that have been retired.
Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
// jurisdiction is the jurisdiction of the beneficiary or buyer of the retired
// credits. It is a string of the form
// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
// fields conforming to ISO 3166-2, and postal-code being up to 64
// alphanumeric characters.
Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
}
func (m *EventRetire) Reset() { *m = EventRetire{} }
func (m *EventRetire) String() string { return proto.CompactTextString(m) }
func (*EventRetire) ProtoMessage() {}
func (*EventRetire) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{6}
}
func (m *EventRetire) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventRetire.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 *EventRetire) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventRetire.Merge(m, src)
}
func (m *EventRetire) XXX_Size() int {
return m.Size()
}
func (m *EventRetire) XXX_DiscardUnknown() {
xxx_messageInfo_EventRetire.DiscardUnknown(m)
}
var xxx_messageInfo_EventRetire proto.InternalMessageInfo
func (m *EventRetire) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *EventRetire) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventRetire) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *EventRetire) GetJurisdiction() string {
if m != nil {
return m.Jurisdiction
}
return ""
}
// EventCancel is an event emitted when credits are cancelled. When credits are
// cancelled from multiple batches in the same transaction, a separate event is
// emitted for each batch_denom. This allows for easier indexing.
type EventCancel struct {
// owner is the address of the account that cancelled the credits.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// batch_denom is the unique identifier of the credit batch within which the
// credits were cancelled.
BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
// amount is the decimal number of credits that have been cancelled.
Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
// reason is the reason the credits were cancelled.
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
}
func (m *EventCancel) Reset() { *m = EventCancel{} }
func (m *EventCancel) String() string { return proto.CompactTextString(m) }
func (*EventCancel) ProtoMessage() {}
func (*EventCancel) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{7}
}
func (m *EventCancel) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCancel.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 *EventCancel) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCancel.Merge(m, src)
}
func (m *EventCancel) XXX_Size() int {
return m.Size()
}
func (m *EventCancel) XXX_DiscardUnknown() {
xxx_messageInfo_EventCancel.DiscardUnknown(m)
}
var xxx_messageInfo_EventCancel proto.InternalMessageInfo
func (m *EventCancel) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *EventCancel) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
func (m *EventCancel) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *EventCancel) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
// EventUpdateClassAdmin is emitted when the admin address of a credit class is
// changed.
type EventUpdateClassAdmin struct {
// class_id is the unique identifier of the class that was updated.
ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}
func (m *EventUpdateClassAdmin) Reset() { *m = EventUpdateClassAdmin{} }
func (m *EventUpdateClassAdmin) String() string { return proto.CompactTextString(m) }
func (*EventUpdateClassAdmin) ProtoMessage() {}
func (*EventUpdateClassAdmin) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{8}
}
func (m *EventUpdateClassAdmin) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateClassAdmin.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 *EventUpdateClassAdmin) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateClassAdmin.Merge(m, src)
}
func (m *EventUpdateClassAdmin) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateClassAdmin) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateClassAdmin.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateClassAdmin proto.InternalMessageInfo
func (m *EventUpdateClassAdmin) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
// EventUpdateClassIssuers is emitted when the issuer list for a credit class
// is updated.
type EventUpdateClassIssuers struct {
// class_id is the unique identifier of the class that was updated.
ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}
func (m *EventUpdateClassIssuers) Reset() { *m = EventUpdateClassIssuers{} }
func (m *EventUpdateClassIssuers) String() string { return proto.CompactTextString(m) }
func (*EventUpdateClassIssuers) ProtoMessage() {}
func (*EventUpdateClassIssuers) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{9}
}
func (m *EventUpdateClassIssuers) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateClassIssuers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateClassIssuers.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 *EventUpdateClassIssuers) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateClassIssuers.Merge(m, src)
}
func (m *EventUpdateClassIssuers) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateClassIssuers) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateClassIssuers.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateClassIssuers proto.InternalMessageInfo
func (m *EventUpdateClassIssuers) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
// EventUpdateClassMetadata is emitted when the credit class metadata is
// changed.
type EventUpdateClassMetadata struct {
// class_id is the unique identifier of the class that was updated.
ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}
func (m *EventUpdateClassMetadata) Reset() { *m = EventUpdateClassMetadata{} }
func (m *EventUpdateClassMetadata) String() string { return proto.CompactTextString(m) }
func (*EventUpdateClassMetadata) ProtoMessage() {}
func (*EventUpdateClassMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{10}
}
func (m *EventUpdateClassMetadata) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateClassMetadata.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 *EventUpdateClassMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateClassMetadata.Merge(m, src)
}
func (m *EventUpdateClassMetadata) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateClassMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateClassMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateClassMetadata proto.InternalMessageInfo
func (m *EventUpdateClassMetadata) GetClassId() string {
if m != nil {
return m.ClassId
}
return ""
}
// EventUpdateProjectAdmin is emitted when the project admin is changed.
type EventUpdateProjectAdmin struct {
// project_id is the unique identifier of the project that was updated.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}
func (m *EventUpdateProjectAdmin) Reset() { *m = EventUpdateProjectAdmin{} }
func (m *EventUpdateProjectAdmin) String() string { return proto.CompactTextString(m) }
func (*EventUpdateProjectAdmin) ProtoMessage() {}
func (*EventUpdateProjectAdmin) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{11}
}
func (m *EventUpdateProjectAdmin) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateProjectAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateProjectAdmin.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 *EventUpdateProjectAdmin) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateProjectAdmin.Merge(m, src)
}
func (m *EventUpdateProjectAdmin) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateProjectAdmin) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateProjectAdmin.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateProjectAdmin proto.InternalMessageInfo
func (m *EventUpdateProjectAdmin) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// EventUpdateProjectMetadata is emitted when the project metadata is changed.
type EventUpdateProjectMetadata struct {
// project_id is the unique identifier of the project that was updated.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}
func (m *EventUpdateProjectMetadata) Reset() { *m = EventUpdateProjectMetadata{} }
func (m *EventUpdateProjectMetadata) String() string { return proto.CompactTextString(m) }
func (*EventUpdateProjectMetadata) ProtoMessage() {}
func (*EventUpdateProjectMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{12}
}
func (m *EventUpdateProjectMetadata) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateProjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateProjectMetadata.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 *EventUpdateProjectMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateProjectMetadata.Merge(m, src)
}
func (m *EventUpdateProjectMetadata) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateProjectMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateProjectMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateProjectMetadata proto.InternalMessageInfo
func (m *EventUpdateProjectMetadata) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
// EventSealBatch is emitted when a batch is sealed.
type EventSealBatch struct {
// batch_denom is the denom of the batch that was sealed.
BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}
func (m *EventSealBatch) Reset() { *m = EventSealBatch{} }
func (m *EventSealBatch) String() string { return proto.CompactTextString(m) }
func (*EventSealBatch) ProtoMessage() {}
func (*EventSealBatch) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{13}
}
func (m *EventSealBatch) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventSealBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventSealBatch.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 *EventSealBatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventSealBatch.Merge(m, src)
}
func (m *EventSealBatch) XXX_Size() int {
return m.Size()
}
func (m *EventSealBatch) XXX_DiscardUnknown() {
xxx_messageInfo_EventSealBatch.DiscardUnknown(m)
}
var xxx_messageInfo_EventSealBatch proto.InternalMessageInfo
func (m *EventSealBatch) GetBatchDenom() string {
if m != nil {
return m.BatchDenom
}
return ""
}
// EventAddCreditType is emitted when governance approves a new credit type.
type EventAddCreditType struct {
// abbreviation is the abbreviation of the credit type.
Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"`
}
func (m *EventAddCreditType) Reset() { *m = EventAddCreditType{} }
func (m *EventAddCreditType) String() string { return proto.CompactTextString(m) }
func (*EventAddCreditType) ProtoMessage() {}
func (*EventAddCreditType) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{14}
}
func (m *EventAddCreditType) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventAddCreditType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventAddCreditType.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 *EventAddCreditType) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventAddCreditType.Merge(m, src)
}
func (m *EventAddCreditType) XXX_Size() int {
return m.Size()
}
func (m *EventAddCreditType) XXX_DiscardUnknown() {
xxx_messageInfo_EventAddCreditType.DiscardUnknown(m)
}
var xxx_messageInfo_EventAddCreditType proto.InternalMessageInfo
func (m *EventAddCreditType) GetAbbreviation() string {
if m != nil {
return m.Abbreviation
}
return ""
}
// EventBridge is emitted when credits are bridged to another chain.
type EventBridge struct {
// target is the target chain.
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// recipient is the recipient address.
Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
// contract is the contract address.
Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
// amount is the amount of credits.
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
// owner is the owner address.
//
// Since Revision 1
Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
}
func (m *EventBridge) Reset() { *m = EventBridge{} }
func (m *EventBridge) String() string { return proto.CompactTextString(m) }
func (*EventBridge) ProtoMessage() {}
func (*EventBridge) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{15}
}
func (m *EventBridge) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventBridge.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 *EventBridge) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventBridge.Merge(m, src)
}
func (m *EventBridge) XXX_Size() int {
return m.Size()
}
func (m *EventBridge) XXX_DiscardUnknown() {
xxx_messageInfo_EventBridge.DiscardUnknown(m)
}
var xxx_messageInfo_EventBridge proto.InternalMessageInfo
func (m *EventBridge) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
func (m *EventBridge) GetRecipient() string {
if m != nil {
return m.Recipient
}
return ""
}
func (m *EventBridge) GetContract() string {
if m != nil {
return m.Contract
}
return ""
}
func (m *EventBridge) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *EventBridge) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
// EventBridgeReceive is emitted when credits are bridged from another chain.
type EventBridgeReceive struct {
// project_id is the unique identifier of the project that was either created
// or the existing project within which the credit batch exists.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// batch_denom is the unique identifier of the credit batch either created
// or within which the credits were dynamically minted.
BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}
func (m *EventBridgeReceive) Reset() { *m = EventBridgeReceive{} }
func (m *EventBridgeReceive) String() string { return proto.CompactTextString(m) }
func (*EventBridgeReceive) ProtoMessage() {}
func (*EventBridgeReceive) Descriptor() ([]byte, []int) {
return fileDescriptor_e32415575ff8b4b2, []int{16}
}
func (m *EventBridgeReceive) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventBridgeReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventBridgeReceive.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 *EventBridgeReceive) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventBridgeReceive.Merge(m, src)
}
func (m *EventBridgeReceive) XXX_Size() int {
return m.Size()
}
func (m *EventBridgeReceive) XXX_DiscardUnknown() {
xxx_messageInfo_EventBridgeReceive.DiscardUnknown(m)
}
var xxx_messageInfo_EventBridgeReceive proto.InternalMessageInfo
func (m *EventBridgeReceive) GetProjectId() string {
if m != nil {
return m.ProjectId