@eosrio/node-abieos 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +4 -1
  2. package/dist/abieos.node +0 -0
  3. package/lib/abieos.d.ts +19 -0
  4. package/lib/abieos.d.ts.map +1 -0
  5. package/lib/abieos.js +100 -0
  6. package/lib/abieos.ts +107 -0
  7. package/package.json +13 -8
  8. package/.idea/modules.xml +0 -8
  9. package/.idea/node-abieos.iml +0 -12
  10. package/.idea/vcs.xml +0 -9
  11. package/.idea/workspace.xml +0 -66
  12. package/CMakeLists.txt +0 -35
  13. package/abieos.d.ts +0 -21
  14. package/abieos.js +0 -59
  15. package/eosio.json +0 -1596
  16. package/include/.clang-format +0 -76
  17. package/include/eosio/abi.hpp +0 -393
  18. package/include/eosio/asset.hpp +0 -458
  19. package/include/eosio/bytes.hpp +0 -27
  20. package/include/eosio/chain_conversions.hpp +0 -450
  21. package/include/eosio/chain_types.hpp +0 -14
  22. package/include/eosio/check.hpp +0 -178
  23. package/include/eosio/convert.hpp +0 -95
  24. package/include/eosio/crypto.hpp +0 -148
  25. package/include/eosio/eosio_outcome.hpp +0 -41
  26. package/include/eosio/fixed_bytes.hpp +0 -250
  27. package/include/eosio/float.hpp +0 -35
  28. package/include/eosio/for_each_field.hpp +0 -48
  29. package/include/eosio/fpconv.c +0 -336
  30. package/include/eosio/fpconv.h +0 -41
  31. package/include/eosio/fpconv.license +0 -23
  32. package/include/eosio/from_bin.hpp +0 -272
  33. package/include/eosio/from_json.hpp +0 -749
  34. package/include/eosio/from_string.hpp +0 -28
  35. package/include/eosio/map_macro.h +0 -64
  36. package/include/eosio/murmur.hpp +0 -55
  37. package/include/eosio/name.hpp +0 -178
  38. package/include/eosio/opaque.hpp +0 -184
  39. package/include/eosio/operators.hpp +0 -71
  40. package/include/eosio/powers.h +0 -76
  41. package/include/eosio/reflection.hpp +0 -61
  42. package/include/eosio/ship_protocol.hpp +0 -971
  43. package/include/eosio/stream.hpp +0 -235
  44. package/include/eosio/symbol.hpp +0 -300
  45. package/include/eosio/time.hpp +0 -264
  46. package/include/eosio/to_bin.hpp +0 -189
  47. package/include/eosio/to_json.hpp +0 -334
  48. package/include/eosio/to_key.hpp +0 -305
  49. package/include/eosio/types.hpp +0 -103
  50. package/include/eosio/varint.hpp +0 -452
  51. package/include/outcome-basic.hpp +0 -6836
  52. package/include/rapidjson/allocators.h +0 -284
  53. package/include/rapidjson/cursorstreamwrapper.h +0 -78
  54. package/include/rapidjson/document.h +0 -2646
  55. package/include/rapidjson/encodedstream.h +0 -299
  56. package/include/rapidjson/encodings.h +0 -716
  57. package/include/rapidjson/error/en.h +0 -74
  58. package/include/rapidjson/error/error.h +0 -161
  59. package/include/rapidjson/filereadstream.h +0 -99
  60. package/include/rapidjson/filewritestream.h +0 -104
  61. package/include/rapidjson/fwd.h +0 -151
  62. package/include/rapidjson/internal/biginteger.h +0 -290
  63. package/include/rapidjson/internal/diyfp.h +0 -271
  64. package/include/rapidjson/internal/dtoa.h +0 -245
  65. package/include/rapidjson/internal/ieee754.h +0 -78
  66. package/include/rapidjson/internal/itoa.h +0 -308
  67. package/include/rapidjson/internal/meta.h +0 -186
  68. package/include/rapidjson/internal/pow10.h +0 -55
  69. package/include/rapidjson/internal/regex.h +0 -732
  70. package/include/rapidjson/internal/stack.h +0 -231
  71. package/include/rapidjson/internal/strfunc.h +0 -69
  72. package/include/rapidjson/internal/strtod.h +0 -290
  73. package/include/rapidjson/internal/swap.h +0 -46
  74. package/include/rapidjson/istreamwrapper.h +0 -113
  75. package/include/rapidjson/memorybuffer.h +0 -70
  76. package/include/rapidjson/memorystream.h +0 -71
  77. package/include/rapidjson/msinttypes/inttypes.h +0 -316
  78. package/include/rapidjson/msinttypes/stdint.h +0 -300
  79. package/include/rapidjson/ostreamwrapper.h +0 -81
  80. package/include/rapidjson/pointer.h +0 -1357
  81. package/include/rapidjson/prettywriter.h +0 -277
  82. package/include/rapidjson/rapidjson.h +0 -654
  83. package/include/rapidjson/reader.h +0 -2230
  84. package/include/rapidjson/schema.h +0 -2494
  85. package/include/rapidjson/stream.h +0 -223
  86. package/include/rapidjson/stringbuffer.h +0 -121
  87. package/include/rapidjson/writer.h +0 -710
  88. package/src/abi.cpp +0 -274
  89. package/src/abieos.cpp +0 -334
  90. package/src/abieos.h +0 -91
  91. package/src/abieos.hpp +0 -1011
  92. package/src/abieos_exception.hpp +0 -89
  93. package/src/abieos_numeric.hpp +0 -94
  94. package/src/abieos_ripemd160.hpp +0 -417
  95. package/src/crypto.cpp +0 -215
  96. package/src/main.cpp +0 -242
  97. package/src/ship.abi.cpp +0 -695
  98. package/tools/CMakeLists.txt +0 -9
  99. package/tools/name.cpp +0 -86
