koilib 2.6.1 → 3.0.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 (66) hide show
  1. package/README.md +66 -12
  2. package/dist/koinos.js +8533 -274
  3. package/dist/koinos.min.js +1 -1
  4. package/lib/Contract.d.ts +53 -16
  5. package/lib/Contract.js +99 -31
  6. package/lib/Contract.js.map +1 -1
  7. package/lib/Provider.d.ts +39 -19
  8. package/lib/Provider.js +119 -87
  9. package/lib/Provider.js.map +1 -1
  10. package/lib/Serializer.d.ts +8 -3
  11. package/lib/Serializer.js +60 -41
  12. package/lib/Serializer.js.map +1 -1
  13. package/lib/Signer.d.ts +53 -39
  14. package/lib/Signer.js +320 -91
  15. package/lib/Signer.js.map +1 -1
  16. package/lib/browser/Contract.d.ts +53 -16
  17. package/lib/browser/Contract.js +99 -31
  18. package/lib/browser/Contract.js.map +1 -1
  19. package/lib/browser/Provider.d.ts +39 -19
  20. package/lib/browser/Provider.js +119 -87
  21. package/lib/browser/Provider.js.map +1 -1
  22. package/lib/browser/Serializer.d.ts +8 -3
  23. package/lib/browser/Serializer.js +60 -41
  24. package/lib/browser/Serializer.js.map +1 -1
  25. package/lib/browser/Signer.d.ts +53 -39
  26. package/lib/browser/Signer.js +320 -91
  27. package/lib/browser/Signer.js.map +1 -1
  28. package/lib/browser/index.d.ts +1 -1
  29. package/lib/browser/index.js +1 -1
  30. package/lib/browser/index.js.map +1 -1
  31. package/lib/browser/indexUtils.d.ts +2 -0
  32. package/lib/browser/indexUtils.js +15 -0
  33. package/lib/browser/indexUtils.js.map +1 -0
  34. package/lib/browser/interface.d.ts +242 -65
  35. package/lib/browser/jsonDescriptors/chain-proto.json +676 -0
  36. package/lib/browser/jsonDescriptors/krc20-proto.json +47 -4
  37. package/lib/browser/protoModules/protocol-proto.d.ts +2 -0
  38. package/lib/browser/protoModules/protocol-proto.js +6336 -0
  39. package/lib/browser/protoModules/protocol-proto.js.map +1 -0
  40. package/lib/browser/utils.d.ts +18 -254
  41. package/lib/browser/utils.js +140 -12
  42. package/lib/browser/utils.js.map +1 -1
  43. package/lib/browser/utilsNode.d.ts +1021 -0
  44. package/lib/browser/utilsNode.js +346 -0
  45. package/lib/browser/utilsNode.js.map +1 -0
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +1 -1
  48. package/lib/index.js.map +1 -1
  49. package/lib/indexUtils.d.ts +2 -0
  50. package/lib/indexUtils.js +15 -0
  51. package/lib/indexUtils.js.map +1 -0
  52. package/lib/interface.d.ts +242 -65
  53. package/lib/jsonDescriptors/chain-proto.json +676 -0
  54. package/lib/jsonDescriptors/krc20-proto.json +47 -4
  55. package/lib/protoModules/protocol-proto.d.ts +2 -0
  56. package/lib/protoModules/protocol-proto.js +6336 -0
  57. package/lib/protoModules/protocol-proto.js.map +1 -0
  58. package/lib/utils.d.ts +18 -254
  59. package/lib/utils.js +140 -12
  60. package/lib/utils.js.map +1 -1
  61. package/lib/utilsNode.d.ts +1021 -0
  62. package/lib/utilsNode.js +346 -0
  63. package/lib/utilsNode.js.map +1 -0
  64. package/package.json +1 -1
  65. package/lib/browser/jsonDescriptors/protocol-proto.json +0 -246
  66. package/lib/jsonDescriptors/protocol-proto.json +0 -246
