scale.rb 0.2.1 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,8 @@ module Scale
9
9
  Blake2b.hex data, Blake2b::Key.none, 32
10
10
  end
11
11
 
12
- def self.decode(scale_bytes, metadata)
12
+ def self.decode(scale_bytes)
13
+ metadata = Scale::TypeRegistry.instance.metadata
13
14
  result = {}
14
15
 
15
16
  extrinsic_length = Compact.decode(scale_bytes).value
@@ -83,11 +84,11 @@ module Scale
83
84
  result[:call_index] = scale_bytes.get_next_bytes(2).bytes_to_hex[2..]
84
85
 
85
86
  else
86
- raise "Extrinsics version #{version_info} is not implemented"
87
+ raise "Extrinsic version #{version_info} is not implemented"
87
88
  end
88
89
 
89
90
  if result[:call_index]
90
- call_module, call = metadata.value.call_index[result[:call_index]]
91
+ call_module, call = metadata.call_index[result[:call_index]]
91
92
 
92
93
  result[:call_function] = call[:name].downcase
93
94
  result[:call_module] = call_module[:name].downcase
@@ -95,21 +96,133 @@ module Scale
95
96
  # decode params
96
97
  result[:params_raw] = scale_bytes.get_remaining_bytes.bytes_to_hex
97
98
  result[:params] = call[:args].map do |arg|
98
- type = Scale::Types.get(arg[:type])
99
- arg_obj = type.decode(scale_bytes)
100
- {name: arg[:name], type: type.name, value: arg_obj.value, value_raw: "0x#{arg_obj.encode}" }
99
+ type = arg[:type]
100
+ scale_type = Scale::Types.get(type)
101
+ obj = scale_type.decode(scale_bytes)
102
+ {name: arg[:name], type: type, scale_type: scale_type, value: obj.value }
101
103
  end
102
104
  end
103
105
 
104
106
  result[:extrinsic_length] = extrinsic_length
105
107
  result[:version_info] = version_info
106
108
 
107
- result
109
+ Extrinsic.new result
108
110
  end
109
111
 
110
112
  def encode
113
+ result = "04" + self.value[:call_index]
114
+
115
+ result += self.value[:params].map do |param|
116
+ Scale::Types.get(param[:type]).new(param[:value]).encode
117
+ end.join
118
+
119
+ "0x" + Compact.new(result.length / 2).encode + result
120
+ end
121
+
122
+ def to_human
123
+ @value
111
124
  end
112
125
  end
113
126
 
127
+ class Phase
128
+ include Enum
129
+ items isApplyExtrinsic: "Bool", asApplyExtrinsic: "U32", isFinalization: "Bool", isInitialization: "Bool"
130
+ end
131
+
132
+ class EventRecords
133
+ include SingleValue
134
+
135
+ def self.decode(scale_bytes)
136
+
137
+ length = Compact.decode(scale_bytes).value
138
+
139
+ length.times do |i|
140
+ ev = EventRecord.decode(scale_bytes)
141
+ end
142
+ end
143
+ end
144
+
145
+ class EventRecord
146
+ include SingleValue
147
+
148
+ def self.decode(scale_bytes)
149
+ metadata = Scale::TypeRegistry.instance.metadata
150
+
151
+ result = {}
152
+ phase = scale_bytes.get_next_bytes(1).first
153
+
154
+ if phase == 0
155
+ result[:extrinsic_idx] = U32.decode(scale_bytes).value
156
+ end
157
+
158
+ type = scale_bytes.get_next_bytes(2).bytes_to_hex[2..]
159
+ event = metadata.event_index[type][1]
160
+ # mod = metadata.event_index[type][0]
161
+
162
+ result[:params] = []
163
+ event[:args].each do |arg_type|
164
+ value = Scale::Types.get(arg_type).decode(scale_bytes).to_human
165
+ result[:params] << {
166
+ name: event[:name],
167
+ type: arg_type,
168
+ value: value
169
+ }
170
+ end
171
+
172
+ result[:topics] = Scale::Types.get("Vec<Hash>").decode(scale_bytes).value.map(&:value)
173
+
174
+ EventRecord.new(result)
175
+ end
176
+ end
177
+
178
+ # log
179
+ class Other < Bytes; end
180
+
181
+ class AuthoritiesChange
182
+ include Vec
183
+ inner_type "AccountId"
184
+ end
185
+
186
+ class ConsensusEngineId < VecU8Length4; end
187
+
188
+ class ChangesTrieRoot < Bytes; end
189
+
190
+ class SealV0
191
+ include Struct
192
+ items(
193
+ slot: "U64",
194
+ signature: "Signature"
195
+ )
196
+ end
197
+
198
+ class Consensus
199
+ include Struct
200
+ items(
201
+ engine: "ConsensusEngineId",
202
+ data: "Hex"
203
+ )
204
+ end
205
+
206
+ class Seal
207
+ include Struct
208
+ items(
209
+ engine: "ConsensusEngineId",
210
+ data: "Hex"
211
+ )
212
+ end
213
+
214
+ class PreRuntime
215
+ include Struct
216
+ items(
217
+ engine: "ConsensusEngineId",
218
+ data: "Hex"
219
+ )
220
+ end
221
+
222
+ class LogDigest
223
+ include Enum
224
+ items %w[Other AuthoritiesChange ChangesTrieRoot SealV0 Consensus Seal PreRuntime]
225
+ end
226
+
114
227
  end
115
228
  end
@@ -46,24 +46,34 @@ module Scale
46
46
  BYTE_LENGTH = 16
47
47
  end
48
48
 
49
+ class U256
50
+ include FixedWidthUInt
51
+ BYTE_LENGTH = 32
52
+ end
53
+
49
54
  class I8
50
55
  include FixedWidthInt
56
+ BYTE_LENGTH = 1
51
57
  end
52
58
 
53
59
  class I16
54
60
  include FixedWidthInt
61
+ BYTE_LENGTH = 2
55
62
  end
56
63
 
57
64
  class I32
58
65
  include FixedWidthInt
66
+ BYTE_LENGTH = 4
59
67
  end
60
68
 
61
69
  class I64
62
70
  include FixedWidthInt
71
+ BYTE_LENGTH = 8
63
72
  end
64
73
 
65
74
  class I128
66
75
  include FixedWidthInt
76
+ BYTE_LENGTH = 16
67
77
  end
68
78
 
69
79
  class Compact
@@ -303,7 +313,7 @@ module Scale
303
313
  value /= 1000
304
314
  end
305
315
 
306
- CompactMoment.new Time.at(seconds_since_epoch_integer).to_datetime
316
+ CompactMoment.new Time.at(value).to_datetime.strftime("%F %T")
307
317
  end
308
318
  end
309
319
 
@@ -791,5 +801,19 @@ module Scale
791
801
  )
792
802
  end
793
803
 
804
+ class VecH512Length2
805
+ include SingleValue
806
+
807
+ def self.decode(scale_bytes)
808
+ end
809
+
810
+ def encode
811
+ "0x" + self.value.map do |item|
812
+ item[2..]
813
+ end.join
814
+ end
815
+ end
816
+
817
+
794
818
  end
795
819
  end
@@ -1,3 +1,3 @@
1
1
  module Scale
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.6".freeze
3
3
  end
@@ -0,0 +1,10 @@
1
+ {
2
+ "types": {
3
+ "Address": "AccountId",
4
+ "LookupSource": "AccountId",
5
+ "Entity": {
6
+ "id": "H256",
7
+ "status": "u8"
8
+ }
9
+ }
10
+ }
@@ -107,6 +107,13 @@
107
107
  ["ktoner", "TokenBalance"],
108
108
  ["lottery", "TokenBalance"]
109
109
  ]
110
+ },
111
+ "DoubleNodeWithMerkleProof": {
112
+ "type": "struct",
113
+ "type_mapping": [
114
+ ["dag_nodes", "VecH512Length2"],
115
+ ["proof", "Vec<H128>"]
116
+ ]
110
117
  }
111
118
  }
112
119
  }
@@ -1,31 +1,69 @@
1
1
  {
2
2
  "types": {
3
+ "Balance": "u128",
4
+ "BalanceOf": "Balance",
5
+ "Block": "GenericBlock",
6
+ "Call": "GenericCall",
7
+ "H160": "H160",
8
+ "H256": "H256",
9
+ "H512": "H512",
10
+ "Hash": "H256",
11
+ "CallHash": "Hash",
12
+ "CallHashOf": "CallHash",
13
+ "Fixed64": "u64",
14
+ "Fixed128": "u128",
15
+ "AccountId": "GenericAccountId",
16
+ "AccountIdOf": "AccountId",
3
17
  "AccountVoteSplit": {
4
18
  "type": "struct",
5
19
  "type_mapping": [
6
- ["aye", "Balance"],
7
- ["nay", "Balance"]
20
+ [
21
+ "aye",
22
+ "Balance"
23
+ ],
24
+ [
25
+ "nay",
26
+ "Balance"
27
+ ]
8
28
  ]
9
29
  },
10
30
  "AccountVoteStandard": {
11
31
  "type": "struct",
12
32
  "type_mapping": [
13
- ["vote", "Vote"],
14
- ["balance", "Balance"]
33
+ [
34
+ "vote",
35
+ "Vote"
36
+ ],
37
+ [
38
+ "balance",
39
+ "Balance"
40
+ ]
15
41
  ]
16
42
  },
17
43
  "AccountVote": {
18
44
  "type": "enum",
19
45
  "type_mapping": [
20
- ["Standard", "AccountVoteStandard"],
21
- ["Split", "AccountVoteSplit"]
46
+ [
47
+ "Standard",
48
+ "AccountVoteStandard"
49
+ ],
50
+ [
51
+ "Split",
52
+ "AccountVoteSplit"
53
+ ]
22
54
  ]
23
55
  },
24
56
  "Delegations": {
25
57
  "type": "struct",
26
58
  "type_mapping": [
27
- ["votes", "Balance"],
28
- ["capital", "Balance"]
59
+ [
60
+ "votes",
61
+ "Balance"
62
+ ],
63
+ [
64
+ "capital",
65
+ "Balance"
66
+ ]
29
67
  ]
30
68
  },
31
69
  "PriorLock": {
@@ -35,36 +73,72 @@
35
73
  ["balance", "Balance"]
36
74
  ]
37
75
  },
38
- "ReferendumInfo<BlockNumber, Hash, Balance>": {
39
- "type": "enum",
40
- "type_mapping": [
41
- ["Ongoing", "ReferendumStatus"],
42
- ["Finished", "ReferendumInfoFinished"]
43
- ]
44
- },
45
76
  "ReferendumInfoFinished": {
46
77
  "type": "struct",
47
78
  "type_mapping": [
48
- ["approved", "bool"],
49
- ["end", "BlockNumber"]
79
+ [
80
+ "approved",
81
+ "bool"
82
+ ],
83
+ [
84
+ "end",
85
+ "BlockNumber"
86
+ ]
50
87
  ]
51
88
  },
52
89
  "Tally": {
53
90
  "type": "struct",
54
91
  "type_mapping": [
55
- ["ayes", "Balance"],
56
- ["nays", "Balance"],
57
- ["turnout", "Balance"]
92
+ [
93
+ "ayes",
94
+ "Balance"
95
+ ],
96
+ [
97
+ "nays",
98
+ "Balance"
99
+ ],
100
+ [
101
+ "turnout",
102
+ "Balance"
103
+ ]
58
104
  ]
59
105
  },
60
106
  "ReferendumStatus": {
61
107
  "type": "struct",
62
108
  "type_mapping": [
63
- ["end", "BlockNumber"],
64
- ["proposalHash", "Hash"],
65
- ["threshold", "VoteThreshold"],
66
- ["delay", "BlockNumber"],
67
- ["tally", "Tally"]
109
+ [
110
+ "end",
111
+ "BlockNumber"
112
+ ],
113
+ [
114
+ "proposalHash",
115
+ "Hash"
116
+ ],
117
+ [
118
+ "threshold",
119
+ "VoteThreshold"
120
+ ],
121
+ [
122
+ "delay",
123
+ "BlockNumber"
124
+ ],
125
+ [
126
+ "tally",
127
+ "Tally"
128
+ ]
129
+ ]
130
+ },
131
+ "ReferendumInfo": {
132
+ "type": "enum",
133
+ "type_mapping": [
134
+ [
135
+ "Ongoing",
136
+ "ReferendumStatus"
137
+ ],
138
+ [
139
+ "Finished",
140
+ "ReferendumInfoFinished"
141
+ ]
68
142
  ]
69
143
  },
70
144
  "VotingDirectVote": {
@@ -77,40 +151,82 @@
77
151
  "VotingDirect": {
78
152
  "type": "struct",
79
153
  "type_mapping": [
80
- ["votes", "Vec<VotingDirectVote>"],
81
- ["delegations", "Delegations"],
82
- ["prior", "PriorLock"]
154
+ [
155
+ "votes",
156
+ "Vec<VotingDirectVote>"
157
+ ],
158
+ [
159
+ "delegations",
160
+ "Delegations"
161
+ ],
162
+ [
163
+ "prior",
164
+ "PriorLock"
165
+ ]
83
166
  ]
84
167
  },
85
168
  "VotingDelegating": {
86
169
  "type": "struct",
87
170
  "type_mapping": [
88
- ["balance", "Balance"],
89
- ["target", "AccountId"],
90
- ["conviction", "Conviction"],
91
- ["delegations", "Delegations"],
92
- ["prior", "PriorLock"]
171
+ [
172
+ "balance",
173
+ "Balance"
174
+ ],
175
+ [
176
+ "target",
177
+ "AccountId"
178
+ ],
179
+ [
180
+ "conviction",
181
+ "Conviction"
182
+ ],
183
+ [
184
+ "delegations",
185
+ "Delegations"
186
+ ],
187
+ [
188
+ "prior",
189
+ "PriorLock"
190
+ ]
93
191
  ]
94
192
  },
95
193
  "Voting": {
96
194
  "type": "enum",
97
195
  "type_mapping": [
98
- ["Direct", "VotingDirect"],
99
- ["Delegating", "VotingDelegating"]
196
+ [
197
+ "Direct",
198
+ "VotingDirect"
199
+ ],
200
+ [
201
+ "Delegating",
202
+ "VotingDelegating"
203
+ ]
100
204
  ]
101
205
  },
102
206
  "(AccountId, Balance)": {
103
207
  "type": "struct",
104
208
  "type_mapping": [
105
- ["account", "AccountId"],
106
- ["balance", "Balance"]
209
+ [
210
+ "account",
211
+ "AccountId"
212
+ ],
213
+ [
214
+ "balance",
215
+ "Balance"
216
+ ]
107
217
  ]
108
218
  },
109
219
  "(BalanceOf<T, I>, BidKind<AccountId, BalanceOf<T, I>>)": {
110
220
  "type": "struct",
111
221
  "type_mapping": [
112
- ["balance", "Balance"],
113
- ["bidkind", "BidKind"]
222
+ [
223
+ "balance",
224
+ "Balance"
225
+ ],
226
+ [
227
+ "bidkind",
228
+ "BidKind"
229
+ ]
114
230
  ]
115
231
  },
116
232
  "RefCount": "u8",
@@ -118,62 +234,143 @@
118
234
  "AccountData": {
119
235
  "type": "struct",
120
236
  "type_mapping": [
121
- ["free", "Balance"],
122
- ["reserved", "Balance"],
123
- ["miscFrozen", "Balance"],
124
- ["feeFrozen", "Balance"]
237
+ [
238
+ "free",
239
+ "Balance"
240
+ ],
241
+ [
242
+ "reserved",
243
+ "Balance"
244
+ ],
245
+ [
246
+ "miscFrozen",
247
+ "Balance"
248
+ ],
249
+ [
250
+ "feeFrozen",
251
+ "Balance"
252
+ ]
125
253
  ]
126
254
  },
127
255
  "AccountInfo<Index, AccountData>": {
128
256
  "type": "struct",
129
257
  "type_mapping": [
130
- ["nonce", "Index"],
131
- ["refcount", "RefCount"],
132
- ["data", "AccountData"]
258
+ [
259
+ "nonce",
260
+ "Index"
261
+ ],
262
+ [
263
+ "refcount",
264
+ "RefCount"
265
+ ],
266
+ [
267
+ "data",
268
+ "AccountData"
269
+ ]
133
270
  ]
134
271
  },
135
272
  "ActiveEraInfo": {
136
273
  "type": "struct",
137
274
  "type_mapping": [
138
- ["index", "EraIndex"],
139
- ["start", "Option<Moment>"]
275
+ [
276
+ "index",
277
+ "EraIndex"
278
+ ],
279
+ [
280
+ "start",
281
+ "Option<Moment>"
282
+ ]
140
283
  ]
141
284
  },
142
- "BlockNumber": "U64",
285
+ "BlockNumber": "u32",
143
286
  "CandidateReceipt": {
144
287
  "type": "struct",
145
288
  "type_mapping": [
146
- ["parachainIndex", "ParaId"],
147
- ["collator", "AccountId"],
148
- ["signature", "CollatorSignature"],
149
- ["headData", "HeadData"],
150
- ["balanceUploads", "Vec<BalanceUpload>"],
151
- ["egressQueueRoots", "Vec<EgressQueueRoot>"],
152
- ["fees", "u64"],
153
- ["blockDataHash", "Hash"]
289
+ [
290
+ "parachainIndex",
291
+ "ParaId"
292
+ ],
293
+ [
294
+ "relayParent",
295
+ "Hash"
296
+ ],
297
+ [
298
+ "head_data",
299
+ "HeadData"
300
+ ],
301
+ [
302
+ "collator",
303
+ "CollatorId"
304
+ ],
305
+ [
306
+ "signature",
307
+ "CollatorSignature"
308
+ ],
309
+ [
310
+ "povBlockHash",
311
+ "Hash"
312
+ ],
313
+ [
314
+ "globalValidation",
315
+ "GlobalValidationSchedule"
316
+ ],
317
+ [
318
+ "localValidation",
319
+ "LocalValidationData"
320
+ ],
321
+ [
322
+ "commitments",
323
+ "CandidateCommitments"
324
+ ]
154
325
  ]
155
326
  },
156
327
  "ValidityVote": {
157
328
  "type": "struct",
158
329
  "type_mapping": [
159
- ["accountId", "AccountId"],
160
- ["validityAttestation", "ValidityAttestation"]
330
+ [
331
+ "accountId",
332
+ "AccountId"
333
+ ],
334
+ [
335
+ "validityAttestation",
336
+ "ValidityAttestation"
337
+ ]
161
338
  ]
162
339
  },
163
340
  "AttestedCandidate": {
164
341
  "type": "struct",
165
342
  "type_mapping": [
166
- ["candidate", "CandidateReceipt"],
167
- ["validityVotes", "Vec<ValidityVote>"]
343
+ [
344
+ "candidate",
345
+ "AbridgedCandidateReceipt"
346
+ ],
347
+ [
348
+ "validityVotes",
349
+ "Vec<ValidityAttestation>"
350
+ ],
351
+ [
352
+ "validatorIndices",
353
+ "BitVec"
354
+ ]
168
355
  ]
169
356
  },
170
357
  "LockIdentifier": "[u8; 8]",
358
+ "TransactionPriority": "u64",
171
359
  "BalanceLock": {
172
360
  "type": "struct",
173
361
  "type_mapping": [
174
- ["id", "LockIdentifier"],
175
- ["amount", "Balance"],
176
- ["reasons", "Reasons"]
362
+ [
363
+ "id",
364
+ "LockIdentifier"
365
+ ],
366
+ [
367
+ "amount",
368
+ "Balance"
369
+ ],
370
+ [
371
+ "reasons",
372
+ "Reasons"
373
+ ]
177
374
  ]
178
375
  },
179
376
  "FullIdentification": {
@@ -191,7 +388,7 @@
191
388
  ["exposure", "FullIdentification"]
192
389
  ]
193
390
  },
194
- "SetId": "U64",
391
+ "SetId": "u64",
195
392
  "Reasons": {
196
393
  "type": "enum",
197
394
  "value_list": [
@@ -201,9 +398,9 @@
201
398
  ]
202
399
  },
203
400
  "RoundNumber": "U64",
204
- "SessionIndex": "U32",
205
- "AuctionIndex": "U32",
206
- "AuthIndex": "U32",
401
+ "SessionIndex": "u32",
402
+ "AuctionIndex": "u32",
403
+ "AuthIndex": "u32",
207
404
  "AuthorityIndex": "u64",
208
405
  "Signature": "H512",
209
406
  "CollatorSignature": "Signature",
@@ -215,58 +412,148 @@
215
412
  ["weight", "AuthorityWeight"]
216
413
  ]
