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