/
codec.pb.go
6397 lines (5650 loc) · 240 KB
/
codec.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-go. DO NOT EDIT.
// source: dfuse/zswhq/codec/v1/codec.proto
package pbcodec
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
type BlockReversibility int32
const (
BlockReversibility_BLOCKREVERSIBILITY_NONE BlockReversibility = 0
BlockReversibility_BLOCKREVERSIBILITY_REVERSIBLE BlockReversibility = 1
BlockReversibility_BLOCKREVERSIBILITY_IRREVERSIBLE BlockReversibility = 2
BlockReversibility_BLOCKREVERSIBILITY_STALE BlockReversibility = 3
BlockReversibility_BLOCKREVERSIBILITY_MAYBESTALE BlockReversibility = 4
)
var BlockReversibility_name = map[int32]string{
0: "BLOCKREVERSIBILITY_NONE",
1: "BLOCKREVERSIBILITY_REVERSIBLE",
2: "BLOCKREVERSIBILITY_IRREVERSIBLE",
3: "BLOCKREVERSIBILITY_STALE",
4: "BLOCKREVERSIBILITY_MAYBESTALE",
}
var BlockReversibility_value = map[string]int32{
"BLOCKREVERSIBILITY_NONE": 0,
"BLOCKREVERSIBILITY_REVERSIBLE": 1,
"BLOCKREVERSIBILITY_IRREVERSIBLE": 2,
"BLOCKREVERSIBILITY_STALE": 3,
"BLOCKREVERSIBILITY_MAYBESTALE": 4,
}
func (x BlockReversibility) String() string {
return proto.EnumName(BlockReversibility_name, int32(x))
}
func (BlockReversibility) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{0}
}
type TransactionStatus int32
const (
TransactionStatus_TRANSACTIONSTATUS_NONE TransactionStatus = 0
TransactionStatus_TRANSACTIONSTATUS_EXECUTED TransactionStatus = 1
TransactionStatus_TRANSACTIONSTATUS_SOFTFAIL TransactionStatus = 2
TransactionStatus_TRANSACTIONSTATUS_HARDFAIL TransactionStatus = 3
TransactionStatus_TRANSACTIONSTATUS_DELAYED TransactionStatus = 4
TransactionStatus_TRANSACTIONSTATUS_EXPIRED TransactionStatus = 5
TransactionStatus_TRANSACTIONSTATUS_UNKNOWN TransactionStatus = 6
TransactionStatus_TRANSACTIONSTATUS_CANCELED TransactionStatus = 7
)
var TransactionStatus_name = map[int32]string{
0: "TRANSACTIONSTATUS_NONE",
1: "TRANSACTIONSTATUS_EXECUTED",
2: "TRANSACTIONSTATUS_SOFTFAIL",
3: "TRANSACTIONSTATUS_HARDFAIL",
4: "TRANSACTIONSTATUS_DELAYED",
5: "TRANSACTIONSTATUS_EXPIRED",
6: "TRANSACTIONSTATUS_UNKNOWN",
7: "TRANSACTIONSTATUS_CANCELED",
}
var TransactionStatus_value = map[string]int32{
"TRANSACTIONSTATUS_NONE": 0,
"TRANSACTIONSTATUS_EXECUTED": 1,
"TRANSACTIONSTATUS_SOFTFAIL": 2,
"TRANSACTIONSTATUS_HARDFAIL": 3,
"TRANSACTIONSTATUS_DELAYED": 4,
"TRANSACTIONSTATUS_EXPIRED": 5,
"TRANSACTIONSTATUS_UNKNOWN": 6,
"TRANSACTIONSTATUS_CANCELED": 7,
}
func (x TransactionStatus) String() string {
return proto.EnumName(TransactionStatus_name, int32(x))
}
func (TransactionStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{1}
}
type TrxOp_Operation int32
const (
TrxOp_OPERATION_UNKNOWN TrxOp_Operation = 0
TrxOp_OPERATION_CREATE TrxOp_Operation = 1
)
var TrxOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_CREATE",
}
var TrxOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_CREATE": 1,
}
func (x TrxOp_Operation) String() string {
return proto.EnumName(TrxOp_Operation_name, int32(x))
}
func (TrxOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{32, 0}
}
type DBOp_Operation int32
const (
DBOp_OPERATION_UNKNOWN DBOp_Operation = 0
DBOp_OPERATION_INSERT DBOp_Operation = 1
DBOp_OPERATION_UPDATE DBOp_Operation = 2
DBOp_OPERATION_REMOVE DBOp_Operation = 3
)
var DBOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_INSERT",
2: "OPERATION_UPDATE",
3: "OPERATION_REMOVE",
}
var DBOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_INSERT": 1,
"OPERATION_UPDATE": 2,
"OPERATION_REMOVE": 3,
}
func (x DBOp_Operation) String() string {
return proto.EnumName(DBOp_Operation_name, int32(x))
}
func (DBOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{33, 0}
}
type KVOp_Operation int32
const (
KVOp_OPERATION_UNKNOWN KVOp_Operation = 0
KVOp_OPERATION_INSERT KVOp_Operation = 1
KVOp_OPERATION_UPDATE KVOp_Operation = 2
KVOp_OPERATION_REMOVE KVOp_Operation = 3
)
var KVOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_INSERT",
2: "OPERATION_UPDATE",
3: "OPERATION_REMOVE",
}
var KVOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_INSERT": 1,
"OPERATION_UPDATE": 2,
"OPERATION_REMOVE": 3,
}
func (x KVOp_Operation) String() string {
return proto.EnumName(KVOp_Operation_name, int32(x))
}
func (KVOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{34, 0}
}
type RAMOp_Operation int32
const (
RAMOp_OPERATION_UNKNOWN RAMOp_Operation = 0
RAMOp_OPERATION_CREATE_TABLE RAMOp_Operation = 1
RAMOp_OPERATION_DEFERRED_TRX_ADD RAMOp_Operation = 2
RAMOp_OPERATION_DEFERRED_TRX_CANCEL RAMOp_Operation = 3
RAMOp_OPERATION_DEFERRED_TRX_PUSHED RAMOp_Operation = 4
RAMOp_OPERATION_DEFERRED_TRX_RAM_CORRECTION RAMOp_Operation = 5
RAMOp_OPERATION_DEFERRED_TRX_REMOVED RAMOp_Operation = 6
RAMOp_OPERATION_DELETEAUTH RAMOp_Operation = 7
RAMOp_OPERATION_LINKAUTH RAMOp_Operation = 8
RAMOp_OPERATION_NEWACCOUNT RAMOp_Operation = 9
RAMOp_OPERATION_PRIMARY_INDEX_ADD RAMOp_Operation = 10
RAMOp_OPERATION_PRIMARY_INDEX_REMOVE RAMOp_Operation = 11
RAMOp_OPERATION_PRIMARY_INDEX_UPDATE RAMOp_Operation = 12
RAMOp_OPERATION_PRIMARY_INDEX_UPDATE_ADD_NEW_PAYER RAMOp_Operation = 13
RAMOp_OPERATION_PRIMARY_INDEX_UPDATE_REMOVE_OLD_PAYER RAMOp_Operation = 14
RAMOp_OPERATION_REMOVE_TABLE RAMOp_Operation = 15
RAMOp_OPERATION_SECONDARY_INDEX_ADD RAMOp_Operation = 16
RAMOp_OPERATION_SECONDARY_INDEX_REMOVE RAMOp_Operation = 17
RAMOp_OPERATION_SECONDARY_INDEX_UPDATE_ADD_NEW_PAYER RAMOp_Operation = 18
RAMOp_OPERATION_SECONDARY_INDEX_UPDATE_REMOVE_OLD_PAYER RAMOp_Operation = 19
RAMOp_OPERATION_SETABI RAMOp_Operation = 20
RAMOp_OPERATION_SETCODE RAMOp_Operation = 21
RAMOp_OPERATION_UNLINKAUTH RAMOp_Operation = 22
RAMOp_OPERATION_UPDATEAUTH_CREATE RAMOp_Operation = 23
RAMOp_OPERATION_UPDATEAUTH_UPDATE RAMOp_Operation = 24
// For newer RAM Ops that are registered by Deep Mind, their `Operation` value will be
// Deprecated until we remove the operation completely. Use instead the `Namespace`
// and `Action` fields to take a decision about what the RAM operation is doing.
RAMOp_OPERATION_DEPRECATED RAMOp_Operation = 25
)
var RAMOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_CREATE_TABLE",
2: "OPERATION_DEFERRED_TRX_ADD",
3: "OPERATION_DEFERRED_TRX_CANCEL",
4: "OPERATION_DEFERRED_TRX_PUSHED",
5: "OPERATION_DEFERRED_TRX_RAM_CORRECTION",
6: "OPERATION_DEFERRED_TRX_REMOVED",
7: "OPERATION_DELETEAUTH",
8: "OPERATION_LINKAUTH",
9: "OPERATION_NEWACCOUNT",
10: "OPERATION_PRIMARY_INDEX_ADD",
11: "OPERATION_PRIMARY_INDEX_REMOVE",
12: "OPERATION_PRIMARY_INDEX_UPDATE",
13: "OPERATION_PRIMARY_INDEX_UPDATE_ADD_NEW_PAYER",
14: "OPERATION_PRIMARY_INDEX_UPDATE_REMOVE_OLD_PAYER",
15: "OPERATION_REMOVE_TABLE",
16: "OPERATION_SECONDARY_INDEX_ADD",
17: "OPERATION_SECONDARY_INDEX_REMOVE",
18: "OPERATION_SECONDARY_INDEX_UPDATE_ADD_NEW_PAYER",
19: "OPERATION_SECONDARY_INDEX_UPDATE_REMOVE_OLD_PAYER",
20: "OPERATION_SETABI",
21: "OPERATION_SETCODE",
22: "OPERATION_UNLINKAUTH",
23: "OPERATION_UPDATEAUTH_CREATE",
24: "OPERATION_UPDATEAUTH_UPDATE",
25: "OPERATION_DEPRECATED",
}
var RAMOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_CREATE_TABLE": 1,
"OPERATION_DEFERRED_TRX_ADD": 2,
"OPERATION_DEFERRED_TRX_CANCEL": 3,
"OPERATION_DEFERRED_TRX_PUSHED": 4,
"OPERATION_DEFERRED_TRX_RAM_CORRECTION": 5,
"OPERATION_DEFERRED_TRX_REMOVED": 6,
"OPERATION_DELETEAUTH": 7,
"OPERATION_LINKAUTH": 8,
"OPERATION_NEWACCOUNT": 9,
"OPERATION_PRIMARY_INDEX_ADD": 10,
"OPERATION_PRIMARY_INDEX_REMOVE": 11,
"OPERATION_PRIMARY_INDEX_UPDATE": 12,
"OPERATION_PRIMARY_INDEX_UPDATE_ADD_NEW_PAYER": 13,
"OPERATION_PRIMARY_INDEX_UPDATE_REMOVE_OLD_PAYER": 14,
"OPERATION_REMOVE_TABLE": 15,
"OPERATION_SECONDARY_INDEX_ADD": 16,
"OPERATION_SECONDARY_INDEX_REMOVE": 17,
"OPERATION_SECONDARY_INDEX_UPDATE_ADD_NEW_PAYER": 18,
"OPERATION_SECONDARY_INDEX_UPDATE_REMOVE_OLD_PAYER": 19,
"OPERATION_SETABI": 20,
"OPERATION_SETCODE": 21,
"OPERATION_UNLINKAUTH": 22,
"OPERATION_UPDATEAUTH_CREATE": 23,
"OPERATION_UPDATEAUTH_UPDATE": 24,
"OPERATION_DEPRECATED": 25,
}
func (x RAMOp_Operation) String() string {
return proto.EnumName(RAMOp_Operation_name, int32(x))
}
func (RAMOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{35, 0}
}
type RAMOp_Namespace int32
const (
RAMOp_NAMESPACE_UNKNOWN RAMOp_Namespace = 0
RAMOp_NAMESPACE_ABI RAMOp_Namespace = 1
RAMOp_NAMESPACE_ACCOUNT RAMOp_Namespace = 2
RAMOp_NAMESPACE_AUTH RAMOp_Namespace = 3
RAMOp_NAMESPACE_AUTH_LINK RAMOp_Namespace = 4
RAMOp_NAMESPACE_CODE RAMOp_Namespace = 5
RAMOp_NAMESPACE_DEFERRED_TRX RAMOp_Namespace = 6
RAMOp_NAMESPACE_SECONDARY_INDEX RAMOp_Namespace = 7
RAMOp_NAMESPACE_TABLE RAMOp_Namespace = 8
RAMOp_NAMESPACE_TABLE_ROW RAMOp_Namespace = 9
// Added in EOSIO 2.1.x
RAMOp_NAMESPACE_KV RAMOp_Namespace = 10
)
var RAMOp_Namespace_name = map[int32]string{
0: "NAMESPACE_UNKNOWN",
1: "NAMESPACE_ABI",
2: "NAMESPACE_ACCOUNT",
3: "NAMESPACE_AUTH",
4: "NAMESPACE_AUTH_LINK",
5: "NAMESPACE_CODE",
6: "NAMESPACE_DEFERRED_TRX",
7: "NAMESPACE_SECONDARY_INDEX",
8: "NAMESPACE_TABLE",
9: "NAMESPACE_TABLE_ROW",
10: "NAMESPACE_KV",
}
var RAMOp_Namespace_value = map[string]int32{
"NAMESPACE_UNKNOWN": 0,
"NAMESPACE_ABI": 1,
"NAMESPACE_ACCOUNT": 2,
"NAMESPACE_AUTH": 3,
"NAMESPACE_AUTH_LINK": 4,
"NAMESPACE_CODE": 5,
"NAMESPACE_DEFERRED_TRX": 6,
"NAMESPACE_SECONDARY_INDEX": 7,
"NAMESPACE_TABLE": 8,
"NAMESPACE_TABLE_ROW": 9,
"NAMESPACE_KV": 10,
}
func (x RAMOp_Namespace) String() string {
return proto.EnumName(RAMOp_Namespace_name, int32(x))
}
func (RAMOp_Namespace) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{35, 1}
}
type RAMOp_Action int32
const (
RAMOp_ACTION_UNKNOWN RAMOp_Action = 0
RAMOp_ACTION_ADD RAMOp_Action = 1
RAMOp_ACTION_CANCEL RAMOp_Action = 2
RAMOp_ACTION_CORRECTION RAMOp_Action = 3
RAMOp_ACTION_PUSH RAMOp_Action = 4
RAMOp_ACTION_REMOVE RAMOp_Action = 5
RAMOp_ACTION_UPDATE RAMOp_Action = 6
)
var RAMOp_Action_name = map[int32]string{
0: "ACTION_UNKNOWN",
1: "ACTION_ADD",
2: "ACTION_CANCEL",
3: "ACTION_CORRECTION",
4: "ACTION_PUSH",
5: "ACTION_REMOVE",
6: "ACTION_UPDATE",
}
var RAMOp_Action_value = map[string]int32{
"ACTION_UNKNOWN": 0,
"ACTION_ADD": 1,
"ACTION_CANCEL": 2,
"ACTION_CORRECTION": 3,
"ACTION_PUSH": 4,
"ACTION_REMOVE": 5,
"ACTION_UPDATE": 6,
}
func (x RAMOp_Action) String() string {
return proto.EnumName(RAMOp_Action_name, int32(x))
}
func (RAMOp_Action) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{35, 2}
}
type TableOp_Operation int32
const (
TableOp_OPERATION_UNKNOWN TableOp_Operation = 0
TableOp_OPERATION_INSERT TableOp_Operation = 1
TableOp_OPERATION_REMOVE TableOp_Operation = 2
)
var TableOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_INSERT",
2: "OPERATION_REMOVE",
}
var TableOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_INSERT": 1,
"OPERATION_REMOVE": 2,
}
func (x TableOp_Operation) String() string {
return proto.EnumName(TableOp_Operation_name, int32(x))
}
func (TableOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{37, 0}
}
type DTrxOp_Operation int32
const (
DTrxOp_OPERATION_UNKNOWN DTrxOp_Operation = 0
DTrxOp_OPERATION_CREATE DTrxOp_Operation = 1
DTrxOp_OPERATION_PUSH_CREATE DTrxOp_Operation = 2
DTrxOp_OPERATION_FAILED DTrxOp_Operation = 3
DTrxOp_OPERATION_CANCEL DTrxOp_Operation = 4
DTrxOp_OPERATION_MODIFY_CANCEL DTrxOp_Operation = 5
DTrxOp_OPERATION_MODIFY_CREATE DTrxOp_Operation = 6
)
var DTrxOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_CREATE",
2: "OPERATION_PUSH_CREATE",
3: "OPERATION_FAILED",
4: "OPERATION_CANCEL",
5: "OPERATION_MODIFY_CANCEL",
6: "OPERATION_MODIFY_CREATE",
}
var DTrxOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_CREATE": 1,
"OPERATION_PUSH_CREATE": 2,
"OPERATION_FAILED": 3,
"OPERATION_CANCEL": 4,
"OPERATION_MODIFY_CANCEL": 5,
"OPERATION_MODIFY_CREATE": 6,
}
func (x DTrxOp_Operation) String() string {
return proto.EnumName(DTrxOp_Operation_name, int32(x))
}
func (DTrxOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{38, 0}
}
type FeatureOp_Kind int32
const (
FeatureOp_KIND_UNKNOWN FeatureOp_Kind = 0
FeatureOp_KIND_PRE_ACTIVATE FeatureOp_Kind = 1
FeatureOp_KIND_ACTIVATE FeatureOp_Kind = 2
)
var FeatureOp_Kind_name = map[int32]string{
0: "KIND_UNKNOWN",
1: "KIND_PRE_ACTIVATE",
2: "KIND_ACTIVATE",
}
var FeatureOp_Kind_value = map[string]int32{
"KIND_UNKNOWN": 0,
"KIND_PRE_ACTIVATE": 1,
"KIND_ACTIVATE": 2,
}
func (x FeatureOp_Kind) String() string {
return proto.EnumName(FeatureOp_Kind_name, int32(x))
}
func (FeatureOp_Kind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{40, 0}
}
type PermOp_Operation int32
const (
PermOp_OPERATION_UNKNOWN PermOp_Operation = 0
PermOp_OPERATION_INSERT PermOp_Operation = 1
PermOp_OPERATION_UPDATE PermOp_Operation = 2
PermOp_OPERATION_REMOVE PermOp_Operation = 3
)
var PermOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_INSERT",
2: "OPERATION_UPDATE",
3: "OPERATION_REMOVE",
}
var PermOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_INSERT": 1,
"OPERATION_UPDATE": 2,
"OPERATION_REMOVE": 3,
}
func (x PermOp_Operation) String() string {
return proto.EnumName(PermOp_Operation_name, int32(x))
}
func (PermOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{42, 0}
}
type RlimitOp_Operation int32
const (
RlimitOp_OPERATION_UNKNOWN RlimitOp_Operation = 0
RlimitOp_OPERATION_INSERT RlimitOp_Operation = 1
RlimitOp_OPERATION_UPDATE RlimitOp_Operation = 2
)
var RlimitOp_Operation_name = map[int32]string{
0: "OPERATION_UNKNOWN",
1: "OPERATION_INSERT",
2: "OPERATION_UPDATE",
}
var RlimitOp_Operation_value = map[string]int32{
"OPERATION_UNKNOWN": 0,
"OPERATION_INSERT": 1,
"OPERATION_UPDATE": 2,
}
func (x RlimitOp_Operation) String() string {
return proto.EnumName(RlimitOp_Operation_name, int32(x))
}
func (RlimitOp_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{50, 0}
}
type Block struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Number uint32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
Header *BlockHeader `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
ProducerSignature string `protobuf:"bytes,5,opt,name=producer_signature,json=producerSignature,proto3" json:"producer_signature,omitempty"`
BlockExtensions []*Extension `protobuf:"bytes,7,rep,name=block_extensions,json=blockExtensions,proto3" json:"block_extensions,omitempty"`
DposProposedIrreversibleBlocknum uint32 `protobuf:"varint,8,opt,name=dpos_proposed_irreversible_blocknum,json=dposProposedIrreversibleBlocknum,proto3" json:"dpos_proposed_irreversible_blocknum,omitempty"`
DposIrreversibleBlocknum uint32 `protobuf:"varint,9,opt,name=dpos_irreversible_blocknum,json=dposIrreversibleBlocknum,proto3" json:"dpos_irreversible_blocknum,omitempty"`
BlockrootMerkle *BlockRootMerkle `protobuf:"bytes,11,opt,name=blockroot_merkle,json=blockrootMerkle,proto3" json:"blockroot_merkle,omitempty"`
ProducerToLastProduced []*ProducerToLastProduced `protobuf:"bytes,12,rep,name=producer_to_last_produced,json=producerToLastProduced,proto3" json:"producer_to_last_produced,omitempty"`
ProducerToLastImpliedIrb []*ProducerToLastImpliedIRB `protobuf:"bytes,13,rep,name=producer_to_last_implied_irb,json=producerToLastImpliedIrb,proto3" json:"producer_to_last_implied_irb,omitempty"`
ConfirmCount []uint32 `protobuf:"varint,15,rep,packed,name=confirm_count,json=confirmCount,proto3" json:"confirm_count,omitempty"`
PendingSchedule *PendingProducerSchedule `protobuf:"bytes,16,opt,name=pending_schedule,json=pendingSchedule,proto3" json:"pending_schedule,omitempty"`
ActivatedProtocolFeatures *ActivatedProtocolFeatures `protobuf:"bytes,17,opt,name=activated_protocol_features,json=activatedProtocolFeatures,proto3" json:"activated_protocol_features,omitempty"`
Validated bool `protobuf:"varint,18,opt,name=validated,proto3" json:"validated,omitempty"`
RlimitOps []*RlimitOp `protobuf:"bytes,19,rep,name=rlimit_ops,json=rlimitOps,proto3" json:"rlimit_ops,omitempty"`
// The unfiltered transactions in this block when NO filtering has been applied,
// (i.e. `filtering_applied = false`). When filtering has been applied on this block,
// (i.e. `filtering_applied = true`), this field will be set to `nil` and instead, the
// `filtered_transactions` will be populated with only filtered transactions.
//
// Use the helper getter method `Transactions()` to automatically pick the correct
// field to use (`unfiltered_transactions` when `filtering_applied == false` and
// `filtered_transactions` when `filtering_applied == true`).
UnfilteredTransactions []*TransactionReceipt `protobuf:"bytes,6,rep,name=unfiltered_transactions,json=unfilteredTransactions,proto3" json:"unfiltered_transactions,omitempty"`
// The filtered transactions in this block when filtering has been applied,
// (i.e. `filtering_applied = true`). This will be only the transactions
// that matched the include filter CEL expression and did NOT match the exclude
// filter CEL expression.
//
// Use the helper getter method `Transactions()` to automatically the correct
// field (`unfiltered_transaction` when `filtering_applied == false` and
// `filtered_transactions` when `filtering_applied == true`).
FilteredTransactions []*TransactionReceipt `protobuf:"bytes,47,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"`
// Number of transaction executed within this block when no filtering
// is applied (`filtering_applied == false`).
UnfilteredTransactionCount uint32 `protobuf:"varint,22,opt,name=unfiltered_transaction_count,json=unfilteredTransactionCount,proto3" json:"unfiltered_transaction_count,omitempty"`
// Number of transaction that were successfully executed within this block that are found in
// the `filtered_transactions` array. This field is populated only when the flag
// `filtering_applied` is `true`.
FilteredTransactionCount uint32 `protobuf:"varint,48,opt,name=filtered_transaction_count,json=filteredTransactionCount,proto3" json:"filtered_transaction_count,omitempty"`
// The unfiltered implicit transaction ops in this block when NO filtering has been applied,
// (i.e. `filtering_applied = false`). When filtering has been applied on this block,
// (i.e. `filtering_applied = true`), this field will be set to `nil` and instead, the
// `filtered_implicit_transaction_ops` will be populated with only filtered implicit
// transaction ops.
//
// Use the helper getter method `ImplicitTransactionOps()` to automatically pick the correct
// field to use (`unfiltered_implicit_transaction_ops` when `filtering_applied == false` and
// `filtered_implicit_transaction_ops` when `filtering_applied == true`).
UnfilteredImplicitTransactionOps []*TrxOp `protobuf:"bytes,20,rep,name=unfiltered_implicit_transaction_ops,json=unfilteredImplicitTransactionOps,proto3" json:"unfiltered_implicit_transaction_ops,omitempty"`
// The filtered implicit transaction ops in this block when filtering has been applied,
// (i.e. `filtering_applied = true`). This will be only the implicit transaction ops
// that matched the include filter CEL expression and did NOT match the exclude
// filter CEL expression.
//
// Use the helper getter method `ImplicitTransactionOps()` to automatically the correct
// field (`unfiltered_implicit_transaction_ops` when `filtering_applied == false` and
// `filtered_implicit_transaction_ops` when `filtering_applied == true`).
FilteredImplicitTransactionOps []*TrxOp `protobuf:"bytes,49,rep,name=filtered_implicit_transaction_ops,json=filteredImplicitTransactionOps,proto3" json:"filtered_implicit_transaction_ops,omitempty"`
// The unfiltered transaction traces in this block when NO filtering has been applied,
// (i.e. `filtering_applied = false`). When filtering has been applied on this block,
// (i.e. `filtering_applied = true`), this field will be set to `nil` and instead, the
// `filtered_transaction_traces` will be populated with only filtered transactions.
//
// Use the helper getter method `TransactionTraces()` to automatically pick the correct
// field to use (`unfiltered_transaction_traces` when `filtering_applied == false` and
// `filtered_transaction_traces` when `filtering_applied == true`).
UnfilteredTransactionTraces []*TransactionTrace `protobuf:"bytes,21,rep,name=unfiltered_transaction_traces,json=unfilteredTransactionTraces,proto3" json:"unfiltered_transaction_traces,omitempty"`
// The filtered transaction traces in this block when filtering has been applied,
// (i.e. `filtering_applied = true`). This will be only the transaction trace
// that matched the include filter CEL expression and did NOT match the exclude
// filter CEL expression.
//
// Use the helper getter method `TransactionTraces()` to automatically pick the correct
// field to use (`unfiltered_transaction_traces` when `filtering_applied == false` and
// `filtered_transaction_traces` when `filtering_applied == true`).
FilteredTransactionTraces []*TransactionTrace `protobuf:"bytes,46,rep,name=filtered_transaction_traces,json=filteredTransactionTraces,proto3" json:"filtered_transaction_traces,omitempty"`
// Number of transaction trace executed within this block when no filtering
// is applied (`filtering_applied == false`).
UnfilteredTransactionTraceCount uint32 `protobuf:"varint,23,opt,name=unfiltered_transaction_trace_count,json=unfilteredTransactionTraceCount,proto3" json:"unfiltered_transaction_trace_count,omitempty"`
// Number of transaction trace that were successfully executed within this block that are found in
// the `filtered_transaction_traces` array. This field is populated only when the flag
// `filtering_applied` is `true`.
FilteredTransactionTraceCount uint32 `protobuf:"varint,43,opt,name=filtered_transaction_trace_count,json=filteredTransactionTraceCount,proto3" json:"filtered_transaction_trace_count,omitempty"`
// Number of top-level actions that were successfully executed within this block when no filtering
// is applied (`filtering_applied == false`).
UnfilteredExecutedInputActionCount uint32 `protobuf:"varint,24,opt,name=unfiltered_executed_input_action_count,json=unfilteredExecutedInputActionCount,proto3" json:"unfiltered_executed_input_action_count,omitempty"`
// Number of top-level actions that were successfully executed within this block that are found in
// the `filtered_transaction_traces` array. This field is populated only when the flag
// `filtering_applied` is `true`.
FilteredExecutedInputActionCount uint32 `protobuf:"varint,44,opt,name=filtered_executed_input_action_count,json=filteredExecutedInputActionCount,proto3" json:"filtered_executed_input_action_count,omitempty"`
// Number of actions that were successfully executed within this block when no filtering
// is applied (`filtering_applied == false`).
UnfilteredExecutedTotalActionCount uint32 `protobuf:"varint,25,opt,name=unfiltered_executed_total_action_count,json=unfilteredExecutedTotalActionCount,proto3" json:"unfiltered_executed_total_action_count,omitempty"`
// Number of actions that were successfully executed within this block that are found in
// the `filtered_transaction_traces` array. This field is populated only when the flag
// `filtering_applied` is `true`.
FilteredExecutedTotalActionCount uint32 `protobuf:"varint,45,opt,name=filtered_executed_total_action_count,json=filteredExecutedTotalActionCount,proto3" json:"filtered_executed_total_action_count,omitempty"`
// This was a single string element representing a public key (eos-go#ecc.PublicKey).
// It has been replaced by `valid_block_signing_authority_v2`.
BlockSigningKey string `protobuf:"bytes,14,opt,name=block_signing_key,json=blockSigningKey,proto3" json:"block_signing_key,omitempty"`
// This was a list of `{name, publicKey}` elements, each block being signed by a single key,
// the schedule was simply a list of pair, each pair being the producer name and it's public key
// used to sign the block.
ActiveScheduleV1 *ProducerSchedule `protobuf:"bytes,10,opt,name=active_schedule_v1,json=activeScheduleV1,proto3" json:"active_schedule_v1,omitempty"`
// This replaces `block_signing_key` with a richer structure
// able to handle the weighted threshold multisig for block producers.
//
// This can be downgraded to the old `block_signing_key` simply by taking
// the first key present in the list. This is of course simple and not
// accurate anymore in EOSIO 2.0 system where `WTMSIG_BLOCK_SIGNATURES`
// has been activated AND block producers starts signing blocks with
// more than one key.
//
// See BlockSigningAuthority for further details
ValidBlockSigningAuthorityV2 *BlockSigningAuthority `protobuf:"bytes,30,opt,name=valid_block_signing_authority_v2,json=validBlockSigningAuthorityV2,proto3" json:"valid_block_signing_authority_v2,omitempty"`
// This repleaces the old type `ProducerSchedule` for the `active_schedule`
// field. This was only a type change in EOSIO 2.0, the field's name remained
// the same.
//
// This is the new schedule data layout which is richer than it's oldest
// counterpart. The inner element for a producer can then be composed with
// multiple keys, each with their own weight and the threshold required to
// accept the block signature.
ActiveScheduleV2 *ProducerAuthoritySchedule `protobuf:"bytes,31,opt,name=active_schedule_v2,json=activeScheduleV2,proto3" json:"active_schedule_v2,omitempty"`
// Wheter or not a filtering process was run on this block. The filtering process sets to nil
// the `unfiltered_transaction_traces` to `nil` and populate the `filtered_transaction_traces`
// according to the `filtering_include_filter_expr` and `filtering_exclude_filter_expr` CEL
// expressions. A transaction will be present in the `filtered_transaction_traces` array if
// it matched the `filtering_include_filter_expr` and did *NOT* match the `filtering_exclude_filter_expr`.
//
// Moreover, each matching action that brought the transaction to be in `filtered_transaction_traces`
// array will have a `filtering_matched` flag set on it to broadcast the fact that this action
// match the inclusion/exclusion list.
//
// This flag controls all `filtered_*` and `unfiltered_*` elements on the Block structure and on
// substructures if present.
FilteringApplied bool `protobuf:"varint,40,opt,name=filtering_applied,json=filteringApplied,proto3" json:"filtering_applied,omitempty"`
// The CEL filter expression used to include transaction in `filtered_transaction_traces` array, works
// in combination with `filtering_exclude_filter_expr` value.
FilteringIncludeFilterExpr string `protobuf:"bytes,41,opt,name=filtering_include_filter_expr,json=filteringIncludeFilterExpr,proto3" json:"filtering_include_filter_expr,omitempty"`
// The CEL filter expression used to exclude transaction in `filtered_transaction_traces` array, works
// in combination with `filtering_include_filter_expr` value.
FilteringExcludeFilterExpr string `protobuf:"bytes,42,opt,name=filtering_exclude_filter_expr,json=filteringExcludeFilterExpr,proto3" json:"filtering_exclude_filter_expr,omitempty"`
// The CEL filter expression used to include system actions, required by some systems, works
// in combination with the two other filters above.
FilteringSystemActionsIncludeFilterExpr string `protobuf:"bytes,50,opt,name=filtering_system_actions_include_filter_expr,json=filteringSystemActionsIncludeFilterExpr,proto3" json:"filtering_system_actions_include_filter_expr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Block) Reset() { *m = Block{} }
func (m *Block) String() string { return proto.CompactTextString(m) }
func (*Block) ProtoMessage() {}
func (*Block) Descriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{0}
}
func (m *Block) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Block.Unmarshal(m, b)
}
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
}
func (m *Block) XXX_Merge(src proto.Message) {
xxx_messageInfo_Block.Merge(m, src)
}
func (m *Block) XXX_Size() int {
return xxx_messageInfo_Block.Size(m)
}
func (m *Block) XXX_DiscardUnknown() {
xxx_messageInfo_Block.DiscardUnknown(m)
}
var xxx_messageInfo_Block proto.InternalMessageInfo
func (m *Block) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Block) GetNumber() uint32 {
if m != nil {
return m.Number
}
return 0
}
func (m *Block) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *Block) GetHeader() *BlockHeader {
if m != nil {
return m.Header
}
return nil
}
func (m *Block) GetProducerSignature() string {
if m != nil {
return m.ProducerSignature
}
return ""
}
func (m *Block) GetBlockExtensions() []*Extension {
if m != nil {
return m.BlockExtensions
}
return nil
}
func (m *Block) GetDposProposedIrreversibleBlocknum() uint32 {
if m != nil {
return m.DposProposedIrreversibleBlocknum
}
return 0
}
func (m *Block) GetDposIrreversibleBlocknum() uint32 {
if m != nil {
return m.DposIrreversibleBlocknum
}
return 0
}
func (m *Block) GetBlockrootMerkle() *BlockRootMerkle {
if m != nil {
return m.BlockrootMerkle
}
return nil
}
func (m *Block) GetProducerToLastProduced() []*ProducerToLastProduced {
if m != nil {
return m.ProducerToLastProduced
}
return nil
}
func (m *Block) GetProducerToLastImpliedIrb() []*ProducerToLastImpliedIRB {
if m != nil {
return m.ProducerToLastImpliedIrb
}
return nil
}
func (m *Block) GetConfirmCount() []uint32 {
if m != nil {
return m.ConfirmCount
}
return nil
}
func (m *Block) GetPendingSchedule() *PendingProducerSchedule {
if m != nil {
return m.PendingSchedule
}
return nil
}
func (m *Block) GetActivatedProtocolFeatures() *ActivatedProtocolFeatures {
if m != nil {
return m.ActivatedProtocolFeatures
}
return nil
}
func (m *Block) GetValidated() bool {
if m != nil {
return m.Validated
}
return false
}
func (m *Block) GetRlimitOps() []*RlimitOp {
if m != nil {
return m.RlimitOps
}
return nil
}
func (m *Block) GetUnfilteredTransactions() []*TransactionReceipt {
if m != nil {
return m.UnfilteredTransactions
}
return nil
}
func (m *Block) GetFilteredTransactions() []*TransactionReceipt {
if m != nil {
return m.FilteredTransactions
}
return nil
}
func (m *Block) GetUnfilteredTransactionCount() uint32 {
if m != nil {
return m.UnfilteredTransactionCount
}
return 0
}
func (m *Block) GetFilteredTransactionCount() uint32 {
if m != nil {
return m.FilteredTransactionCount
}
return 0
}
func (m *Block) GetUnfilteredImplicitTransactionOps() []*TrxOp {
if m != nil {
return m.UnfilteredImplicitTransactionOps
}
return nil
}
func (m *Block) GetFilteredImplicitTransactionOps() []*TrxOp {
if m != nil {
return m.FilteredImplicitTransactionOps
}
return nil
}
func (m *Block) GetUnfilteredTransactionTraces() []*TransactionTrace {
if m != nil {
return m.UnfilteredTransactionTraces
}
return nil
}
func (m *Block) GetFilteredTransactionTraces() []*TransactionTrace {
if m != nil {
return m.FilteredTransactionTraces
}
return nil
}
func (m *Block) GetUnfilteredTransactionTraceCount() uint32 {
if m != nil {
return m.UnfilteredTransactionTraceCount
}
return 0
}
func (m *Block) GetFilteredTransactionTraceCount() uint32 {
if m != nil {
return m.FilteredTransactionTraceCount
}
return 0
}
func (m *Block) GetUnfilteredExecutedInputActionCount() uint32 {
if m != nil {
return m.UnfilteredExecutedInputActionCount
}
return 0
}
func (m *Block) GetFilteredExecutedInputActionCount() uint32 {
if m != nil {
return m.FilteredExecutedInputActionCount
}
return 0
}
func (m *Block) GetUnfilteredExecutedTotalActionCount() uint32 {
if m != nil {
return m.UnfilteredExecutedTotalActionCount
}
return 0
}
func (m *Block) GetFilteredExecutedTotalActionCount() uint32 {
if m != nil {
return m.FilteredExecutedTotalActionCount
}
return 0
}
func (m *Block) GetBlockSigningKey() string {
if m != nil {
return m.BlockSigningKey
}
return ""
}
func (m *Block) GetActiveScheduleV1() *ProducerSchedule {
if m != nil {
return m.ActiveScheduleV1
}
return nil
}
func (m *Block) GetValidBlockSigningAuthorityV2() *BlockSigningAuthority {
if m != nil {
return m.ValidBlockSigningAuthorityV2
}
return nil
}
func (m *Block) GetActiveScheduleV2() *ProducerAuthoritySchedule {
if m != nil {
return m.ActiveScheduleV2
}
return nil
}
func (m *Block) GetFilteringApplied() bool {
if m != nil {
return m.FilteringApplied
}
return false
}
func (m *Block) GetFilteringIncludeFilterExpr() string {
if m != nil {
return m.FilteringIncludeFilterExpr
}
return ""
}
func (m *Block) GetFilteringExcludeFilterExpr() string {
if m != nil {
return m.FilteringExcludeFilterExpr
}
return ""
}
func (m *Block) GetFilteringSystemActionsIncludeFilterExpr() string {
if m != nil {
return m.FilteringSystemActionsIncludeFilterExpr
}
return ""
}
// BlockWithRefs is a lightweight block, with traces and transactions
// purged from the `block` within, and only. It is used in transports
// to pass block data around.
type BlockWithRefs struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
ImplicitTransactionRefs *TransactionRefs `protobuf:"bytes,3,opt,name=implicit_transaction_refs,json=implicitTransactionRefs,proto3" json:"implicit_transaction_refs,omitempty"`
TransactionRefs *TransactionRefs `protobuf:"bytes,4,opt,name=transaction_refs,json=transactionRefs,proto3" json:"transaction_refs,omitempty"`
TransactionTraceRefs *TransactionRefs `protobuf:"bytes,5,opt,name=transaction_trace_refs,json=transactionTraceRefs,proto3" json:"transaction_trace_refs,omitempty"`
Irreversible bool `protobuf:"varint,6,opt,name=irreversible,proto3" json:"irreversible,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlockWithRefs) Reset() { *m = BlockWithRefs{} }
func (m *BlockWithRefs) String() string { return proto.CompactTextString(m) }
func (*BlockWithRefs) ProtoMessage() {}
func (*BlockWithRefs) Descriptor() ([]byte, []int) {
return fileDescriptor_3286b8d338e80dff, []int{1}