217
414
  },
218
- "AuthorityList": "VecNextAuthority",
415
+ "AuthorityList": "Vec<NextAuthority>",
219
416
  "BalanceUpload": {
220
417
  "type": "struct",
221
418
  "type_mapping": [
222
- ["accountId", "AccountId"],
223
- ["balance", "u64"]
419
+ [
420
+ "accountId",
421
+ "AccountId"
422
+ ],
423
+ [
424
+ "balance",
425
+ "u64"
426
+ ]
224
427
  ]
225
428
  },
226
- "CollatorId": "H256",
429
+ "CollatorId": "[u8; 32]",
227
430
  "ContractInfo": {
228
431
  "type": "enum",
229
- "value_list": [
230
- "Alive",
231
- "Tombstone"
432
+ "type_mapping": [
433
+ [
434
+ "Alive",
435
+ "AliveContractInfo"
436
+ ],
437
+ [
438
+ "Tombstone",
439
+ "TombstoneContractInfo"
440
+ ]
232
441
  ]
233
442
  },
234
- "TrieId": "Vec<u8>",
443
+ "TrieId": "Bytes",
235
444
  "RawAliveContractInfo": {
236
445
  "type": "struct",
237
446
  "type_mapping": [
238
- ["trie_id", "TrieId"],
239
- ["storage_size", "u32"],
240
- ["code_hash", "CodeHash"],
241
- ["rent_allowance", "Balance"],
242
- ["deduct_block", "BlockNumber"],
243
- ["last_write", "Option<BlockNumber>"]
447
+ [
448
+ "trie_id",
449
+ "TrieId"
450
+ ],
451
+ [
452
+ "storage_size",
453
+ "u32"
454
+ ],
455
+ [
456
+ "code_hash",
457
+ "CodeHash"
458
+ ],
459
+ [
460
+ "rent_allowance",
461
+ "Balance"
462
+ ],
463
+ [
464
+ "deduct_block",
465
+ "BlockNumber"
466
+ ],
467
+ [
468
+ "last_write",
469
+ "Option<BlockNumber>"
470
+ ]
471
+ ]
472
+ },
473
+ "Pays": {
474
+ "type": "enum",
475
+ "value_list": [
476
+ "Yes",
477
+ "No"
244
478
  ]
245
479
  },
246
480
  "DispatchClass": {
247
481
  "type": "enum",
248
482
  "value_list": [
249
483
  "Normal",
250
- "Operational"
484
+ "Operational",
485
+ "Mandatory"
251
486
  ]
252
487
  },
253
488
  "DispatchInfo": {
254
489
  "type": "struct",
255
490
  "type_mapping": [
256
- ["weight", "Weight"],
257
- ["class", "DispatchClass"],
258
- ["paysFee", "bool"]
491
+ [
492
+ "weight",
493
+ "Weight"
494
+ ],
495
+ [
496
+ "class",
497
+ "DispatchClass"
498
+ ],
499
+ [
500
+ "paysFee",
501
+ "Pays"
502
+ ]
259
503
  ]
260
504
  },
261
505
  "EgressQueueRoot": {
262
506
  "type": "struct",
263
507
  "type_mapping": [
264
- ["paraId", "ParaId"],
265
- ["hash", "Hash"]
508
+ [
509
+ "paraId",
510
+ "ParaId"
511
+ ],
512
+ [
513
+ "hash",
514
+ "Hash"
515
+ ]
266
516
  ]
267
517
  },
268
518
  "EventIndex": "u32",
269
- "Extrinsic": "ExtrinsicDecoder",
519
+ "Extrinsic": "ExtrinsicsDecoder",
520
+ "ExtrinsicPayloadValue": {
521
+ "type": "struct",
522
+ "type_mapping": [
523
+ [
524
+ "call",
525
+ "CallBytes"
526
+ ],
527
+ [
528
+ "era",
529
+ "Era"
530
+ ],
531
+ [
532
+ "nonce",
533
+ "Compact<Index>"
534
+ ],
535
+ [
536
+ "tip",
537
+ "Compact<Balance>"
538
+ ],
539
+ [
540
+ "specVersion",
541
+ "u32"
542
+ ],
543
+ [
544
+ "transactionVersion",
545
+ "u32"
546
+ ],
547
+ [
548
+ "genesisHash",
549
+ "Hash"
550
+ ],
551
+ [
552
+ "blockHash",
553
+ "Hash"
554
+ ]
555
+ ]
556
+ },
270
557
  "Gas": "u64",
271
558
  "IdentityFields": {
272
559
  "type": "set",
@@ -275,9 +562,9 @@
275
562
  "Display": 1,
276
563
  "Legal": 2,
277
564
  "Web": 4,
278
- "Riot": 8,
279
- "Email": 16,
280
- "PgpFingerprint": 32,
565
+ "Riot": 8,
566
+ "Email": 16,
567
+ "PgpFingerprint": 32,
281
568
  "Image": 64,
282
569
  "Twitter": 128
283
570
  }
@@ -292,27 +579,75 @@
292
579
  "IdentityInfo": {
293
580
  "type": "struct",
294
581
  "type_mapping": [
295
- ["additional", "Vec<IdentityInfoAdditional>"],
296
- ["display", "Data"],
297
- ["legal", "Data"],
298
- ["web", "Data"],
299
- ["riot", "Data"],
300
- ["email", "Data"],
301
- ["pgpFingerprint", "Option<H160>"],
302
- ["image", "Data"],
303
- ["twitter", "Data"]
582
+ [
583
+ "additional",
584
+ "Vec<IdentityInfoAdditional>"
585
+ ],
586
+ [
587
+ "display",
588
+ "Data"
589
+ ],
590
+ [
591
+ "legal",
592
+ "Data"
593
+ ],
594
+ [
595
+ "web",
596
+ "Data"
597
+ ],
598
+ [
599
+ "riot",
600
+ "Data"
601
+ ],
602
+ [
603
+ "email",
604
+ "Data"
605
+ ],
606
+ [
607
+ "pgpFingerprint",
608
+ "Option<H160>"
609
+ ],
610
+ [
611
+ "image",
612
+ "Data"
613
+ ],
614
+ [
615
+ "twitter",
616
+ "Data"
617
+ ]
304
618
  ]
305
619
  },
306
620
  "IdentityJudgement": {
307
621
  "type": "enum",
308
622
  "type_mapping": [
309
- ["Unknown", "Null"],
310
- ["FeePaid", "Balance"],
311
- ["Reasonable", "Null"],
312
- ["KnownGood", "Null"],
313
- ["OutOfDate", "Null"],
314
- ["LowQuality", "Null"],
315
- ["Erroneous", "Null"]
623
+ [
624
+ "Unknown",
625
+ "Null"
626
+ ],
627
+ [
628
+ "FeePaid",
629
+ "Balance"
630
+ ],
631
+ [
632
+ "Reasonable",
633
+ "Null"
634
+ ],
635
+ [
636
+ "KnownGood",
637
+ "Null"
638
+ ],
639
+ [
640
+ "OutOfDate",
641
+ "Null"
642
+ ],
643
+ [
644
+ "LowQuality",
645
+ "Null"
646
+ ],
647
+ [
648
+ "Erroneous",
649
+ "Null"
650
+ ]
316
651
  ]
317
652
  },
318
653
  "Judgement": "IdentityJudgement",
@@ -322,65 +657,121 @@
322
657
  "(LeasePeriodOf, IncomingParachain<AccountId, Hash>)": {
323
658
  "type": "struct",
324
659
  "type_mapping": [
325
- ["leasePeriod", "LeasePeriodOf"],
326
- ["incomingParachain", "IncomingParachain"]
660
+ [
661
+ "leasePeriod",
662
+ "LeasePeriodOf"
663
+ ],
664
+ [
665
+ "incomingParachain",
666
+ "IncomingParachain"
667
+ ]
327
668
  ]
328
669
  },
329
670
  "(ParaId, Option<(CollatorId, Retriable)>)": {
330
671
  "type": "struct",
331
672
  "type_mapping": [
332
- ["ParaId", "ParaId"],
333
- ["CollatorId-Retriable", "Option<(CollatorId, Retriable)>"]
673
+ [
674
+ "ParaId",
675
+ "ParaId"
676
+ ],
677
+ [
678
+ "CollatorId-Retriable",
679
+ "Option<(CollatorId, Retriable)>"
680
+ ]
334
681
  ]
335
682
  },
336
- "MaybeVrf": "[u8; 32]",
683
+ "MaybeVrf": "Option<VrfData>",
337
684
  "MemberCount": "u32",
338
685
  "MomentOf": "Moment",
339
- "MoreAttestations": "Null",
340
- "Multiplier": "u64",
341
- "Timepoint": {
686
+ "MoreAttestations": {
342
687
  "type": "struct",
343
- "type_mapping": [
344
- ["height", "BlockNumber"],
345
- ["index", "u32"]
346
- ]
688
+ "type_mapping": []
347
689
  },
348
- "Multisig": {
690
+ "Multiplier": "Fixed128",
691
+ "Timepoint": {
349
692
  "type": "struct",
350
693
  "type_mapping": [
351
- ["when", "Timepoint"],
352
- ["deposit", "Balance"],
353
- ["depositor", "AccountId"],
354
- ["approvals", "Vec<AccountId>"]
694
+ [
695
+ "height",
696
+ "BlockNumber"
697
+ ],
698
+ [
699
+ "index",
700
+ "u32"
701
+ ]
355
702
  ]
356
703
  },
357
- "Offender": {
704
+ "Multisig": {
358
705
  "type": "struct",
359
706
  "type_mapping": [
360
- ["validatorId", "ValidatorId"],
361
- ["exposure", "Exposure"]
707
+ [
708
+ "when",
709
+ "Timepoint"
710
+ ],
711
+ [
712
+ "deposit",
713
+ "Balance"
714
+ ],
715
+ [
716
+ "depositor",
717
+ "AccountId"
718
+ ],
719
+ [
720
+ "approvals",
721
+ "Vec<AccountId>"
722
+ ]
362
723
  ]
363
724
  },
725
+ "Offender": "IdentificationTuple",
364
726
  "PhantomData": "Null",
365
727
  "sp_std::marker::PhantomData<(AccountId, Event)>": "PhantomData",
366
728
  "Reporter": "AccountId",
367
- "OffenceDetails<AccountId, IdentificationTuple>": {
729
+ "OffenceDetails": {
368
730
  "type": "struct",
369
731
  "type_mapping": [
370
- ["offender", "Offender"],
371
- ["reporters", "Vec<Reporter>"]
732
+ [
733
+ "offender",
734
+ "Offender"
735
+ ],
736
+ [
737
+ "reporters",
738
+ "Vec<Reporter>"
739
+ ]
372
740
  ]
373
741
  },
374
742
  "OpenTipFinder": "(AccountId, Balance)",
375
743
  "OpenTipTip": "(AccountId, Balance)",
376
- "OpenTip<AccountId, BalanceOf, BlockNumber, Hash>": {
744
+ "OpenTip": {
377
745
  "type": "struct",
378
746
  "type_mapping": [
379
- ["reason", "Hash"],
380
- ["who", "AccountId"],
381
- ["finder", "Option<OpenTipFinder>"],
382
- ["closes", "Option<BlockNumber>"],
383
- ["tips", "Vec<OpenTipTip>"]
747
+ [
748
+ "reason",
749
+ "Hash"
750
+ ],
751
+ [
752
+ "who",
753
+ "AccountId"
754
+ ],
755
+ [
756
+ "finder",
757
+ "AccountId"
758
+ ],
759
+ [
760
+ "deposit",
761
+ "Balance"
762
+ ],
763
+ [
764
+ "closes",
765
+ "Option<BlockNumber>"
766
+ ],
767
+ [
768
+ "tips",
769
+ "Vec<OpenTipTip>"
770
+ ],
771
+ [
772
+ "findersFee",
773
+ "bool"
774
+ ]
384
775
  ]
385
776
  },
386
777
  "ParaId": "u32",
@@ -395,7 +786,10 @@
395
786
  "ParaInfo": {
396
787
  "type": "struct",
397
788
  "type_mapping": [
398
- ["scheduling", "ParaScheduling"]
789
+ [
790
+ "scheduling",
791
+ "Scheduling"
792
+ ]
399
793
  ]
400
794
  },
401
795
  "Percent": "u8",
@@ -405,50 +799,129 @@
405
799
  "RawAuraPreDigest": {
406
800
  "type": "struct",
407
801
  "type_mapping": [
408
- ["slotNumber", "SlotNumber"]
802
+ [
803
+ "slotNumber",
804
+ "u64"
805
+ ]
409
806
  ]
410
807
  },
411
808
  "RawBabePreDigest": {
412
809
  "type": "enum",
413
810
  "type_mapping": [
414
- ["value", "Null"],
415
- ["value", "RawBabePreDigestPrimary"],
416
- ["value", "RawBabePreDigestSecondary"]
811
+ [
812
+ "Phantom",
813
+ "Null"
814
+ ],
815
+ [
816
+ "Primary",
817
+ "RawBabePreDigestPrimary"
818
+ ],
819
+ [
820
+ "SecondaryPlain",
821
+ "RawBabePreDigestSecondaryPlain"
822
+ ],
823
+ [
824
+ "SecondaryVRF",
825
+ "RawBabePreDigestSecondaryVRF"
826
+ ]
417
827
  ]
418
828
  },
419
829
  "RawBabePreDigestPrimary": {
420
830
  "type": "struct",
421
831
  "type_mapping": [
422
- ["authorityIndex", "u32"],
423
- ["slotNumber", "SlotNumber"],
424
- ["vrfOutput", "VrfData"],
425
- ["vrfProof", "VrfProof"]
832
+ [
833
+ "authorityIndex",
834
+ "u32"
835
+ ],
836
+ [
837
+ "slotNumber",
838
+ "SlotNumber"
839
+ ],
840
+ [
841
+ "vrfOutput",
842
+ "VrfOutput"
843
+ ],
844
+ [
845
+ "vrfProof",
846
+ "VrfProof"
847
+ ]
848
+ ]
849
+ },
850
+ "RawBabePreDigestSecondaryPlain": {
851
+ "type": "struct",
852
+ "type_mapping": [
853
+ [
854
+ "authorityIndex",
855
+ "u32"
856
+ ],
857
+ [
858
+ "slotNumber",
859
+ "SlotNumber"
860
+ ]
426
861
  ]
427
862
  },
428
- "RawBabePreDigestSecondary": {
863
+ "RawBabePreDigestSecondaryVRF": {
429
864
  "type": "struct",
430
865
  "type_mapping": [
431
- ["authorityIndex", "u32"],
432
- ["slotNumber", "SlotNumber"]
866
+ [
867
+ "authorityIndex",
868
+ "u32"
869
+ ],
870
+ [
871
+ "slotNumber",
872
+ "SlotNumber"
873
+ ],
874
+ [
875
+ "vrfOutput",
876
+ "VrfOutput"
877
+ ],
878
+ [
879
+ "vrfProof",
880
+ "VrfProof"
881
+ ]
433
882
  ]
434
883
  },
435
884
  "ReferendumInfo<BlockNumber, Proposal>": {
436
885
  "type": "struct",
437
886
  "type_mapping": [
438
- ["end", "BlockNumber"],
439
- ["proposal", "Proposal"],
440
- ["threshold", "VoteThreshold"],
441
- ["delay", "BlockNumber"]
887
+ [
888
+ "end",
889
+ "BlockNumber"
890
+ ],
891
+ [
892
+ "proposal",
893
+ "Proposal"
894
+ ],
895
+ [
896
+ "threshold",
897
+ "VoteThreshold"
898
+ ],
899
+ [
900
+ "delay",
901
+ "BlockNumber"
902
+ ]
442
903
  ]
443
904
  },
444
905
  "(ReferendumInfo<BlockNumber, Proposal>)": "ReferendumInfo<BlockNumber, Proposal>",
445
906
  "ReferendumInfo<BlockNumber, Hash>": {
446
907
  "type": "struct",
447
908
  "type_mapping": [
448
- ["end", "BlockNumber"],
449
- ["proposalHash", "Hash"],
450
- ["threshold", "VoteThreshold"],
451
- ["delay", "BlockNumber"]
909
+ [
910
+ "end",
911
+ "BlockNumber"
912
+ ],
913
+ [
914
+ "proposalHash",
915
+ "Hash"
916
+ ],
917
+ [
918
+ "threshold",
919
+ "VoteThreshold"
920
+ ],
921
+ [
922
+ "delay",
923
+ "BlockNumber"
924
+ ]
452
925
  ]
453
926
  },
454
927
  "(ReferendumInfo<BlockNumber, Hash>)": "ReferendumInfo<BlockNumber, Hash>",
@@ -456,9 +929,18 @@
456
929
  "RegistrarInfo": {
457
930
  "type": "struct",
458
931
  "type_mapping": [
459
- ["account", "AccountId"],
460
- ["fee", "Balance"],
461
- ["fields", "IdentityFields"]
932
+ [
933
+ "account",
934
+ "AccountId"
935
+ ],
936
+ [
937
+ "fee",
938
+ "Balance"
939
+ ],
940
+ [
941
+ "fields",
942
+ "IdentityFields"
943
+ ]
462
944
  ]
463
945
  },
464
946
  "RegistrationJudgement": {
@@ -471,43 +953,88 @@
471
953
  "Registration": {
472
954
  "type": "struct",
473
955
  "type_mapping": [
474
- ["judgements", "Vec<RegistrationJudgement>"],
475
- ["deposit", "Balance"],
476
- ["info", "IdentityInfo"]
956
+ [
957
+ "judgements",
958
+ "Vec<RegistrationJudgement>"
959
+ ],
960
+ [
961
+ "deposit",
962
+ "Balance"
963
+ ],
964
+ [
965
+ "info",
966
+ "IdentityInfo"
967
+ ]
477
968
  ]
478
969
  },
479
970
  "ReportIdOf": "Hash",
480
971
  "Schedule": {
481
972
  "type": "struct",
482
973
  "type_mapping": [
483
- ["version", "u32"],
484
- ["put_code_per_byte_cost", "Gas"],
485
- ["grow_mem_cost", "Gas"],
486
- ["regular_op_cost", "Gas"],
487
- ["return_data_per_byte_cost", "Gas"],
488
- ["event_data_per_byte_cost", "Gas"],
489
- ["event_per_topic_cost", "Gas"],
490
- ["event_base_cost", "Gas"],
491
- ["call_base_cost", "Gas"],
492
- ["instantiate_base_cost", "Gas"],
493
- ["sandbox_data_read_cost", "Gas"],
494
- ["sandbox_data_write_cost", "Gas"],
495
- ["max_event_topics", "u32"],
496
- ["max_stack_height", "u32"],
497
- ["max_memory_pages", "u32"],
498
- ["max_table_size", "u32"],
499
- ["enable_println", "bool"],
500
- ["max_subject_len", "u32"]
501
- ]
502
- },
503
- "StakingLedger<AccountId, BalanceOf>": {
504
- "type": "struct",
505
- "type_mapping": [
506
- ["stash", "AccountId"],
507
- ["total", "Compact<Balance>"],
508
- ["active", "Compact<Balance>"],
509
- ["unlocking", "Vec<UnlockChunk<Balance>>"],
510
- ["lastReward", "Option<EraIndex>"]
974
+ [
975
+ "version",
976
+ "u32"
977
+ ],
978
+ [
979
+ "putCodePerByteCost",
980
+ "Gas"
981
+ ],
982
+ [
983
+ "growMemCost",
984
+ "Gas"
985
+ ],
986
+ [
987
+ "regularOpCost",
988
+ "Gas"
989
+ ],
990
+ [
991
+ "returnDataPerByteCost",
992
+ "Gas"
993
+ ],
994
+ [
995
+ "eventDataPerByteCost",
996
+ "Gas"
997
+ ],
998
+ [
999
+ "eventPerTopicCost",
1000
+ "Gas"
1001
+ ],
1002
+ [
1003
+ "eventBaseCost",
1004
+ "Gas"
1005
+ ],
1006
+ [
1007
+ "sandboxDataReadCost",
1008
+ "Gas"
1009
+ ],
1010
+ [
1011
+ "sandboxDataWriteCost",
1012
+ "Gas"
1013
+ ],
1014
+ [
1015
+ "transferCost",
1016
+ "Gas"
1017
+ ],
1018
+ [
1019
+ "maxEventTopics",
1020
+ "u32"
1021
+ ],
1022
+ [
1023
+ "maxStackHeight",
1024
+ "u32"
1025
+ ],
1026
+ [
1027
+ "maxMemoryPages",
1028
+ "u32"
1029
+ ],
1030
+ [
1031
+ "enablePrintln",
1032
+ "bool"
1033
+ ],
1034
+ [
1035
+ "maxSubjectLen",
1036
+ "u32"
1037
+ ]
511
1038
  ]
512
1039
  },
513
1040
  "SubId": "u32",
@@ -518,31 +1045,36 @@
518
1045
  "Uncle"
519
1046
  ]
520
1047
  },
521
- "ValidatorPrefs": {
1048
+ "ValidatorPrefs": {
522
1049
  "type": "struct",
523
1050
  "type_mapping": [
524
- ["commission", "Compact<Perbill>"]
1051
+ [
1052
+ "commission",
1053
+ "Compact<Perbill>"
1054
+ ]
525
1055
  ]
526
1056
  },
527
1057
  "VestingSchedule<Balance, BlockNumber>": {
528
1058
  "type": "struct",
529
1059
  "type_mapping": [
530
- ["offset", "Balance"],
531
- ["perBlock", "Balance"],
532
- ["startingBlock", "BlockNumber"]
533
- ]
534
- },
535
- "Weight": "u32",
536
- "WeightMultiplier": "u64",
537
- "WinningDataEntry": {
538
- "type": "struct",
539
- "type_mapping": [
540
- ["accountId", "AccountId"],
541
- ["paraId", "ParaId"],
542
- ["balance", "Balance"]
1060
+ [
1061
+ "offset",
1062
+ "Balance"
1063
+ ],
1064
+ [
1065
+ "perBlock",
1066
+ "Balance"
1067
+ ],
1068
+ [
1069
+ "startingBlock",
1070
+ "BlockNumber"
1071
+ ]
543
1072
  ]
544
1073
  },
545
- "WinningData": "Vec<WinningDataEntry>",
1074
+ "Weight": "u64",
1075
+ "WeightMultiplier": "Fixed64",
1076
+ "WinningDataEntry": "Option<Bidder>",
1077
+ "WinningData": "[WinningDataEntry; 10]",
546
1078
  "WithdrawReasons": {
547
1079
  "type": "set",
548
1080
  "value_type": "u64",
@@ -554,14 +1086,23 @@
554
1086
  "Tip": 16
555
1087
  }
556
1088
  },
557
- "Index": "U32",
1089
+ "Index": "u32",
558
1090
  "Kind": "[u8; 16]",
559
1091
  "Nominations": {
560
1092
  "type": "struct",
561
1093
  "type_mapping": [
562
- ["targets", "Vec<AccountId>"],
563
- ["submittedIn", "EraIndex"],
564
- ["suppressed", "bool"]
1094
+ [
1095
+ "targets",
1096
+ "Vec<AccountId>"
1097
+ ],
1098
+ [
1099
+ "submittedIn",
1100
+ "EraIndex"
1101
+ ],
1102
+ [
1103
+ "suppressed",
1104
+ "bool"
1105
+ ]
565
1106
  ]
566
1107
  },
567
1108
  "OpaqueTimeSlot": "Bytes",
@@ -569,24 +1110,63 @@
569
1110
  "AuthoritySignature": "Signature",
570
1111
  "<AuthorityId as RuntimeAppPublic>::Signature": "AuthoritySignature",
571
1112
  "&[u8]": "Bytes",
1113
+ "Text": "Bytes",
572
1114
  "Forcing": {
573
1115
  "type": "enum",
574
1116
  "value_list": [
575
1117
  "NotForcing",
576
1118
  "ForceNew",
577
- "ForceNone"
1119
+ "ForceNone",
1120
+ "ForceAlways"
578
1121
  ]
579
1122
  },
580
1123
  "Heartbeat": {
581
1124
  "type": "struct",
582
1125
  "type_mapping": [
583
- ["blockNumber", "BlockNumber"],
584
- ["networkState", "OpaqueNetworkState"],
585
- ["sessionIndex", "SessionIndex"],
586
- ["authorityIndex", "AuthIndex"]
1126
+ [
1127
+ "blockNumber",
1128
+ "BlockNumber"
1129
+ ],
1130
+ [
1131
+ "networkState",
1132
+ "OpaqueNetworkState"
1133
+ ],
1134
+ [
1135
+ "sessionIndex",
1136
+ "SessionIndex"
1137
+ ],
1138
+ [
1139
+ "authorityIndex",
1140
+ "AuthIndex"
1141
+ ],
1142
+ [
1143
+ "validatorsLen",
1144
+ "u32"
1145
+ ]
587
1146
  ]
588
1147
  },
589
1148
  "RewardDestination": {
1149
+ "type": "enum",
1150
+ "type_mapping": [
1151
+ [
1152
+ "Staked",
1153
+ "Null"
1154
+ ],
1155
+ [
1156
+ "Stash",
1157
+ "Null"
1158
+ ],
1159
+ [
1160
+ "Controller",
1161
+ "Null"
1162
+ ],
1163
+ [
1164
+ "Account",
1165
+ "AccountId"
1166
+ ]
1167
+ ]
1168
+ },
1169
+ "RewardDestinationTo257": {
590
1170
  "type": "enum",
591
1171
  "value_list": [
592
1172
  "Staked",
@@ -597,27 +1177,57 @@
597
1177
  "ChangesTrieConfiguration": {
598
1178
  "type": "struct",
599
1179
  "type_mapping": [
600
- ["digestInterval", "u32"],
601
- ["digestLevels", "u32"]
1180
+ [
1181
+ "digestInterval",
1182
+ "u32"
1183
+ ],
1184
+ [
1185
+ "digestLevels",
1186
+ "u32"
1187
+ ]
602
1188
  ]
603
1189
  },
604
- "ConsensusEngineId": "[u8; 4]",
1190
+ "ConsensusEngineId": "GenericConsensusEngineId",
605
1191
  "DigestItem": {
606
1192
  "type": "enum",
607
1193
  "type_mapping": [
608
- ["Other", "Vec<u8>"],
609
- ["AuthoritiesChange", "Vec<AuthorityId>"],
610
- ["ChangesTrieRoot", "Hash"],
611
- ["SealV0", "SealV0"],
612
- ["Consensus", "Consensus"],
613
- ["Seal", "Seal"],
614
- ["PreRuntime", "PreRuntime"]
1194
+ [
1195
+ "Other",
1196
+ "Bytes"
1197
+ ],
1198
+ [
1199
+ "AuthoritiesChange",
1200
+ "Vec<AuthorityId>"
1201
+ ],
1202
+ [
1203
+ "ChangesTrieRoot",
1204
+ "Hash"
1205
+ ],
1206
+ [
1207
+ "SealV0",
1208
+ "SealV0"
1209
+ ],
1210
+ [
1211
+ "Consensus",
1212
+ "Consensus"
1213
+ ],
1214
+ [
1215
+ "Seal",
1216
+ "Seal"
1217
+ ],
1218
+ [
1219
+ "PreRuntime",
1220
+ "PreRuntime"
1221
+ ]
615
1222
  ]
616
1223
  },
617
1224
  "Digest": {
618
1225
  "type": "struct",
619
1226
  "type_mapping": [
620
- ["logs", "Vec<DigestItem<Hash>>"]
1227
+ [
1228
+ "logs",
1229
+ "Vec<DigestItem>"
1230
+ ]
621
1231
  ]
622
1232
  },
623
1233
  "DigestOf": "Digest",
@@ -626,18 +1236,36 @@
626
1236
  "SlashingSpans": {
627
1237
  "type": "struct",
628
1238
  "type_mapping": [
629
- ["spanIndex", "SpanIndex"],
630
- ["lastStart", "EraIndex"],
631
- ["lastNonzeroSlash", "EraIndex"],
632
- ["prior", "Vec<EraIndex>"]
1239
+ [
1240
+ "spanIndex",
1241
+ "SpanIndex"
1242
+ ],
1243
+ [
1244
+ "lastStart",
1245
+ "EraIndex"
1246
+ ],
1247
+ [
1248
+ "lastNonzeroSlash",
1249
+ "EraIndex"
1250
+ ],
1251
+ [
1252
+ "prior",
1253
+ "Vec<EraIndex>"
1254
+ ]
633
1255
  ]
634
1256
  },
635
1257
  "slashing::SlashingSpans": "SlashingSpans",
636
1258
  "SpanRecord": {
637
1259
  "type": "struct",
638
1260
  "type_mapping": [
639
- ["slashed", "Balance"],
640
- ["paidOut", "Balance"]
1261
+ [
1262
+ "slashed",
1263
+ "Balance"
1264
+ ],
1265
+ [
1266
+ "paidOut",
1267
+ "Balance"
1268
+ ]
641
1269
  ]
642
1270
  },
643
1271
  "slashing::SpanRecord<BalanceOf>": "SpanRecord",
@@ -651,76 +1279,163 @@
651
1279
  "UnappliedSlash<AccountId, BalanceOf>": {
652
1280
  "type": "struct",
653
1281
  "type_mapping": [
654
- ["validator", "AccountId"],
655
- ["own", "AccountId"],
656
- ["others", "Vec<UnappliedSlashOther>"],
657
- ["reporters", "Vec<AccountId>"],
658
- ["payout", "Balance"]
1282
+ [
1283
+ "validator",
1284
+ "AccountId"
1285
+ ],
1286
+ [
1287
+ "own",
1288
+ "AccountId"
1289
+ ],
1290
+ [
1291
+ "others",
1292
+ "Vec<UnappliedSlashOther>"
1293
+ ],
1294
+ [
1295
+ "reporters",
1296
+ "Vec<AccountId>"
1297
+ ],
1298
+ [
1299
+ "payout",
1300
+ "Balance"
1301
+ ]
659
1302
  ]
660
1303
  },
661
1304
  "Keys": "SessionKeysSubstrate",
662
1305
  "Header": {
663
1306
  "type": "struct",
664
1307
  "type_mapping": [
665
- ["parent_hash", "H256"],
666
- ["number", "Compact<BlockNumber>"],
667
- ["state_root", "H256"],
668
- ["extrinsics_root", "H256"],
669
- ["digest", "Digest"]
1308
+ [
1309
+ "parentHash",
1310
+ "Hash"
1311
+ ],
1312
+ [
1313
+ "number",
1314
+ "Compact<BlockNumber>"
1315
+ ],
1316
+ [
1317
+ "stateRoot",
1318
+ "Hash"
1319
+ ],
1320
+ [
1321
+ "extrinsicsRoot",
1322
+ "Hash"
1323
+ ],
1324
+ [
1325
+ "digest",
1326
+ "Digest"
1327
+ ]
670
1328
  ]
671
1329
  },
672
1330
  "DispatchErrorModule": {
673
1331
  "type": "struct",
674
1332
  "type_mapping": [
675
- ["index", "u8"],
676
- ["error", "u8"]
1333
+ [
1334
+ "index",
1335
+ "u8"
1336
+ ],
1337
+ [
1338
+ "error",
1339
+ "u8"
1340
+ ]
677
1341
  ]
678
1342
  },
679
1343
  "DispatchError": {
680
1344
  "type": "enum",
681
1345
  "type_mapping": [
682
- ["Other", "Null"],
683
- ["CannotLookup", "Null"],
684
- ["BadOrigin", "Null"],
685
- ["Module", "DispatchErrorModule"]
1346
+ [
1347
+ "Other",
1348
+ "Null"
1349
+ ],
1350
+ [
1351
+ "CannotLookup",
1352
+ "Null"
1353
+ ],
1354
+ [
1355
+ "BadOrigin",
1356
+ "Null"
1357
+ ],
1358
+ [
1359
+ "Module",
1360
+ "DispatchErrorModule"
1361
+ ]
686
1362
  ]
687
1363
  },
688
1364
  "DispatchResult": {
689
1365
  "type": "enum",
690
1366
  "type_mapping": [
691
- ["Ok", "Null"],
692
- ["Error", "DispatchError"]
1367
+ [
1368
+ "Ok",
1369
+ "Null"
1370
+ ],
1371
+ [
1372
+ "Error",
1373
+ "DispatchError"
1374
+ ]
693
1375
  ]
694
1376
  },
695
1377
  "ActiveRecovery": {
696
1378
  "type": "struct",
697
1379
  "type_mapping": [
698
- ["created", "BlockNumber"],
699
- ["deposit", "Balance"],
700
- ["friends", "Vec<AccountId>"]
1380
+ [
1381
+ "created",
1382
+ "BlockNumber"
1383
+ ],
1384
+ [
1385
+ "deposit",
1386
+ "Balance"
1387
+ ],
1388
+ [
1389
+ "friends",
1390
+ "Vec<AccountId>"
1391
+ ]
701
1392
  ]
702
1393
  },
703
1394
  "RecoveryConfig": {
704
1395
  "type": "struct",
705
1396
  "type_mapping": [
706
- ["delayPeriod", "BlockNumber"],
707
- ["deposit", "Balance"],
708
- ["friends", "Vec<AccountId>"],
709
- ["threshold", "u16"]
1397
+ [
1398
+ "delayPeriod",
1399
+ "BlockNumber"
1400
+ ],
1401
+ [
1402
+ "deposit",
1403
+ "Balance"
1404
+ ],
1405
+ [
1406
+ "friends",
1407
+ "Vec<AccountId>"
1408
+ ],
1409
+ [
1410
+ "threshold",
1411
+ "u16"
1412
+ ]
710
1413
  ]
711
1414
  },
712
1415
  "BidKindVouch": {
713
1416
  "type": "struct",
714
1417
  "type_mapping": [
715
- ["account", "AccountId"],
716
- ["amount", "Balance"]
1418
+ [
1419
+ "account",
1420
+ "AccountId"
1421
+ ],
1422
+ [
1423
+ "amount",
1424
+ "Balance"
1425
+ ]
717
1426
  ]
718
1427
  },
719
1428
  "BidKind": {
720
1429
  "type": "enum",
721
1430
  "type_mapping": [
722
- ["Deposit", "Balance"],
723
- ["Vouch", "BidKindVouch"]
1431
+ [
1432
+ "Deposit",
1433
+ "Balance"
1434
+ ],
1435
+ [
1436
+ "Vouch",
1437
+ "(AccountId, Balance)"
1438
+ ]
724
1439
  ]
725
1440
  },
726
1441
  "BidKind<AccountId,Balance>": "Bidkind",
@@ -728,9 +1443,18 @@
728
1443
  "Bid": {
729
1444
  "type": "struct",
730
1445
  "type_mapping": [
731
- ["who", "AccountId"],
732
- ["kind", "BidKind"],
733
- ["value", "Balance"]
1446
+ [
1447
+ "who",
1448
+ "AccountId"
1449
+ ],
1450
+ [
1451
+ "kind",
1452
+ "BidKind"
1453
+ ],
1454
+ [
1455
+ "value",
1456
+ "Balance"
1457
+ ]
734
1458
  ]
735
1459
  },
736
1460
  "StrikeCount": "u32",
@@ -744,59 +1468,115 @@
744
1468
  "ExtrinsicMetadata": {
745
1469
  "type": "struct",
746
1470
  "type_mapping": [
747
- ["version", "u8"],
748
- ["signedExtensions", "Vec<Bytes>"]
1471
+ [
1472
+ "version",
1473
+ "u8"
1474
+ ],
1475
+ [
1476
+ "signedExtensions",
1477
+ "Vec<Bytes>"
1478
+ ]
749
1479
  ]
750
1480
  },
751
1481
  "RewardPoint": "u32",
1482
+ "BTreeMap<AccountId, RewardPoint>": "Vec<(AccountId, RewardPoint)>",
752
1483
  "EraRewardPoints": {
753
1484
  "type": "struct",
754
1485
  "type_mapping": [
755
- ["total", "RewardPoint"],
756
- ["individual", "Vec<(AccountId, RewardPoint)>"]
1486
+ [
1487
+ "total",
1488
+ "RewardPoint"
1489
+ ],
1490
+ [
1491
+ "individual",
1492
+ "BTreeMap<AccountId, RewardPoint>"
1493
+ ]
757
1494
  ]
758
1495
  },
759
1496
  "IncomingParachainDeploy": {
760
1497
  "type": "struct",
761
1498
  "type_mapping": [
762
- ["code", "Bytes"],
763
- ["initialHeadData", "Bytes"]
1499
+ [
1500
+ "code",
1501
+ "ValidationCode"
1502
+ ],
1503
+ [
1504
+ "initialHeadData",
1505
+ "HeadData"
1506
+ ]
764
1507
  ]
765
1508
  },
766
1509
  "NewBidder": {
767
1510
  "type": "struct",
768
1511
  "type_mapping": [
769
- ["who", "AccountId"],
770
- ["sub", "SubId"]
1512
+ [
1513
+ "who",
1514
+ "AccountId"
1515
+ ],
1516
+ [
1517
+ "sub",
1518
+ "SubId"
1519
+ ]
771
1520
  ]
772
1521
  },
773
1522
  "IncomingParachainFixed": {
774
1523
  "type": "struct",
775
1524
  "type_mapping": [
776
- ["codeHash", "Hash"],
777
- ["initialHeadData", "Bytes"]
1525
+ [
1526
+ "codeHash",
1527
+ "Hash"
1528
+ ],
1529
+ [
1530
+ "codeSize",
1531
+ "u32"
1532
+ ],
1533
+ [
1534
+ "initialHeadData",
1535
+ "HeadData"
1536
+ ]
778
1537
  ]
779
1538
  },
780
1539
  "IncomingParachain": {
781
1540
  "type": "enum",
782
1541
  "type_mapping": [
783
- ["Unset", "NewBidder"],
784
- ["Fixed", "IncomingParachainFixed"],
785
- ["Deploy", "IncomingParachainDeploy"]
1542
+ [
1543
+ "Unset",
1544
+ "NewBidder"
1545
+ ],
1546
+ [
1547
+ "Fixed",
1548
+ "IncomingParachainFixed"
1549
+ ],
1550
+ [
1551
+ "Deploy",
1552
+ "IncomingParachainDeploy"
1553
+ ]
786
1554
  ]
787
1555
  },
788
1556
  "LastRuntimeUpgradeInfo": {
789
1557
  "type": "struct",
790
1558
  "type_mapping": [
791
- ["specVersion", "Compact<u32>"],
792
- ["specName", "Bytes"]
1559
+ [
1560
+ "specVersion",
1561
+ "Compact<u32>"
1562
+ ],
1563
+ [
1564
+ "specName",
1565
+ "Text"
1566
+ ]
793
1567
  ]
794
1568
  },
795
1569
  "ProxyState": {
796
- "type": "struct",
1570
+ "type": "enum",
797
1571
  "type_mapping": [
798
- ["Open", "AccountId"],
799
- ["Active", "AccountId"]
1572
+ [
1573
+ "Open",
1574
+ "AccountId"
1575
+ ],
1576
+ [
1577
+ "Active",
1578
+ "AccountId"
1579
+ ]
800
1580
  ]
801
1581
  },
802
1582
  "ReleasesBalances": {
@@ -806,7 +1586,21 @@
806
1586
  "V2_0_0"
807
1587
  ]
808
1588
  },
809
- "Releases": "ReleasesBalances",
1589
+ "Releases": {
1590
+ "type": "enum",
1591
+ "value_list": [
1592
+ "V1",
1593
+ "V2",
1594
+ "V3",
1595
+ "V4",
1596
+ "V5",
1597
+ "V6",
1598
+ "V7",
1599
+ "V8",
1600
+ "V9",
1601
+ "V10"
1602
+ ]
1603
+ },
810
1604
  "SlotRange": {
811
1605
  "type": "enum",
812
1606
  "value_list": [
@@ -825,17 +1619,2646 @@
825
1619
  "ValidityAttestation": {
826
1620
  "type": "enum",
827
1621
  "type_mapping": [
828
- ["None", "Null"],
829
- ["Implicit", "CollatorSignature"],
830
- ["Explicit", "CollatorSignature"]
1622
+ [
1623
+ "Never",
1624
+ "Null"
1625
+ ],
1626
+ [
1627
+ "Implicit",
1628
+ "ValidatorSignature"
1629
+ ],
1630
+ [
1631
+ "Explicit",
1632
+ "ValidatorSignature"
1633
+ ]
831
1634
  ]
832
1635
  },
833
1636
  "VestingInfo": {
834
1637
  "type": "struct",
835
1638
  "type_mapping": [
836
- ["locked", "Balance"],
837
- ["perBlock", "Balance"],
838
- ["startingBlock", "BlockNumber"]
1639
+ [
1640
+ "locked",
1641
+ "Balance"
1642
+ ],
1643
+ [
1644
+ "perBlock",
1645
+ "Balance"
1646
+ ],
1647
+ [
1648
+ "startingBlock",
1649
+ "BlockNumber"
1650
+ ]
1651
+ ]
1652
+ },
1653
+ "NominatorIndex": "u32",
1654
+ "ValidatorIndex": "u16",
1655
+ "PerU16": "u16",
1656
+ "ValidatorIndexCompact": "Compact<ValidatorIndex>",
1657
+ "NominatorIndexCompact": "Compact<NominatorIndex>",
1658
+ "OffchainAccuracy": "PerU16",
1659
+ "OffchainAccuracyCompact": "Compact<OffchainAccuracy>",
1660
+ "CompactScoreCompact": {
1661
+ "type": "struct",
1662
+ "type_mapping": [
1663
+ ["validatorIndex", "ValidatorIndexCompact"],
1664
+ ["offchainAccuracy", "OffchainAccuracyCompact"]
1665
+ ]
1666
+ },
1667
+ "CompactScore": {
1668
+ "type": "struct",
1669
+ "type_mapping": [
1670
+ ["validatorIndex", "ValidatorIndex"],
1671
+ ["offchainAccuracy", "OffchainAccuracy"]
1672
+ ]
1673
+ },
1674
+ "CompactAssignmentsFrom258": {
1675
+ "type": "struct",
1676
+ "type_mapping": [
1677
+ [
1678
+ "votes1",
1679
+ "Vec<(NominatorIndexCompact, ValidatorIndexCompact)>"
1680
+ ],
1681
+ [
1682
+ "votes2",
1683
+ "Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>"
1684
+ ],
1685
+ [
1686
+ "votes3",
1687
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>"
1688
+ ],
1689
+ [
1690
+ "votes4",
1691
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>"
1692
+ ],
1693
+ [
1694
+ "votes5",
1695
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>"
1696
+ ],
1697
+ [
1698
+ "votes6",
1699
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>"
1700
+ ],
1701
+ [
1702
+ "votes7",
1703
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>"
1704
+ ],
1705
+ [
1706
+ "votes8",
1707
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>"
1708
+ ],
1709
+ [
1710
+ "votes9",
1711
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>"
1712
+ ],
1713
+ [
1714
+ "votes10",
1715
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>"
1716
+ ],
1717
+ [
1718
+ "votes11",
1719
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>"
1720
+ ],
1721
+ [
1722
+ "votes12",
1723
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>"
1724
+ ],
1725
+ [
1726
+ "votes13",
1727
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>"
1728
+ ],
1729
+ [
1730
+ "votes14",
1731
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>"
1732
+ ],
1733
+ [
1734
+ "votes15",
1735
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>"
1736
+ ],
1737
+ [
1738
+ "votes16",
1739
+ "Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>"
1740
+ ]
1741
+ ]
1742
+ },
1743
+ "CompactAssignmentsTo257": {
1744
+ "type": "struct",
1745
+ "type_mapping": [
1746
+ [
1747
+ "votes1",
1748
+ "Vec<(NominatorIndex, [CompactScore; 0], ValidatorIndex)>"
1749
+ ],
1750
+ [
1751
+ "votes2",
1752
+ "Vec<(NominatorIndex, [CompactScore; 1], ValidatorIndex)>"
1753
+ ],
1754
+ [
1755
+ "votes3",
1756
+ "Vec<(NominatorIndex, [CompactScore; 2], ValidatorIndex)>"
1757
+ ],
1758
+ [
1759
+ "votes4",
1760
+ "Vec<(NominatorIndex, [CompactScore; 3], ValidatorIndex)>"
1761
+ ],
1762
+ [
1763
+ "votes5",
1764
+ "Vec<(NominatorIndex, [CompactScore; 4], ValidatorIndex)>"
1765
+ ],
1766
+ [
1767
+ "votes6",
1768
+ "Vec<(NominatorIndex, [CompactScore; 5], ValidatorIndex)>"
1769
+ ],
1770
+ [
1771
+ "votes7",
1772
+ "Vec<(NominatorIndex, [CompactScore; 6], ValidatorIndex)>"
1773
+ ],
1774
+ [
1775
+ "votes8",
1776
+ "Vec<(NominatorIndex, [CompactScore; 7], ValidatorIndex)>"
1777
+ ],
1778
+ [
1779
+ "votes9",
1780
+ "Vec<(NominatorIndex, [CompactScore; 8], ValidatorIndex)>"
1781
+ ],
1782
+ [
1783
+ "votes10",
1784
+ "Vec<(NominatorIndex, [CompactScore; 9], ValidatorIndex)>"
1785
+ ],
1786
+ [
1787
+ "votes11",
1788
+ "Vec<(NominatorIndex, [CompactScore; 10], ValidatorIndex)>"
1789
+ ],
1790
+ [
1791
+ "votes12",
1792
+ "Vec<(NominatorIndex, [CompactScore; 11], ValidatorIndex)>"
1793
+ ],
1794
+ [
1795
+ "votes13",
1796
+ "Vec<(NominatorIndex, [CompactScore; 12], ValidatorIndex)>"
1797
+ ],
1798
+ [
1799
+ "votes14",
1800
+ "Vec<(NominatorIndex, [CompactScore; 13], ValidatorIndex)>"
1801
+ ],
1802
+ [
1803
+ "votes15",
1804
+ "Vec<(NominatorIndex, [CompactScore; 14], ValidatorIndex)>"
1805
+ ],
1806
+ [
1807
+ "votes16",
1808
+ "Vec<(NominatorIndex, [CompactScore; 15], ValidatorIndex)>"
1809
+ ]
1810
+ ]
1811
+ },
1812
+ "CompactAssignments": "CompactAssignmentsTo257",
1813
+ "DeferredOffenceOf": {
1814
+ "type": "struct",
1815
+ "type_mapping": [
1816
+ ["offences", "Vec<OffenceDetails>"],
1817
+ ["perc", "Vec<Perbill>"],
1818
+ ["session", "SessionIndex"]
1819
+ ]
1820
+ },
1821
+ "Statement": {
1822
+ "type": "enum",
1823
+ "type_mapping": [
1824
+ [
1825
+ "Never",
1826
+ "Null"
1827
+ ],
1828
+ [
1829
+ "Candidate",
1830
+ "Hash"
1831
+ ],
1832
+ [
1833
+ "Valid",
1834
+ "Hash"
1835
+ ],
1836
+ [
1837
+ "Invalid",
1838
+ "Hash"
1839
+ ]
1840
+ ]
1841
+ },
1842
+ "ValidatorSignature": "Signature",
1843
+ "DoubleVoteReportStatement": {
1844
+ "type": "struct",
1845
+ "type_mapping": [
1846
+ [
1847
+ "statement",
1848
+ "Statement"
1849
+ ],
1850
+ [
1851
+ "signature",
1852
+ "ValidatorSignature"
1853
+ ]
1854
+ ]
1855
+ },
1856
+ "DoubleVoteReportProof": {
1857
+ "type": "struct",
1858
+ "type_mapping": [
1859
+ [
1860
+ "session",
1861
+ "SessionIndex"
1862
+ ],
1863
+ [
1864
+ "trieNodes",
1865
+ "Vec<Bytes>"
1866
+ ]
1867
+ ]
1868
+ },
1869
+ "SigningContext": {
1870
+ "type": "struct",
1871
+ "type_mapping": [
1872
+ [
1873
+ "sessionIndex",
1874
+ "SessionIndex"
1875
+ ],
1876
+ [
1877
+ "parentHash",
1878
+ "Hash"
1879
+ ]
1880
+ ]
1881
+ },
1882
+ "DoubleVoteReport": {
1883
+ "type": "struct",
1884
+ "type_mapping": [
1885
+ [
1886
+ "identity",
1887
+ "ValidatorId"
1888
+ ],
1889
+ [
1890
+ "first",
1891
+ "(Statement, ValidatorSignature)"
1892
+ ],
1893
+ [
1894
+ "second",
1895
+ "(Statement, ValidatorSignature)"
1896
+ ],
1897
+ [
1898
+ "proof",
1899
+ "MembershipProof"
1900
+ ],
1901
+ [
1902
+ "signingContext",
1903
+ "SigningContext"
1904
+ ]
1905
+ ]
1906
+ },
1907
+ "ElectionCompute": {
1908
+ "type": "enum",
1909
+ "value_list": [
1910
+ "OnChain",
1911
+ "Signed",
1912
+ "Authority"
1913
+ ]
1914
+ },
1915
+ "ElectionResult": {
1916
+ "type": "struct",
1917
+ "type_mapping": [
1918
+ [
1919
+ "compute",
1920
+ "ElectionCompute"
1921
+ ],
1922
+ [
1923
+ "slotStake",
1924
+ "Balance"
1925
+ ],
1926
+ [
1927
+ "electedStashes",
1928
+ "Vec<AccountId>"
1929
+ ],
1930
+ [
1931
+ "exposures",
1932
+ "Vec<(AccountId, Exposure)>"
1933
+ ]
1934
+ ]
1935
+ },
1936
+ "ElectionStatus": {
1937
+ "type": "enum",
1938
+ "type_mapping": [
1939
+ [
1940
+ "Close",
1941
+ "Null"
1942
+ ],
1943
+ [
1944
+ "Open",
1945
+ "BlockNumber"
1946
+ ]
1947
+ ]
1948
+ },
1949
+ "Phase": {
1950
+ "type": "enum",
1951
+ "type_mapping": [
1952
+ [
1953
+ "ApplyExtrinsic",
1954
+ "u32"
1955
+ ],
1956
+ [
1957
+ "Finalization",
1958
+ "Null"
1959
+ ],
1960
+ [
1961
+ "Initialization",
1962
+ "Null"
1963
+ ]
1964
+ ]
1965
+ },
1966
+ "PhragmenScore": "[u128; 3]",
1967
+ "PreimageStatusAvailable": {
1968
+ "type": "struct",
1969
+ "type_mapping": [
1970
+ [
1971
+ "data",
1972
+ "Bytes"
1973
+ ],
1974
+ [
1975
+ "provider",
1976
+ "AccountId"
1977
+ ],
1978
+ [
1979
+ "deposit",
1980
+ "Balance"
1981
+ ],
1982
+ [
1983
+ "since",
1984
+ "BlockNumber"
1985
+ ],
1986
+ [
1987
+ "expiry",
1988
+ "Option<BlockNumber>"
1989
+ ]
1990
+ ]
1991
+ },
1992
+ "PreimageStatus": {
1993
+ "type": "enum",
1994
+ "type_mapping": [
1995
+ [
1996
+ "Missing",
1997
+ "BlockNumber"
1998
+ ],
1999
+ [
2000
+ "Available",
2001
+ "PreimageStatusAvailable"
2002
+ ]
2003
+ ]
2004
+ },
2005
+ "Randomness": "Hash",
2006
+ "MaybeRandomness": "Option<Randomness>",
2007
+ "schnorrkel::Randomness": "Hash",
2008
+ "schnorrkel::RawVRFOutput": "[u8; 32]",
2009
+ "TaskAddress": {
2010
+ "type": "struct",
2011
+ "type_mapping": [
2012
+ ["blockNumber", "BlockNumber"],
2013
+ ["index", "u32"]
2014
+ ]
2015
+ },
2016
+ "ValidationFunctionParams": {
2017
+ "type": "struct",
2018
+ "type_mapping": [
2019
+ [
2020
+ "maxCodeSize",
2021
+ "u32"
2022
+ ],
2023
+ [
2024
+ "relayChainHeight",
2025
+ "RelayChainBlockNumber"
2026
+ ],
2027
+ [
2028
+ "codeUpgradeAllowed",
2029
+ "Option<RelayChainBlockNumber>"
2030
+ ]
2031
+ ]
2032
+ },
2033
+ "ValidationCode": "Bytes",
2034
+ "ParaPastCodeMeta": {
2035
+ "type": "struct",
2036
+ "type_mapping": [
2037
+ [
2038
+ "upgradeTimes",
2039
+ "Vec<BlockNumber>"
2040
+ ],
2041
+ [
2042
+ "lastPruned",
2043
+ "Option<BlockNumber>"
2044
+ ]
2045
+ ]
2046
+ },
2047
+ "ModuleId": "LockIdentifier",
2048
+ "RuntimeDbWeight": {
2049
+ "type": "struct",
2050
+ "type_mapping": [
2051
+ [
2052
+ "read",
2053
+ "Weight"
2054
+ ],
2055
+ [
2056
+ "write",
2057
+ "Weight"
2058
+ ]
2059
+ ]
2060
+ },
2061
+ "Renouncing": {
2062
+ "type": "enum",
2063
+ "type_mapping": [
2064
+ [
2065
+ "Member",
2066
+ "Null"
2067
+ ],
2068
+ [
2069
+ "RunnerUp",
2070
+ "Null"
2071
+ ],
2072
+ [
2073
+ "Candidate",
2074
+ "Compact<u32>"
2075
+ ]
2076
+ ]
2077
+ },
2078
+ "ExtrinsicsWeight": {
2079
+ "type": "struct",
2080
+ "type_mapping": [
2081
+ [
2082
+ "normal",
2083
+ "Weight"
2084
+ ],
2085
+ [
2086
+ "operational",
2087
+ "Weight"
2088
+ ]
2089
+ ]
2090
+ },
2091
+ "weights::ExtrinsicsWeight": "ExtrinsicsWeight",
2092
+ "ValidatorCount": "u32",
2093
+ "MembershipProof": {
2094
+ "type": "struct",
2095
+ "type_mapping": [
2096
+ [
2097
+ "session",
2098
+ "SessionIndex"
2099
+ ],
2100
+ [
2101
+ "trieNodes",
2102
+ "Vec<Vec<u8>>"
2103
+ ],
2104
+ [
2105
+ "validatorCount",
2106
+ "ValidatorCount"
2107
+ ]
2108
+ ]
2109
+ },
2110
+ "JustificationNotification": "Bytes",
2111
+ "KeyOwnerProof": "MembershipProof",
2112
+ "DefunctVoter": {
2113
+ "type": "struct",
2114
+ "type_mapping": [
2115
+ [
2116
+ "who",
2117
+ "AccountId"
2118
+ ],
2119
+ [
2120
+ "voteCount",
2121
+ "Compact<u32>"
2122
+ ],
2123
+ [
2124
+ "candidateCount",
2125
+ "Compact<u32>"
2126
+ ]
2127
+ ]
2128
+ },
2129
+ "ElectionScore": "[u128; 3]",
2130
+ "ElectionSize": {
2131
+ "type": "struct",
2132
+ "type_mapping": [
2133
+ [
2134
+ "validators",
2135
+ "Compact<ValidatorIndex>"
2136
+ ],
2137
+ [
2138
+ "nominators",
2139
+ "Compact<NominatorIndex>"
2140
+ ]
2141
+ ]
2142
+ },
2143
+ "AllowedSlots": {
2144
+ "type": "enum",
2145
+ "value_list": [
2146
+ "PrimarySlots",
2147
+ "PrimaryAndSecondaryPlainSlots",
2148
+ "PrimaryAndSecondaryVRFSlots"
2149
+ ]
2150
+ },
2151
+ "NextConfigDescriptorV1": {
2152
+ "type": "struct",
2153
+ "type_mapping": [
2154
+ [
2155
+ "c",
2156
+ "(u64, u64)"
2157
+ ],
2158
+ [
2159
+ "allowedSlots",
2160
+ "AllowedSlots"
2161
+ ]
2162
+ ]
2163
+ },
2164
+ "NextConfigDescriptor": {
2165
+ "type": "enum",
2166
+ "type_mapping": [
2167
+ [
2168
+ "V0",
2169
+ "Null"
2170
+ ],
2171
+ [
2172
+ "V1",
2173
+ "NextConfigDescriptorV1"
2174
+ ]
2175
+ ]
2176
+ },
2177
+ "StatementKind": {
2178
+ "type": "enum",
2179
+ "value_list": [
2180
+ "Regular",
2181
+ "Saft"
2182
+ ]
2183
+ },
2184
+ "schedule::Priority": "u8",
2185
+ "GrandpaEquivocation": {
2186
+ "type": "enum",
2187
+ "type_mapping": [
2188
+ [
2189
+ "Prevote",
2190
+ "GrandpaEquivocationValue"
2191
+ ],
2192
+ [
2193
+ "Precommit",
2194
+ "GrandpaEquivocationValue"
2195
+ ]
2196
+ ]
2197
+ },
2198
+ "GrandpaPrevote": {
2199
+ "type": "struct",
2200
+ "type_mapping": [
2201
+ [
2202
+ "targetHash",
2203
+ "Hash"
2204
+ ],
2205
+ [
2206
+ "targetNumber",
2207
+ "BlockNumber"
2208
+ ]
2209
+ ]
2210
+ },
2211
+ "Equivocation": "GrandpaEquivocation",
2212
+ "EquivocationProof": {
2213
+ "type": "struct",
2214
+ "type_mapping": [
2215
+ [
2216
+ "setId",
2217
+ "SetId"
2218
+ ],
2219
+ [
2220
+ "equivocation",
2221
+ "Equivocation"
2222
+ ]
2223
+ ]
2224
+ },
2225
+ "ProxyType": {
2226
+ "type": "enum",
2227
+ "value_list": [
2228
+ "Any",
2229
+ "NonTransfer",
2230
+ "Governance",
2231
+ "Staking"
2232
+ ]
2233
+ },
2234
+ "BalanceStatus": {
2235
+ "type": "enum",
2236
+ "value_list": [
2237
+ "Free",
2238
+ "Reserved"
2239
+ ]
2240
+ },
2241
+ "Status": "BalanceStatus",
2242
+ "EcdsaSignature": "[u8; 65]",
2243
+ "Ed25519Signature": "H512",
2244
+ "Sr25519Signature": "H512",
2245
+ "MultiSignature": {
2246
+ "type": "enum",
2247
+ "type_mapping": [
2248
+ [
2249
+ "Ed25519",
2250
+ "Ed25519Signature"
2251
+ ],
2252
+ [
2253
+ "Sr25519",
2254
+ "Sr25519Signature"
2255
+ ],
2256
+ [
2257
+ "Ecdsa",
2258
+ "EcdsaSignature"
2259
+ ]
2260
+ ]
2261
+ },
2262
+ "schedule::period<blocknumber>": "(BlockNumber, u32)",
2263
+ "OpaqueCall": "OpaqueCall",
2264
+ "AuthorityId": "AccountId",
2265
+ "RawVRFOutput": "[u8; 32]",
2266
+ "BlockAttestations": {
2267
+ "type": "struct",
2268
+ "type_mapping": [
2269
+ [
2270
+ "receipt",
2271
+ "CandidateReceipt"
2272
+ ],
2273
+ [
2274
+ "valid",
2275
+ "Vec<AccountId>"
2276
+ ],
2277
+ [
2278
+ "invalid",
2279
+ "Vec<AccountId>"
2280
+ ]
2281
+ ]
2282
+ },
2283
+ "IncludedBlocks": {
2284
+ "type": "struct",
2285
+ "type_mapping": [
2286
+ [
2287
+ "actualNumber",
2288
+ "BlockNumber"
2289
+ ],
2290
+ [
2291
+ "session",
2292
+ "SessionIndex"
2293
+ ],
2294
+ [
2295
+ "randomSeed",
2296
+ "H256"
2297
+ ],
2298
+ [
2299
+ "activeParachains",
2300
+ "Vec<ParaId>"
2301
+ ],
2302
+ [
2303
+ "paraBlocks",
2304
+ "Vec<Hash>"
2305
+ ]
2306
+ ]
2307
+ },
2308
+ "HeartbeatTo244": {
2309
+ "type": "struct",
2310
+ "type_mapping": [
2311
+ [
2312
+ "blockNumber",
2313
+ "BlockNumber"
2314
+ ],
2315
+ [
2316
+ "networkState",
2317
+ "OpaqueNetworkState"
2318
+ ],
2319
+ [
2320
+ "sessionIndex",
2321
+ "SessionIndex"
2322
+ ],
2323
+ [
2324
+ "authorityIndex",
2325
+ "AuthIndex"
2326
+ ]
2327
+ ]
2328
+ },
2329
+ "OpaqueMultiaddr": "Bytes",
2330
+ "OpaquePeerId": "Bytes",
2331
+ "OpaqueNetworkState": {
2332
+ "type": "struct",
2333
+ "type_mapping": [
2334
+ [
2335
+ "peerId",
2336
+ "OpaquePeerId"
2337
+ ],
2338
+ [
2339
+ "externalAddresses",
2340
+ "Vec<OpaqueMultiaddr>"
2341
+ ]
2342
+ ]
2343
+ },
2344
+ "ProposalIndex": "u32",
2345
+ "VotesTo230": {
2346
+ "type": "struct",
2347
+ "type_mapping": [
2348
+ [
2349
+ "index",
2350
+ "ProposalIndex"
2351
+ ],
2352
+ [
2353
+ "threshold",
2354
+ "MemberCount"
2355
+ ],
2356
+ [
2357
+ "ayes",
2358
+ "Vec<AccountId>"
2359
+ ],
2360
+ [
2361
+ "nays",
2362
+ "Vec<AccountId>"
2363
+ ]
2364
+ ]
2365
+ },
2366
+ "Votes": {
2367
+ "type": "struct",
2368
+ "type_mapping": [
2369
+ [
2370
+ "index",
2371
+ "ProposalIndex"
2372
+ ],
2373
+ [
2374
+ "threshold",
2375
+ "MemberCount"
2376
+ ],
2377
+ [
2378
+ "ayes",
2379
+ "Vec<AccountId>"
2380
+ ],
2381
+ [
2382
+ "nays",
2383
+ "Vec<AccountId>"
2384
+ ],
2385
+ [
2386
+ "end",
2387
+ "BlockNumber"
2388
+ ]
2389
+ ]
2390
+ },
2391
+ "RuntimeDispatchInfo": {
2392
+ "type": "struct",
2393
+ "type_mapping": [
2394
+ [
2395
+ "weight",
2396
+ "Weight"
2397
+ ],
2398
+ [
2399
+ "class",
2400
+ "DispatchClass"
2401
+ ],
2402
+ [
2403
+ "partialFee",
2404
+ "Balance"
2405
+ ]
2406
+ ]
2407
+ },
2408
+ "AliveContractInfo": {
2409
+ "type": "struct",
2410
+ "type_mapping": [
2411
+ [
2412
+ "trieId",
2413
+ "TrieId"
2414
+ ],
2415
+ [
2416
+ "storageSize",
2417
+ "u32"
2418
+ ],
2419
+ [
2420
+ "codeHash",
2421
+ "CodeHash"
2422
+ ],
2423
+ [
2424
+ "rentAllowance",
2425
+ "Balance"
2426
+ ],
2427
+ [
2428
+ "deductBlock",
2429
+ "BlockNumber"
2430
+ ],
2431
+ [
2432
+ "lastWrite",
2433
+ "Option<BlockNumber>"
2434
+ ]
2435
+ ]
2436
+ },
2437
+ "CodeHash": "Hash",
2438
+ "ContractCallRequest": {
2439
+ "type": "struct",
2440
+ "type_mapping": [
2441
+ [
2442
+ "origin",
2443
+ "AccountId"
2444
+ ],
2445
+ [
2446
+ "dest",
2447
+ "AccountId"
2448
+ ],
2449
+ [
2450
+ "value",
2451
+ "Balance"
2452
+ ],
2453
+ [
2454
+ "gasLimit",
2455
+ "u64"
2456
+ ],
2457
+ [
2458
+ "inputData",
2459
+ "Bytes"
2460
+ ]
2461
+ ]
2462
+ },
2463
+ "ContractExecResultSuccess": {
2464
+ "type": "struct",
2465
+ "type_mapping": [
2466
+ [
2467
+ "flags",
2468
+ "u32"
2469
+ ],
2470
+ [
2471
+ "data",
2472
+ "Vec<u8>"
2473
+ ],
2474
+ [
2475
+ "gasConsumed",
2476
+ "u64"
2477
+ ]
2478
+ ]
2479
+ },
2480
+ "ContractExecResult": {
2481
+ "type": "enum",
2482
+ "type_mapping": [
2483
+ [
2484
+ "Success",
2485
+ "ContractExecResultSuccess"
2486
+ ],
2487
+ [
2488
+ "Error",
2489
+ "Null"
2490
+ ]
2491
+ ]
2492
+ },
2493
+ "ContractStorageKey": "[u8; 32]",
2494
+ "PrefabWasmModule": {
2495
+ "type": "struct",
2496
+ "type_mapping": [
2497
+ [
2498
+ "scheduleVersion",
2499
+ "Compact<u32>"
2500
+ ],
2501
+ [
2502
+ "initial",
2503
+ "Compact<u32>"
2504
+ ],
2505
+ [
2506
+ "maximum",
2507
+ "Compact<u32>"
2508
+ ],
2509
+ [
2510
+ "_reserved",
2511
+ "PrefabWasmModuleReserved"
2512
+ ],
2513
+ [
2514
+ "code",
2515
+ "Bytes"
2516
+ ]
2517
+ ]
2518
+ },
2519
+ "PrefabWasmModuleReserved": "Option<Null>",
2520
+ "ScheduleTo212": {
2521
+ "type": "struct",
2522
+ "type_mapping": [
2523
+ [
2524
+ "version",
2525
+ "u32"
2526
+ ],
2527
+ [
2528
+ "putCodePerByteCost",
2529
+ "Gas"
2530
+ ],
2531
+ [
2532
+ "growMemCost",
2533
+ "Gas"
2534
+ ],
2535
+ [
2536
+ "regularOpCost",
2537
+ "Gas"
2538
+ ],
2539
+ [
2540
+ "returnDataPerByteCost",
2541
+ "Gas"
2542
+ ],
2543
+ [
2544
+ "eventDataPerByteCost",
2545
+ "Gas"
2546
+ ],
2547
+ [
2548
+ "eventPerTopicCost",
2549
+ "Gas"
2550
+ ],
2551
+ [
2552
+ "eventBaseCost",
2553
+ "Gas"
2554
+ ],
2555
+ [
2556
+ "sandboxDataReadCost",
2557
+ "Gas"
2558
+ ],
2559
+ [
2560
+ "sandboxDataWriteCost",
2561
+ "Gas"
2562
+ ],
2563
+ [
2564
+ "maxEventTopics",
2565
+ "u32"
2566
+ ],
2567
+ [
2568
+ "maxStackHeight",
2569
+ "u32"
2570
+ ],
2571
+ [
2572
+ "maxMemoryPages",
2573
+ "u32"
2574
+ ],
2575
+ [
2576
+ "enablePrintln",
2577
+ "bool"
2578
+ ],
2579
+ [
2580
+ "maxSubjectLen",
2581
+ "u32"
2582
+ ]
2583
+ ]
2584
+ },
2585
+ "SeedOf": "Hash",
2586
+ "TombstoneContractInfo": "Hash",
2587
+ "ExtrinsicOrHash": {
2588
+ "type": "enum",
2589
+ "type_mapping": [
2590
+ [
2591
+ "Hash",
2592
+ "Hash"
2593
+ ],
2594
+ [
2595
+ "Extrinsic",
2596
+ "Bytes"
2597
+ ]
2598
+ ]
2599
+ },
2600
+ "ExtrinsicStatus": {
2601
+ "type": "enum",
2602
+ "type_mapping": [
2603
+ [
2604
+ "Future",
2605
+ "Null"
2606
+ ],
2607
+ [
2608
+ "Ready",
2609
+ "Null"
2610
+ ],
2611
+ [
2612
+ "Broadcast",
2613
+ "Vec<Text>"
2614
+ ],
2615
+ [
2616
+ "InBlock",
2617
+ "Hash"
2618
+ ],
2619
+ [
2620
+ "Retracted",
2621
+ "Hash"
2622
+ ],
2623
+ [
2624
+ "FinalityTimeout",
2625
+ "Hash"
2626
+ ],
2627
+ [
2628
+ "Finalized",
2629
+ "Hash"
2630
+ ],
2631
+ [
2632
+ "Usurped",
2633
+ "Hash"
2634
+ ],
2635
+ [
2636
+ "Dropped",
2637
+ "Null"
2638
+ ],
2639
+ [
2640
+ "Invalid",
2641
+ "Null"
2642
+ ]
2643
+ ]
2644
+ },
2645
+ "StorageKey": "Bytes",
2646
+ "PrefixedStorageKey": "StorageKey",
2647
+ "AccountIndex": "GenericAccountIndex",
2648
+ "Address": "GenericAddress",
2649
+ "AssetId": "u32",
2650
+ "Justification": "Bytes",
2651
+ "StorageData": "Bytes",
2652
+ "KeyValue": {
2653
+ "type": "struct",
2654
+ "type_mapping": [
2655
+ [
2656
+ "key",
2657
+ "StorageKey"
2658
+ ],
2659
+ [
2660
+ "value",
2661
+ "StorageData"
2662
+ ]
2663
+ ]
2664
+ },
2665
+ "KeyTypeId": "u32",
2666
+ "LookupSource": "Address",
2667
+ "LookupTarget": "AccountId",
2668
+ "Perbill": "u32",
2669
+ "Permill": "u32",
2670
+ "Perquintill": "u64",
2671
+ "Phantom": "Null",
2672
+ "SignedBlock": {
2673
+ "type": "struct",
2674
+ "type_mapping": [
2675
+ [
2676
+ "block",
2677
+ "Block"
2678
+ ],
2679
+ [
2680
+ "justification",
2681
+ "Justification"
2682
+ ]
2683
+ ]
2684
+ },
2685
+ "ValidatorId": "AccountId",
2686
+ "PreRuntime": "(ConsensusEngineId, Bytes)",
2687
+ "SealV0": "(u64, Signature)",
2688
+ "Seal": "(ConsensusEngineId, Bytes)",
2689
+ "Consensus": "(ConsensusEngineId, Bytes)",
2690
+ "Period": "(BlockNumber, u32)",
2691
+ "Priority": "u8",
2692
+ "SchedulePeriod": "Period",
2693
+ "SchedulePriority": "Priority",
2694
+ "Scheduled": {
2695
+ "type": "struct",
2696
+ "type_mapping": [
2697
+ [
2698
+ "maybeId",
2699
+ "Option<Bytes>"
2700
+ ],
2701
+ [
2702
+ "priority",
2703
+ "SchedulePriority"
2704
+ ],
2705
+ [
2706
+ "call",
2707
+ "Call"
2708
+ ],
2709
+ [
2710
+ "maybePeriodic",
2711
+ "Option<SchedulePeriod>"
2712
+ ]
2713
+ ]
2714
+ },
2715
+ "SocietyJudgement": {
2716
+ "type": "enum",
2717
+ "value_list": [
2718
+ "Rebid",
2719
+ "Reject",
2720
+ "Approve"
2721
+ ]
2722
+ },
2723
+ "SocietyVote": {
2724
+ "type": "enum",
2725
+ "value_list": [
2726
+ "Skeptic",
2727
+ "Reject",
2728
+ "Approve"
2729
+ ]
2730
+ },
2731
+ "BlockHash": "Hash",
2732
+ "UncleEntryItem": {
2733
+ "type": "enum",
2734
+ "type_mapping": [
2735
+ [
2736
+ "InclusionHeight",
2737
+ "BlockNumber"
2738
+ ],
2739
+ [
2740
+ "Uncle",
2741
+ "(Hash, Option<AccountId>)"
2742
+ ]
2743
+ ]
2744
+ },
2745
+ "ApiId": "[u8; 8]",
2746
+ "KeyValueOption": "(StorageKey, Option<StorageData>)",
2747
+ "ReadProof": {
2748
+ "type": "struct",
2749
+ "type_mapping": [
2750
+ [
2751
+ "at",
2752
+ "Hash"
2753
+ ],
2754
+ [
2755
+ "proof",
2756
+ "Vec<Bytes>"
2757
+ ]
2758
+ ]
2759
+ },
2760
+ "RuntimeVersionApi": "(ApiId, u32)",
2761
+ "RuntimeVersion": {
2762
+ "type": "struct",
2763
+ "type_mapping": [
2764
+ [
2765
+ "specName",
2766
+ "Text"
2767
+ ],
2768
+ [
2769
+ "implName",
2770
+ "Text"
2771
+ ],
2772
+ [
2773
+ "authoringVersion",
2774
+ "u32"
2775
+ ],
2776
+ [
2777
+ "specVersion",
2778
+ "u32"
2779
+ ],
2780
+ [
2781
+ "implVersion",
2782
+ "u32"
2783
+ ],
2784
+ [
2785
+ "apis",
2786
+ "Vec<RuntimeVersionApi>"
2787
+ ],
2788
+ [
2789
+ "transactionVersion",
2790
+ "u32"
2791
+ ]
2792
+ ]
2793
+ },
2794
+ "StorageChangeSet": {
2795
+ "type": "struct",
2796
+ "type_mapping": [
2797
+ [
2798
+ "block",
2799
+ "Hash"
2800
+ ],
2801
+ [
2802
+ "changes",
2803
+ "Vec<KeyValueOption>"
2804
+ ]
2805
+ ]
2806
+ },
2807
+ "GrandpaEquivocationProof": {
2808
+ "type": "struct",
2809
+ "type_mapping": [
2810
+ [
2811
+ "setId",
2812
+ "SetId"
2813
+ ],
2814
+ [
2815
+ "equivocation",
2816
+ "GrandpaEquivocation"
2817
+ ]
2818
+ ]
2819
+ },
2820
+ "GrandpaEquivocationValue": {
2821
+ "type": "struct",
2822
+ "type_mapping": [
2823
+ [
2824
+ "roundNumber",
2825
+ "u64"
2826
+ ],
2827
+ [
2828
+ "identity",
2829
+ "AuthorityId"
2830
+ ],
2831
+ [
2832
+ "first",
2833
+ "(GrandpaPrevote, AuthoritySignature)"
2834
+ ],
2835
+ [
2836
+ "second",
2837
+ "(GrandpaPrevote, AuthoritySignature)"
2838
+ ]
2839
+ ]
2840
+ },
2841
+ "PendingPause": {
2842
+ "type": "struct",
2843
+ "type_mapping": [
2844
+ [
2845
+ "scheduledAt",
2846
+ "BlockNumber"
2847
+ ],
2848
+ [
2849
+ "delay",
2850
+ "BlockNumber"
2851
+ ]
2852
+ ]
2853
+ },
2854
+ "PendingResume": {
2855
+ "type": "struct",
2856
+ "type_mapping": [
2857
+ [
2858
+ "scheduledAt",
2859
+ "BlockNumber"
2860
+ ],
2861
+ [
2862
+ "delay",
2863
+ "BlockNumber"
2864
+ ]
2865
+ ]
2866
+ },
2867
+ "Precommits": {
2868
+ "type": "struct",
2869
+ "type_mapping": [
2870
+ [
2871
+ "currentWeight",
2872
+ "u32"
2873
+ ],
2874
+ [
2875
+ "missing",
2876
+ "BTreeSet<AuthorityId>"
2877
+ ]
2878
+ ]
2879
+ },
2880
+ "Prevotes": {
2881
+ "type": "struct",
2882
+ "type_mapping": [
2883
+ [
2884
+ "currentWeight",
2885
+ "u32"
2886
+ ],
2887
+ [
2888
+ "missing",
2889
+ "BTreeSet<AuthorityId>"
2890
+ ]
2891
+ ]
2892
+ },
2893
+ "ReportedRoundStates": {
2894
+ "type": "struct",
2895
+ "type_mapping": [
2896
+ [
2897
+ "setId",
2898
+ "u32"
2899
+ ],
2900
+ [
2901
+ "best",
2902
+ "RoundState"
2903
+ ],
2904
+ [
2905
+ "background",
2906
+ "Vec<RoundState>"
2907
+ ]
2908
+ ]
2909
+ },
2910
+ "RoundState": {
2911
+ "type": "struct",
2912
+ "type_mapping": [
2913
+ [
2914
+ "round",
2915
+ "u32"
2916
+ ],
2917
+ [
2918
+ "totalWeight",
2919
+ "u32"
2920
+ ],
2921
+ [
2922
+ "thresholdWeight",
2923
+ "u32"
2924
+ ],
2925
+ [
2926
+ "prevotes",
2927
+ "Prevotes"
2928
+ ],
2929
+ [
2930
+ "precommits",
2931
+ "Precommits"
2932
+ ]
2933
+ ]
2934
+ },
2935
+ "StoredPendingChange": {
2936
+ "type": "struct",
2937
+ "type_mapping": [
2938
+ [
2939
+ "scheduledAt",
2940
+ "BlockNumber"
2941
+ ],
2942
+ [
2943
+ "delay",
2944
+ "BlockNumber"
2945
+ ],
2946
+ [
2947
+ "nextAuthorities",
2948
+ "AuthorityList"
2949
+ ]
2950
+ ]
2951
+ },
2952
+ "StoredState": {
2953
+ "type": "enum",
2954
+ "type_mapping": [
2955
+ [
2956
+ "Live",
2957
+ "Null"
2958
+ ],
2959
+ [
2960
+ "PendingPause",
2961
+ "PendingPause"
2962
+ ],
2963
+ [
2964
+ "Paused",
2965
+ "Null"
2966
+ ],
2967
+ [
2968
+ "PendingResume",
2969
+ "PendingResume"
2970
+ ]
2971
+ ]
2972
+ },
2973
+ "AccountInfo": {
2974
+ "type": "struct",
2975
+ "type_mapping": [
2976
+ [
2977
+ "nonce",
2978
+ "Index"
2979
+ ],
2980
+ [
2981
+ "refcount",
2982
+ "RefCount"
2983
+ ],
2984
+ [
2985
+ "data",
2986
+ "AccountData"
2987
+ ]
2988
+ ]
2989
+ },
2990
+ "ChainProperties": {
2991
+ "type": "struct",
2992
+ "type_mapping": [
2993
+ [
2994
+ "ss58Format",
2995
+ "Option<u8>"
2996
+ ],
2997
+ [
2998
+ "tokenDecimals",
2999
+ "Option<u32>"
3000
+ ],
3001
+ [
3002
+ "tokenSymbol",
3003
+ "Option<Text>"
3004
+ ]
3005
+ ]
3006
+ },
3007
+ "ChainType": {
3008
+ "type": "enum",
3009
+ "type_mapping": [
3010
+ [
3011
+ "Development",
3012
+ "Null"
3013
+ ],
3014
+ [
3015
+ "Local",
3016
+ "Null"
3017
+ ],
3018
+ [
3019
+ "Live",
3020
+ "Null"
3021
+ ],
3022
+ [
3023
+ "Custom",
3024
+ "Text"
3025
+ ]
3026
+ ]
3027
+ },
3028
+ "DispatchErrorTo198": {
3029
+ "type": "struct",
3030
+ "type_mapping": [
3031
+ [
3032
+ "module",
3033
+ "Option<u8>"
3034
+ ],
3035
+ [
3036
+ "error",
3037
+ "u8"
3038
+ ]
3039
+ ]
3040
+ },
3041
+ "DispatchInfoTo190": {
3042
+ "type": "struct",
3043
+ "type_mapping": [
3044
+ [
3045
+ "weight",
3046
+ "Weight"
3047
+ ],
3048
+ [
3049
+ "class",
3050
+ "DispatchClass"
3051
+ ]
3052
+ ]
3053
+ },
3054
+ "DispatchInfoTo244": {
3055
+ "type": "struct",
3056
+ "type_mapping": [
3057
+ [
3058
+ "weight",
3059
+ "Weight"
3060
+ ],
3061
+ [
3062
+ "class",
3063
+ "DispatchClass"
3064
+ ],
3065
+ [
3066
+ "paysFee",
3067
+ "bool"
3068
+ ]
3069
+ ]
3070
+ },
3071
+ "DispatchResultOf": "DispatchResult",
3072
+ "Event": "GenericEvent",
3073
+ "EventId": "[u8; 2]",
3074
+ "EventRecord": "EventRecord",
3075
+ "EventRecordTo76": {
3076
+ "type": "struct",
3077
+ "type_mapping": [
3078
+ [
3079
+ "phase",
3080
+ "Phase"
3081
+ ],
3082
+ [
3083
+ "event",
3084
+ "Event"
3085
+ ]
3086
+ ]
3087
+ },
3088
+ "Health": {
3089
+ "type": "struct",
3090
+ "type_mapping": [
3091
+ [
3092
+ "peers",
3093
+ "u64"
3094
+ ],
3095
+ [
3096
+ "isSyncing",
3097
+ "bool"
3098
+ ],
3099
+ [
3100
+ "shouldHavePeers",
3101
+ "bool"
3102
+ ]
3103
+ ]
3104
+ },
3105
+ "InvalidTransaction": {
3106
+ "type": "enum",
3107
+ "type_mapping": [
3108
+ [
3109
+ "Call",
3110
+ "Null"
3111
+ ],
3112
+ [
3113
+ "Payment",
3114
+ "Null"
3115
+ ],
3116
+ [
3117
+ "Future",
3118
+ "Null"
3119
+ ],
3120
+ [
3121
+ "Stale",
3122
+ "Null"
3123
+ ],
3124
+ [
3125
+ "BadProof",
3126
+ "Null"
3127
+ ],
3128
+ [
3129
+ "AncientBirthBlock",
3130
+ "Null"
3131
+ ],
3132
+ [
3133
+ "ExhaustsResources",
3134
+ "Null"
3135
+ ],
3136
+ [
3137
+ "Custom",
3138
+ "u8"
3139
+ ],
3140
+ [
3141
+ "BadMandatory",
3142
+ "Null"
3143
+ ],
3144
+ [
3145
+ "MandatoryDispatch",
3146
+ "Null"
3147
+ ]
3148
+ ]
3149
+ },
3150
+ "Key": "Bytes",
3151
+ "NetworkState": {
3152
+ "type": "struct",
3153
+ "type_mapping": [
3154
+ [
3155
+ "peerId",
3156
+ "Text"
3157
+ ],
3158
+ [
3159
+ "listenedAddresses",
3160
+ "Vec<Text>"
3161
+ ],
3162
+ [
3163
+ "externalAddresses",
3164
+ "Vec<Text>"
3165
+ ],
3166
+ [
3167
+ "connectedPeers",
3168
+ "HashMap<Text, Peer>"
3169
+ ],
3170
+ [
3171
+ "notConnectedPeers",
3172
+ "HashMap<Text, NotConnectedPeer>"
3173
+ ],
3174
+ [
3175
+ "averageDownloadPerSec",
3176
+ "u64"
3177
+ ],
3178
+ [
3179
+ "averageUploadPerSec",
3180
+ "u64"
3181
+ ],
3182
+ [
3183
+ "peerset",
3184
+ "NetworkStatePeerset"
3185
+ ]
3186
+ ]
3187
+ },
3188
+ "NetworkStatePeerset": {
3189
+ "type": "struct",
3190
+ "type_mapping": [
3191
+ [
3192
+ "messageQueue",
3193
+ "u64"
3194
+ ],
3195
+ [
3196
+ "nodes",
3197
+ "HashMap<Text, NetworkStatePeersetInfo>"
3198
+ ]
3199
+ ]
3200
+ },
3201
+ "NetworkStatePeersetInfo": {
3202
+ "type": "struct",
3203
+ "type_mapping": [
3204
+ [
3205
+ "connected",
3206
+ "bool"
3207
+ ],
3208
+ [
3209
+ "reputation",
3210
+ "i32"
3211
+ ]
3212
+ ]
3213
+ },
3214
+ "NodeRole": {
3215
+ "type": "enum",
3216
+ "type_mapping": [
3217
+ [
3218
+ "Full",
3219
+ "Null"
3220
+ ],
3221
+ [
3222
+ "LightClient",
3223
+ "Null"
3224
+ ],
3225
+ [
3226
+ "Authority",
3227
+ "Null"
3228
+ ],
3229
+ [
3230
+ "UnknownRole",
3231
+ "u8"
3232
+ ]
3233
+ ]
3234
+ },
3235
+ "NotConnectedPeer": {
3236
+ "type": "struct",
3237
+ "type_mapping": [
3238
+ [
3239
+ "knownAddresses",
3240
+ "Vec<Text>"
3241
+ ],
3242
+ [
3243
+ "latestPingTime",
3244
+ "Option<PeerPing>"
3245
+ ],
3246
+ [
3247
+ "versionString",
3248
+ "Option<Text>"
3249
+ ]
3250
+ ]
3251
+ },
3252
+ "Peer": {
3253
+ "type": "struct",
3254
+ "type_mapping": [
3255
+ [
3256
+ "enabled",
3257
+ "bool"
3258
+ ],
3259
+ [
3260
+ "endpoint",
3261
+ "PeerEndpoint"
3262
+ ],
3263
+ [
3264
+ "knownAddresses",
3265
+ "Vec<Text>"
3266
+ ],
3267
+ [
3268
+ "latestPingTime",
3269
+ "PeerPing"
3270
+ ],
3271
+ [
3272
+ "open",
3273
+ "bool"
3274
+ ],
3275
+ [
3276
+ "versionString",
3277
+ "Text"
3278
+ ]
3279
+ ]
3280
+ },
3281
+ "PeerEndpoint": {
3282
+ "type": "struct",
3283
+ "type_mapping": [
3284
+ [
3285
+ "listening",
3286
+ "PeerEndpointAddr"
3287
+ ]
3288
+ ]
3289
+ },
3290
+ "PeerEndpointAddr": {
3291
+ "type": "struct",
3292
+ "type_mapping": [
3293
+ [
3294
+ "_alias",
3295
+ {
3296
+ "localAddr": "local_addr",
3297
+ "sendBackAddr": "send_back_addr"
3298
+ }
3299
+ ],
3300
+ [
3301
+ "localAddr",
3302
+ "Text"
3303
+ ],
3304
+ [
3305
+ "sendBackAddr",
3306
+ "Text"
3307
+ ]
3308
+ ]
3309
+ },
3310
+ "PeerPing": {
3311
+ "type": "struct",
3312
+ "type_mapping": [
3313
+ [
3314
+ "nanos",
3315
+ "u64"
3316
+ ],
3317
+ [
3318
+ "secs",
3319
+ "u64"
3320
+ ]
3321
+ ]
3322
+ },
3323
+ "PeerInfo": {
3324
+ "type": "struct",
3325
+ "type_mapping": [
3326
+ [
3327
+ "peerId",
3328
+ "Text"
3329
+ ],
3330
+ [
3331
+ "roles",
3332
+ "Text"
3333
+ ],
3334
+ [
3335
+ "protocolVersion",
3336
+ "u32"
3337
+ ],
3338
+ [
3339
+ "bestHash",
3340
+ "Hash"
3341
+ ],
3342
+ [
3343
+ "bestNumber",
3344
+ "BlockNumber"
3345
+ ]
3346
+ ]
3347
+ },
3348
+ "TransactionValidityError": {
3349
+ "type": "enum",
3350
+ "type_mapping": [
3351
+ [
3352
+ "Invalid",
3353
+ "InvalidTransaction"
3354
+ ],
3355
+ [
3356
+ "Unknown",
3357
+ "UnknownTransaction"
3358
+ ]
3359
+ ]
3360
+ },
3361
+ "UnknownTransaction": {
3362
+ "type": "enum",
3363
+ "type_mapping": [
3364
+ [
3365
+ "CannotLookup",
3366
+ "Null"
3367
+ ],
3368
+ [
3369
+ "NoUnsignedValidator",
3370
+ "Null"
3371
+ ],
3372
+ [
3373
+ "Custom",
3374
+ "u8"
3375
+ ]
3376
+ ]
3377
+ },
3378
+ "WeightToFeeCoefficient": {
3379
+ "type": "struct",
3380
+ "type_mapping": [
3381
+ [
3382
+ "coeffInteger",
3383
+ "Balance"
3384
+ ],
3385
+ [
3386
+ "coeffFrac",
3387
+ "Perbill"
3388
+ ],
3389
+ [
3390
+ "negative",
3391
+ "bool"
3392
+ ],
3393
+ [
3394
+ "degree",
3395
+ "u8"
3396
+ ]
3397
+ ]
3398
+ },
3399
+ "EraIndex": "u32",
3400
+ "EraRewards": {
3401
+ "type": "struct",
3402
+ "type_mapping": [
3403
+ [
3404
+ "total",
3405
+ "u32"
3406
+ ],
3407
+ [
3408
+ "rewards",
3409
+ "Vec<u32>"
3410
+ ]
3411
+ ]
3412
+ },
3413
+ "Exposure": {
3414
+ "type": "struct",
3415
+ "type_mapping": [
3416
+ [
3417
+ "total",
3418
+ "Compact<Balance>"
3419
+ ],
3420
+ [
3421
+ "own",
3422
+ "Compact<Balance>"
3423
+ ],
3424
+ [
3425
+ "others",
3426
+ "Vec<IndividualExposure>"
3427
+ ]
3428
+ ]
3429
+ },
3430
+ "IndividualExposure": {
3431
+ "type": "struct",
3432
+ "type_mapping": [
3433
+ [
3434
+ "who",
3435
+ "AccountId"
3436
+ ],
3437
+ [
3438
+ "value",
3439
+ "Compact<Balance>"
3440
+ ]
3441
+ ]
3442
+ },
3443
+ "KeyType": "AccountId",
3444
+ "Points": "u32",
3445
+ "SlashJournalEntry": {
3446
+ "type": "struct",
3447
+ "type_mapping": [
3448
+ [
3449
+ "who",
3450
+ "AccountId"
3451
+ ],
3452
+ [
3453
+ "amount",
3454
+ "Balance"
3455
+ ],
3456
+ [
3457
+ "ownSlash",
3458
+ "Balance"
3459
+ ]
3460
+ ]
3461
+ },
3462
+ "SlashingSpansTo204": {
3463
+ "type": "struct",
3464
+ "type_mapping": [
3465
+ [
3466
+ "spanIndex",
3467
+ "SpanIndex"
3468
+ ],
3469
+ [
3470
+ "lastStart",
3471
+ "EraIndex"
3472
+ ],
3473
+ [
3474
+ "prior",
3475
+ "Vec<EraIndex>"
3476
+ ]
3477
+ ]
3478
+ },
3479
+ "StakingLedgerTo223": {
3480
+ "type": "struct",
3481
+ "type_mapping": [
3482
+ [
3483
+ "stash",
3484
+ "AccountId"
3485
+ ],
3486
+ [
3487
+ "total",
3488
+ "Compact<Balance>"
3489
+ ],
3490
+ [
3491
+ "active",
3492
+ "Compact<Balance>"
3493
+ ],
3494
+ [
3495
+ "unlocking",
3496
+ "Vec<UnlockChunk>"
3497
+ ]
3498
+ ]
3499
+ },
3500
+ "StakingLedgerTo240": {
3501
+ "type": "struct",
3502
+ "type_mapping": [
3503
+ [
3504
+ "stash",
3505
+ "AccountId"
3506
+ ],
3507
+ [
3508
+ "total",
3509
+ "Compact<Balance>"
3510
+ ],
3511
+ [
3512
+ "active",
3513
+ "Compact<Balance>"
3514
+ ],
3515
+ [
3516
+ "unlocking",
3517
+ "Vec<UnlockChunk>"
3518
+ ],
3519
+ [
3520
+ "lastReward",
3521
+ "Option<EraIndex>"
3522
+ ]
3523
+ ]
3524
+ },
3525
+ "StakingLedger": {
3526
+ "type": "struct",
3527
+ "type_mapping": [
3528
+ [
3529
+ "stash",
3530
+ "AccountId"
3531
+ ],
3532
+ [
3533
+ "total",
3534
+ "Compact<Balance>"
3535
+ ],
3536
+ [
3537
+ "active",
3538
+ "Compact<Balance>"
3539
+ ],
3540
+ [
3541
+ "unlocking",
3542
+ "Vec<UnlockChunk>"
3543
+ ],
3544
+ [
3545
+ "claimedRewards",
3546
+ "Vec<EraIndex>"
3547
+ ]
3548
+ ]
3549
+ },
3550
+ "UnappliedSlash": {
3551
+ "type": "struct",
3552
+ "type_mapping": [
3553
+ [
3554
+ "validator",
3555
+ "AccountId"
3556
+ ],
3557
+ [
3558
+ "own",
3559
+ "Balance"
3560
+ ],
3561
+ [
3562
+ "others",
3563
+ "Vec<UnappliedSlashOther>"
3564
+ ],
3565
+ [
3566
+ "reporters",
3567
+ "Vec<AccountId>"
3568
+ ],
3569
+ [
3570
+ "payout",
3571
+ "Balance"
3572
+ ]
3573
+ ]
3574
+ },
3575
+ "UnlockChunk": {
3576
+ "type": "struct",
3577
+ "type_mapping": [
3578
+ [
3579
+ "value",
3580
+ "Compact<Balance>"
3581
+ ],
3582
+ [
3583
+ "era",
3584
+ "Compact<BlockNumber>"
3585
+ ]
3586
+ ]
3587
+ },
3588
+ "ValidatorPrefsTo196": {
3589
+ "type": "struct",
3590
+ "type_mapping": [
3591
+ [
3592
+ "validatorPayment",
3593
+ "Compact<Balance>"
3594
+ ]
3595
+ ]
3596
+ },
3597
+ "ValidatorPrefsTo145": {
3598
+ "type": "struct",
3599
+ "type_mapping": [
3600
+ [
3601
+ "unstakeThreshold",
3602
+ "Compact<u32>"
3603
+ ],
3604
+ [
3605
+ "validatorPayment",
3606
+ "Compact<Balance>"
3607
+ ]
3608
+ ]
3609
+ },
3610
+ "BalanceLockTo212": {
3611
+ "type": "struct",
3612
+ "type_mapping": [
3613
+ [
3614
+ "id",
3615
+ "LockIdentifier"
3616
+ ],
3617
+ [
3618
+ "amount",
3619
+ "Balance"
3620
+ ],
3621
+ [
3622
+ "until",
3623
+ "BlockNumber"
3624
+ ],
3625
+ [
3626
+ "reasons",
3627
+ "WithdrawReasons"
3628
+ ]
3629
+ ]
3630
+ },
3631
+ "VestingSchedule": {
3632
+ "type": "struct",
3633
+ "type_mapping": [
3634
+ [
3635
+ "offset",
3636
+ "Balance"
3637
+ ],
3638
+ [
3639
+ "perBlock",
3640
+ "Balance"
3641
+ ],
3642
+ [
3643
+ "startingBlock",
3644
+ "BlockNumber"
3645
+ ]
3646
+ ]
3647
+ },
3648
+ "Account": {
3649
+ "type": "struct",
3650
+ "type_mapping": [
3651
+ [
3652
+ "nonce",
3653
+ "U256"
3654
+ ],
3655
+ [
3656
+ "balance",
3657
+ "U256"
3658
+ ]
3659
+ ]
3660
+ },
3661
+ "Log": {
3662
+ "type": "struct",
3663
+ "type_mapping": [
3664
+ [
3665
+ "address",
3666
+ "H160"
3667
+ ],
3668
+ [
3669
+ "topics",
3670
+ "Vec<H256>"
3671
+ ],
3672
+ [
3673
+ "data",
3674
+ "Bytes"
3675
+ ]
3676
+ ]
3677
+ },
3678
+ "Vicinity": {
3679
+ "type": "struct",
3680
+ "type_mapping": [
3681
+ [
3682
+ "gasPrice",
3683
+ "U256"
3684
+ ],
3685
+ [
3686
+ "origin",
3687
+ "H160"
3688
+ ]
3689
+ ]
3690
+ },
3691
+ "StorageKind": {
3692
+ "type": "enum",
3693
+ "value_list": [
3694
+ "__UNUSED",
3695
+ "PERSISTENT",
3696
+ "LOCAL"
3697
+ ]
3698
+ },
3699
+ "OpenTipTo225": {
3700
+ "type": "struct",
3701
+ "type_mapping": [
3702
+ [
3703
+ "reason",
3704
+ "Hash"
3705
+ ],
3706
+ [
3707
+ "who",
3708
+ "AccountId"
3709
+ ],
3710
+ [
3711
+ "finder",
3712
+ "Option<OpenTipFinderTo225>"
3713
+ ],
3714
+ [
3715
+ "closes",
3716
+ "Option<BlockNumber>"
3717
+ ],
3718
+ [
3719
+ "tips",
3720
+ "Vec<OpenTipTip>"
3721
+ ]
3722
+ ]
3723
+ },
3724
+ "OpenTipFinderTo225": "(AccountId, Balance)",
3725
+ "TreasuryProposal": {
3726
+ "type": "struct",
3727
+ "type_mapping": [
3728
+ [
3729
+ "proposer",
3730
+ "AccountId"
3731
+ ],
3732
+ [
3733
+ "value",
3734
+ "Balance"
3735
+ ],
3736
+ [
3737
+ "beneficiary",
3738
+ "AccountId"
3739
+ ],
3740
+ [
3741
+ "bond",
3742
+ "Balance"
3743
+ ]
3744
+ ]
3745
+ },
3746
+ "BabeAuthorityWeight": "u64",
3747
+ "BabeBlockWeight": "u32",
3748
+ "equivocationproof<header>": "BabeEquivocationProof",
3749
+ "BabeEquivocationProof": {
3750
+ "type": "struct",
3751
+ "type_mapping": [
3752
+ [
3753
+ "offender",
3754
+ "AuthorityId"
3755
+ ],
3756
+ [
3757
+ "slotNumber",
3758
+ "SlotNumber"
3759
+ ],
3760
+ [
3761
+ "firstHeader",
3762
+ "Header"
3763
+ ],
3764
+ [
3765
+ "secondHeader",
3766
+ "Header"
3767
+ ]
3768
+ ]
3769
+ },
3770
+ "BabeWeight": "u64",
3771
+ "EpochAuthorship": {
3772
+ "type": "struct",
3773
+ "type_mapping": [
3774
+ [
3775
+ "primary",
3776
+ "Vec<u64>"
3777
+ ],
3778
+ [
3779
+ "secondary",
3780
+ "Vec<u64>"
3781
+ ]
3782
+ ]
3783
+ },
3784
+ "RawBabePreDigestTo159": {
3785
+ "type": "enum",
3786
+ "type_mapping": [
3787
+ [
3788
+ "Primary",
3789
+ "RawBabePreDigestPrimaryTo159"
3790
+ ],
3791
+ [
3792
+ "Secondary",
3793
+ "RawBabePreDigestSecondaryTo159"
3794
+ ]
3795
+ ]
3796
+ },
3797
+ "RawBabePreDigestPrimaryTo159": {
3798
+ "type": "struct",
3799
+ "type_mapping": [
3800
+ [
3801
+ "authorityIndex",
3802
+ "u32"
3803
+ ],
3804
+ [
3805
+ "slotNumber",
3806
+ "SlotNumber"
3807
+ ],
3808
+ [
3809
+ "weight",
3810
+ "BabeBlockWeight"
3811
+ ],
3812
+ [
3813
+ "vrfOutput",
3814
+ "VrfOutput"
3815
+ ],
3816
+ [
3817
+ "vrfProof",
3818
+ "VrfProof"
3819
+ ]
3820
+ ]
3821
+ },
3822
+ "RawBabePreDigestSecondaryTo159": {
3823
+ "type": "struct",
3824
+ "type_mapping": [
3825
+ [
3826
+ "authorityIndex",
3827
+ "u32"
3828
+ ],
3829
+ [
3830
+ "slotNumber",
3831
+ "SlotNumber"
3832
+ ],
3833
+ [
3834
+ "weight",
3835
+ "BabeBlockWeight"
3836
+ ]
3837
+ ]
3838
+ },
3839
+ "RawBabePreDigestCompat": {
3840
+ "type": "enum",
3841
+ "type_mapping": [
3842
+ [
3843
+ "Zero",
3844
+ "u32"
3845
+ ],
3846
+ [
3847
+ "One",
3848
+ "u32"
3849
+ ],
3850
+ [
3851
+ "Two",
3852
+ "u32"
3853
+ ],
3854
+ [
3855
+ "Three",
3856
+ "u32"
3857
+ ]
3858
+ ]
3859
+ },
3860
+ "VrfOutput": "[u8; 32]",
3861
+ "RpcMethods": {
3862
+ "type": "struct",
3863
+ "type_mapping": [
3864
+ [
3865
+ "version",
3866
+ "u32"
3867
+ ],
3868
+ [
3869
+ "methods",
3870
+ "Vec<Text>"
3871
+ ]
3872
+ ]
3873
+ },
3874
+ "CreatedBlock": {
3875
+ "type": "struct",
3876
+ "type_mapping": [
3877
+ [
3878
+ "hash",
3879
+ "BlockHash"
3880
+ ],
3881
+ [
3882
+ "aux",
3883
+ "ImportedAux"
3884
+ ]
3885
+ ]
3886
+ },
3887
+ "ImportedAux": {
3888
+ "type": "struct",
3889
+ "type_mapping": [
3890
+ [
3891
+ "headerOnly",
3892
+ "bool"
3893
+ ],
3894
+ [
3895
+ "clearJustificationRequests",
3896
+ "bool"
3897
+ ],
3898
+ [
3899
+ "needsJustification",
3900
+ "bool"
3901
+ ],
3902
+ [
3903
+ "badJustification",
3904
+ "bool"
3905
+ ],
3906
+ [
3907
+ "needsFinalityProof",
3908
+ "bool"
3909
+ ],
3910
+ [
3911
+ "isNewBest",
3912
+ "bool"
3913
+ ]
3914
+ ]
3915
+ },
3916
+ "Conviction": {
3917
+ "type": "enum",
3918
+ "value_list": [
3919
+ "None",
3920
+ "Locked1x",
3921
+ "Locked2x",
3922
+ "Locked3x",
3923
+ "Locked4x",
3924
+ "Locked5x",
3925
+ "Locked6x"
3926
+ ]
3927
+ },
3928
+ "PropIndex": "u32",
3929
+ "Proposal": "Call",
3930
+ "ReferendumIndex": "u32",
3931
+ "ReferendumInfoTo239": {
3932
+ "type": "struct",
3933
+ "type_mapping": [
3934
+ [
3935
+ "end",
3936
+ "BlockNumber"
3937
+ ],
3938
+ [
3939
+ "proposalHash",
3940
+ "Hash"
3941
+ ],
3942
+ [
3943
+ "threshold",
3944
+ "VoteThreshold"
3945
+ ],
3946
+ [
3947
+ "delay",
3948
+ "BlockNumber"
3949
+ ]
3950
+ ]
3951
+ },
3952
+ "ApprovalFlag": "u32",
3953
+ "SetIndex": "u32",
3954
+ "Vote": "GenericVote",
3955
+ "VoteIndex": "u32",
3956
+ "VoterInfo": {
3957
+ "type": "struct",
3958
+ "type_mapping": [
3959
+ [
3960
+ "lastActive",
3961
+ "VoteIndex"
3962
+ ],
3963
+ [
3964
+ "lastWin",
3965
+ "VoteIndex"
3966
+ ],
3967
+ [
3968
+ "pot",
3969
+ "Balance"
3970
+ ],
3971
+ [
3972
+ "stake",
3973
+ "Balance"
3974
+ ]
3975
+ ]
3976
+ },
3977
+ "VoteThreshold": {
3978
+ "type": "enum",
3979
+ "value_list": [
3980
+ "Super majority approval",
3981
+ "Super majority rejection",
3982
+ "Simple majority"
3983
+ ]
3984
+ },
3985
+ "EthereumAddress": "H160",
3986
+ "AbridgedCandidateReceipt": {
3987
+ "type": "struct",
3988
+ "type_mapping": [
3989
+ [
3990
+ "parachainIndex",
3991
+ "ParaId"
3992
+ ],
3993
+ [
3994
+ "relayParent",
3995
+ "Hash"
3996
+ ],
3997
+ [
3998
+ "headData",
3999
+ "HeadData"
4000
+ ],
4001
+ [
4002
+ "collator",
4003
+ "CollatorId"
4004
+ ],
4005
+ [
4006
+ "signature",
4007
+ "CollatorSignature"
4008
+ ],
4009
+ [
4010
+ "povBlockHash",
4011
+ "Hash"
4012
+ ],
4013
+ [
4014
+ "commitments",
4015
+ "CandidateCommitments"
4016
+ ]
4017
+ ]
4018
+ },
4019
+ "Bidder": {
4020
+ "type": "enum",
4021
+ "type_mapping": [
4022
+ [
4023
+ "New",
4024
+ "NewBidder"
4025
+ ],
4026
+ [
4027
+ "Existing",
4028
+ "ParaId"
4029
+ ]
4030
+ ]
4031
+ },
4032
+ "CandidateCommitments": {
4033
+ "type": "struct",
4034
+ "type_mapping": [
4035
+ [
4036
+ "fees",
4037
+ "Balance"
4038
+ ],
4039
+ [
4040
+ "upwardMessages",
4041
+ "Vec<UpwardMessage>"
4042
+ ],
4043
+ [
4044
+ "erasureRoot",
4045
+ "Hash"
4046
+ ],
4047
+ [
4048
+ "newValidationCode",
4049
+ "Option<ValidationCode>"
4050
+ ],
4051
+ [
4052
+ "processedDownwardMessages",
4053
+ "u32"
4054
+ ]
4055
+ ]
4056
+ },
4057
+ "DownwardMessage": {
4058
+ "type": "enum",
4059
+ "type_mapping": [
4060
+ [
4061
+ "TransferInto",
4062
+ "(AccountId, Balance, Remark)"
4063
+ ],
4064
+ [
4065
+ "Opaque",
4066
+ "Vec<u8>"
4067
+ ]
4068
+ ]
4069
+ },
4070
+ "GlobalValidationSchedule": {
4071
+ "type": "struct",
4072
+ "type_mapping": [
4073
+ [
4074
+ "maxCodeSize",
4075
+ "u32"
4076
+ ],
4077
+ [
4078
+ "maxHeadDataSize",
4079
+ "u32"
4080
+ ],
4081
+ [
4082
+ "blockNumber",
4083
+ "BlockNumber"
4084
+ ]
4085
+ ]
4086
+ },
4087
+ "HeadData": "Bytes",
4088
+ "LocalValidationData": {
4089
+ "type": "struct",
4090
+ "type_mapping": [
4091
+ [
4092
+ "parentHead",
4093
+ "HeadData"
4094
+ ],
4095
+ [
4096
+ "balance",
4097
+ "Balance"
4098
+ ],
4099
+ [
4100
+ "codeUpgradeAllowed",
4101
+ "Option<BlockNumber>"
4102
+ ]
4103
+ ]
4104
+ },
4105
+ "ParachainDispatchOrigin": {
4106
+ "type": "enum",
4107
+ "value_list": [
4108
+ "Signed",
4109
+ "Parachain",
4110
+ "Root"
4111
+ ]
4112
+ },
4113
+ "RelayChainBlockNumber": "BlockNumber",
4114
+ "Remark": "[u8; 32]",
4115
+ "Retriable": {
4116
+ "type": "enum",
4117
+ "type_mapping": [
4118
+ [
4119
+ "Never",
4120
+ "Null"
4121
+ ],
4122
+ [
4123
+ "WithRetries",
4124
+ "u32"
4125
+ ]
4126
+ ]
4127
+ },
4128
+ "Scheduling": {
4129
+ "type": "enum",
4130
+ "value_list": [
4131
+ "Always",
4132
+ "Dynamic"
4133
+ ]
4134
+ },
4135
+ "UpwardMessage": {
4136
+ "type": "struct",
4137
+ "type_mapping": [
4138
+ [
4139
+ "origin",
4140
+ "ParachainDispatchOrigin"
4141
+ ],
4142
+ [
4143
+ "data",
4144
+ "Vec<u8>"
4145
+ ]
4146
+ ]
4147
+ },
4148
+ "AssetOptions": {
4149
+ "type": "struct",
4150
+ "type_mapping": [
4151
+ [
4152
+ "initalIssuance",
4153
+ "Compact<Balance>"
4154
+ ],
4155
+ [
4156
+ "permissions",
4157
+ "PermissionLatest"
4158
+ ]
4159
+ ]
4160
+ },
4161
+ "Owner": {
4162
+ "type": "enum",
4163
+ "type_mapping": [
4164
+ [
4165
+ "None",
4166
+ "Null"
4167
+ ],
4168
+ [
4169
+ "Address",
4170
+ "AccountId"
4171
+ ]
4172
+ ]
4173
+ },
4174
+ "PermissionsV1": {
4175
+ "type": "struct",
4176
+ "type_mapping": [
4177
+ [
4178
+ "update",
4179
+ "Owner"
4180
+ ],
4181
+ [
4182
+ "mint",
4183
+ "Owner"
4184
+ ],
4185
+ [
4186
+ "burn",
4187
+ "Owner"
4188
+ ]
4189
+ ]
4190
+ },
4191
+ "PermissionVersions": {
4192
+ "type": "enum",
4193
+ "type_mapping": [
4194
+ [
4195
+ "V1",
4196
+ "PermissionsV1"
4197
+ ]
4198
+ ]
4199
+ },
4200
+ "PermissionLatest": "PermissionsV1",
4201
+ "Approvals": "[bool; 4]",
4202
+ "ContractExecResultSuccessTo255": {
4203
+ "type": "struct",
4204
+ "type_mapping": [
4205
+ [
4206
+ "status",
4207
+ "u8"
4208
+ ],
4209
+ [
4210
+ "data",
4211
+ "Raw"
4212
+ ]
4213
+ ]
4214
+ },
4215
+ "ContractExecResultTo255": {
4216
+ "type": "enum",
4217
+ "type_mapping": [
4218
+ [
4219
+ "Success",
4220
+ "ContractExecResultSuccessTo255"
4221
+ ],
4222
+ [
4223
+ "Error",
4224
+ "Null"
4225
+ ]
4226
+ ]
4227
+ },
4228
+ "AccountStatus": {
4229
+ "type": "struct",
4230
+ "type_mapping": [
4231
+ [
4232
+ "validity",
4233
+ "AccountValidity"
4234
+ ],
4235
+ [
4236
+ "freeBalance",
4237
+ "Balance"
4238
+ ],
4239
+ [
4240
+ "lockedBalance",
4241
+ "Balance"
4242
+ ],
4243
+ [
4244
+ "signature",
4245
+ "Vec<u8>"
4246
+ ],
4247
+ [
4248
+ "vat",
4249
+ "Permill"
4250
+ ]
4251
+ ]
4252
+ },
4253
+ "AccountValidity": {
4254
+ "type": "enum",
4255
+ "value_list": [
4256
+ "Invalid",
4257
+ "Initiated",
4258
+ "Pending",
4259
+ "ValidLow",
4260
+ "ValidHigh",
4261
+ "Completed"
839
4262
  ]
840
4263
  }
841
4264
  }