scale.rb 0.2.5 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "runtime_id": 3,
3
3
  "types": {
4
- "Weight": "u64"
4
+ "BlockNumber": "U32",
5
+ "Weight": "u64",
6
+ "DispatchInfo": {
7
+ "type": "struct",
8
+ "type_mapping": [
9
+ ["weight", "Weight"],
10
+ ["class", "DispatchClass"],
11
+ ["paysFee", "Pays"]
12
+ ]
13
+ }
5
14
  }
6
15
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtime_id": 1062,
2
+ "runtime_id": 2023,
3
3
  "types": {
4
4
  "Address": "AccountIdAddress",
5
5
  "BlockNumber": "U32",
@@ -15,7 +15,26 @@
15
15
  ["parachains", "AccountId"]
16
16
  ]
17
17
  },
18
- "Keys": "SessionKeysPolkadot"
18
+ "Keys": "SessionKeysPolkadot",
19
+ "DispatchInfo": {
20
+ "type": "struct",
21
+ "type_mapping": [
22
+ ["weight", "Weight"],
23
+ ["class", "DispatchClass"],
24
+ ["paysFee", "Pays"]
25
+ ]
26
+ },
27
+ "ProxyType": {
28
+ "type": "enum",
29
+ "value_list": [
30
+ "Any",
31
+ "NonTransfer",
32
+ "Governance",
33
+ "Staking",
34
+ "IdentityJudgement"
35
+ ]
36
+ },
37
+ "CompactAssignments": "CompactAssignmentsFrom258"
19
38
  },
20
39
  "versioning": [
21
40
  {
@@ -112,38 +131,60 @@
112
131
  "runtime_range": [1019, 1045],
113
132
  "types": {
114
133
  "Address": "RawAddress",
115
- "StakingLedger<AccountId, BalanceOf>": {
134
+ "StakingLedger": "StakingLedgerTo223",
135
+ "BalanceLock": {
116
136
  "type": "struct",
117
137
  "type_mapping": [
118
- ["stash", "AccountId"],
119
- ["total", "Compact<Balance>"],
120
- ["active", "Compact<Balance>"],
121
- ["unlocking", "Vec<UnlockChunk<Balance>>"]
138
+ ["id", "LockIdentifier"],
139
+ ["amount", "Balance"],
140
+ ["until", "BlockNumber"],
141
+ ["reasons", "WithdrawReasons"]
122
142
  ]
123
- },
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "runtime_range": [1050, 1056],
148
+ "types": {
149
+ "Address": "AccountIdAddress",
150
+ "StakingLedger": "StakingLedgerTo240",
124
151
  "BalanceLock": {
125
152
  "type": "struct",
126
153
  "type_mapping": [
127
154
  ["id", "LockIdentifier"],
128
155
  ["amount", "Balance"],
129
- ["until", "BlockNumber"],
130
- ["reasons", "WithdrawReasons"]
156
+ ["reasons", "Reasons"]
131
157
  ]
132
158
  }
133
159
  }
134
160
  },
135
161
  {
136
- "runtime_range": [1050, null],
162
+ "runtime_range": [1057, null],
137
163
  "types": {
138
164
  "Address": "AccountIdAddress",
139
- "StakingLedger<AccountId, BalanceOf>": {
165
+ "StakingLedger": {
140
166
  "type": "struct",
141
167
  "type_mapping": [
142
- ["stash", "AccountId"],
143
- ["total", "Compact<Balance>"],
144
- ["active", "Compact<Balance>"],
145
- ["unlocking", "Vec<UnlockChunk<Balance>>"],
146
- ["lastReward", "Option<EraIndex>"]
168
+ [
169
+ "stash",
170
+ "AccountId"
171
+ ],
172
+ [
173
+ "total",
174
+ "Compact<Balance>"
175
+ ],
176
+ [
177
+ "active",
178
+ "Compact<Balance>"
179
+ ],
180
+ [
181
+ "unlocking",
182
+ "Vec<UnlockChunk>"
183
+ ],
184
+ [
185
+ "claimedRewards",
186
+ "Vec<EraIndex>"
187
+ ]
147
188
  ]
148
189
  },
149
190
  "BalanceLock": {
@@ -195,7 +236,7 @@
195
236
  }
196
237
  },
197
238
  {
198
- "runtime_range": [1019, 1058],
239
+ "runtime_range": [1019, 1061],
199
240
  "types": {
200
241
  "Heartbeat": {
201
242
  "type": "struct",
@@ -205,6 +246,14 @@
205
246
  ["sessionIndex", "SessionIndex"],
206
247
  ["authorityIndex", "AuthIndex"]
207
248
  ]
249
+ },
250
+ "DispatchInfo": {
251
+ "type": "struct",
252
+ "type_mapping": [
253
+ ["weight", "Weight"],
254
+ ["class", "DispatchClass"],
255
+ ["paysFee", "bool"]
256
+ ]
208
257
  }
209
258
  }
210
259
  },
@@ -220,8 +269,60 @@
220
269
  ["authorityIndex", "AuthIndex"],
221
270
  ["validatorsLen", "u32"]
222
271
  ]
272
+ },
273
+ "DispatchInfo": {
274
+ "type": "struct",
275
+ "type_mapping": [
276
+ ["weight", "Weight"],
277
+ ["class", "DispatchClass"],
278
+ ["paysFee", "Pays"]
279
+ ]
280
+ }
281
+ }
282
+ },
283
+ {
284
+ "runtime_range": [1019, 2012],
285
+ "types": {
286
+ "OpenTip": {
287
+ "type": "struct",
288
+ "type_mapping": [
289
+ ["reason", "Hash"],
290
+ ["who", "AccountId"],
291
+ ["finder", "Option<OpenTipFinder>"],
292
+ ["closes", "Option<BlockNumber>"],
293
+ ["tips", "Vec<OpenTipTip>"]
294
+ ]
223
295
  }
224
296
  }
297
+ },
298
+ {
299
+ "runtime_range": [2013, null],
300
+ "types": {
301
+ "OpenTip": {
302
+ "type": "struct",
303
+ "type_mapping": [
304
+ ["reason", "Hash"],
305
+ ["who", "AccountId"],
306
+ ["finder", "AccountId"],
307
+ ["deposit", "Balance"],
308
+ ["closes", "Option<BlockNumber>"],
309
+ ["tips", "Vec<OpenTipTip>"],
310
+ ["findersFee", "bool"]
311
+ ]
312
+ }
313
+ }
314
+ },
315
+ {
316
+ "runtime_range": [1019, 2022],
317
+ "types": {
318
+ "CompactAssignments": "CompactAssignmentsTo257"
319
+ }
320
+ },
321
+ {
322
+ "runtime_range": [2023, null],
323
+ "types": {
324
+ "CompactAssignments": "CompactAssignmentsFrom258"
325
+ }
225
326
  }
