@polkadot/types-known 10.4.1 → 10.6.1
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.
- package/chain/index.d.ts +1 -2
- package/chain/index.js +1 -2
- package/cjs/chain/index.js +2 -2
- package/cjs/packageInfo.js +1 -1
- package/cjs/spec/centrifuge-chain.js +10 -9
- package/cjs/spec/index.js +22 -23
- package/cjs/spec/kusama.js +72 -31
- package/cjs/spec/node-template.js +2 -2
- package/cjs/spec/node.js +2 -2
- package/cjs/spec/polkadot.js +24 -13
- package/cjs/spec/rococo.js +19 -11
- package/cjs/spec/shell.js +2 -2
- package/cjs/spec/statemint.js +12 -9
- package/cjs/spec/westend.js +33 -16
- package/cjs/upgrades/e2e/index.js +3 -6
- package/cjs/upgrades/e2e/kusama.js +2 -2
- package/cjs/upgrades/e2e/polkadot.js +2 -2
- package/cjs/upgrades/e2e/westend.js +2 -2
- package/cjs/upgrades/index.js +2 -2
- package/cjs/upgrades/manual/index.js +3 -6
- package/cjs/upgrades/manual/kusama.js +2 -2
- package/cjs/upgrades/manual/polkadot.js +2 -2
- package/cjs/upgrades/manual/westend.js +2 -2
- package/cjs/util.js +36 -18
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/spec/centrifuge-chain.d.ts +1 -2
- package/spec/centrifuge-chain.js +9 -9
- package/spec/index.d.ts +1 -2
- package/spec/index.js +10 -11
- package/spec/kusama.d.ts +1 -2
- package/spec/kusama.js +71 -31
- package/spec/node-template.d.ts +1 -2
- package/spec/node-template.js +1 -2
- package/spec/node.d.ts +1 -2
- package/spec/node.js +1 -2
- package/spec/polkadot.d.ts +1 -2
- package/spec/polkadot.js +23 -13
- package/spec/rococo.d.ts +1 -2
- package/spec/rococo.js +18 -11
- package/spec/shell.d.ts +1 -2
- package/spec/shell.js +1 -2
- package/spec/statemint.d.ts +1 -2
- package/spec/statemint.js +11 -9
- package/spec/westend.d.ts +1 -2
- package/spec/westend.js +32 -16
- package/upgrades/e2e/index.d.ts +3 -3
- package/upgrades/e2e/index.js +3 -3
- package/upgrades/e2e/kusama.d.ts +1 -2
- package/upgrades/e2e/kusama.js +1 -2
- package/upgrades/e2e/polkadot.d.ts +1 -2
- package/upgrades/e2e/polkadot.js +1 -2
- package/upgrades/e2e/westend.d.ts +1 -2
- package/upgrades/e2e/westend.js +1 -2
- package/upgrades/index.d.ts +1 -2
- package/upgrades/index.js +1 -2
- package/upgrades/manual/index.d.ts +3 -3
- package/upgrades/manual/index.js +3 -3
- package/upgrades/manual/kusama.d.ts +1 -2
- package/upgrades/manual/kusama.js +1 -2
- package/upgrades/manual/polkadot.d.ts +1 -2
- package/upgrades/manual/polkadot.js +1 -2
- package/upgrades/manual/westend.d.ts +1 -2
- package/upgrades/manual/westend.js +1 -2
- package/util.js +36 -17
package/chain/index.d.ts
CHANGED
package/chain/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const typesChain = {};
|
|
2
|
-
export default typesChain;
|
|
1
|
+
export const typesChain = {};
|
package/cjs/chain/index.js
CHANGED
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.6.1' };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.versioned = void 0;
|
|
4
4
|
const sharedTypes = {
|
|
5
5
|
// Anchor
|
|
6
6
|
AnchorData: {
|
|
@@ -70,17 +70,19 @@ const sharedTypes = {
|
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
const standaloneTypes =
|
|
73
|
+
const standaloneTypes = {
|
|
74
|
+
...sharedTypes,
|
|
74
75
|
AccountInfo: 'AccountInfoWithRefCount',
|
|
75
76
|
Address: 'LookupSource',
|
|
76
77
|
LookupSource: 'IndicesLookupSource',
|
|
77
78
|
Multiplier: 'Fixed64',
|
|
78
79
|
RefCount: 'RefCountTo259'
|
|
79
|
-
}
|
|
80
|
-
|
|
80
|
+
};
|
|
81
|
+
exports.versioned = [
|
|
81
82
|
{
|
|
82
83
|
minmax: [240, 243],
|
|
83
|
-
types:
|
|
84
|
+
types: {
|
|
85
|
+
...standaloneTypes,
|
|
84
86
|
ProxyType: {
|
|
85
87
|
_enum: [
|
|
86
88
|
'Any',
|
|
@@ -90,15 +92,14 @@ const versioned = [
|
|
|
90
92
|
'Vesting'
|
|
91
93
|
]
|
|
92
94
|
}
|
|
93
|
-
}
|
|
95
|
+
}
|
|
94
96
|
},
|
|
95
97
|
{
|
|
96
98
|
minmax: [244, 999],
|
|
97
|
-
types:
|
|
99
|
+
types: { ...standaloneTypes }
|
|
98
100
|
},
|
|
99
101
|
{
|
|
100
102
|
minmax: [1000, undefined],
|
|
101
|
-
types:
|
|
103
|
+
types: { ...sharedTypes }
|
|
102
104
|
}
|
|
103
105
|
];
|
|
104
|
-
exports.default = versioned;
|
package/cjs/spec/index.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
const centrifuge_chain_js_1 =
|
|
5
|
-
const kusama_js_1 =
|
|
6
|
-
const node_js_1 =
|
|
7
|
-
const node_template_js_1 =
|
|
8
|
-
const polkadot_js_1 =
|
|
9
|
-
const rococo_js_1 =
|
|
10
|
-
const shell_js_1 =
|
|
11
|
-
const statemint_js_1 =
|
|
12
|
-
const westend_js_1 =
|
|
13
|
-
|
|
14
|
-
'centrifuge-chain': centrifuge_chain_js_1.
|
|
15
|
-
kusama: kusama_js_1.
|
|
16
|
-
node: node_js_1.
|
|
17
|
-
'node-template': node_template_js_1.
|
|
18
|
-
polkadot: polkadot_js_1.
|
|
19
|
-
rococo: rococo_js_1.
|
|
20
|
-
shell: shell_js_1.
|
|
21
|
-
statemine: statemint_js_1.
|
|
22
|
-
statemint: statemint_js_1.
|
|
23
|
-
westend: westend_js_1.
|
|
24
|
-
westmint: statemint_js_1.
|
|
3
|
+
exports.typesSpec = void 0;
|
|
4
|
+
const centrifuge_chain_js_1 = require("./centrifuge-chain.js");
|
|
5
|
+
const kusama_js_1 = require("./kusama.js");
|
|
6
|
+
const node_js_1 = require("./node.js");
|
|
7
|
+
const node_template_js_1 = require("./node-template.js");
|
|
8
|
+
const polkadot_js_1 = require("./polkadot.js");
|
|
9
|
+
const rococo_js_1 = require("./rococo.js");
|
|
10
|
+
const shell_js_1 = require("./shell.js");
|
|
11
|
+
const statemint_js_1 = require("./statemint.js");
|
|
12
|
+
const westend_js_1 = require("./westend.js");
|
|
13
|
+
exports.typesSpec = {
|
|
14
|
+
'centrifuge-chain': centrifuge_chain_js_1.versioned,
|
|
15
|
+
kusama: kusama_js_1.versioned,
|
|
16
|
+
node: node_js_1.versioned,
|
|
17
|
+
'node-template': node_template_js_1.versioned,
|
|
18
|
+
polkadot: polkadot_js_1.versioned,
|
|
19
|
+
rococo: rococo_js_1.versioned,
|
|
20
|
+
shell: shell_js_1.versioned,
|
|
21
|
+
statemine: statemint_js_1.versioned,
|
|
22
|
+
statemint: statemint_js_1.versioned,
|
|
23
|
+
westend: westend_js_1.versioned,
|
|
24
|
+
westmint: statemint_js_1.versioned
|
|
25
25
|
};
|
|
26
|
-
exports.default = typesSpec;
|
package/cjs/spec/kusama.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versioned = void 0;
|
|
3
4
|
const types_create_1 = require("@polkadot/types-create");
|
|
4
|
-
const util_1 = require("@polkadot/util");
|
|
5
5
|
const sharedTypes = {
|
|
6
6
|
CompactAssignments: 'CompactAssignmentsWith24',
|
|
7
7
|
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
@@ -32,11 +32,12 @@ const addrAccountIdTypes = {
|
|
|
32
32
|
LookupSource: 'AccountId',
|
|
33
33
|
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
exports.versioned = [
|
|
36
36
|
{
|
|
37
37
|
// 1020 is first CC3
|
|
38
38
|
minmax: [1019, 1031],
|
|
39
|
-
types:
|
|
39
|
+
types: {
|
|
40
|
+
...addrIndicesTypes,
|
|
40
41
|
BalanceLock: 'BalanceLockTo212',
|
|
41
42
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
42
43
|
DispatchError: 'DispatchErrorTo198',
|
|
@@ -48,15 +49,17 @@ const versioned = [
|
|
|
48
49
|
OpenTip: 'OpenTipTo225',
|
|
49
50
|
RefCount: 'RefCountTo259',
|
|
50
51
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
52
|
+
Scheduled: 'ScheduledTo254',
|
|
51
53
|
SlashingSpans: 'SlashingSpansTo204',
|
|
52
54
|
StakingLedger: 'StakingLedgerTo223',
|
|
53
55
|
Votes: 'VotesTo230',
|
|
54
56
|
Weight: 'u32'
|
|
55
|
-
}
|
|
57
|
+
}
|
|
56
58
|
},
|
|
57
59
|
{
|
|
58
60
|
minmax: [1032, 1042],
|
|
59
|
-
types:
|
|
61
|
+
types: {
|
|
62
|
+
...addrIndicesTypes,
|
|
60
63
|
BalanceLock: 'BalanceLockTo212',
|
|
61
64
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
62
65
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -66,16 +69,18 @@ const versioned = [
|
|
|
66
69
|
OpenTip: 'OpenTipTo225',
|
|
67
70
|
RefCount: 'RefCountTo259',
|
|
68
71
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
72
|
+
Scheduled: 'ScheduledTo254',
|
|
69
73
|
SlashingSpans: 'SlashingSpansTo204',
|
|
70
74
|
StakingLedger: 'StakingLedgerTo223',
|
|
71
75
|
Votes: 'VotesTo230',
|
|
72
76
|
Weight: 'u32'
|
|
73
|
-
}
|
|
77
|
+
}
|
|
74
78
|
},
|
|
75
79
|
{
|
|
76
80
|
// actual at 1045 (1043-1044 is dev)
|
|
77
81
|
minmax: [1043, 1045],
|
|
78
|
-
types:
|
|
82
|
+
types: {
|
|
83
|
+
...addrIndicesTypes,
|
|
79
84
|
BalanceLock: 'BalanceLockTo212',
|
|
80
85
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
81
86
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -85,14 +90,17 @@ const versioned = [
|
|
|
85
90
|
OpenTip: 'OpenTipTo225',
|
|
86
91
|
RefCount: 'RefCountTo259',
|
|
87
92
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
93
|
+
Scheduled: 'ScheduledTo254',
|
|
88
94
|
StakingLedger: 'StakingLedgerTo223',
|
|
89
95
|
Votes: 'VotesTo230',
|
|
90
96
|
Weight: 'u32'
|
|
91
|
-
}
|
|
97
|
+
}
|
|
92
98
|
},
|
|
93
99
|
{
|
|
94
100
|
minmax: [1046, 1049],
|
|
95
|
-
types:
|
|
101
|
+
types: {
|
|
102
|
+
...sharedTypes,
|
|
103
|
+
...addrAccountIdTypes,
|
|
96
104
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
97
105
|
DispatchInfo: 'DispatchInfoTo244',
|
|
98
106
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -100,13 +108,16 @@ const versioned = [
|
|
|
100
108
|
OpenTip: 'OpenTipTo225',
|
|
101
109
|
RefCount: 'RefCountTo259',
|
|
102
110
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
111
|
+
Scheduled: 'ScheduledTo254',
|
|
103
112
|
StakingLedger: 'StakingLedgerTo223',
|
|
104
113
|
Weight: 'u32'
|
|
105
|
-
}
|
|
114
|
+
}
|
|
106
115
|
},
|
|
107
116
|
{
|
|
108
117
|
minmax: [1050, 1054],
|
|
109
|
-
types:
|
|
118
|
+
types: {
|
|
119
|
+
...sharedTypes,
|
|
120
|
+
...addrAccountIdTypes,
|
|
110
121
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
111
122
|
DispatchInfo: 'DispatchInfoTo244',
|
|
112
123
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -114,81 +125,112 @@ const versioned = [
|
|
|
114
125
|
OpenTip: 'OpenTipTo225',
|
|
115
126
|
RefCount: 'RefCountTo259',
|
|
116
127
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
128
|
+
Scheduled: 'ScheduledTo254',
|
|
117
129
|
StakingLedger: 'StakingLedgerTo240',
|
|
118
130
|
Weight: 'u32'
|
|
119
|
-
}
|
|
131
|
+
}
|
|
120
132
|
},
|
|
121
133
|
{
|
|
122
134
|
minmax: [1055, 1056],
|
|
123
|
-
types:
|
|
135
|
+
types: {
|
|
136
|
+
...sharedTypes,
|
|
137
|
+
...addrAccountIdTypes,
|
|
124
138
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
125
139
|
DispatchInfo: 'DispatchInfoTo244',
|
|
126
140
|
Heartbeat: 'HeartbeatTo244',
|
|
127
141
|
Multiplier: 'Fixed64',
|
|
128
142
|
OpenTip: 'OpenTipTo225',
|
|
129
143
|
RefCount: 'RefCountTo259',
|
|
144
|
+
Scheduled: 'ScheduledTo254',
|
|
130
145
|
StakingLedger: 'StakingLedgerTo240',
|
|
131
146
|
Weight: 'u32'
|
|
132
|
-
}
|
|
147
|
+
}
|
|
133
148
|
},
|
|
134
149
|
{
|
|
135
150
|
minmax: [1057, 1061],
|
|
136
|
-
types:
|
|
151
|
+
types: {
|
|
152
|
+
...sharedTypes,
|
|
153
|
+
...addrAccountIdTypes,
|
|
137
154
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
138
155
|
DispatchInfo: 'DispatchInfoTo244',
|
|
139
156
|
Heartbeat: 'HeartbeatTo244',
|
|
140
157
|
OpenTip: 'OpenTipTo225',
|
|
141
|
-
RefCount: 'RefCountTo259'
|
|
142
|
-
|
|
158
|
+
RefCount: 'RefCountTo259',
|
|
159
|
+
// Last 100% known problematic runtime range - this quite possibly need to
|
|
160
|
+
// apply to more runtime ranges that follow, we just don't know how far this
|
|
161
|
+
// should be applied to
|
|
162
|
+
//
|
|
163
|
+
// TL;DR whack-a-mole since this was not histrically checked
|
|
164
|
+
//
|
|
165
|
+
// See https://github.com/polkadot-js/api/issues/5618#issuecomment-1530970316
|
|
166
|
+
Scheduled: 'ScheduledTo254'
|
|
167
|
+
}
|
|
143
168
|
},
|
|
144
169
|
{
|
|
145
170
|
minmax: [1062, 2012],
|
|
146
|
-
types:
|
|
171
|
+
types: {
|
|
172
|
+
...sharedTypes,
|
|
173
|
+
...addrAccountIdTypes,
|
|
147
174
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
148
175
|
OpenTip: 'OpenTipTo225',
|
|
149
176
|
RefCount: 'RefCountTo259'
|
|
150
|
-
}
|
|
177
|
+
}
|
|
151
178
|
},
|
|
152
179
|
{
|
|
153
180
|
minmax: [2013, 2022],
|
|
154
|
-
types:
|
|
181
|
+
types: {
|
|
182
|
+
...sharedTypes,
|
|
183
|
+
...addrAccountIdTypes,
|
|
155
184
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
156
185
|
RefCount: 'RefCountTo259'
|
|
157
|
-
}
|
|
186
|
+
}
|
|
158
187
|
},
|
|
159
188
|
{
|
|
160
189
|
minmax: [2023, 2024],
|
|
161
|
-
types:
|
|
190
|
+
types: {
|
|
191
|
+
...sharedTypes,
|
|
192
|
+
...addrAccountIdTypes,
|
|
162
193
|
RefCount: 'RefCountTo259'
|
|
163
|
-
}
|
|
194
|
+
}
|
|
164
195
|
},
|
|
165
196
|
{
|
|
166
197
|
minmax: [2025, 2027],
|
|
167
|
-
types:
|
|
198
|
+
types: {
|
|
199
|
+
...sharedTypes,
|
|
200
|
+
...addrAccountIdTypes
|
|
201
|
+
}
|
|
168
202
|
},
|
|
169
203
|
{
|
|
170
204
|
minmax: [2028, 2029],
|
|
171
|
-
types:
|
|
205
|
+
types: {
|
|
206
|
+
...sharedTypes,
|
|
172
207
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
173
208
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
174
209
|
RawSolution: 'RawSolutionWith16'
|
|
175
|
-
}
|
|
210
|
+
}
|
|
176
211
|
},
|
|
177
212
|
{
|
|
178
213
|
minmax: [2030, 9000],
|
|
179
|
-
types:
|
|
214
|
+
types: {
|
|
215
|
+
...sharedTypes,
|
|
180
216
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
181
217
|
RawSolution: 'RawSolutionWith16'
|
|
182
|
-
}
|
|
218
|
+
}
|
|
183
219
|
},
|
|
184
220
|
{
|
|
185
221
|
minmax: [9010, 9099],
|
|
186
|
-
types:
|
|
222
|
+
types: {
|
|
223
|
+
...sharedTypes,
|
|
224
|
+
...(0, types_create_1.mapXcmTypes)('V0')
|
|
225
|
+
}
|
|
187
226
|
},
|
|
188
227
|
{
|
|
189
228
|
// jump from 9100 to 9110, however align with Rococo
|
|
190
229
|
minmax: [9100, 9105],
|
|
191
|
-
types:
|
|
230
|
+
types: {
|
|
231
|
+
...sharedTypes,
|
|
232
|
+
...(0, types_create_1.mapXcmTypes)('V1')
|
|
233
|
+
}
|
|
192
234
|
},
|
|
193
235
|
{
|
|
194
236
|
// metadata v14
|
|
@@ -206,4 +248,3 @@ const versioned = [
|
|
|
206
248
|
// }
|
|
207
249
|
// }
|
|
208
250
|
];
|
|
209
|
-
exports.default = versioned;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.versioned = void 0;
|
|
4
|
+
exports.versioned = [
|
|
4
5
|
{
|
|
5
6
|
minmax: [0, undefined],
|
|
6
7
|
types: {
|
|
@@ -10,4 +11,3 @@ const versioned = [
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
];
|
|
13
|
-
exports.default = versioned;
|
package/cjs/spec/node.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.versioned = void 0;
|
|
4
|
+
exports.versioned = [
|
|
4
5
|
{
|
|
5
6
|
minmax: [0, undefined],
|
|
6
7
|
types: {
|
|
@@ -10,4 +11,3 @@ const versioned = [
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
];
|
|
13
|
-
exports.default = versioned;
|
package/cjs/spec/polkadot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.versioned = void 0;
|
|
4
4
|
const sharedTypes = {
|
|
5
5
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
6
6
|
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
@@ -28,41 +28,53 @@ const addrAccountIdTypes = {
|
|
|
28
28
|
LookupSource: 'AccountId',
|
|
29
29
|
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
exports.versioned = [
|
|
32
32
|
{
|
|
33
33
|
minmax: [0, 12],
|
|
34
|
-
types:
|
|
34
|
+
types: {
|
|
35
|
+
...sharedTypes,
|
|
36
|
+
...addrAccountIdTypes,
|
|
35
37
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
36
38
|
OpenTip: 'OpenTipTo225',
|
|
37
39
|
RefCount: 'RefCountTo259'
|
|
38
|
-
}
|
|
40
|
+
}
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
43
|
minmax: [13, 22],
|
|
42
|
-
types:
|
|
44
|
+
types: {
|
|
45
|
+
...sharedTypes,
|
|
46
|
+
...addrAccountIdTypes,
|
|
43
47
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
44
48
|
RefCount: 'RefCountTo259'
|
|
45
|
-
}
|
|
49
|
+
}
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
52
|
minmax: [23, 24],
|
|
49
|
-
types:
|
|
53
|
+
types: {
|
|
54
|
+
...sharedTypes,
|
|
55
|
+
...addrAccountIdTypes,
|
|
50
56
|
RefCount: 'RefCountTo259'
|
|
51
|
-
}
|
|
57
|
+
}
|
|
52
58
|
},
|
|
53
59
|
{
|
|
54
60
|
minmax: [25, 27],
|
|
55
|
-
types:
|
|
61
|
+
types: {
|
|
62
|
+
...sharedTypes,
|
|
63
|
+
...addrAccountIdTypes
|
|
64
|
+
}
|
|
56
65
|
},
|
|
57
66
|
{
|
|
58
67
|
minmax: [28, 29],
|
|
59
|
-
types:
|
|
68
|
+
types: {
|
|
69
|
+
...sharedTypes,
|
|
60
70
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
61
|
-
}
|
|
71
|
+
}
|
|
62
72
|
},
|
|
63
73
|
{
|
|
64
74
|
minmax: [30, 9109],
|
|
65
|
-
types:
|
|
75
|
+
types: {
|
|
76
|
+
...sharedTypes
|
|
77
|
+
}
|
|
66
78
|
},
|
|
67
79
|
{
|
|
68
80
|
// metadata v14
|
|
@@ -80,4 +92,3 @@ const versioned = [
|
|
|
80
92
|
// }
|
|
81
93
|
// }
|
|
82
94
|
];
|
|
83
|
-
exports.default = versioned;
|
package/cjs/spec/rococo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versioned = void 0;
|
|
3
4
|
const types_create_1 = require("@polkadot/types-create");
|
|
4
|
-
const util_1 = require("@polkadot/util");
|
|
5
5
|
/* eslint-disable sort-keys */
|
|
6
6
|
const sharedTypes = {
|
|
7
7
|
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
@@ -9,34 +9,43 @@ const sharedTypes = {
|
|
|
9
9
|
Keys: 'SessionKeys7B',
|
|
10
10
|
Weight: 'WeightV1'
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
exports.versioned = [
|
|
13
13
|
{
|
|
14
14
|
minmax: [0, 200],
|
|
15
|
-
types:
|
|
15
|
+
types: {
|
|
16
|
+
...sharedTypes,
|
|
16
17
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
17
18
|
Address: 'AccountId',
|
|
18
19
|
LookupSource: 'AccountId'
|
|
19
|
-
}
|
|
20
|
+
}
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
minmax: [201, 214],
|
|
23
|
-
types:
|
|
24
|
+
types: {
|
|
25
|
+
...sharedTypes,
|
|
24
26
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
25
|
-
}
|
|
27
|
+
}
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
30
|
minmax: [215, 228],
|
|
29
|
-
types:
|
|
31
|
+
types: {
|
|
32
|
+
...sharedTypes,
|
|
30
33
|
Keys: 'SessionKeys6'
|
|
31
|
-
}
|
|
34
|
+
}
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
37
|
minmax: [229, 9099],
|
|
35
|
-
types:
|
|
38
|
+
types: {
|
|
39
|
+
...sharedTypes,
|
|
40
|
+
...(0, types_create_1.mapXcmTypes)('V0')
|
|
41
|
+
}
|
|
36
42
|
},
|
|
37
43
|
{
|
|
38
44
|
minmax: [9100, 9105],
|
|
39
|
-
types:
|
|
45
|
+
types: {
|
|
46
|
+
...sharedTypes,
|
|
47
|
+
...(0, types_create_1.mapXcmTypes)('V1')
|
|
48
|
+
}
|
|
40
49
|
},
|
|
41
50
|
{
|
|
42
51
|
// metadata v14
|
|
@@ -54,4 +63,3 @@ const versioned = [
|
|
|
54
63
|
// }
|
|
55
64
|
// }
|
|
56
65
|
];
|
|
57
|
-
exports.default = versioned;
|
package/cjs/spec/shell.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.versioned = void 0;
|
|
4
|
+
exports.versioned = [
|
|
4
5
|
{
|
|
5
6
|
minmax: [0, undefined],
|
|
6
7
|
types: {
|
|
@@ -8,4 +9,3 @@ const versioned = [
|
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
];
|
|
11
|
-
exports.default = versioned;
|
package/cjs/spec/statemint.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versioned = void 0;
|
|
3
4
|
const types_create_1 = require("@polkadot/types-create");
|
|
4
|
-
const util_1 = require("@polkadot/util");
|
|
5
5
|
const sharedTypes = {
|
|
6
6
|
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
7
7
|
TAssetBalance: 'u128',
|
|
@@ -18,21 +18,25 @@ const sharedTypes = {
|
|
|
18
18
|
},
|
|
19
19
|
Weight: 'WeightV1'
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
exports.versioned = [
|
|
22
22
|
{
|
|
23
23
|
minmax: [0, 3],
|
|
24
|
-
types:
|
|
24
|
+
types: {
|
|
25
25
|
// Enum was modified mid-flight -
|
|
26
26
|
// https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
|
|
27
|
-
DispatchError: 'DispatchErrorPre6First'
|
|
28
|
-
|
|
27
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
28
|
+
...sharedTypes,
|
|
29
|
+
...(0, types_create_1.mapXcmTypes)('V0')
|
|
30
|
+
}
|
|
29
31
|
},
|
|
30
32
|
{
|
|
31
33
|
minmax: [4, 5],
|
|
32
|
-
types:
|
|
34
|
+
types: {
|
|
33
35
|
// As above, see https://github.com/polkadot-js/api/issues/5301
|
|
34
|
-
DispatchError: 'DispatchErrorPre6First'
|
|
35
|
-
|
|
36
|
+
DispatchError: 'DispatchErrorPre6First',
|
|
37
|
+
...sharedTypes,
|
|
38
|
+
...(0, types_create_1.mapXcmTypes)('V1')
|
|
39
|
+
}
|
|
36
40
|
},
|
|
37
41
|
{
|
|
38
42
|
// metadata V14
|
|
@@ -50,4 +54,3 @@ const versioned = [
|
|
|
50
54
|
// }
|
|
51
55
|
// }
|
|
52
56
|
];
|
|
53
|
-
exports.default = versioned;
|