package/src/ship.abi.cpp DELETED
@@ -1,695 +0,0 @@
1
- extern const char* const state_history_plugin_abi = R"({
2
- "version": "eosio::abi/1.1",
3
- "structs": [
4
- {
5
- "name": "get_status_request_v0", "fields": []
6
- },
7
- {
8
- "name": "block_position", "fields": [
9
- { "name": "block_num", "type": "uint32" },
10
- { "name": "block_id", "type": "checksum256" }
11
- ]
12
- },
13
- {
14
- "name": "get_status_result_v0", "fields": [
15
- { "name": "head", "type": "block_position" },
16
- { "name": "last_irreversible", "type": "block_position" },
17
- { "name": "trace_begin_block", "type": "uint32" },
18
- { "name": "trace_end_block", "type": "uint32" },
19
- { "name": "chain_state_begin_block", "type": "uint32" },
20
- { "name": "chain_state_end_block", "type": "uint32" },
21
- { "name": "chain_id", "type": "checksum256$" }
22
- ]
23
- },
24
- {
25
- "name": "get_blocks_request_v0", "fields": [
26
- { "name": "start_block_num", "type": "uint32" },
27
- { "name": "end_block_num", "type": "uint32" },
28
- { "name": "max_messages_in_flight", "type": "uint32" },
29
- { "name": "have_positions", "type": "block_position[]" },
30
- { "name": "irreversible_only", "type": "bool" },
31
- { "name": "fetch_block", "type": "bool" },
32
- { "name": "fetch_traces", "type": "bool" },
33
- { "name": "fetch_deltas", "type": "bool" }
34
- ]
35
- },
36
- {
37
- "name": "get_blocks_ack_request_v0", "fields": [
38
- { "name": "num_messages", "type": "uint32" }
39
- ]
40
- },
41
- {
42
- "name": "get_blocks_result_v0", "fields": [
43
- { "name": "head", "type": "block_position" },
44
- { "name": "last_irreversible", "type": "block_position" },
45
- { "name": "this_block", "type": "block_position?" },
46
- { "name": "prev_block", "type": "block_position?" },
47
- { "name": "block", "type": "bytes?" },
48
- { "name": "traces", "type": "bytes?" },
49
- { "name": "deltas", "type": "bytes?" }
50
- ]
51
- },
52
- {
53
- "name": "get_blocks_result_v1", "fields": [
54
- { "name": "head", "type": "block_position" },
55
- { "name": "last_irreversible", "type": "block_position" },
56
- { "name": "this_block", "type": "block_position?" },
57
- { "name": "prev_block", "type": "block_position?" },
58
- { "name": "block", "type": "signed_block?" },
59
- { "name": "traces", "type": "bytes" },
60
- { "name": "deltas", "type": "bytes" }
61
- ]
62
- },
63
- {
64
- "name": "row_v0", "fields": [
65
- { "name": "present", "type": "bool" },
66
- { "name": "data", "type": "bytes" }
67
- ]
68
- },
69
- {
70
- "name": "table_delta_v0", "fields": [
71
- { "name": "name", "type": "string" },
72
- { "name": "rows", "type": "row_v0[]" }
73
- ]
74
- },
75
- {
76
- "name": "row_v1", "fields": [
77
- { "name": "present", "type": "uint8" },
78
- { "name": "data", "type": "bytes" }
79
- ]
80
- },
81
- {
82
- "name": "table_delta_v1", "fields": [
83
- { "name": "name", "type": "string" },
84
- { "name": "rows", "type": "row_v1[]" }
85
- ]
86
- },
87
- {
88
- "name": "action", "fields": [
89
- { "name": "account", "type": "name" },
90
- { "name": "name", "type": "name" },
91
- { "name": "authorization", "type": "permission_level[]" },
92
- { "name": "data", "type": "bytes" }
93
- ]
94
- },
95
- {
96
- "name": "account_auth_sequence", "fields": [
97
- { "name": "account", "type": "name" },
98
- { "name": "sequence", "type": "uint64" }
99
- ]
100
- },
101
- {
102
- "name": "action_receipt_v0", "fields": [
103
- { "name": "receiver", "type": "name" },
104
- { "name": "act_digest", "type": "checksum256" },
105
- { "name": "global_sequence", "type": "uint64" },
106
- { "name": "recv_sequence", "type": "uint64" },
107
- { "name": "auth_sequence", "type": "account_auth_sequence[]" },
108
- { "name": "code_sequence", "type": "varuint32" },
109
- { "name": "abi_sequence", "type": "varuint32" }
110
- ]
111
- },
112
- {
113
- "name": "account_delta", "fields": [
114
- { "name": "account", "type": "name" },
115
- { "name": "delta", "type": "int64" }
116
- ]
117
- },
118
- {
119
- "name": "action_trace_v0", "fields": [
120
- { "name": "action_ordinal", "type": "varuint32" },
121
- { "name": "creator_action_ordinal", "type": "varuint32" },
122
- { "name": "receipt", "type": "action_receipt?" },
123
- { "name": "receiver", "type": "name" },
124
- { "name": "act", "type": "action" },
125
- { "name": "context_free", "type": "bool" },
126
- { "name": "elapsed", "type": "int64" },
127
- { "name": "console", "type": "string" },
128
- { "name": "account_ram_deltas", "type": "account_delta[]" },
129
- { "name": "except", "type": "string?" },
130
- { "name": "error_code", "type": "uint64?" }
131
- ]
132
- },
133
- {
134
- "name": "action_trace_v1", "fields": [
135
- { "name": "action_ordinal", "type": "varuint32" },
136
- { "name": "creator_action_ordinal", "type": "varuint32" },
137
- { "name": "receipt", "type": "action_receipt?" },
138
- { "name": "receiver", "type": "name" },
139
- { "name": "act", "type": "action" },
140
- { "name": "context_free", "type": "bool" },
141
- { "name": "elapsed", "type": "int64" },
142
- { "name": "console", "type": "string" },
143
- { "name": "account_ram_deltas", "type": "account_delta[]" },
144
- { "name": "account_disk_deltas", "type": "account_delta[]" },
145
- { "name": "except", "type": "string?" },
146
- { "name": "error_code", "type": "uint64?" },
147
- { "name": "return_value", "type": "bytes"}
148
- ]
149
- },
150
- {
151
- "name": "partial_transaction_v0", "fields": [
152
- { "name": "expiration", "type": "time_point_sec" },
153
- { "name": "ref_block_num", "type": "uint16" },
154
- { "name": "ref_block_prefix", "type": "uint32" },
155
- { "name": "max_net_usage_words", "type": "varuint32" },
156
- { "name": "max_cpu_usage_ms", "type": "uint8" },
157
- { "name": "delay_sec", "type": "varuint32" },
158
- { "name": "transaction_extensions", "type": "extension[]" },
159
- { "name": "signatures", "type": "signature[]" },
160
- { "name": "context_free_data", "type": "bytes[]" }
161
- ]
162
- },
163
- {
164
- "name": "partial_transaction_v1", "fields": [
165
- { "name": "expiration", "type": "time_point_sec" },
166
- { "name": "ref_block_num", "type": "uint16" },
167
- { "name": "ref_block_prefix", "type": "uint32" },
168
- { "name": "max_net_usage_words", "type": "varuint32" },
169
- { "name": "max_cpu_usage_ms", "type": "uint8" },
170
- { "name": "delay_sec", "type": "varuint32" },
171
- { "name": "transaction_extensions", "type": "extension[]" },
172
- { "name": "prunable_data", "type": "prunable_data_type?" }
173
- ]
174
- },
175
- {
176
- "name": "transaction_trace_v0", "fields": [
177
- { "name": "id", "type": "checksum256" },
178
- { "name": "status", "type": "uint8" },
179
- { "name": "cpu_usage_us", "type": "uint32" },
180
- { "name": "net_usage_words", "type": "varuint32" },
181
- { "name": "elapsed", "type": "int64" },
182
- { "name": "net_usage", "type": "uint64" },
183
- { "name": "scheduled", "type": "bool" },
184
- { "name": "action_traces", "type": "action_trace[]" },
185
- { "name": "account_ram_delta", "type": "account_delta?" },
186
- { "name": "except", "type": "string?" },
187
- { "name": "error_code", "type": "uint64?" },
188
- { "name": "failed_dtrx_trace", "type": "transaction_trace?" },
189
- { "name": "partial", "type": "partial_transaction?" }
190
- ]
191
- },
192
- {
193
- "name": "packed_transaction_v0", "fields": [
194
- { "name": "signatures", "type": "signature[]" },
195
- { "name": "compression", "type": "uint8" },
196
- { "name": "packed_context_free_data", "type": "bytes" },
197
- { "name": "packed_trx", "type": "bytes" }
198
- ]
199
- },
200
- {
201
- "name": "packed_transaction_v1", "fields": [
202
- { "name": "compression", "type": "uint8" },
203
- { "name": "prunable_data", "type": "prunable_data_type" },
204
- { "name": "packed_trx", "type": "bytes" }
205
- ]
206
- },
207
- {
208
- "name": "transaction_receipt_header", "fields": [
209
- { "name": "status", "type": "uint8" },
210
- { "name": "cpu_usage_us", "type": "uint32" },
211
- { "name": "net_usage_words", "type": "varuint32" }
212
- ]
213
- },
214
- {
215
- "name": "transaction_receipt_v0", "base": "transaction_receipt_header", "fields": [
216
- { "name": "trx", "type": "transaction_variant_v0" }
217
- ]
218
- },
219
- {
220
- "name": "transaction_receipt_v1", "base": "transaction_receipt_header", "fields": [
221
- { "name": "trx", "type": "transaction_variant_v1" }
222
- ]
223
- },
224
- {
225
- "name": "extension", "fields": [
226
- { "name": "type", "type": "uint16" },
227
- { "name": "data", "type": "bytes" }
228
- ]
229
- },
230
- {
231
- "name": "block_header", "fields": [
232
- { "name": "timestamp", "type": "block_timestamp_type" },
233
- { "name": "producer", "type": "name" },
234
- { "name": "confirmed", "type": "uint16" },
235
- { "name": "previous", "type": "checksum256" },
236
- { "name": "transaction_mroot", "type": "checksum256" },
237
- { "name": "action_mroot", "type": "checksum256" },
238
- { "name": "schedule_version", "type": "uint32" },
239
- { "name": "new_producers", "type": "producer_schedule?" },
240
- { "name": "header_extensions", "type": "extension[]" }
241
- ]
242
- },
243
- {
244
- "name": "signed_block_header", "base": "block_header", "fields": [
245
- { "name": "producer_signature", "type": "signature" }
246
- ]
247
- },
248
- {
249
- "name": "signed_block_v0", "base": "signed_block_header", "fields": [
250
- { "name": "transactions", "type": "transaction_receipt_v0[]" },
251
- { "name": "block_extensions", "type": "extension[]" }
252
- ]
253
- },
254
- {
255
- "name": "signed_block_v1", "base": "signed_block_header", "fields": [
256
- { "name": "prune_state", "type": "uint8" },
257
- { "name": "transactions", "type": "transaction_receipt_v1[]" },
258
- { "name": "block_extensions", "type": "extension[]" }
259
- ]
260
- },
261
- { "name": "transaction_header", "fields": [
262
- { "name": "expiration", "type": "time_point_sec" },
263
- { "name": "ref_block_num", "type": "uint16" },
264
- { "name": "ref_block_prefix", "type": "uint32" },
265
- { "name": "max_net_usage_words", "type": "varuint32" },
266
- { "name": "max_cpu_usage_ms", "type": "uint8" },
267
- { "name": "delay_sec", "type": "varuint32" }
268
- ]
269
- },
270
- { "name": "transaction", "base": "transaction_header", "fields": [
271
- { "name": "context_free_actions", "type": "action[]" },
272
- { "name": "actions", "type": "action[]" },
273
- { "name": "transaction_extensions", "type": "extension[]" }
274
- ]
275
- },
276
- {
277
- "name": "code_id", "fields": [
278
- { "type": "uint8", "name": "vm_type" },
279
- { "type": "uint8", "name": "vm_version" },
280
- { "type": "checksum256", "name": "code_hash" }
281
- ]
282
- },
283
- {
284
- "name": "account_v0", "fields": [
285
- { "type": "name", "name": "name" },
286
- { "type": "block_timestamp_type", "name": "creation_date" },
287
- { "type": "bytes", "name": "abi" }
288
- ]
289
- },
290
- {
291
- "name": "account_metadata_v0", "fields": [
292
- { "type": "name", "name": "name" },
293
- { "type": "bool", "name": "privileged" },
294
- { "type": "time_point", "name": "last_code_update" },
295
- { "type": "code_id?", "name": "code" }
296
- ]
297
- },
298
- {
299
- "name": "code_v0", "fields": [
300
- { "type": "uint8", "name": "vm_type" },
301
- { "type": "uint8", "name": "vm_version" },
302
- { "type": "checksum256", "name": "code_hash" },
303
- { "type": "bytes", "name": "code" }
304
- ]
305
- },
306
- {
307
- "name": "contract_table_v0", "fields": [
308
- { "type": "name", "name": "code" },
309
- { "type": "name", "name": "scope" },
310
- { "type": "name", "name": "table" },
311
- { "type": "name", "name": "payer" }
312
- ]
313
- },
314
- {
315
- "name": "contract_row_v0", "fields": [
316
- { "type": "name", "name": "code" },
317
- { "type": "name", "name": "scope" },
318
- { "type": "name", "name": "table" },
319
- { "type": "uint64", "name": "primary_key" },
320
- { "type": "name", "name": "payer" },
321
- { "type": "bytes", "name": "value" }
322
- ]
323
- },
324
- {
325
- "name": "contract_index64_v0", "fields": [
326
- { "type": "name", "name": "code" },
327
- { "type": "name", "name": "scope" },
328
- { "type": "name", "name": "table" },
329
- { "type": "uint64", "name": "primary_key" },
330
- { "type": "name", "name": "payer" },
331
- { "type": "uint64", "name": "secondary_key" }
332
- ]
333
- },
334
- {
335
- "name": "contract_index128_v0", "fields": [
336
- { "type": "name", "name": "code" },
337
- { "type": "name", "name": "scope" },
338
- { "type": "name", "name": "table" },
339
- { "type": "uint64", "name": "primary_key" },
340
- { "type": "name", "name": "payer" },
341
- { "type": "uint128", "name": "secondary_key" }
342
- ]
343
- },
344
- {
345
- "name": "contract_index256_v0", "fields": [
346
- { "type": "name", "name": "code" },
347
- { "type": "name", "name": "scope" },
348
- { "type": "name", "name": "table" },
349
- { "type": "uint64", "name": "primary_key" },
350
- { "type": "name", "name": "payer" },
351
- { "type": "checksum256", "name": "secondary_key" }
352
- ]
353
- },
354
- {
355
- "name": "contract_index_double_v0", "fields": [
356
- { "type": "name", "name": "code" },
357
- { "type": "name", "name": "scope" },
358
- { "type": "name", "name": "table" },
359
- { "type": "uint64", "name": "primary_key" },
360
- { "type": "name", "name": "payer" },
361
- { "type": "float64", "name": "secondary_key" }
362
- ]
363
- },
364
- {
365
- "name": "contract_index_long_double_v0", "fields": [
366
- { "type": "name", "name": "code" },
367
- { "type": "name", "name": "scope" },
368
- { "type": "name", "name": "table" },
369
- { "type": "uint64", "name": "primary_key" },
370
- { "type": "name", "name": "payer" },
371
- { "type": "float128", "name": "secondary_key" }
372
- ]
373
- },
374
- {
375
- "name": "key_value_v0", "fields": [
376
- { "type": "name", "name": "contract" },
377
- { "type": "bytes", "name": "key" },
378
- { "type": "bytes", "name": "value" },
379
- { "type": "name", "name": "payer" }
380
- ]
381
- },
382
- {
383
- "name": "producer_key", "fields": [
384
- { "type": "name", "name": "producer_name" },
385
- { "type": "public_key", "name": "block_signing_key" }
386
- ]
387
- },
388
- {
389
- "name": "producer_schedule", "fields": [
390
- { "type": "uint32", "name": "version" },
391
- { "type": "producer_key[]", "name": "producers" }
392
- ]
393
- },
394
- {
395
- "name": "block_signing_authority_v0", "fields": [
396
- { "type": "uint32", "name": "threshold" },
397
- { "type": "key_weight[]", "name": "keys" }
398
- ]
399
- },
400
- {
401
- "name": "producer_authority", "fields": [
402
- { "type": "name", "name": "producer_name" },
403
- { "type": "block_signing_authority", "name": "authority" }
404
- ]
405
- },
406
- {
407
- "name": "producer_authority_schedule", "fields": [
408
- { "type": "uint32", "name": "version" },
409
- { "type": "producer_authority[]", "name": "producers" }
410
- ]
411
- },
412
- {
413
- "name": "chain_config_v0", "fields": [
414
- { "type": "uint64", "name": "max_block_net_usage" },
415
- { "type": "uint32", "name": "target_block_net_usage_pct" },
416
- { "type": "uint32", "name": "max_transaction_net_usage" },
417
- { "type": "uint32", "name": "base_per_transaction_net_usage" },
418
- { "type": "uint32", "name": "net_usage_leeway" },
419
- { "type": "uint32", "name": "context_free_discount_net_usage_num" },
420
- { "type": "uint32", "name": "context_free_discount_net_usage_den" },
421
- { "type": "uint32", "name": "max_block_cpu_usage" },
422
- { "type": "uint32", "name": "target_block_cpu_usage_pct" },
423
- { "type": "uint32", "name": "max_transaction_cpu_usage" },
424
- { "type": "uint32", "name": "min_transaction_cpu_usage" },
425
- { "type": "uint32", "name": "max_transaction_lifetime" },
426
- { "type": "uint32", "name": "deferred_trx_expiration_window" },
427
- { "type": "uint32", "name": "max_transaction_delay" },
428
- { "type": "uint32", "name": "max_inline_action_size" },
429
- { "type": "uint16", "name": "max_inline_action_depth" },
430
- { "type": "uint16", "name": "max_authority_depth" }
431
- ]
432
- },
433
- {
434
- "name": "chain_config_v1", "fields": [
435
- { "type": "uint64", "name": "max_block_net_usage" },
436
- { "type": "uint32", "name": "target_block_net_usage_pct" },
437
- { "type": "uint32", "name": "max_transaction_net_usage" },
438
- { "type": "uint32", "name": "base_per_transaction_net_usage" },
439
- { "type": "uint32", "name": "net_usage_leeway" },
440
- { "type": "uint32", "name": "context_free_discount_net_usage_num" },
441
- { "type": "uint32", "name": "context_free_discount_net_usage_den" },
442
- { "type": "uint32", "name": "max_block_cpu_usage" },
443
- { "type": "uint32", "name": "target_block_cpu_usage_pct" },
444
- { "type": "uint32", "name": "max_transaction_cpu_usage" },
445
- { "type": "uint32", "name": "min_transaction_cpu_usage" },
446
- { "type": "uint32", "name": "max_transaction_lifetime" },
447
- { "type": "uint32", "name": "deferred_trx_expiration_window" },
448
- { "type": "uint32", "name": "max_transaction_delay" },
449
- { "type": "uint32", "name": "max_inline_action_size" },
450
- { "type": "uint16", "name": "max_inline_action_depth" },
451
- { "type": "uint16", "name": "max_authority_depth" },
452
- { "type": "uint32", "name": "max_action_return_value_size" }
453
- ]
454
- },
455
- {
456
- "name": "global_property_v0", "fields": [
457
- { "type": "uint32?", "name": "proposed_schedule_block_num" },
458
- { "type": "producer_schedule", "name": "proposed_schedule" },
459
- { "type": "chain_config", "name": "configuration" }
460
- ]
461
- },
462
- {
463
- "name": "global_property_v1", "fields": [
464
- { "type": "uint32?", "name": "proposed_schedule_block_num" },
465
- { "type": "producer_authority_schedule", "name": "proposed_schedule" },
466
- { "type": "chain_config", "name": "configuration" },
467
- { "type": "checksum256", "name": "chain_id" }
468
- ]
469
- },
470
- {
471
- "name": "generated_transaction_v0", "fields": [
472
- { "type": "name", "name": "sender" },
473
- { "type": "uint128", "name": "sender_id" },
474
- { "type": "name", "name": "payer" },
475
- { "type": "checksum256", "name": "trx_id" },
476
- { "type": "bytes", "name": "packed_trx" }
477
- ]
478
- },
479
- {
480
- "name": "activated_protocol_feature_v0", "fields": [
481
- { "type": "checksum256", "name": "feature_digest" },
482
- { "type": "uint32", "name": "activation_block_num" }
483
- ]
484
- },
485
- {
486
- "name": "protocol_state_v0", "fields": [
487
- { "type": "activated_protocol_feature[]", "name": "activated_protocol_features" }
488
- ]
489
- },
490
- {
491
- "name": "key_weight", "fields": [
492
- { "type": "public_key", "name": "key" },
493
- { "type": "uint16", "name": "weight" }
494
- ]
495
- },
496
- {
497
- "name": "permission_level", "fields": [
498
- { "type": "name", "name": "actor" },
499
- { "type": "name", "name": "permission" }
500
- ]
501
- },
502
- {
503
- "name": "permission_level_weight", "fields": [
504
- { "type": "permission_level", "name": "permission" },
505
- { "type": "uint16", "name": "weight" }
506
- ]
507
- },
508
- {
509
- "name": "wait_weight", "fields": [
510
- { "type": "uint32", "name": "wait_sec" },
511
- { "type": "uint16", "name": "weight" }
512
- ]
513
- },
514
- {
515
- "name": "authority", "fields": [
516
- { "type": "uint32", "name": "threshold" },
517
- { "type": "key_weight[]", "name": "keys" },
518
- { "type": "permission_level_weight[]", "name": "accounts" },
519
- { "type": "wait_weight[]", "name": "waits" }
520
- ]
521
- },
522
- {
523
- "name": "permission_v0", "fields": [
524
- { "type": "name", "name": "owner" },
525
- { "type": "name", "name": "name" },
526
- { "type": "name", "name": "parent" },
527
- { "type": "time_point", "name": "last_updated" },
528
- { "type": "authority", "name": "auth" }
529
- ]
530
- },
531
- {
532
- "name": "permission_link_v0", "fields": [
533
- { "type": "name", "name": "account" },
534
- { "type": "name", "name": "code" },
535
- { "type": "name", "name": "message_type" },
536
- { "type": "name", "name": "required_permission" }
537
- ]
538
- },
539
- {
540
- "name": "resource_limits_v0", "fields": [
541
- { "type": "name", "name": "owner" },
542
- { "type": "int64", "name": "net_weight" },
543
- { "type": "int64", "name": "cpu_weight" },
544
- { "type": "int64", "name": "ram_bytes" }
545
- ]
546
- },
547
- {
548
- "name": "usage_accumulator_v0", "fields": [
549
- { "type": "uint32", "name": "last_ordinal" },
550
- { "type": "uint64", "name": "value_ex" },
551
- { "type": "uint64", "name": "consumed" }
552
- ]
553
- },
554
- {
555
- "name": "resource_usage_v0", "fields": [
556
- { "type": "name", "name": "owner" },
557
- { "type": "usage_accumulator", "name": "net_usage" },
558
- { "type": "usage_accumulator", "name": "cpu_usage" },
559
- { "type": "uint64", "name": "ram_usage" }
560
- ]
561
- },
562
- {
563
- "name": "resource_limits_state_v0", "fields": [
564
- { "type": "usage_accumulator", "name": "average_block_net_usage" },
565
- { "type": "usage_accumulator", "name": "average_block_cpu_usage" },
566
- { "type": "uint64", "name": "total_net_weight" },
567
- { "type": "uint64", "name": "total_cpu_weight" },
568
- { "type": "uint64", "name": "total_ram_bytes" },
569
- { "type": "uint64", "name": "virtual_net_limit" },
570
- { "type": "uint64", "name": "virtual_cpu_limit" }
571
- ]
572
- },
573
- {
574
- "name": "resource_limits_ratio_v0", "fields": [
575
- { "type": "uint64", "name": "numerator" },
576
- { "type": "uint64", "name": "denominator" }
577
- ]
578
- },
579
- {
580
- "name": "elastic_limit_parameters_v0", "fields": [
581
- { "type": "uint64", "name": "target" },
582
- { "type": "uint64", "name": "max" },
583
- { "type": "uint32", "name": "periods" },
584
- { "type": "uint32", "name": "max_multiplier" },
585
- { "type": "resource_limits_ratio", "name": "contract_rate" },
586
- { "type": "resource_limits_ratio", "name": "expand_rate" }
587
- ]
588
- },
589
- {
590
- "name": "resource_limits_config_v0", "fields": [
591
- { "type": "elastic_limit_parameters", "name": "cpu_limit_parameters" },
592
- { "type": "elastic_limit_parameters", "name": "net_limit_parameters" },
593
- { "type": "uint32", "name": "account_cpu_usage_average_window" },
594
- { "type": "uint32", "name": "account_net_usage_average_window" }
595
- ]
596
- },
597
- {
598
- "name": "prunable_data_full_legacy", "fields": [
599
- { "name": "signatures", "type": "signature[]" },
600
- { "name": "packed_context_segments", "type": "bytes" }
601
- ]
602
- },
603
- {
604
- "name": "prunable_data_full", "fields": [
605
- { "name": "signatures", "type": "signature[]" },
606
- { "name": "context_free_segments", "type": "bytes[]" }
607
- ]
608
- },
609
- {
610
- "name": "prunable_data_partial", "fields": [
611
- { "name": "signatures", "type": "signature[]" },
612
- { "name": "context_free_segments", "type": "context_free_segment_type[]" }
613
- ]
614
- },
615
- {
616
- "name": "prunable_data_none", "fields": [
617
- { "name": "prunable_digest", "type": "signature" }
618
- ]
619
- },
620
- {
621
- "name": "transaction_trace_exception", "fields": [
622
- { "name": "error_code", "type": "int64" },
623
- { "name": "error_message", "type": "string" }
624
- ]
625
- }
626
- ],
627
- "types": [
628
- { "new_type_name": "transaction_id", "type": "checksum256" }
629
- ],
630
- "variants": [
631
- { "name": "request", "types": ["get_status_request_v0", "get_blocks_request_v0", "get_blocks_ack_request_v0"] },
632
- { "name": "result", "types": ["get_status_result_v0", "get_blocks_result_v0", "get_blocks_result_v1"] },
633
-
634
- { "name": "action_receipt", "types": ["action_receipt_v0"] },
635
- { "name": "action_trace", "types": ["action_trace_v0", "action_trace_v1"] },
636
- { "name": "partial_transaction", "types": ["partial_transaction_v0", "partial_transaction_v1"] },
637
- { "name": "transaction_trace", "types": ["transaction_trace_v0"] },
638
- { "name": "transaction_variant_v0", "types": ["transaction_id", "packed_transaction_v0"] },
639
- { "name": "transaction_variant_v1", "types": ["transaction_id", "packed_transaction_v1"] },
640
- { "name": "signed_block", "types": ["signed_block_v0", "signed_block_v1"] },
641
- { "name": "prunable_data_type", "types": ["prunable_data_full_legacy", "prunable_data_none", "prunable_data_partial", "prunable_data_full"] },
642
- { "name": "context_free_segment_type", "types": ["signature", "bytes"] },
643
-
644
- { "name": "table_delta", "types": ["table_delta_v0", "table_delta_v1"] },
645
- { "name": "account", "types": ["account_v0"] },
646
- { "name": "account_metadata", "types": ["account_metadata_v0"] },
647
- { "name": "code", "types": ["code_v0"] },
648
- { "name": "contract_table", "types": ["contract_table_v0"] },
649
- { "name": "contract_row", "types": ["contract_row_v0"] },
650
- { "name": "contract_index64", "types": ["contract_index64_v0"] },
651
- { "name": "contract_index128", "types": ["contract_index128_v0"] },
652
- { "name": "contract_index256", "types": ["contract_index256_v0"] },
653
- { "name": "contract_index_double", "types": ["contract_index_double_v0"] },
654
- { "name": "contract_index_long_double", "types": ["contract_index_long_double_v0"] },
655
- { "name": "key_value", "types": ["key_value_v0"] },
656
- { "name": "chain_config", "types": ["chain_config_v0", "chain_config_v1"] },
657
- { "name": "global_property", "types": ["global_property_v0", "global_property_v1"] },
658
- { "name": "generated_transaction", "types": ["generated_transaction_v0"] },
659
- { "name": "activated_protocol_feature", "types": ["activated_protocol_feature_v0"] },
660
- { "name": "protocol_state", "types": ["protocol_state_v0"] },
661
- { "name": "permission", "types": ["permission_v0"] },
662
- { "name": "permission_link", "types": ["permission_link_v0"] },
663
- { "name": "resource_limits", "types": ["resource_limits_v0"] },
664
- { "name": "usage_accumulator", "types": ["usage_accumulator_v0"] },
665
- { "name": "resource_usage", "types": ["resource_usage_v0"] },
666
- { "name": "resource_limits_state", "types": ["resource_limits_state_v0"] },
667
- { "name": "resource_limits_ratio", "types": ["resource_limits_ratio_v0"] },
668
- { "name": "elastic_limit_parameters", "types": ["elastic_limit_parameters_v0"] },
669
- { "name": "resource_limits_config", "types": ["resource_limits_config_v0"] },
670
- { "name": "block_signing_authority", "types": ["block_signing_authority_v0"] },
671
- { "name": "transaction_trace_msg", "types": ["transaction_trace_exception", "transaction_trace"] }
672
- ],
673
- "tables": [
674
- { "name": "account", "type": "account", "key_names": ["name"] },
675
- { "name": "actmetadata", "type": "account_metadata", "key_names": ["name"] },
676
- { "name": "code", "type": "code", "key_names": ["vm_type", "vm_version", "code_hash"] },
677
- { "name": "contracttbl", "type": "contract_table", "key_names": ["code", "scope", "table"] },
678
- { "name": "contractrow", "type": "contract_row", "key_names": ["code", "scope", "table", "primary_key"] },
679
- { "name": "cntrctidx1", "type": "contract_index64", "key_names": ["code", "scope", "table", "primary_key"] },
680
- { "name": "cntrctidx2", "type": "contract_index128", "key_names": ["code", "scope", "table", "primary_key"] },
681
- { "name": "cntrctidx3", "type": "contract_index256", "key_names": ["code", "scope", "table", "primary_key"] },
682
- { "name": "cntrctidx4", "type": "contract_index_double", "key_names": ["code", "scope", "table", "primary_key"] },
683
- { "name": "cntrctidx5", "type": "contract_index_long_double", "key_names": ["code", "scope", "table", "primary_key"] },
684
- { "name": "keyvalue", "type": "key_value", "key_names": ["contract", "key"] },
685
- { "name": "global.pty", "type": "global_property", "key_names": [] },
686
- { "name": "generatedtrx", "type": "generated_transaction", "key_names": ["sender", "sender_id"] },
687
- { "name": "protocolst", "type": "protocol_state", "key_names": [] },
688
- { "name": "permission", "type": "permission", "key_names": ["owner", "name"] },
689
- { "name": "permlink", "type": "permission_link", "key_names": ["account", "code", "message_type"] },
690
- { "name": "rsclimits", "type": "resource_limits", "key_names": ["owner"] },
691
- { "name": "rscusage", "type": "resource_usage", "key_names": ["owner"] },
692
- { "name": "rsclimitsst", "type": "resource_limits_state", "key_names": [] },
693
- { "name": "rsclimitscfg", "type": "resource_limits_config", "key_names": [] }
694
- ]
695
- })";