226
327
  ]
227
328
  }
@@ -0,0 +1,85 @@
1
+ {
2
+ "runtime_id": 18,
3
+ "types": {
4
+ "Address": "AccountIdAddress",
5
+ "BlockNumber": "U32",
6
+ "LeasePeriod": "BlockNumber",
7
+ "Weight": "u64",
8
+ "SessionKeysPolkadot": {
9
+ "type": "struct",
10
+ "type_mapping": [
11
+ ["grandpa", "AccountId"],
12
+ ["babe", "AccountId"],
13
+ ["im_online", "AccountId"],
14
+ ["authority_discovery", "AccountId"],
15
+ ["parachains", "AccountId"]
16
+ ]
17
+ },
18
+ "Keys": "SessionKeysPolkadot",
19
+ "DispatchInfo": {
20
+ "type": "struct",
21
+ "type_mapping": [
22
+ ["weight", "Weight"],
23
+ ["class", "DispatchClass"],
24
+ ["paysFee", "Pays"]
25
+ ]
26
+ },
27
+ "ProxyType": {
28
+ "type": "enum",
29
+ "value_list": [
30
+ "Any",
31
+ "NonTransfer",
32
+ "Governance",
33
+ "Staking",
34
+ "SudoBalances",
35
+ "IdentityJudgement"
36
+ ]
37
+ }
38
+ },
39
+ "versioning": [
40
+ {
41
+ "runtime_range": [0, 12],
42
+ "types": {
43
+ "OpenTip": {
44
+ "type": "struct",
45
+ "type_mapping": [
46
+ ["reason", "Hash"],
47
+ ["who", "AccountId"],
48
+ ["finder", "Option<OpenTipFinder>"],
49
+ ["closes", "Option<BlockNumber>"],
50
+ ["tips", "Vec<OpenTipTip>"]
51
+ ]
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "runtime_range": [13, null],
57
+ "types": {
58
+ "OpenTip": {
59
+ "type": "struct",
60
+ "type_mapping": [
61
+ ["reason", "Hash"],
62
+ ["who", "AccountId"],
63
+ ["finder", "AccountId"],
64
+ ["deposit", "Balance"],
65
+ ["closes", "Option<BlockNumber>"],
66
+ ["tips", "Vec<OpenTipTip>"],
67
+ ["findersFee", "bool"]
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "runtime_range": [0, 22],
74
+ "types": {
75
+ "CompactAssignments": "CompactAssignmentsTo257"
76
+ }
77
+ },
78
+ {
79
+ "runtime_range": [23, null],
80
+ "types": {
81
+ "CompactAssignments": "CompactAssignmentsFrom258"
82
+ }
83
+ }
84
+ ]
85
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtime_id": 1006,
2
+ "runtime_id": 23,
3
3
  "types": {
4
4
  "Address": "AccountIdAddress",
5
5
  "BlockNumber": "U32",
@@ -14,6 +14,50 @@
14
14
  ["parachains", "AccountId"]
15
15
  ]
16
16
  },
17
- "Keys": "SessionKeysPolkadot"
18
- }
17
+ "Keys": "SessionKeysPolkadot",
18
+ "ProxyType": {
19
+ "type": "enum",
20
+ "value_list": [
21
+ "Any",
22
+ "NonTransfer",
23
+ "Staking",
24
+ "SudoBalances",
25
+ "IdentityJudgement"
26
+ ]
27
+ }
28
+ },
29
+ "versioning": [
30
+ {
31
+ "runtime_range": [3, 22],
32
+ "types": {
33
+ "OpenTip": {
34
+ "type": "struct",
35
+ "type_mapping": [
36
+ ["reason", "Hash"],
37
+ ["who", "AccountId"],
38
+ ["finder", "Option<OpenTipFinder>"],
39
+ ["closes", "Option<BlockNumber>"],
40
+ ["tips", "Vec<OpenTipTip>"]
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "runtime_range": [23, null],
47
+ "types": {
48
+ "OpenTip": {
49
+ "type": "struct",
50
+ "type_mapping": [
51
+ ["reason", "Hash"],
52
+ ["who", "AccountId"],
53
+ ["finder", "AccountId"],
54
+ ["deposit", "Balance"],
55
+ ["closes", "Option<BlockNumber>"],
56
+ ["tips", "Vec<OpenTipTip>"],
57
+ ["findersFee", "bool"]
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ ]
19
63
  }
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
34
  spec.require_paths = ["lib"]
35
35
 
36
- spec.add_dependency "substrate_common.rb", "~> 0.1.8"
36
+ spec.add_dependency "substrate_common.rb", "~> 0.1.9"
37
37
  spec.add_dependency "json", "~> 2.3.0"
38
38
  spec.add_dependency "activesupport", ">= 4.0.0"
39
39
  spec.add_dependency "thor", "~> 0.19.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scale.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wu Minzhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: substrate_common.rb
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.8
19
+ version: 0.1.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.8
26
+ version: 0.1.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,7 @@ extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
147
  - ".DS_Store"
148
+ - ".dockerignore"
148
149
  - ".gitignore"
149
150
  - Cargo.lock
150
151
  - Cargo.toml
@@ -164,6 +165,7 @@ files:
164
165
  - lib/metadata/metadata_v1.rb
165
166
  - lib/metadata/metadata_v10.rb
166
167
  - lib/metadata/metadata_v11.rb
168
+ - lib/metadata/metadata_v12.rb
167
169
  - lib/metadata/metadata_v2.rb
168
170
  - lib/metadata/metadata_v3.rb
169
171
  - lib/metadata/metadata_v4.rb
@@ -177,7 +179,6 @@ files:
177
179
  - lib/scale/block.rb
178
180
  - lib/scale/types.rb
179
181
  - lib/scale/version.rb
180
- - lib/type_registry/certifybook-chain.json
181
182
  - lib/type_registry/darwinia.json
182
183
  - lib/type_registry/default.json
183
184
  - lib/type_registry/edgeware.json
@@ -185,6 +186,7 @@ files:
185
186
  - lib/type_registry/kulupu.json
186
187
  - lib/type_registry/kusama.json
187
188
  - lib/type_registry/plasm.json
189
+ - lib/type_registry/polkadot.json
188
190
  - lib/type_registry/robonomics.json
189
191
  - lib/type_registry/test.json
190
192
  - lib/type_registry/westend.json
@@ -1,10 +0,0 @@
1
- {
2
- "types": {
3
- "Address": "AccountId",
4
- "LookupSource": "AccountId",
5
- "Entity": {
6
- "id": "H256",
7
- "status": "u8"
8
- }
9
- }
10
- }