-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathabi.cpp
740 lines (738 loc) · 34.9 KB
/
abi.cpp
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
extern const char* const state_history_plugin_abi = R"({
"version": "eosio::abi/1.1",
"structs": [
{
"name": "get_status_request_v0", "fields": []
},
{
"name": "get_status_request_v1", "fields": []
},
{
"name": "block_position", "fields": [
{ "name": "block_num", "type": "uint32" },
{ "name": "block_id", "type": "checksum256" }
]
},
{
"name": "get_status_result_v0", "fields": [
{ "name": "head", "type": "block_position" },
{ "name": "last_irreversible", "type": "block_position" },
{ "name": "trace_begin_block", "type": "uint32" },
{ "name": "trace_end_block", "type": "uint32" },
{ "name": "chain_state_begin_block", "type": "uint32" },
{ "name": "chain_state_end_block", "type": "uint32" },
{ "name": "chain_id", "type": "checksum256$" }
]
},
{
"name": "get_status_result_v1", "fields": [
{ "name": "head", "type": "block_position" },
{ "name": "last_irreversible", "type": "block_position" },
{ "name": "trace_begin_block", "type": "uint32" },
{ "name": "trace_end_block", "type": "uint32" },
{ "name": "chain_state_begin_block", "type": "uint32" },
{ "name": "chain_state_end_block", "type": "uint32" },
{ "name": "chain_id", "type": "checksum256" },
{ "name": "finality_data_begin_block", "type": "uint32" },
{ "name": "finality_data_end_block", "type": "uint32" }
]
},
{
"name": "get_blocks_request_v0", "fields": [
{ "name": "start_block_num", "type": "uint32" },
{ "name": "end_block_num", "type": "uint32" },
{ "name": "max_messages_in_flight", "type": "uint32" },
{ "name": "have_positions", "type": "block_position[]" },
{ "name": "irreversible_only", "type": "bool" },
{ "name": "fetch_block", "type": "bool" },
{ "name": "fetch_traces", "type": "bool" },
{ "name": "fetch_deltas", "type": "bool" }
]
},
{
"name": "get_blocks_request_v1", "fields": [
{ "name": "start_block_num", "type": "uint32" },
{ "name": "end_block_num", "type": "uint32" },
{ "name": "max_messages_in_flight", "type": "uint32" },
{ "name": "have_positions", "type": "block_position[]" },
{ "name": "irreversible_only", "type": "bool" },
{ "name": "fetch_block", "type": "bool" },
{ "name": "fetch_traces", "type": "bool" },
{ "name": "fetch_deltas", "type": "bool" },
{ "name": "fetch_finality_data", "type": "bool" }
]
},
{
"name": "get_blocks_ack_request_v0", "fields": [
{ "name": "num_messages", "type": "uint32" }
]
},
{
"name": "get_blocks_result_v0", "fields": [
{ "name": "head", "type": "block_position" },
{ "name": "last_irreversible", "type": "block_position" },
{ "name": "this_block", "type": "block_position?" },
{ "name": "prev_block", "type": "block_position?" },
{ "name": "block", "type": "bytes?" },
{ "name": "traces", "type": "bytes?" },
{ "name": "deltas", "type": "bytes?" }
]
},
{
"name": "get_blocks_result_v1", "fields": [
{ "name": "head", "type": "block_position" },
{ "name": "last_irreversible", "type": "block_position" },
{ "name": "this_block", "type": "block_position?" },
{ "name": "prev_block", "type": "block_position?" },
{ "name": "block", "type": "bytes?" },
{ "name": "traces", "type": "bytes?" },
{ "name": "deltas", "type": "bytes?" },
{ "name": "finality_data", "type": "bytes?" }
]
},
{
"name": "row", "fields": [
{ "name": "present", "type": "bool" },
{ "name": "data", "type": "bytes" }
]
},
{
"name": "table_delta_v0", "fields": [
{ "name": "name", "type": "string" },
{ "name": "rows", "type": "row[]" }
]
},
{
"name": "action", "fields": [
{ "name": "account", "type": "name" },
{ "name": "name", "type": "name" },
{ "name": "authorization", "type": "permission_level[]" },
{ "name": "data", "type": "bytes" }
]
},
{
"name": "account_auth_sequence", "fields": [
{ "name": "account", "type": "name" },
{ "name": "sequence", "type": "uint64" }
]
},
{
"name": "action_receipt_v0", "fields": [
{ "name": "receiver", "type": "name" },
{ "name": "act_digest", "type": "checksum256" },
{ "name": "global_sequence", "type": "uint64" },
{ "name": "recv_sequence", "type": "uint64" },
{ "name": "auth_sequence", "type": "account_auth_sequence[]" },
{ "name": "code_sequence", "type": "varuint32" },
{ "name": "abi_sequence", "type": "varuint32" }
]
},
{
"name": "account_delta", "fields": [
{ "name": "account", "type": "name" },
{ "name": "delta", "type": "int64" }
]
},
{
"name": "action_trace_v0", "fields": [
{ "name": "action_ordinal", "type": "varuint32" },
{ "name": "creator_action_ordinal", "type": "varuint32" },
{ "name": "receipt", "type": "action_receipt?" },
{ "name": "receiver", "type": "name" },
{ "name": "act", "type": "action" },
{ "name": "context_free", "type": "bool" },
{ "name": "elapsed", "type": "int64" },
{ "name": "console", "type": "string" },
{ "name": "account_ram_deltas", "type": "account_delta[]" },
{ "name": "except", "type": "string?" },
{ "name": "error_code", "type": "uint64?" }
]
},
{
"name": "action_trace_v1", "fields": [
{ "name": "action_ordinal", "type": "varuint32" },
{ "name": "creator_action_ordinal", "type": "varuint32" },
{ "name": "receipt", "type": "action_receipt?" },
{ "name": "receiver", "type": "name" },
{ "name": "act", "type": "action" },
{ "name": "context_free", "type": "bool" },
{ "name": "elapsed", "type": "int64" },
{ "name": "console", "type": "string" },
{ "name": "account_ram_deltas", "type": "account_delta[]" },
{ "name": "except", "type": "string?" },
{ "name": "error_code", "type": "uint64?" },
{ "name": "return_value", "type": "bytes"}
]
},
{
"name": "partial_transaction_v0", "fields": [
{ "name": "expiration", "type": "time_point_sec" },
{ "name": "ref_block_num", "type": "uint16" },
{ "name": "ref_block_prefix", "type": "uint32" },
{ "name": "max_net_usage_words", "type": "varuint32" },
{ "name": "max_cpu_usage_ms", "type": "uint8" },
{ "name": "delay_sec", "type": "varuint32" },
{ "name": "transaction_extensions", "type": "extension[]" },
{ "name": "signatures", "type": "signature[]" },
{ "name": "context_free_data", "type": "bytes[]" }
]
},
{
"name": "transaction_trace_v0", "fields": [
{ "name": "id", "type": "checksum256" },
{ "name": "status", "type": "uint8" },
{ "name": "cpu_usage_us", "type": "uint32" },
{ "name": "net_usage_words", "type": "varuint32" },
{ "name": "elapsed", "type": "int64" },
{ "name": "net_usage", "type": "uint64" },
{ "name": "scheduled", "type": "bool" },
{ "name": "action_traces", "type": "action_trace[]" },
{ "name": "account_ram_delta", "type": "account_delta?" },
{ "name": "except", "type": "string?" },
{ "name": "error_code", "type": "uint64?" },
{ "name": "failed_dtrx_trace", "type": "transaction_trace?" },
{ "name": "partial", "type": "partial_transaction?" }
]
},
{
"name": "packed_transaction", "fields": [
{ "name": "signatures", "type": "signature[]" },
{ "name": "compression", "type": "uint8" },
{ "name": "packed_context_free_data", "type": "bytes" },
{ "name": "packed_trx", "type": "bytes" }
]
},
{
"name": "transaction_receipt_header", "fields": [
{ "name": "status", "type": "uint8" },
{ "name": "cpu_usage_us", "type": "uint32" },
{ "name": "net_usage_words", "type": "varuint32" }
]
},
{
"name": "transaction_receipt", "base": "transaction_receipt_header", "fields": [
{ "name": "trx", "type": "transaction_variant" }
]
},
{
"name": "extension", "fields": [
{ "name": "type", "type": "uint16" },
{ "name": "data", "type": "bytes" }
]
},
{
"name": "block_header", "fields": [
{ "name": "timestamp", "type": "block_timestamp_type" },
{ "name": "producer", "type": "name" },
{ "name": "confirmed", "type": "uint16" },
{ "name": "previous", "type": "checksum256" },
{ "name": "transaction_mroot", "type": "checksum256" },
{ "name": "action_mroot", "type": "checksum256" },
{ "name": "schedule_version", "type": "uint32" },
{ "name": "new_producers", "type": "producer_schedule?" },
{ "name": "header_extensions", "type": "extension[]" }
]
},
{
"name": "signed_block_header", "base": "block_header", "fields": [
{ "name": "producer_signature", "type": "signature" }
]
},
{
"name": "signed_block", "base": "signed_block_header", "fields": [
{ "name": "transactions", "type": "transaction_receipt[]" },
{ "name": "block_extensions", "type": "extension[]" }
]
},
{ "name": "transaction_header", "fields": [
{ "name": "expiration", "type": "time_point_sec" },
{ "name": "ref_block_num", "type": "uint16" },
{ "name": "ref_block_prefix", "type": "uint32" },
{ "name": "max_net_usage_words", "type": "varuint32" },
{ "name": "max_cpu_usage_ms", "type": "uint8" },
{ "name": "delay_sec", "type": "varuint32" }
]
},
{ "name": "transaction", "base": "transaction_header", "fields": [
{ "name": "context_free_actions", "type": "action[]" },
{ "name": "actions", "type": "action[]" },
{ "name": "transaction_extensions", "type": "extension[]" }
]
},
{
"name": "code_id", "fields": [
{ "type": "uint8", "name": "vm_type" },
{ "type": "uint8", "name": "vm_version" },
{ "type": "checksum256", "name": "code_hash" }
]
},
{
"name": "account_v0", "fields": [
{ "type": "name", "name": "name" },
{ "type": "block_timestamp_type", "name": "creation_date" },
{ "type": "bytes", "name": "abi" }
]
},
{
"name": "account_metadata_v0", "fields": [
{ "type": "name", "name": "name" },
{ "type": "bool", "name": "privileged" },
{ "type": "time_point", "name": "last_code_update" },
{ "type": "code_id?", "name": "code" }
]
},
{
"name": "code_v0", "fields": [
{ "type": "uint8", "name": "vm_type" },
{ "type": "uint8", "name": "vm_version" },
{ "type": "checksum256", "name": "code_hash" },
{ "type": "bytes", "name": "code" }
]
},
{
"name": "contract_table_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "name", "name": "payer" }
]
},
{
"name": "contract_row_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "bytes", "name": "value" }
]
},
{
"name": "contract_index64_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "uint64", "name": "secondary_key" }
]
},
{
"name": "contract_index128_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "uint128", "name": "secondary_key" }
]
},
{
"name": "contract_index256_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "checksum256", "name": "secondary_key" }
]
},
{
"name": "contract_index_double_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "float64", "name": "secondary_key" }
]
},
{
"name": "contract_index_long_double_v0", "fields": [
{ "type": "name", "name": "code" },
{ "type": "name", "name": "scope" },
{ "type": "name", "name": "table" },
{ "type": "uint64", "name": "primary_key" },
{ "type": "name", "name": "payer" },
{ "type": "float128", "name": "secondary_key" }
]
},
{
"name": "producer_key", "fields": [
{ "type": "name", "name": "producer_name" },
{ "type": "public_key", "name": "block_signing_key" }
]
},
{
"name": "producer_schedule", "fields": [
{ "type": "uint32", "name": "version" },
{ "type": "producer_key[]", "name": "producers" }
]
},
{
"name": "block_signing_authority_v0", "fields": [
{ "type": "uint32", "name": "threshold" },
{ "type": "key_weight[]", "name": "keys" }
]
},
{
"name": "producer_authority", "fields": [
{ "type": "name", "name": "producer_name" },
{ "type": "block_signing_authority", "name": "authority" }
]
},
{
"name": "producer_authority_schedule", "fields": [
{ "type": "uint32", "name": "version" },
{ "type": "producer_authority[]", "name": "producers" }
]
},
{
"name": "chain_config_v0", "fields": [
{ "type": "uint64", "name": "max_block_net_usage" },
{ "type": "uint32", "name": "target_block_net_usage_pct" },
{ "type": "uint32", "name": "max_transaction_net_usage" },
{ "type": "uint32", "name": "base_per_transaction_net_usage" },
{ "type": "uint32", "name": "net_usage_leeway" },
{ "type": "uint32", "name": "context_free_discount_net_usage_num" },
{ "type": "uint32", "name": "context_free_discount_net_usage_den" },
{ "type": "uint32", "name": "max_block_cpu_usage" },
{ "type": "uint32", "name": "target_block_cpu_usage_pct" },
{ "type": "uint32", "name": "max_transaction_cpu_usage" },
{ "type": "uint32", "name": "min_transaction_cpu_usage" },
{ "type": "uint32", "name": "max_transaction_lifetime" },
{ "type": "uint32", "name": "deferred_trx_expiration_window" },
{ "type": "uint32", "name": "max_transaction_delay" },
{ "type": "uint32", "name": "max_inline_action_size" },
{ "type": "uint16", "name": "max_inline_action_depth" },
{ "type": "uint16", "name": "max_authority_depth" }
]
},
{
"name": "chain_config_v1", "fields": [
{ "type": "uint64", "name": "max_block_net_usage" },
{ "type": "uint32", "name": "target_block_net_usage_pct" },
{ "type": "uint32", "name": "max_transaction_net_usage" },
{ "type": "uint32", "name": "base_per_transaction_net_usage" },
{ "type": "uint32", "name": "net_usage_leeway" },
{ "type": "uint32", "name": "context_free_discount_net_usage_num" },
{ "type": "uint32", "name": "context_free_discount_net_usage_den" },
{ "type": "uint32", "name": "max_block_cpu_usage" },
{ "type": "uint32", "name": "target_block_cpu_usage_pct" },
{ "type": "uint32", "name": "max_transaction_cpu_usage" },
{ "type": "uint32", "name": "min_transaction_cpu_usage" },
{ "type": "uint32", "name": "max_transaction_lifetime" },
{ "type": "uint32", "name": "deferred_trx_expiration_window" },
{ "type": "uint32", "name": "max_transaction_delay" },
{ "type": "uint32", "name": "max_inline_action_size" },
{ "type": "uint16", "name": "max_inline_action_depth" },
{ "type": "uint16", "name": "max_authority_depth" },
{ "type": "uint32", "name": "max_action_return_value_size" }
]
},
{
"name": "wasm_config_v0", "fields": [
{ "type": "uint32", "name": "max_mutable_global_bytes" },
{ "type": "uint32", "name": "max_table_elements" },
{ "type": "uint32", "name": "max_section_elements" },
{ "type": "uint32", "name": "max_linear_memory_init" },
{ "type": "uint32", "name": "max_func_local_bytes" },
{ "type": "uint32", "name": "max_nested_structures" },
{ "type": "uint32", "name": "max_symbol_bytes" },
{ "type": "uint32", "name": "max_module_bytes" },
{ "type": "uint32", "name": "max_code_bytes" },
{ "type": "uint32", "name": "max_pages" },
{ "type": "uint32", "name": "max_call_depth" }
]
},
{
"name": "global_property_v0", "fields": [
{ "type": "uint32?", "name": "proposed_schedule_block_num" },
{ "type": "producer_schedule", "name": "proposed_schedule" },
{ "type": "chain_config", "name": "configuration" }
]
},
{
"name": "global_property_v1", "fields": [
{ "type": "uint32?", "name": "proposed_schedule_block_num" },
{ "type": "producer_authority_schedule", "name": "proposed_schedule" },
{ "type": "chain_config", "name": "configuration" },
{ "type": "checksum256", "name": "chain_id" },
{ "type": "wasm_config$", "name": "wasm_configuration" }
]
},
{
"name": "generated_transaction_v0", "fields": [
{ "type": "name", "name": "sender" },
{ "type": "uint128", "name": "sender_id" },
{ "type": "name", "name": "payer" },
{ "type": "checksum256", "name": "trx_id" },
{ "type": "bytes", "name": "packed_trx" }
]
},
{
"name": "activated_protocol_feature_v0", "fields": [
{ "type": "checksum256", "name": "feature_digest" },
{ "type": "uint32", "name": "activation_block_num" }
]
},
{
"name": "protocol_state_v0", "fields": [
{ "type": "activated_protocol_feature[]", "name": "activated_protocol_features" }
]
},
{
"name": "key_weight", "fields": [
{ "type": "public_key", "name": "key" },
{ "type": "uint16", "name": "weight" }
]
},
{
"name": "permission_level", "fields": [
{ "type": "name", "name": "actor" },
{ "type": "name", "name": "permission" }
]
},
{
"name": "permission_level_weight", "fields": [
{ "type": "permission_level", "name": "permission" },
{ "type": "uint16", "name": "weight" }
]
},
{
"name": "wait_weight", "fields": [
{ "type": "uint32", "name": "wait_sec" },
{ "type": "uint16", "name": "weight" }
]
},
{
"name": "authority", "fields": [
{ "type": "uint32", "name": "threshold" },
{ "type": "key_weight[]", "name": "keys" },
{ "type": "permission_level_weight[]", "name": "accounts" },
{ "type": "wait_weight[]", "name": "waits" }
]
},
{
"name": "permission_v0", "fields": [
{ "type": "name", "name": "owner" },
{ "type": "name", "name": "name" },
{ "type": "name", "name": "parent" },
{ "type": "time_point", "name": "last_updated" },
{ "type": "authority", "name": "auth" }
]
},
{
"name": "permission_link_v0", "fields": [
{ "type": "name", "name": "account" },
{ "type": "name", "name": "code" },
{ "type": "name", "name": "message_type" },
{ "type": "name", "name": "required_permission" }
]
},
{
"name": "resource_limits_v0", "fields": [
{ "type": "name", "name": "owner" },
{ "type": "int64", "name": "net_weight" },
{ "type": "int64", "name": "cpu_weight" },
{ "type": "int64", "name": "ram_bytes" }
]
},
{
"name": "usage_accumulator_v0", "fields": [
{ "type": "uint32", "name": "last_ordinal" },
{ "type": "uint64", "name": "value_ex" },
{ "type": "uint64", "name": "consumed" }
]
},
{
"name": "resource_usage_v0", "fields": [
{ "type": "name", "name": "owner" },
{ "type": "usage_accumulator", "name": "net_usage" },
{ "type": "usage_accumulator", "name": "cpu_usage" },
{ "type": "uint64", "name": "ram_usage" }
]
},
{
"name": "resource_limits_state_v0", "fields": [
{ "type": "usage_accumulator", "name": "average_block_net_usage" },
{ "type": "usage_accumulator", "name": "average_block_cpu_usage" },
{ "type": "uint64", "name": "total_net_weight" },
{ "type": "uint64", "name": "total_cpu_weight" },
{ "type": "uint64", "name": "total_ram_bytes" },
{ "type": "uint64", "name": "virtual_net_limit" },
{ "type": "uint64", "name": "virtual_cpu_limit" }
]
},
{
"name": "resource_limits_ratio_v0", "fields": [
{ "type": "uint64", "name": "numerator" },
{ "type": "uint64", "name": "denominator" }
]
},
{
"name": "elastic_limit_parameters_v0", "fields": [
{ "type": "uint64", "name": "target" },
{ "type": "uint64", "name": "max" },
{ "type": "uint32", "name": "periods" },
{ "type": "uint32", "name": "max_multiplier" },
{ "type": "resource_limits_ratio", "name": "contract_rate" },
{ "type": "resource_limits_ratio", "name": "expand_rate" }
]
},
{
"name": "resource_limits_config_v0", "fields": [
{ "type": "elastic_limit_parameters", "name": "cpu_limit_parameters" },
{ "type": "elastic_limit_parameters", "name": "net_limit_parameters" },
{ "type": "uint32", "name": "account_cpu_usage_average_window" },
{ "type": "uint32", "name": "account_net_usage_average_window" }
]
},
{
"name": "finalizer_authority", "fields": [
{ "name": "description", "type": "string" },
{ "name": "weight", "type": "uint64" },
{ "name": "public_key", "type": "bytes" }
]
},
{
"name": "finalizer_authority_with_string_key", "fields": [
{ "name": "description", "type": "string" },
{ "name": "weight", "type": "uint64" },
{ "name": "public_key", "type": "string" }
]
},
{
"name": "finalizer_policy_with_string_key", "fields": [
{ "name": "generation", "type": "uint32" },
{ "name": "threshold", "type": "uint64" },
{ "name": "finalizers", "type": "finalizer_authority_with_string_key[]" }
]
},
{
"name": "finality_data", "fields": [
{ "name": "major_version", "type": "uint32" },
{ "name": "minor_version", "type": "uint32" },
{ "name": "active_finalizer_policy_generation", "type": "uint32" },
{ "name": "action_mroot", "type": "checksum256" },
{ "name": "reversible_blocks_mroot", "type": "checksum256" },
{ "name": "latest_qc_claim_block_num", "type": "uint32" },
{ "name": "latest_qc_claim_finality_digest", "type": "checksum256" },
{ "name": "latest_qc_claim_timestamp", "type": "block_timestamp_type" },
{ "name": "base_digest", "type": "checksum256" },
{ "name": "pending_finalizer_policy", "type": "finalizer_policy_with_string_key?" },
{ "name": "last_pending_finalizer_policy_generation", "type": "uint32" }
]
},
{
"name": "protocol_feature_activation_extension", "fields": [
{ "name": "protocol_features", "type": "checksum256[]" }
]
},
{
"name": "producer_schedule_change_extension", "base": "producer_authority_schedule", "fields": []
},
{
"name": "qc_claim", "fields": [
{ "name": "block_num", "type": "uint32" },
{ "name": "is_strong_qc", "type": "bool" }
]
},
{
"name": "insert_finalizer_policy_index_pair", "fields": [
{ "name": "index", "type": "uint16" },
{ "name": "value", "type": "finalizer_authority" }
]
},
{
"name": "finalizer_policy_diff", "fields": [
{ "name": "generation", "type": "uint32" },
{ "name": "threshold", "type": "uint64" },
{ "name": "remove_indexes", "type": "uint16[]" },
{ "name": "insert_indexes", "type": "insert_finalizer_policy_index_pair[]" }
]
},
{
"name": "insert_proposer_policy_index_pair", "fields": [
{ "name": "index", "type": "uint16" },
{ "name": "value", "type": "producer_authority" }
]
},
{
"name": "proposer_policy_diff", "fields": [
{ "name": "version", "type": "uint32" },
{ "name": "proposal_time", "type": "block_timestamp_type" },
{ "name": "remove_indexes", "type": "uint16[]" },
{ "name": "insert_indexes", "type": "insert_proposer_policy_index_pair[]" }
]
},
{
"name": "finality_extension", "fields": [
{ "name": "qc_claim", "type": "qc_claim" },
{ "name": "new_finalizer_policy_diff", "type": "finalizer_policy_diff?" },
{ "name": "new_proposer_policy_diff", "type": "proposer_policy_diff?" }
]
}
],
"types": [
{ "new_type_name": "transaction_id", "type": "checksum256" }
],
"variants": [
{ "name": "request", "types": ["get_status_request_v0", "get_blocks_request_v0", "get_blocks_ack_request_v0", "get_blocks_request_v1", "get_status_request_v1"] },
{ "name": "result", "types": ["get_status_result_v0", "get_blocks_result_v0", "get_blocks_result_v1", "get_status_result_v1"] },
{ "name": "action_receipt", "types": ["action_receipt_v0"] },
{ "name": "action_trace", "types": ["action_trace_v0", "action_trace_v1"] },
{ "name": "partial_transaction", "types": ["partial_transaction_v0"] },
{ "name": "transaction_trace", "types": ["transaction_trace_v0"] },
{ "name": "transaction_variant", "types": ["transaction_id", "packed_transaction"] },
{ "name": "table_delta", "types": ["table_delta_v0"] },
{ "name": "account", "types": ["account_v0"] },
{ "name": "account_metadata", "types": ["account_metadata_v0"] },
{ "name": "code", "types": ["code_v0"] },
{ "name": "contract_table", "types": ["contract_table_v0"] },
{ "name": "contract_row", "types": ["contract_row_v0"] },
{ "name": "contract_index64", "types": ["contract_index64_v0"] },
{ "name": "contract_index128", "types": ["contract_index128_v0"] },
{ "name": "contract_index256", "types": ["contract_index256_v0"] },
{ "name": "contract_index_double", "types": ["contract_index_double_v0"] },
{ "name": "contract_index_long_double", "types": ["contract_index_long_double_v0"] },
{ "name": "chain_config", "types": ["chain_config_v0", "chain_config_v1"] },
{ "name": "wasm_config", "types": ["wasm_config_v0"] },
{ "name": "global_property", "types": ["global_property_v0", "global_property_v1"] },
{ "name": "generated_transaction", "types": ["generated_transaction_v0"] },
{ "name": "activated_protocol_feature", "types": ["activated_protocol_feature_v0"] },
{ "name": "protocol_state", "types": ["protocol_state_v0"] },
{ "name": "permission", "types": ["permission_v0"] },
{ "name": "permission_link", "types": ["permission_link_v0"] },
{ "name": "resource_limits", "types": ["resource_limits_v0"] },
{ "name": "usage_accumulator", "types": ["usage_accumulator_v0"] },
{ "name": "resource_usage", "types": ["resource_usage_v0"] },
{ "name": "resource_limits_state", "types": ["resource_limits_state_v0"] },
{ "name": "resource_limits_ratio", "types": ["resource_limits_ratio_v0"] },
{ "name": "elastic_limit_parameters", "types": ["elastic_limit_parameters_v0"] },
{ "name": "resource_limits_config", "types": ["resource_limits_config_v0"] },
{ "name": "block_signing_authority", "types": ["block_signing_authority_v0"] },
{ "name": "block_header_extension", "types": ["protocol_feature_activation_extension", "producer_schedule_change_extension", "finality_extension"] }
],
"tables": [
{ "name": "account", "type": "account", "key_names": ["name"] },
{ "name": "account_metadata", "type": "account_metadata", "key_names": ["name"] },
{ "name": "code", "type": "code", "key_names": ["vm_type", "vm_version", "code_hash"] },
{ "name": "contract_table", "type": "contract_table", "key_names": ["code", "scope", "table"] },
{ "name": "contract_row", "type": "contract_row", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "contract_index64", "type": "contract_index64", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "contract_index128", "type": "contract_index128", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "contract_index256", "type": "contract_index256", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "contract_index_double", "type": "contract_index_double", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "contract_index_long_double", "type": "contract_index_long_double", "key_names": ["code", "scope", "table", "primary_key"] },
{ "name": "global_property", "type": "global_property", "key_names": [] },
{ "name": "generated_transaction", "type": "generated_transaction", "key_names": ["sender", "sender_id"] },
{ "name": "protocol_state", "type": "protocol_state", "key_names": [] },
{ "name": "permission", "type": "permission", "key_names": ["owner", "name"] },
{ "name": "permission_link", "type": "permission_link", "key_names": ["account", "code", "message_type"] },
{ "name": "resource_limits", "type": "resource_limits", "key_names": ["owner"] },
{ "name": "resource_usage", "type": "resource_usage", "key_names": ["owner"] },
{ "name": "resource_limits_state", "type": "resource_limits_state", "key_names": [] },
{ "name": "resource_limits_config", "type": "resource_limits_config", "key_names": [] }
]
})";