scale.rb 0.2.18 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Cargo.lock +8 -4
- data/Cargo.toml +2 -3
- data/Dockerfile +4 -1
- data/Gemfile.lock +3 -3
- data/README.md +20 -4
- data/Rakefile +6 -0
- data/lib/helper.rb +19 -4
- data/lib/metadata/metadata.rb +27 -17
- data/lib/metadata/metadata_v0.rb +24 -20
- data/lib/metadata/metadata_v1.rb +13 -9
- data/lib/metadata/metadata_v10.rb +2 -2
- data/lib/metadata/metadata_v11.rb +2 -2
- data/lib/metadata/metadata_v12.rb +9 -8
- data/lib/metadata/metadata_v13.rb +161 -0
- data/lib/metadata/metadata_v2.rb +2 -2
- data/lib/metadata/metadata_v3.rb +2 -2
- data/lib/metadata/metadata_v4.rb +21 -11
- data/lib/metadata/metadata_v5.rb +21 -11
- data/lib/metadata/metadata_v6.rb +9 -9
- data/lib/metadata/metadata_v7.rb +26 -15
- data/lib/metadata/metadata_v8.rb +9 -9
- data/lib/metadata/metadata_v9.rb +2 -2
- data/lib/scale/base.rb +136 -96
- data/lib/scale/block.rb +10 -10
- data/lib/scale/trie.rb +1 -1
- data/lib/scale/types.rb +91 -40
- data/lib/scale/version.rb +1 -1
- data/lib/scale.rb +38 -377
- data/lib/scale_bytes.rb +63 -0
- data/lib/substrate_client.rb +11 -8
- data/lib/type_builder.rb +280 -0
- data/lib/type_registry/darwinia.json +730 -554
- data/lib/type_registry/default.json +1 -0
- data/lib/type_registry/pangolin.json +571 -132
- data/lib/type_registry.rb +91 -0
- data/scripts/mmr_root_to_sign.rb +10 -0
- data/src/lib.rs +80 -25
- metadata +7 -3
- data/src/storage_key.rs +0 -41
@@ -3,57 +3,120 @@
|
|
3
3
|
"BalanceLock": {
|
4
4
|
"type": "struct",
|
5
5
|
"type_mapping": [
|
6
|
-
[
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
[
|
6
|
+
[
|
7
|
+
"id",
|
8
|
+
"LockIdentifier"
|
9
|
+
],
|
10
|
+
[
|
11
|
+
"lock_for",
|
12
|
+
"LockFor"
|
13
|
+
],
|
14
|
+
[
|
15
|
+
"lock_reasons",
|
16
|
+
"LockReasons"
|
17
|
+
],
|
18
|
+
[
|
19
|
+
"amount",
|
20
|
+
"Balance"
|
21
|
+
],
|
22
|
+
[
|
23
|
+
"reasons",
|
24
|
+
"Reasons"
|
25
|
+
]
|
11
26
|
]
|
12
27
|
},
|
13
28
|
"LockFor": {
|
14
29
|
"type": "enum",
|
15
30
|
"type_mapping": [
|
16
|
-
[
|
17
|
-
|
31
|
+
[
|
32
|
+
"Common",
|
33
|
+
"Common"
|
34
|
+
],
|
35
|
+
[
|
36
|
+
"Staking",
|
37
|
+
"StakingLock"
|
38
|
+
]
|
18
39
|
]
|
19
40
|
},
|
20
41
|
"Common": {
|
21
42
|
"type": "struct",
|
22
43
|
"type_mapping": [
|
23
|
-
[
|
44
|
+
[
|
45
|
+
"amount",
|
46
|
+
"Balance"
|
47
|
+
]
|
24
48
|
]
|
25
49
|
},
|
26
50
|
"StakingLock": {
|
27
51
|
"type": "struct",
|
28
52
|
"type_mapping": [
|
29
|
-
[
|
30
|
-
|
53
|
+
[
|
54
|
+
"staking_amount",
|
55
|
+
"Balance"
|
56
|
+
],
|
57
|
+
[
|
58
|
+
"unbondings",
|
59
|
+
"Vec<Unbonding>"
|
60
|
+
]
|
31
61
|
]
|
32
62
|
},
|
33
63
|
"LockReasons": {
|
34
64
|
"type": "enum",
|
35
65
|
"type_mapping": [
|
36
|
-
[
|
37
|
-
|
38
|
-
|
66
|
+
[
|
67
|
+
"Fee",
|
68
|
+
"Null"
|
69
|
+
],
|
70
|
+
[
|
71
|
+
"Misc",
|
72
|
+
"Null"
|
73
|
+
],
|
74
|
+
[
|
75
|
+
"All",
|
76
|
+
"Null"
|
77
|
+
]
|
39
78
|
]
|
40
79
|
},
|
41
80
|
"Unbonding": {
|
42
81
|
"type": "struct",
|
43
82
|
"type_mapping": [
|
44
|
-
[
|
45
|
-
|
83
|
+
[
|
84
|
+
"amount",
|
85
|
+
"Balance"
|
86
|
+
],
|
87
|
+
[
|
88
|
+
"until",
|
89
|
+
"BlockNumber"
|
90
|
+
]
|
46
91
|
]
|
47
92
|
},
|
48
93
|
"AccountData": {
|
49
94
|
"type": "struct",
|
50
95
|
"type_mapping": [
|
51
|
-
[
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
[
|
56
|
-
|
96
|
+
[
|
97
|
+
"free",
|
98
|
+
"Balance"
|
99
|
+
],
|
100
|
+
[
|
101
|
+
"reserved",
|
102
|
+
"Balance"
|
103
|
+
],
|
104
|
+
[
|
105
|
+
"free_kton",
|
106
|
+
"Balance"
|
107
|
+
],
|
108
|
+
[
|
109
|
+
"reserved_kton",
|
110
|
+
"Balance"
|
111
|
+
],
|
112
|
+
[
|
113
|
+
"misc_frozen",
|
114
|
+
"Balance"
|
115
|
+
],
|
116
|
+
[
|
117
|
+
"fee_frozen",
|
118
|
+
"Balance"
|
119
|
+
]
|
57
120
|
]
|
58
121
|
},
|
59
122
|
"RingBalance": "Balance",
|
@@ -64,95 +127,210 @@
|
|
64
127
|
"StakingBalanceT": {
|
65
128
|
"type": "enum",
|
66
129
|
"type_mapping": [
|
67
|
-
[
|
68
|
-
|
130
|
+
[
|
131
|
+
"RingBalance",
|
132
|
+
"Balance"
|
133
|
+
],
|
134
|
+
[
|
135
|
+
"KtonBalance",
|
136
|
+
"Balance"
|
137
|
+
]
|
69
138
|
]
|
70
139
|
},
|
71
140
|
"StakingLedgerT": {
|
72
141
|
"type": "struct",
|
73
142
|
"type_mapping": [
|
74
|
-
[
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
[
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
[
|
83
|
-
|
84
|
-
|
143
|
+
[
|
144
|
+
"stash",
|
145
|
+
"AccountId"
|
146
|
+
],
|
147
|
+
[
|
148
|
+
"active_ring",
|
149
|
+
"Compact<Balance>"
|
150
|
+
],
|
151
|
+
[
|
152
|
+
"active_deposit_ring",
|
153
|
+
"Compact<Balance>"
|
154
|
+
],
|
155
|
+
[
|
156
|
+
"active_kton",
|
157
|
+
"Compact<Balance>"
|
158
|
+
],
|
159
|
+
[
|
160
|
+
"deposit_items",
|
161
|
+
"Vec<TimeDepositItem>"
|
162
|
+
],
|
163
|
+
[
|
164
|
+
"ring_staking_lock",
|
165
|
+
"StakingLock"
|
166
|
+
],
|
167
|
+
[
|
168
|
+
"kton_staking_lock",
|
169
|
+
"StakingLock"
|
170
|
+
],
|
171
|
+
[
|
172
|
+
"claimed_rewards",
|
173
|
+
"Vec<EraIndex>"
|
174
|
+
],
|
175
|
+
[
|
176
|
+
"total",
|
177
|
+
"Compact<Balance>"
|
178
|
+
],
|
179
|
+
[
|
180
|
+
"active",
|
181
|
+
"Compact<Balance>"
|
182
|
+
],
|
183
|
+
[
|
184
|
+
"unlocking",
|
185
|
+
"Vec<UnlockChunk>"
|
186
|
+
]
|
85
187
|
]
|
86
188
|
},
|
87
189
|
"TimeDepositItem": {
|
88
190
|
"type": "struct",
|
89
191
|
"type_mapping": [
|
90
|
-
[
|
91
|
-
|
92
|
-
|
192
|
+
[
|
193
|
+
"value",
|
194
|
+
"Compact<Balance>"
|
195
|
+
],
|
196
|
+
[
|
197
|
+
"start_time",
|
198
|
+
"Compact<TsInMs>"
|
199
|
+
],
|
200
|
+
[
|
201
|
+
"expire_time",
|
202
|
+
"Compact<TsInMs>"
|
203
|
+
]
|
93
204
|
]
|
94
205
|
},
|
95
206
|
"ExposureT": {
|
96
207
|
"type": "struct",
|
97
208
|
"type_mapping": [
|
98
|
-
[
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
[
|
209
|
+
[
|
210
|
+
"own_ring_balance",
|
211
|
+
"Compact<Balance>"
|
212
|
+
],
|
213
|
+
[
|
214
|
+
"own_kton_balance",
|
215
|
+
"Compact<Balance>"
|
216
|
+
],
|
217
|
+
[
|
218
|
+
"own_power",
|
219
|
+
"Power"
|
220
|
+
],
|
221
|
+
[
|
222
|
+
"total_power",
|
223
|
+
"Power"
|
224
|
+
],
|
225
|
+
[
|
226
|
+
"others",
|
227
|
+
"Vec<IndividualExposure>"
|
228
|
+
]
|
103
229
|
]
|
104
230
|
},
|
105
231
|
"IndividualExposure": {
|
106
232
|
"type": "struct",
|
107
233
|
"type_mapping": [
|
108
|
-
[
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
[
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
[
|
234
|
+
[
|
235
|
+
"who",
|
236
|
+
"AccountId"
|
237
|
+
],
|
238
|
+
[
|
239
|
+
"ring_balance",
|
240
|
+
"Compact<Balance>"
|
241
|
+
],
|
242
|
+
[
|
243
|
+
"kton_balance",
|
244
|
+
"Compact<Balance>"
|
245
|
+
],
|
246
|
+
[
|
247
|
+
"power",
|
248
|
+
"Power"
|
249
|
+
],
|
250
|
+
[
|
251
|
+
"value",
|
252
|
+
"Compact<Balance>"
|
253
|
+
]
|
121
254
|
]
|
122
255
|
},
|
123
256
|
"RKT": {
|
124
257
|
"type": "struct",
|
125
258
|
"type_mapping": [
|
126
|
-
[
|
127
|
-
|
259
|
+
[
|
260
|
+
"r",
|
261
|
+
"Balance"
|
262
|
+
],
|
263
|
+
[
|
264
|
+
"k",
|
265
|
+
"Balance"
|
266
|
+
]
|
128
267
|
]
|
129
268
|
},
|
130
269
|
"SpanRecord": {
|
131
270
|
"type": "struct",
|
132
271
|
"type_mapping": [
|
133
|
-
[
|
134
|
-
|
272
|
+
[
|
273
|
+
"slashed",
|
274
|
+
"RKT"
|
275
|
+
],
|
276
|
+
[
|
277
|
+
"paid_out",
|
278
|
+
"RKT"
|
279
|
+
]
|
135
280
|
]
|
136
281
|
},
|
137
282
|
"UnappliedSlash": {
|
138
283
|
"type": "struct",
|
139
284
|
"type_mapping": [
|
140
|
-
[
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
[
|
285
|
+
[
|
286
|
+
"validator",
|
287
|
+
"AccountId"
|
288
|
+
],
|
289
|
+
[
|
290
|
+
"own",
|
291
|
+
"RKT"
|
292
|
+
],
|
293
|
+
[
|
294
|
+
"others",
|
295
|
+
"Vec<(AccountId, RKT)>"
|
296
|
+
],
|
297
|
+
[
|
298
|
+
"reporters",
|
299
|
+
"Vec<AccountId>"
|
300
|
+
],
|
301
|
+
[
|
302
|
+
"payout",
|
303
|
+
"RKT"
|
304
|
+
]
|
145
305
|
]
|
146
306
|
},
|
147
307
|
"TreasuryProposal": {
|
148
308
|
"type": "struct",
|
149
309
|
"type_mapping": [
|
150
|
-
[
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
[
|
155
|
-
|
310
|
+
[
|
311
|
+
"proposer",
|
312
|
+
"AccountId"
|
313
|
+
],
|
314
|
+
[
|
315
|
+
"beneficiary",
|
316
|
+
"AccountId"
|
317
|
+
],
|
318
|
+
[
|
319
|
+
"ring_value",
|
320
|
+
"Balance"
|
321
|
+
],
|
322
|
+
[
|
323
|
+
"kton_value",
|
324
|
+
"Balance"
|
325
|
+
],
|
326
|
+
[
|
327
|
+
"ring_bond",
|
328
|
+
"Balance"
|
329
|
+
],
|
330
|
+
[
|
331
|
+
"kton_bond",
|
332
|
+
"Balance"
|
333
|
+
]
|
156
334
|
]
|
157
335
|
},
|
158
336
|
"MappedRing": "u128",
|
@@ -161,21 +339,70 @@
|
|
161
339
|
"EthereumHeader": {
|
162
340
|
"type": "struct",
|
163
341
|
"type_mapping": [
|
164
|
-
[
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
[
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
[
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
[
|
177
|
-
|
178
|
-
|
342
|
+
[
|
343
|
+
"parent_hash",
|
344
|
+
"H256"
|
345
|
+
],
|
346
|
+
[
|
347
|
+
"timestamp",
|
348
|
+
"u64"
|
349
|
+
],
|
350
|
+
[
|
351
|
+
"number",
|
352
|
+
"EthereumBlockNumber"
|
353
|
+
],
|
354
|
+
[
|
355
|
+
"author",
|
356
|
+
"EthereumAddress"
|
357
|
+
],
|
358
|
+
[
|
359
|
+
"transactions_root",
|
360
|
+
"H256"
|
361
|
+
],
|
362
|
+
[
|
363
|
+
"uncles_hash",
|
364
|
+
"H256"
|
365
|
+
],
|
366
|
+
[
|
367
|
+
"extra_data",
|
368
|
+
"Bytes"
|
369
|
+
],
|
370
|
+
[
|
371
|
+
"state_root",
|
372
|
+
"H256"
|
373
|
+
],
|
374
|
+
[
|
375
|
+
"receipts_root",
|
376
|
+
"H256"
|
377
|
+
],
|
378
|
+
[
|
379
|
+
"log_bloom",
|
380
|
+
"Bloom"
|
381
|
+
],
|
382
|
+
[
|
383
|
+
"gas_used",
|
384
|
+
"U256"
|
385
|
+
],
|
386
|
+
[
|
387
|
+
"gas_limit",
|
388
|
+
"U256"
|
389
|
+
],
|
390
|
+
[
|
391
|
+
"difficulty",
|
392
|
+
"U256"
|
393
|
+
],
|
394
|
+
[
|
395
|
+
"seal",
|
396
|
+
"Vec<Bytes>"
|
397
|
+
],
|
398
|
+
[
|
399
|
+
"base_fee_per_gas",
|
400
|
+
"Option<U256>"
|
401
|
+
],
|
402
|
+
[
|
403
|
+
"hash",
|
404
|
+
"Option<H256>"
|
405
|
+
]
|
179
406
|
]
|
180
407
|
},
|
181
408
|
"EthereumAddress": "H160",
|
@@ -185,62 +412,122 @@
|
|
185
412
|
"EthashProof": {
|
186
413
|
"type": "struct",
|
187
414
|
"type_mapping": [
|
188
|
-
[
|
189
|
-
|
415
|
+
[
|
416
|
+
"dag_nodes",
|
417
|
+
"(H512, H512)"
|
418
|
+
],
|
419
|
+
[
|
420
|
+
"proof",
|
421
|
+
"Vec<H128>"
|
422
|
+
]
|
190
423
|
]
|
191
424
|
},
|
192
425
|
"EthereumReceipt": {
|
193
426
|
"type": "struct",
|
194
427
|
"type_mapping": [
|
195
|
-
[
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
428
|
+
[
|
429
|
+
"gas_used",
|
430
|
+
"U256"
|
431
|
+
],
|
432
|
+
[
|
433
|
+
"log_bloom",
|
434
|
+
"Bloom"
|
435
|
+
],
|
436
|
+
[
|
437
|
+
"logs",
|
438
|
+
"Vec<LogEntry>"
|
439
|
+
],
|
440
|
+
[
|
441
|
+
"outcome",
|
442
|
+
"TransactionOutcome"
|
443
|
+
]
|
444
|
+
]
|
445
|
+
},
|
446
|
+
"EthereumNetwork": {
|
202
447
|
"type": "enum",
|
203
448
|
"type_mapping": [
|
204
|
-
[
|
205
|
-
|
449
|
+
[
|
450
|
+
"Mainnet",
|
451
|
+
"Null"
|
452
|
+
],
|
453
|
+
[
|
454
|
+
"Ropsten",
|
455
|
+
"Null"
|
456
|
+
]
|
206
457
|
]
|
207
458
|
},
|
208
459
|
"RedeemFor": {
|
209
460
|
"type": "enum",
|
210
461
|
"type_mapping": [
|
211
|
-
[
|
212
|
-
|
462
|
+
[
|
463
|
+
"Token",
|
464
|
+
"Null"
|
465
|
+
],
|
466
|
+
[
|
467
|
+
"Deposit",
|
468
|
+
"Null"
|
469
|
+
]
|
213
470
|
]
|
214
471
|
},
|
215
472
|
"EthereumReceiptProof": {
|
216
473
|
"type": "struct",
|
217
474
|
"type_mapping": [
|
218
|
-
[
|
219
|
-
|
220
|
-
|
475
|
+
[
|
476
|
+
"index",
|
477
|
+
"u64"
|
478
|
+
],
|
479
|
+
[
|
480
|
+
"proof",
|
481
|
+
"Bytes"
|
482
|
+
],
|
483
|
+
[
|
484
|
+
"header_hash",
|
485
|
+
"H256"
|
486
|
+
]
|
221
487
|
]
|
222
488
|
},
|
223
489
|
"EthereumReceiptProofThing": "(EthereumHeader, EthereumReceiptProof, MMRProof)",
|
224
490
|
"MMRProof": {
|
225
491
|
"type": "struct",
|
226
492
|
"type_mapping": [
|
227
|
-
[
|
228
|
-
|
229
|
-
|
493
|
+
[
|
494
|
+
"member_leaf_index",
|
495
|
+
"u64"
|
496
|
+
],
|
497
|
+
[
|
498
|
+
"last_leaf_index",
|
499
|
+
"u64"
|
500
|
+
],
|
501
|
+
[
|
502
|
+
"proof",
|
503
|
+
"Vec<H256>"
|
504
|
+
]
|
230
505
|
]
|
231
506
|
},
|
232
507
|
"EthereumRelayHeaderParcel": {
|
233
508
|
"type": "struct",
|
234
509
|
"type_mapping": [
|
235
|
-
[
|
236
|
-
|
510
|
+
[
|
511
|
+
"header",
|
512
|
+
"EthereumHeader"
|
513
|
+
],
|
514
|
+
[
|
515
|
+
"parent_mmr_root",
|
516
|
+
"H256"
|
517
|
+
]
|
237
518
|
]
|
238
519
|
},
|
239
520
|
"EthereumRelayProofs": {
|
240
521
|
"type": "struct",
|
241
522
|
"type_mapping": [
|
242
|
-
[
|
243
|
-
|
523
|
+
[
|
524
|
+
"ethash_proof",
|
525
|
+
"Vec<EthashProof>"
|
526
|
+
],
|
527
|
+
[
|
528
|
+
"mmr_proof",
|
529
|
+
"Vec<H256>"
|
530
|
+
]
|
244
531
|
]
|
245
532
|
},
|
246
533
|
"RelayAuthoritySigner": "EthereumAddress",
|
@@ -249,24 +536,43 @@
|
|
249
536
|
"OtherSignature": {
|
250
537
|
"type": "enum",
|
251
538
|
"type_mapping": [
|
252
|
-
[
|
253
|
-
|
539
|
+
[
|
540
|
+
"Eth",
|
541
|
+
"EcdsaSignature"
|
542
|
+
],
|
543
|
+
[
|
544
|
+
"Tron",
|
545
|
+
"EcdsaSignature"
|
546
|
+
]
|
254
547
|
]
|
255
548
|
},
|
256
549
|
"EcdsaSignature": "[u8; 65]",
|
257
550
|
"OtherAddress": {
|
258
551
|
"type": "enum",
|
259
552
|
"type_mapping": [
|
260
|
-
[
|
261
|
-
|
553
|
+
[
|
554
|
+
"Eth",
|
555
|
+
"[u8; 20]"
|
556
|
+
],
|
557
|
+
[
|
558
|
+
"Tron",
|
559
|
+
"[u8; 20]"
|
560
|
+
]
|
262
561
|
]
|
263
562
|
},
|
264
563
|
"AddressT": "[u8; 20]",
|
564
|
+
"NodeIndex": "u64",
|
265
565
|
"MerkleMountainRangeRootLog": {
|
266
566
|
"type": "struct",
|
267
567
|
"type_mapping": [
|
268
|
-
[
|
269
|
-
|
568
|
+
[
|
569
|
+
"prefix",
|
570
|
+
"[u8; 4]"
|
571
|
+
],
|
572
|
+
[
|
573
|
+
"parent_mmr_root",
|
574
|
+
"Hash"
|
575
|
+
]
|
270
576
|
]
|
271
577
|
},
|
272
578
|
"OpCode": "[u8; 4]",
|
@@ -277,56 +583,189 @@
|
|
277
583
|
"RelayAffirmationId": {
|
278
584
|
"type": "struct",
|
279
585
|
"type_mapping": [
|
280
|
-
[
|
281
|
-
|
282
|
-
|
586
|
+
[
|
587
|
+
"game_id",
|
588
|
+
"EthereumBlockNumber"
|
589
|
+
],
|
590
|
+
[
|
591
|
+
"round",
|
592
|
+
"u32"
|
593
|
+
],
|
594
|
+
[
|
595
|
+
"index",
|
596
|
+
"u32"
|
597
|
+
]
|
283
598
|
]
|
284
599
|
},
|
285
600
|
"RelayAffirmationT": {
|
286
601
|
"type": "struct",
|
287
602
|
"type_mapping": [
|
288
|
-
[
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
[
|
603
|
+
[
|
604
|
+
"relayer",
|
605
|
+
"AccountId"
|
606
|
+
],
|
607
|
+
[
|
608
|
+
"relay_header_parcels",
|
609
|
+
"EthereumRelayHeaderParcel"
|
610
|
+
],
|
611
|
+
[
|
612
|
+
"bond",
|
613
|
+
"Balance"
|
614
|
+
],
|
615
|
+
[
|
616
|
+
"maybe_extended_relay_affirmation_id",
|
617
|
+
"Option<RelayAffirmationId>"
|
618
|
+
],
|
619
|
+
[
|
620
|
+
"verified",
|
621
|
+
"bool"
|
622
|
+
]
|
293
623
|
]
|
294
624
|
},
|
295
625
|
"RelayVotingState": {
|
296
626
|
"type": "struct",
|
297
627
|
"type_mapping": [
|
298
|
-
[
|
299
|
-
|
628
|
+
[
|
629
|
+
"ayes",
|
630
|
+
"Vec<AccountId>"
|
631
|
+
],
|
632
|
+
[
|
633
|
+
"nays",
|
634
|
+
"Vec<AccountId>"
|
635
|
+
]
|
300
636
|
]
|
301
637
|
},
|
302
638
|
"RelayAuthorityT": {
|
303
639
|
"type": "struct",
|
304
640
|
"type_mapping": [
|
305
|
-
[
|
306
|
-
|
307
|
-
|
308
|
-
|
641
|
+
[
|
642
|
+
"account_id",
|
643
|
+
"AccountId"
|
644
|
+
],
|
645
|
+
[
|
646
|
+
"signer",
|
647
|
+
"EthereumAddress"
|
648
|
+
],
|
649
|
+
[
|
650
|
+
"stake",
|
651
|
+
"Balance"
|
652
|
+
],
|
653
|
+
[
|
654
|
+
"term",
|
655
|
+
"BlockNumber"
|
656
|
+
]
|
309
657
|
]
|
310
658
|
},
|
311
659
|
"ScheduledAuthoritiesChangeT": {
|
312
660
|
"type": "struct",
|
313
661
|
"type_mapping": [
|
314
|
-
[
|
315
|
-
|
662
|
+
[
|
663
|
+
"next_authorities",
|
664
|
+
"Vec<RelayAuthorityT>"
|
665
|
+
],
|
666
|
+
[
|
667
|
+
"deadline",
|
668
|
+
"BlockNumber"
|
669
|
+
]
|
670
|
+
]
|
671
|
+
},
|
672
|
+
"MmrRootToSign": {
|
673
|
+
"type": "struct",
|
674
|
+
"type_mapping": [
|
675
|
+
[
|
676
|
+
"mmr_root",
|
677
|
+
"Hash"
|
678
|
+
],
|
679
|
+
[
|
680
|
+
"signatures",
|
681
|
+
"Vec<(EthereumAddress, EcdsaSignature)>"
|
682
|
+
]
|
316
683
|
]
|
317
684
|
},
|
318
685
|
"MMRRoot": "Hash",
|
686
|
+
"BSCHeader": {
|
687
|
+
"type": "struct",
|
688
|
+
"type_mapping": [
|
689
|
+
[
|
690
|
+
"parent_hash",
|
691
|
+
"H256"
|
692
|
+
],
|
693
|
+
[
|
694
|
+
"uncle_hash",
|
695
|
+
"H256"
|
696
|
+
],
|
697
|
+
[
|
698
|
+
"coinbase",
|
699
|
+
"EthereumAddress"
|
700
|
+
],
|
701
|
+
[
|
702
|
+
"state_root",
|
703
|
+
"H256"
|
704
|
+
],
|
705
|
+
[
|
706
|
+
"transactions_root",
|
707
|
+
"H256"
|
708
|
+
],
|
709
|
+
[
|
710
|
+
"receipts_root",
|
711
|
+
"H256"
|
712
|
+
],
|
713
|
+
[
|
714
|
+
"log_bloom",
|
715
|
+
"Bloom"
|
716
|
+
],
|
717
|
+
[
|
718
|
+
"difficulty",
|
719
|
+
"U256"
|
720
|
+
],
|
721
|
+
[
|
722
|
+
"number",
|
723
|
+
"u64"
|
724
|
+
],
|
725
|
+
[
|
726
|
+
"gas_limit",
|
727
|
+
"U256"
|
728
|
+
],
|
729
|
+
[
|
730
|
+
"gas_used",
|
731
|
+
"U256"
|
732
|
+
],
|
733
|
+
[
|
734
|
+
"timestamp",
|
735
|
+
"u64"
|
736
|
+
],
|
737
|
+
[
|
738
|
+
"extra_data",
|
739
|
+
"Bytes"
|
740
|
+
],
|
741
|
+
[
|
742
|
+
"mix_digest",
|
743
|
+
"H256"
|
744
|
+
],
|
745
|
+
[
|
746
|
+
"nonce",
|
747
|
+
"Bytes"
|
748
|
+
]
|
749
|
+
]
|
750
|
+
},
|
319
751
|
"BalancesRuntimeDispatchInfo": {
|
320
752
|
"type": "struct",
|
321
753
|
"type_mapping": [
|
322
|
-
[
|
754
|
+
[
|
755
|
+
"usable_balance",
|
756
|
+
"Balance"
|
757
|
+
]
|
323
758
|
]
|
324
759
|
},
|
325
760
|
"StakingRuntimeDispatchInfo": {
|
326
761
|
"type": "struct",
|
327
762
|
"type_mapping": [
|
328
|
-
[
|
763
|
+
[
|
764
|
+
"power",
|
765
|
+
"Power"
|
766
|
+
]
|
329
767
|
]
|
330
768
|
}
|
331
769
|
}
|
770
|
+
|
332
771
|
}
|