@@ -0,0 +1,1021 @@
1
+ import { DictionaryGenesisData, GenesisDataDecoded, GenesisDataEncoded } from "./interface";
2
+ /**
3
+ * Function to encode genesis data in order to launch a
4
+ * new blockchain. The different values are serialized using
5
+ * protobuffers. One of the arguments is the dictionary which
6
+ * contains the relevant information to perform the serialization.
7
+ * By default the function contains the dictionary for the
8
+ * following keys:
9
+ *
10
+ * - "object_key::head_block"
11
+ * - "object_key::chain_id"
12
+ * - "object_key::genesis_key"
13
+ * - "object_key::resource_limit_data"
14
+ * - "object_key::max_account_resources"
15
+ * - "object_key::protocol_descriptor"
16
+ * - "object_key::compute_bandwidth_registry"
17
+ * - "object_key::block_hash_code"
18
+ *
19
+ * @param genesisDataDecoded - Genesis data where the values are
20
+ * objects.
21
+ * @param dictionary - Set of keys which contains the relevant
22
+ * information to perform the serialization
23
+ *
24
+ * @example
25
+ *
26
+ * ```ts
27
+ * const signer = Signer.fromSeed("seed");
28
+ * const genesisDataDecoded = {
29
+ * entries: [
30
+ * {
31
+ * space: { system: true },
32
+ * alias: "object_key::genesis_key",
33
+ * value: signer.address,
34
+ * },
35
+ * ],
36
+ * };
37
+ *
38
+ * const genesisData = await encodeGenesisData(genesisDataDecoded);
39
+ * console.log(genesisData);
40
+ *
41
+ * // {
42
+ * // entries: [
43
+ * // {
44
+ * // space: { system: true },
45
+ * // key: "EiC3nO+XbeKg4C8ugW7M7XdfmJKY4i3l91KoJWxosQPImA==",
46
+ * // value: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
47
+ * // },
48
+ * // ],
49
+ * // }
50
+ * ```
51
+ *
52
+ * @example adding a custom dictionary
53
+ *
54
+ * ```ts
55
+ * const contractId = Signer.fromSeed("seed").address;
56
+ * const zone = encodeBase64(decodeBase58(contractId));
57
+ * const genesisDataDecoded = {
58
+ * entries: [
59
+ * {
60
+ * space: { system: true, zone, id: 1 },
61
+ * key: "difficulty_metadata_key",
62
+ * value: {
63
+ * target: encodeBase64url(toUint8Array("F".repeat(64))),
64
+ * last_block_time: "1641038400000",
65
+ * difficulty: encodeBase64url(toUint8Array("1".repeat(64))),
66
+ * target_block_interval: "10",
67
+ * },
68
+ * },
69
+ * ],
70
+ * };
71
+ *
72
+ * const powJson = {
73
+ * nested: {
74
+ * mypackage: {
75
+ * nested: {
76
+ * difficulty_metadata: {
77
+ * "fields": {
78
+ * "target": { "type": "bytes", "id": 1 },
79
+ * "last_block_time": { "type": "uint64", "id": 2,
80
+ * "options": { "jstype": "JS_STRING" }
81
+ * },
82
+ * "difficulty": { "type": "bytes", "id": 3 },
83
+ * "target_block_interval": { "type": "uint64", "id": 4,
84
+ * "options": { "jstype": "JS_STRING" }
85
+ * }
86
+ * }
87
+ * },
88
+ * }
89
+ * }
90
+ * }
91
+ * }
92
+ *
93
+ * const dic = {
94
+ * difficulty_metadata_key: {
95
+ * serializer: new Serializer(powJson),
96
+ * typeName: "difficulty_metadata",
97
+ * },
98
+ * };
99
+ *
100
+ * const genesisData = await encodeGenesisData(genesisDataDecoded, dic);
101
+ * console.log(genesisData);
102
+ *
103
+ * // {
104
+ * // entries: [
105
+ * // {
106
+ * // key: "difficulty_metadata_key",
107
+ * // space: {
108
+ * // id: 1,
109
+ * // system: true,
110
+ * // zone: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
111
+ * // },
112
+ * // value:
113
+ * // "CiD//////////////////////////////////////////xCAlIus4S8aIBERERERERERERERERERERERERERERERERERERERERERIAo=",
114
+ * // },
115
+ * // ],
116
+ * // };
117
+ * ```
118
+ */
119
+ export declare function encodeGenesisData(genesisDataDecoded: GenesisDataDecoded, dictionary?: DictionaryGenesisData): Promise<GenesisDataEncoded>;
120
+ /**
121
+ * Function to decode genesis data used to launch a
122
+ * new blockchain. The different values are deserialized using
123
+ * protobuffers. One of the arguments is the dictionary which
124
+ * contains the relevant information for the deserialization.
125
+ * By default the function contains the dictionary for the
126
+ * following keys:
127
+ *
128
+ * - "object_key::head_block"
129
+ * - "object_key::chain_id"
130
+ * - "object_key::genesis_key"
131
+ * - "object_key::resource_limit_data"
132
+ * - "object_key::max_account_resources"
133
+ * - "object_key::protocol_descriptor"
134
+ * - "object_key::compute_bandwidth_registry"
135
+ * - "object_key::block_hash_code"
136
+ *
137
+ * @param genesisData - Genesis data
138
+ * @param dictionary - Set of keys which contains the relevant
139
+ * information to perform the deserialization
140
+ *
141
+ * @example
142
+ *
143
+ * ```ts
144
+ * const genesisData = {
145
+ * entries: [
146
+ * {
147
+ * space: { system: true },
148
+ * key: "EiC3nO+XbeKg4C8ugW7M7XdfmJKY4i3l91KoJWxosQPImA==",
149
+ * value: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
150
+ * },
151
+ * ],
152
+ * }
153
+ *
154
+ * const genesisDataDecoded = await decodeGenesisData(genesisData);
155
+ * console.log(genesisDataDecoded);
156
+ *
157
+ * // {
158
+ * // entries: [
159
+ * // {
160
+ * // space: { system: true },
161
+ * // key: "EiC3nO+XbeKg4C8ugW7M7XdfmJKY4i3l91KoJWxosQPImA==",
162
+ * // alias: "object_key::genesis_key",
163
+ * // value: "1KSQWDyUnFZ48Pf2hsW8Akh1b5fKUWc8Z3",
164
+ * // },
165
+ * // ],
166
+ * // };
167
+ * ```
168
+ *
169
+ * @example adding a custom dictionary
170
+ *
171
+ * ```ts
172
+ * const genesisData = {
173
+ * entries: [
174
+ * {
175
+ * key: "difficulty_metadata_key",
176
+ * space: {
177
+ * id: 1,
178
+ * system: true,
179
+ * zone: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
180
+ * },
181
+ * value:
182
+ * "CiD//////////////////////////////////////////xCAlIus4S8aIBERERERERERERERERERERERERERERERERERERERERERIAo=",
183
+ * },
184
+ * ],
185
+ * };
186
+ *
187
+ * const powJson = {
188
+ * nested: {
189
+ * mypackage: {
190
+ * nested: {
191
+ * difficulty_metadata: {
192
+ * "fields": {
193
+ * "target": { "type": "bytes", "id": 1 },
194
+ * "last_block_time": { "type": "uint64", "id": 2,
195
+ * "options": { "jstype": "JS_STRING" }
196
+ * },
197
+ * "difficulty": { "type": "bytes", "id": 3 },
198
+ * "target_block_interval": { "type": "uint64", "id": 4,
199
+ * "options": { "jstype": "JS_STRING" }
200
+ * }
201
+ * }
202
+ * },
203
+ * }
204
+ * }
205
+ * }
206
+ * }
207
+ *
208
+ * const dic = {
209
+ * difficulty_metadata_key: {
210
+ * serializer: new Serializer(powJson),
211
+ * typeName: "difficulty_metadata",
212
+ * },
213
+ * };
214
+ *
215
+ * const genesisDataDecoded = await decodeGenesisData(genesisData, dic);
216
+ * console.log(genesisData);
217
+ *
218
+ * // {
219
+ * // entries: [
220
+ * // {
221
+ * // space: { system: true, zone, id: 1 },
222
+ * // key: "difficulty_metadata_key",
223
+ * // value: {
224
+ * // target: "__________________________________________8=",
225
+ * // last_block_time: "1641038400000",
226
+ * // difficulty: "ERERERERERERERERERERERERERERERERERERERERERE=",
227
+ * // target_block_interval: "10",
228
+ * // },
229
+ * // },
230
+ * // ],
231
+ * // };
232
+ * ```
233
+ */
234
+ export declare function decodeGenesisData(genesisData: GenesisDataEncoded, dictionary?: DictionaryGenesisData): Promise<GenesisDataDecoded>;
235
+ export declare const ChainTypes: {
236
+ nested: {
237
+ koinos: {
238
+ options: {
239
+ go_package: string;
240
+ };
241
+ nested: {
242
+ block_topology: {
243
+ fields: {
244
+ id: {
245
+ type: string;
246
+ id: number;
247
+ options: {
248
+ "(btype)": string;
249
+ };
250
+ };
251
+ height: {
252
+ type: string;
253
+ id: number;
254
+ options: {
255
+ jstype: string;
256
+ };
257
+ };
258
+ previous: {
259
+ type: string;
260
+ id: number;
261
+ options: {
262
+ "(btype)": string;
263
+ };
264
+ };
265
+ };
266
+ };
267
+ protocol: {
268
+ options: {
269
+ go_package: string;
270
+ };
271
+ nested: {
272
+ event_data: {
273
+ fields: {
274
+ sequence: {
275
+ type: string;
276
+ id: number;
277
+ };
278
+ source: {
279
+ type: string;
280
+ id: number;
281
+ options: {
282
+ "(btype)": string;
283
+ };
284
+ };
285
+ name: {
286
+ type: string;
287
+ id: number;
288
+ };
289
+ data: {
290
+ type: string; /**
291
+ * Function to encode genesis data in order to launch a
292
+ * new blockchain. The different values are serialized using
293
+ * protobuffers. One of the arguments is the dictionary which
294
+ * contains the relevant information to perform the serialization.
295
+ * By default the function contains the dictionary for the
296
+ * following keys:
297
+ *
298
+ * - "object_key::head_block"
299
+ * - "object_key::chain_id"
300
+ * - "object_key::genesis_key"
301
+ * - "object_key::resource_limit_data"
302
+ * - "object_key::max_account_resources"
303
+ * - "object_key::protocol_descriptor"
304
+ * - "object_key::compute_bandwidth_registry"
305
+ * - "object_key::block_hash_code"
306
+ *
307
+ * @param genesisDataDecoded - Genesis data where the values are
308
+ * objects.
309
+ * @param dictionary - Set of keys which contains the relevant
310
+ * information to perform the serialization
311
+ *
312
+ * @example
313
+ *
314
+ * ```ts
315
+ * const signer = Signer.fromSeed("seed");
316
+ * const genesisDataDecoded = {
317
+ * entries: [
318
+ * {
319
+ * space: { system: true },
320
+ * alias: "object_key::genesis_key",
321
+ * value: signer.address,
322
+ * },
323
+ * ],
324
+ * };
325
+ *
326
+ * const genesisData = await encodeGenesisData(genesisDataDecoded);
327
+ * console.log(genesisData);
328
+ *
329
+ * // {
330
+ * // entries: [
331
+ * // {
332
+ * // space: { system: true },
333
+ * // key: "EiC3nO+XbeKg4C8ugW7M7XdfmJKY4i3l91KoJWxosQPImA==",
334
+ * // value: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
335
+ * // },
336
+ * // ],
337
+ * // }
338
+ * ```
339
+ *
340
+ * @example adding a custom dictionary
341
+ *
342
+ * ```ts
343
+ * const contractId = Signer.fromSeed("seed").address;
344
+ * const zone = encodeBase64(decodeBase58(contractId));
345
+ * const genesisDataDecoded = {
346
+ * entries: [
347
+ * {
348
+ * space: { system: true, zone, id: 1 },
349
+ * key: "difficulty_metadata_key",
350
+ * value: {
351
+ * target: encodeBase64url(toUint8Array("F".repeat(64))),
352
+ * last_block_time: "1641038400000",
353
+ * difficulty: encodeBase64url(toUint8Array("1".repeat(64))),
354
+ * target_block_interval: "10",
355
+ * },
356
+ * },
357
+ * ],
358
+ * };
359
+ *
360
+ * const powJson = {
361
+ * nested: {
362
+ * mypackage: {
363
+ * nested: {
364
+ * difficulty_metadata: {
365
+ * "fields": {
366
+ * "target": { "type": "bytes", "id": 1 },
367
+ * "last_block_time": { "type": "uint64", "id": 2,
368
+ * "options": { "jstype": "JS_STRING" }
369
+ * },
370
+ * "difficulty": { "type": "bytes", "id": 3 },
371
+ * "target_block_interval": { "type": "uint64", "id": 4,
372
+ * "options": { "jstype": "JS_STRING" }
373
+ * }
374
+ * }
375
+ * },
376
+ * }
377
+ * }
378
+ * }
379
+ * }
380
+ *
381
+ * const dic = {
382
+ * difficulty_metadata_key: {
383
+ * serializer: new Serializer(powJson),
384
+ * typeName: "difficulty_metadata",
385
+ * },
386
+ * };
387
+ *
388
+ * const genesisData = await encodeGenesisData(genesisDataDecoded, dic);
389
+ * console.log(genesisData);
390
+ *
391
+ * // {
392
+ * // entries: [
393
+ * // {
394
+ * // key: "difficulty_metadata_key",
395
+ * // space: {
396
+ * // id: 1,
397
+ * // system: true,
398
+ * // zone: "AMpASH7CjUHBpl2QR8E5lGKVjVLAvJRg5g==",
399
+ * // },
400
+ * // value:
401
+ * // "CiD//////////////////////////////////////////xCAlIus4S8aIBERERERERERERERERERERERERERERERERERERERERERIAo=",
402
+ * // },
403
+ * // ],
404
+ * // };
405
+ * ```
406
+ */
407
+ id: number;
408
+ };
409
+ impacted: {
410
+ rule: string;
411
+ type: string;
412
+ id: number;
413
+ options: {
414
+ "(btype)": string;
415
+ };
416
+ };
417
+ };
418
+ };
419
+ contract_call_bundle: {
420
+ fields: {
421
+ contract_id: {
422
+ type: string;
423
+ id: number;
424
+ options: {
425
+ "(btype)": string;
426
+ };
427
+ };
428
+ entry_point: {
429
+ type: string;
430
+ id: number;
431
+ };
432
+ };
433
+ };
434
+ system_call_target: {
435
+ oneofs: {
436
+ target: {
437
+ oneof: string[];
438
+ };
439
+ };
440
+ fields: {
441
+ thunk_id: {
442
+ type: string;
443
+ id: number;
444
+ };
445
+ system_call_bundle: {
446
+ type: string;
447
+ id: number;
448
+ };
449
+ };
450
+ };
451
+ upload_contract_operation: {
452
+ fields: {
453
+ contract_id: {
454
+ type: string;
455
+ id: number;
456
+ options: {
457
+ "(btype)": string;
458
+ };
459
+ };
460
+ bytecode: {
461
+ type: string;
462
+ id: number;
463
+ };
464
+ abi: {
465
+ type: string;
466
+ id: number;
467
+ };
468
+ authorizes_call_contract: {
469
+ type: string;
470
+ id: number;
471
+ };
472
+ authorizes_transaction_application: {
473
+ type: string;
474
+ id: number;
475
+ };
476
+ authorizes_upload_contract: {
477
+ type: string;
478
+ id: number;
479
+ };
480
+ };
481
+ };
482
+ call_contract_operation: {
483
+ fields: {
484
+ contract_id: {
485
+ type: string;
486
+ id: number;
487
+ options: {
488
+ "(btype)": string;
489
+ };
490
+ };
491
+ entry_point: {
492
+ type: string;
493
+ id: number;
494
+ };
495
+ args: {
496
+ type: string;
497
+ id: number;
498
+ };
499
+ };
500
+ };
501
+ set_system_call_operation: {
502
+ fields: {
503
+ call_id: {
504
+ type: string;
505
+ id: number;
506
+ };
507
+ target: {
508
+ type: string;
509
+ id: number;
510
+ };
511
+ };
512
+ };
513
+ set_system_contract_operation: {
514
+ fields: {
515
+ contract_id: {
516
+ type: string;
517
+ id: number;
518
+ options: {
519
+ "(btype)": string;
520
+ };
521
+ };
522
+ system_contract: {
523
+ type: string;
524
+ id: number;
525
+ };
526
+ };
527
+ };
528
+ operation: {
529
+ oneofs: {
530
+ op: {
531
+ oneof: string[];
532
+ };
533
+ };
534
+ fields: {
535
+ upload_contract: {
536
+ type: string;
537
+ id: number;
538
+ };
539
+ call_contract: {
540
+ type: string;
541
+ id: number;
542
+ };
543
+ set_system_call: {
544
+ type: string;
545
+ id: number;
546
+ };
547
+ set_system_contract: {
548
+ type: string;
549
+ id: number;
550
+ };
551
+ };
552
+ };
553
+ transaction_header: {
554
+ fields: {
555
+ chain_id: {
556
+ type: string;
557
+ id: number;
558
+ };
559
+ rc_limit: {
560
+ type: string;
561
+ id: number;
562
+ options: {
563
+ jstype: string;
564
+ };
565
+ };
566
+ nonce: {
567
+ type: string;
568
+ id: number;
569
+ };
570
+ operation_merkle_root: {
571
+ type: string;
572
+ id: number;
573
+ };
574
+ payer: {
575
+ type: string;
576
+ id: number;
577
+ options: {
578
+ "(btype)": string;
579
+ };
580
+ };
581
+ payee: {
582
+ type: string;
583
+ id: number;
584
+ options: {
585
+ "(btype)": string;
586
+ };
587
+ };
588
+ };
589
+ };
590
+ transaction: {
591
+ fields: {
592
+ id: {
593
+ type: string;
594
+ id: number;
595
+ options: {
596
+ "(btype)": string;
597
+ };
598
+ };
599
+ header: {
600
+ type: string;
601
+ id: number;
602
+ };
603
+ operations: {
604
+ rule: string;
605
+ type: string;
606
+ id: number;
607
+ };
608
+ signatures: {
609
+ rule: string;
610
+ type: string;
611
+ id: number;
612
+ };
613
+ };
614
+ };
615
+ transaction_receipt: {
616
+ fields: {
617
+ id: {
618
+ type: string;
619
+ id: number;
620
+ options: {
621
+ "(btype)": string;
622
+ };
623
+ };
624
+ payer: {
625
+ type: string;
626
+ id: number;
627
+ options: {
628
+ "(btype)": string;
629
+ };
630
+ };
631
+ max_payer_rc: {
632
+ type: string;
633
+ id: number;
634
+ options: {
635
+ jstype: string;
636
+ };
637
+ };
638
+ rc_limit: {
639
+ type: string;
640
+ id: number;
641
+ options: {
642
+ jstype: string;
643
+ };
644
+ };
645
+ rc_used: {
646
+ type: string;
647
+ id: number;
648
+ options: {
649
+ jstype: string;
650
+ };
651
+ };
652
+ disk_storage_used: {
653
+ type: string;
654
+ id: number;
655
+ options: {
656
+ jstype: string;
657
+ };
658
+ };
659
+ network_bandwidth_used: {
660
+ type: string;
661
+ id: number;
662
+ options: {
663
+ jstype: string;
664
+ };
665
+ };
666
+ compute_bandwidth_used: {
667
+ type: string;
668
+ id: number;
669
+ options: {
670
+ jstype: string;
671
+ };
672
+ };
673
+ reverted: {
674
+ type: string;
675
+ id: number;
676
+ };
677
+ events: {
678
+ rule: string;
679
+ type: string;
680
+ id: number;
681
+ };
682
+ logs: {
683
+ rule: string;
684
+ type: string;
685
+ id: number;
686
+ };
687
+ };
688
+ };
689
+ block_header: {
690
+ fields: {
691
+ previous: {
692
+ type: string;
693
+ id: number;
694
+ options: {
695
+ "(btype)": string;
696
+ };
697
+ };
698
+ height: {
699
+ type: string;
700
+ id: number;
701
+ options: {
702
+ jstype: string;
703
+ };
704
+ };
705
+ timestamp: {
706
+ type: string;
707
+ id: number;
708
+ options: {
709
+ jstype: string;
710
+ };
711
+ };
712
+ previous_state_merkle_root: {
713
+ type: string;
714
+ id: number;
715
+ };
716
+ transaction_merkle_root: {
717
+ type: string;
718
+ id: number;
719
+ };
720
+ signer: {
721
+ type: string;
722
+ id: number;
723
+ options: {
724
+ "(btype)": string;
725
+ };
726
+ };
727
+ };
728
+ };
729
+ block: {
730
+ fields: {
731
+ id: {
732
+ type: string;
733
+ id: number;
734
+ options: {
735
+ "(btype)": string;
736
+ };
737
+ };
738
+ header: {
739
+ type: string;
740
+ id: number;
741
+ };
742
+ transactions: {
743
+ rule: string;
744
+ type: string;
745
+ id: number;
746
+ };
747
+ signature: {
748
+ type: string;
749
+ id: number;
750
+ };
751
+ };
752
+ };
753
+ block_receipt: {
754
+ fields: {
755
+ id: {
756
+ type: string;
757
+ id: number;
758
+ options: {
759
+ "(btype)": string;
760
+ };
761
+ };
762
+ height: {
763
+ type: string;
764
+ id: number;
765
+ options: {
766
+ jstype: string;
767
+ };
768
+ };
769
+ disk_storage_used: {
770
+ type: string;
771
+ id: number;
772
+ options: {
773
+ jstype: string;
774
+ };
775
+ };
776
+ network_bandwidth_used: {
777
+ type: string;
778
+ id: number;
779
+ options: {
780
+ jstype: string;
781
+ };
782
+ };
783
+ compute_bandwidth_used: {
784
+ type: string;
785
+ id: number;
786
+ options: {
787
+ jstype: string;
788
+ };
789
+ };
790
+ state_merkle_root: {
791
+ type: string;
792
+ id: number;
793
+ };
794
+ events: {
795
+ rule: string;
796
+ type: string;
797
+ id: number;
798
+ };
799
+ transaction_receipts: {
800
+ rule: string;
801
+ type: string;
802
+ id: number;
803
+ };
804
+ logs: {
805
+ rule: string;
806
+ type: string;
807
+ id: number;
808
+ };
809
+ };
810
+ };
811
+ };
812
+ };
813
+ chain: {
814
+ options: {
815
+ go_package: string;
816
+ };
817
+ nested: {
818
+ object_space: {
819
+ fields: {
820
+ system: {
821
+ type: string;
822
+ id: number;
823
+ };
824
+ zone: {
825
+ type: string;
826
+ id: number;
827
+ };
828
+ id: {
829
+ type: string;
830
+ id: number;
831
+ };
832
+ };
833
+ };
834
+ database_key: {
835
+ fields: {
836
+ space: {
837
+ type: string;
838
+ id: number;
839
+ };
840
+ key: {
841
+ type: string;
842
+ id: number;
843
+ };
844
+ };
845
+ };
846
+ max_account_resources: {
847
+ fields: {
848
+ value: {
849
+ type: string;
850
+ id: number;
851
+ options: {
852
+ jstype: string;
853
+ };
854
+ };
855
+ };
856
+ };
857
+ privilege: {
858
+ values: {
859
+ kernel_mode: number;
860
+ user_mode: number;
861
+ };
862
+ };
863
+ head_info: {
864
+ fields: {
865
+ head_topology: {
866
+ type: string;
867
+ id: number;
868
+ };
869
+ head_block_time: {
870
+ type: string;
871
+ id: number;
872
+ options: {
873
+ jstype: string;
874
+ };
875
+ };
876
+ last_irreversible_block: {
877
+ type: string;
878
+ id: number;
879
+ options: {
880
+ jstype: string;
881
+ };
882
+ };
883
+ };
884
+ };
885
+ caller_data: {
886
+ fields: {
887
+ caller: {
888
+ type: string;
889
+ id: number;
890
+ options: {
891
+ "(btype)": string;
892
+ };
893
+ };
894
+ caller_privilege: {
895
+ type: string;
896
+ id: number;
897
+ };
898
+ };
899
+ };
900
+ resource_limit_data: {
901
+ fields: {
902
+ disk_storage_limit: {
903
+ type: string;
904
+ id: number;
905
+ options: {
906
+ jstype: string;
907
+ };
908
+ };
909
+ disk_storage_cost: {
910
+ type: string;
911
+ id: number;
912
+ options: {
913
+ jstype: string;
914
+ };
915
+ };
916
+ network_bandwidth_limit: {
917
+ type: string;
918
+ id: number;
919
+ options: {
920
+ jstype: string;
921
+ };
922
+ };
923
+ network_bandwidth_cost: {
924
+ type: string;
925
+ id: number;
926
+ options: {
927
+ jstype: string;
928
+ };
929
+ };
930
+ compute_bandwidth_limit: {
931
+ type: string;
932
+ id: number;
933
+ options: {
934
+ jstype: string;
935
+ };
936
+ };
937
+ compute_bandwidth_cost: {
938
+ type: string;
939
+ id: number;
940
+ options: {
941
+ jstype: string;
942
+ };
943
+ };
944
+ };
945
+ };
946
+ contract_metadata_object: {
947
+ fields: {
948
+ hash: {
949
+ type: string;
950
+ id: number;
951
+ };
952
+ system: {
953
+ type: string;
954
+ id: number;
955
+ };
956
+ authorizes_call_contract: {
957
+ type: string;
958
+ id: number;
959
+ };
960
+ authorizes_transaction_application: {
961
+ type: string;
962
+ id: number;
963
+ };
964
+ authorizes_upload_contract: {
965
+ type: string;
966
+ id: number;
967
+ };
968
+ };
969
+ };
970
+ compute_bandwidth_entry: {
971
+ fields: {
972
+ name: {
973
+ type: string;
974
+ id: number;
975
+ };
976
+ compute: {
977
+ type: string;
978
+ id: number;
979
+ };
980
+ };
981
+ };
982
+ compute_bandwidth_registry: {
983
+ fields: {
984
+ entries: {
985
+ rule: string;
986
+ type: string;
987
+ id: number;
988
+ };
989
+ };
990
+ };
991
+ genesis_entry: {
992
+ fields: {
993
+ space: {
994
+ type: string;
995
+ id: number;
996
+ };
997
+ key: {
998
+ type: string;
999
+ id: number;
1000
+ };
1001
+ value: {
1002
+ type: string;
1003
+ id: number;
1004
+ };
1005
+ };
1006
+ };
1007
+ genesis_data: {
1008
+ fields: {
1009
+ entries: {
1010
+ rule: string;
1011
+ type: string;
1012
+ id: number;
1013
+ };
1014
+ };
1015
+ };
1016
+ };
1017
+ };
1018
+ };
1019
+ };
1020
+ };
1021
+ };