@polkadot/types-known 10.4.1 → 10.5.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 +57 -30
- package/cjs/spec/node-template.js +2 -2
- package/cjs/spec/node.js +2 -2
- package/cjs/spec/polkadot.js +22 -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 +56 -30
- 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 +21 -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
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.westend = exports.polkadot = exports.kusama = void 0;
|
|
7
4
|
var kusama_js_1 = require("./kusama.js");
|
|
8
|
-
Object.defineProperty(exports, "kusama", { enumerable: true, get: function () { return
|
|
5
|
+
Object.defineProperty(exports, "kusama", { enumerable: true, get: function () { return kusama_js_1.upgrades; } });
|
|
9
6
|
var polkadot_js_1 = require("./polkadot.js");
|
|
10
|
-
Object.defineProperty(exports, "polkadot", { enumerable: true, get: function () { return
|
|
7
|
+
Object.defineProperty(exports, "polkadot", { enumerable: true, get: function () { return polkadot_js_1.upgrades; } });
|
|
11
8
|
var westend_js_1 = require("./westend.js");
|
|
12
|
-
Object.defineProperty(exports, "westend", { enumerable: true, get: function () { return
|
|
9
|
+
Object.defineProperty(exports, "westend", { enumerable: true, get: function () { return westend_js_1.upgrades; } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[
|
|
5
6
|
0,
|
|
6
7
|
1020,
|
|
@@ -4174,4 +4175,3 @@ const upgrades = [
|
|
|
4174
4175
|
]
|
|
4175
4176
|
]
|
|
4176
4177
|
];
|
|
4177
|
-
exports.default = upgrades;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[
|
|
5
6
|
0,
|
|
6
7
|
0,
|
|
@@ -2624,4 +2625,3 @@ const upgrades = [
|
|
|
2624
2625
|
]
|
|
2625
2626
|
]
|
|
2626
2627
|
];
|
|
2627
|
-
exports.default = upgrades;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[
|
|
5
6
|
214356,
|
|
6
7
|
4,
|
|
@@ -4012,4 +4013,3 @@ const upgrades = [
|
|
|
4012
4013
|
]
|
|
4013
4014
|
]
|
|
4014
4015
|
];
|
|
4015
|
-
exports.default = upgrades;
|
package/cjs/upgrades/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.upgrades = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const networks_1 = require("@polkadot/networks");
|
|
5
6
|
const util_1 = require("@polkadot/util");
|
|
@@ -25,5 +26,4 @@ function mapRaw([network, versions]) {
|
|
|
25
26
|
}))
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
exports.default = upgrades;
|
|
29
|
+
exports.upgrades = Object.entries(allKnown).map(mapRaw);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.westend = exports.polkadot = exports.kusama = void 0;
|
|
7
4
|
var kusama_js_1 = require("./kusama.js");
|
|
8
|
-
Object.defineProperty(exports, "kusama", { enumerable: true, get: function () { return
|
|
5
|
+
Object.defineProperty(exports, "kusama", { enumerable: true, get: function () { return kusama_js_1.upgrades; } });
|
|
9
6
|
var polkadot_js_1 = require("./polkadot.js");
|
|
10
|
-
Object.defineProperty(exports, "polkadot", { enumerable: true, get: function () { return
|
|
7
|
+
Object.defineProperty(exports, "polkadot", { enumerable: true, get: function () { return polkadot_js_1.upgrades; } });
|
|
11
8
|
var westend_js_1 = require("./westend.js");
|
|
12
|
-
Object.defineProperty(exports, "westend", { enumerable: true, get: function () { return
|
|
9
|
+
Object.defineProperty(exports, "westend", { enumerable: true, get: function () { return westend_js_1.upgrades; } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[0, 1020], [26669, 1021], [38245, 1022], [54248, 1023], [59659, 1024],
|
|
5
6
|
[67651, 1025], [82191, 1027], [83238, 1028], [101503, 1029], [203466, 1030],
|
|
6
7
|
[295787, 1031], [461692, 1032], [504329, 1033], [569327, 1038], [587687, 1039],
|
|
@@ -18,4 +19,3 @@ const upgrades = [
|
|
|
18
19
|
// we have 9340 via system.setStorage (whitelist.WhitelistedCallDispatched event)
|
|
19
20
|
[15680713, 9340], [15756296, 9350]
|
|
20
21
|
];
|
|
21
|
-
exports.default = upgrades;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7],
|
|
5
6
|
[244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
|
|
6
7
|
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
|
|
@@ -11,4 +12,3 @@ const upgrades = [
|
|
|
11
12
|
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260],
|
|
12
13
|
[11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300]
|
|
13
14
|
];
|
|
14
|
-
exports.default = upgrades;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.upgrades = void 0;
|
|
4
|
+
exports.upgrades = [
|
|
4
5
|
[214356, 4], [392764, 7], [409740, 8], [809976, 20], [877581, 24],
|
|
5
6
|
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
|
|
6
7
|
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
|
|
@@ -16,4 +17,3 @@ const upgrades = [
|
|
|
16
17
|
[12604343, 9290], [12841034, 9300], [13128237, 9310], [13272363, 9320], [13483497, 9330],
|
|
17
18
|
[13649433, 9340], [13761100, 9350]
|
|
18
19
|
];
|
|
19
|
-
exports.default = upgrades;
|
package/cjs/util.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getUpgradeVersion = exports.getSpecAlias = exports.getSpecRuntime = exports.getSpecRpc = exports.getSpecHasher = exports.getSpecTypes = exports.getSpecExtensions = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const util_1 = require("@polkadot/util");
|
|
6
|
-
const index_js_1 =
|
|
7
|
-
const index_js_2 =
|
|
8
|
-
const index_js_3 =
|
|
5
|
+
const index_js_1 = require("./chain/index.js");
|
|
6
|
+
const index_js_2 = require("./spec/index.js");
|
|
7
|
+
const index_js_3 = require("./upgrades/index.js");
|
|
9
8
|
/**
|
|
10
9
|
* @description Perform the callback function using the stringified spec/chain
|
|
11
10
|
* @internal
|
|
@@ -21,13 +20,16 @@ function filterVersions(versions = [], specVersion) {
|
|
|
21
20
|
return versions
|
|
22
21
|
.filter(({ minmax: [min, max] }) => (min === undefined || min === null || specVersion >= min) &&
|
|
23
22
|
(max === undefined || max === null || specVersion <= max))
|
|
24
|
-
.reduce((result, { types }) => (
|
|
23
|
+
.reduce((result, { types }) => ({ ...result, ...types }), {});
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
|
|
28
27
|
*/
|
|
29
28
|
function getSpecExtensions({ knownTypes }, chainName, specName) {
|
|
30
|
-
return withNames(chainName, specName, (c, s) => (
|
|
29
|
+
return withNames(chainName, specName, (c, s) => ({
|
|
30
|
+
...(knownTypes.typesBundle?.spec?.[s]?.signedExtensions ?? {}),
|
|
31
|
+
...(knownTypes.typesBundle?.chain?.[c]?.signedExtensions ?? {})
|
|
32
|
+
}));
|
|
31
33
|
}
|
|
32
34
|
exports.getSpecExtensions = getSpecExtensions;
|
|
33
35
|
/**
|
|
@@ -35,12 +37,19 @@ exports.getSpecExtensions = getSpecExtensions;
|
|
|
35
37
|
*/
|
|
36
38
|
function getSpecTypes({ knownTypes }, chainName, specName, specVersion) {
|
|
37
39
|
const _specVersion = (0, util_1.bnToBn)(specVersion).toNumber();
|
|
38
|
-
return withNames(chainName, specName, (c, s) =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
return withNames(chainName, specName, (c, s) => ({
|
|
41
|
+
// The order here is always, based on -
|
|
42
|
+
// - spec then chain
|
|
43
|
+
// - typesBundle takes higher precedence
|
|
44
|
+
// - types is the final catch-all override
|
|
45
|
+
...filterVersions(index_js_2.typesSpec[s], _specVersion),
|
|
46
|
+
...filterVersions(index_js_1.typesChain[c], _specVersion),
|
|
47
|
+
...filterVersions(knownTypes.typesBundle?.spec?.[s]?.types, _specVersion),
|
|
48
|
+
...filterVersions(knownTypes.typesBundle?.chain?.[c]?.types, _specVersion),
|
|
49
|
+
...(knownTypes.typesSpec?.[s] ?? {}),
|
|
50
|
+
...(knownTypes.typesChain?.[c] ?? {}),
|
|
51
|
+
...(knownTypes.types ?? {})
|
|
52
|
+
}));
|
|
44
53
|
}
|
|
45
54
|
exports.getSpecTypes = getSpecTypes;
|
|
46
55
|
/**
|
|
@@ -57,30 +66,39 @@ exports.getSpecHasher = getSpecHasher;
|
|
|
57
66
|
* @description Based on the chain and runtimeVersion, get the applicable rpc definitions (ready for registration)
|
|
58
67
|
*/
|
|
59
68
|
function getSpecRpc({ knownTypes }, chainName, specName) {
|
|
60
|
-
return withNames(chainName, specName, (c, s) => (
|
|
69
|
+
return withNames(chainName, specName, (c, s) => ({
|
|
70
|
+
...(knownTypes.typesBundle?.spec?.[s]?.rpc ?? {}),
|
|
71
|
+
...(knownTypes.typesBundle?.chain?.[c]?.rpc ?? {})
|
|
72
|
+
}));
|
|
61
73
|
}
|
|
62
74
|
exports.getSpecRpc = getSpecRpc;
|
|
63
75
|
/**
|
|
64
76
|
* @description Based on the chain and runtimeVersion, get the applicable runtime definitions (ready for registration)
|
|
65
77
|
*/
|
|
66
78
|
function getSpecRuntime({ knownTypes }, chainName, specName) {
|
|
67
|
-
return withNames(chainName, specName, (c, s) => (
|
|
79
|
+
return withNames(chainName, specName, (c, s) => ({
|
|
80
|
+
...(knownTypes.typesBundle?.spec?.[s]?.runtime ?? {}),
|
|
81
|
+
...(knownTypes.typesBundle?.chain?.[c]?.runtime ?? {})
|
|
82
|
+
}));
|
|
68
83
|
}
|
|
69
84
|
exports.getSpecRuntime = getSpecRuntime;
|
|
70
85
|
/**
|
|
71
86
|
* @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
|
|
72
87
|
*/
|
|
73
88
|
function getSpecAlias({ knownTypes }, chainName, specName) {
|
|
74
|
-
return withNames(chainName, specName, (c, s) =>
|
|
75
|
-
|
|
76
|
-
|
|
89
|
+
return withNames(chainName, specName, (c, s) => ({
|
|
90
|
+
// as per versions, first spec, then chain then finally non-versioned
|
|
91
|
+
...(knownTypes.typesBundle?.spec?.[s]?.alias ?? {}),
|
|
92
|
+
...(knownTypes.typesBundle?.chain?.[c]?.alias ?? {}),
|
|
93
|
+
...(knownTypes.typesAlias ?? {})
|
|
94
|
+
}));
|
|
77
95
|
}
|
|
78
96
|
exports.getSpecAlias = getSpecAlias;
|
|
79
97
|
/**
|
|
80
98
|
* @description Returns a version record for known chains where upgrades are being tracked
|
|
81
99
|
*/
|
|
82
100
|
function getUpgradeVersion(genesisHash, blockNumber) {
|
|
83
|
-
const known = index_js_3.
|
|
101
|
+
const known = index_js_3.upgrades.find((u) => genesisHash.eq(u.genesisHash));
|
|
84
102
|
return known
|
|
85
103
|
? [
|
|
86
104
|
known.versions.reduce((last, version) => {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/detectPackage.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "10.
|
|
21
|
+
"version": "10.5.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
"dependencies": {
|
|
174
|
-
"@polkadot/networks": "^12.
|
|
175
|
-
"@polkadot/types": "10.
|
|
176
|
-
"@polkadot/types-codec": "10.
|
|
177
|
-
"@polkadot/types-create": "10.
|
|
178
|
-
"@polkadot/util": "^12.
|
|
174
|
+
"@polkadot/networks": "^12.1.1",
|
|
175
|
+
"@polkadot/types": "10.5.1",
|
|
176
|
+
"@polkadot/types-codec": "10.5.1",
|
|
177
|
+
"@polkadot/types-create": "10.5.1",
|
|
178
|
+
"@polkadot/util": "^12.1.1",
|
|
179
179
|
"tslib": "^2.5.0"
|
|
180
180
|
}
|
|
181
181
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.5.1' };
|
package/spec/centrifuge-chain.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { objectSpread } from '@polkadot/util';
|
|
2
1
|
const sharedTypes = {
|
|
3
2
|
// Anchor
|
|
4
3
|
AnchorData: {
|
|
@@ -68,17 +67,19 @@ const sharedTypes = {
|
|
|
68
67
|
]
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
|
-
const standaloneTypes =
|
|
70
|
+
const standaloneTypes = {
|
|
71
|
+
...sharedTypes,
|
|
72
72
|
AccountInfo: 'AccountInfoWithRefCount',
|
|
73
73
|
Address: 'LookupSource',
|
|
74
74
|
LookupSource: 'IndicesLookupSource',
|
|
75
75
|
Multiplier: 'Fixed64',
|
|
76
76
|
RefCount: 'RefCountTo259'
|
|
77
|
-
}
|
|
78
|
-
const versioned = [
|
|
77
|
+
};
|
|
78
|
+
export const versioned = [
|
|
79
79
|
{
|
|
80
80
|
minmax: [240, 243],
|
|
81
|
-
types:
|
|
81
|
+
types: {
|
|
82
|
+
...standaloneTypes,
|
|
82
83
|
ProxyType: {
|
|
83
84
|
_enum: [
|
|
84
85
|
'Any',
|
|
@@ -88,15 +89,14 @@ const versioned = [
|
|
|
88
89
|
'Vesting'
|
|
89
90
|
]
|
|
90
91
|
}
|
|
91
|
-
}
|
|
92
|
+
}
|
|
92
93
|
},
|
|
93
94
|
{
|
|
94
95
|
minmax: [244, 999],
|
|
95
|
-
types:
|
|
96
|
+
types: { ...standaloneTypes }
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
minmax: [1000, undefined],
|
|
99
|
-
types:
|
|
100
|
+
types: { ...sharedTypes }
|
|
100
101
|
}
|
|
101
102
|
];
|
|
102
|
-
export default versioned;
|
package/spec/index.d.ts
CHANGED
package/spec/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import centrifugeChain from './centrifuge-chain.js';
|
|
2
|
-
import kusama from './kusama.js';
|
|
3
|
-
import node from './node.js';
|
|
4
|
-
import nodeTemplate from './node-template.js';
|
|
5
|
-
import polkadot from './polkadot.js';
|
|
6
|
-
import rococo from './rococo.js';
|
|
7
|
-
import shell from './shell.js';
|
|
8
|
-
import statemint from './statemint.js';
|
|
9
|
-
import westend from './westend.js';
|
|
10
|
-
const typesSpec = {
|
|
1
|
+
import { versioned as centrifugeChain } from './centrifuge-chain.js';
|
|
2
|
+
import { versioned as kusama } from './kusama.js';
|
|
3
|
+
import { versioned as node } from './node.js';
|
|
4
|
+
import { versioned as nodeTemplate } from './node-template.js';
|
|
5
|
+
import { versioned as polkadot } from './polkadot.js';
|
|
6
|
+
import { versioned as rococo } from './rococo.js';
|
|
7
|
+
import { versioned as shell } from './shell.js';
|
|
8
|
+
import { versioned as statemint } from './statemint.js';
|
|
9
|
+
import { versioned as westend } from './westend.js';
|
|
10
|
+
export const typesSpec = {
|
|
11
11
|
'centrifuge-chain': centrifugeChain,
|
|
12
12
|
kusama,
|
|
13
13
|
node,
|
|
@@ -20,4 +20,3 @@ const typesSpec = {
|
|
|
20
20
|
westend,
|
|
21
21
|
westmint: statemint
|
|
22
22
|
};
|
|
23
|
-
export default typesSpec;
|
package/spec/kusama.d.ts
CHANGED
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',
|
|
@@ -50,11 +50,12 @@ const versioned = [
|
|
|
50
50
|
StakingLedger: 'StakingLedgerTo223',
|
|
51
51
|
Votes: 'VotesTo230',
|
|
52
52
|
Weight: 'u32'
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
minmax: [1032, 1042],
|
|
57
|
-
types:
|
|
57
|
+
types: {
|
|
58
|
+
...addrIndicesTypes,
|
|
58
59
|
BalanceLock: 'BalanceLockTo212',
|
|
59
60
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
60
61
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -68,12 +69,13 @@ const versioned = [
|
|
|
68
69
|
StakingLedger: 'StakingLedgerTo223',
|
|
69
70
|
Votes: 'VotesTo230',
|
|
70
71
|
Weight: 'u32'
|
|
71
|
-
}
|
|
72
|
+
}
|
|
72
73
|
},
|
|
73
74
|
{
|
|
74
75
|
// actual at 1045 (1043-1044 is dev)
|
|
75
76
|
minmax: [1043, 1045],
|
|
76
|
-
types:
|
|
77
|
+
types: {
|
|
78
|
+
...addrIndicesTypes,
|
|
77
79
|
BalanceLock: 'BalanceLockTo212',
|
|
78
80
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
79
81
|
DispatchInfo: 'DispatchInfoTo244',
|
|
@@ -86,11 +88,13 @@ const versioned = [
|
|
|
86
88
|
StakingLedger: 'StakingLedgerTo223',
|
|
87
89
|
Votes: 'VotesTo230',
|
|
88
90
|
Weight: 'u32'
|
|
89
|
-
}
|
|
91
|
+
}
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
minmax: [1046, 1049],
|
|
93
|
-
types:
|
|
95
|
+
types: {
|
|
96
|
+
...sharedTypes,
|
|
97
|
+
...addrAccountIdTypes,
|
|
94
98
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
95
99
|
DispatchInfo: 'DispatchInfoTo244',
|
|
96
100
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -100,11 +104,13 @@ const versioned = [
|
|
|
100
104
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
101
105
|
StakingLedger: 'StakingLedgerTo223',
|
|
102
106
|
Weight: 'u32'
|
|
103
|
-
}
|
|
107
|
+
}
|
|
104
108
|
},
|
|
105
109
|
{
|
|
106
110
|
minmax: [1050, 1054],
|
|
107
|
-
types:
|
|
111
|
+
types: {
|
|
112
|
+
...sharedTypes,
|
|
113
|
+
...addrAccountIdTypes,
|
|
108
114
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
109
115
|
DispatchInfo: 'DispatchInfoTo244',
|
|
110
116
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -114,11 +120,13 @@ const versioned = [
|
|
|
114
120
|
ReferendumInfo: 'ReferendumInfoTo239',
|
|
115
121
|
StakingLedger: 'StakingLedgerTo240',
|
|
116
122
|
Weight: 'u32'
|
|
117
|
-
}
|
|
123
|
+
}
|
|
118
124
|
},
|
|
119
125
|
{
|
|
120
126
|
minmax: [1055, 1056],
|
|
121
|
-
types:
|
|
127
|
+
types: {
|
|
128
|
+
...sharedTypes,
|
|
129
|
+
...addrAccountIdTypes,
|
|
122
130
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
123
131
|
DispatchInfo: 'DispatchInfoTo244',
|
|
124
132
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -127,66 +135,85 @@ const versioned = [
|
|
|
127
135
|
RefCount: 'RefCountTo259',
|
|
128
136
|
StakingLedger: 'StakingLedgerTo240',
|
|
129
137
|
Weight: 'u32'
|
|
130
|
-
}
|
|
138
|
+
}
|
|
131
139
|
},
|
|
132
140
|
{
|
|
133
141
|
minmax: [1057, 1061],
|
|
134
|
-
types:
|
|
142
|
+
types: {
|
|
143
|
+
...sharedTypes,
|
|
144
|
+
...addrAccountIdTypes,
|
|
135
145
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
136
146
|
DispatchInfo: 'DispatchInfoTo244',
|
|
137
147
|
Heartbeat: 'HeartbeatTo244',
|
|
138
148
|
OpenTip: 'OpenTipTo225',
|
|
139
149
|
RefCount: 'RefCountTo259'
|
|
140
|
-
}
|
|
150
|
+
}
|
|
141
151
|
},
|
|
142
152
|
{
|
|
143
153
|
minmax: [1062, 2012],
|
|
144
|
-
types:
|
|
154
|
+
types: {
|
|
155
|
+
...sharedTypes,
|
|
156
|
+
...addrAccountIdTypes,
|
|
145
157
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
146
158
|
OpenTip: 'OpenTipTo225',
|
|
147
159
|
RefCount: 'RefCountTo259'
|
|
148
|
-
}
|
|
160
|
+
}
|
|
149
161
|
},
|
|
150
162
|
{
|
|
151
163
|
minmax: [2013, 2022],
|
|
152
|
-
types:
|
|
164
|
+
types: {
|
|
165
|
+
...sharedTypes,
|
|
166
|
+
...addrAccountIdTypes,
|
|
153
167
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
154
168
|
RefCount: 'RefCountTo259'
|
|
155
|
-
}
|
|
169
|
+
}
|
|
156
170
|
},
|
|
157
171
|
{
|
|
158
172
|
minmax: [2023, 2024],
|
|
159
|
-
types:
|
|
173
|
+
types: {
|
|
174
|
+
...sharedTypes,
|
|
175
|
+
...addrAccountIdTypes,
|
|
160
176
|
RefCount: 'RefCountTo259'
|
|
161
|
-
}
|
|
177
|
+
}
|
|
162
178
|
},
|
|
163
179
|
{
|
|
164
180
|
minmax: [2025, 2027],
|
|
165
|
-
types:
|
|
181
|
+
types: {
|
|
182
|
+
...sharedTypes,
|
|
183
|
+
...addrAccountIdTypes
|
|
184
|
+
}
|
|
166
185
|
},
|
|
167
186
|
{
|
|
168
187
|
minmax: [2028, 2029],
|
|
169
|
-
types:
|
|
188
|
+
types: {
|
|
189
|
+
...sharedTypes,
|
|
170
190
|
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
171
191
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
172
192
|
RawSolution: 'RawSolutionWith16'
|
|
173
|
-
}
|
|
193
|
+
}
|
|
174
194
|
},
|
|
175
195
|
{
|
|
176
196
|
minmax: [2030, 9000],
|
|
177
|
-
types:
|
|
197
|
+
types: {
|
|
198
|
+
...sharedTypes,
|
|
178
199
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
179
200
|
RawSolution: 'RawSolutionWith16'
|
|
180
|
-
}
|
|
201
|
+
}
|
|
181
202
|
},
|
|
182
203
|
{
|
|
183
204
|
minmax: [9010, 9099],
|
|
184
|
-
types:
|
|
205
|
+
types: {
|
|
206
|
+
...sharedTypes,
|
|
207
|
+
...mapXcmTypes('V0')
|
|
208
|
+
}
|
|
185
209
|
},
|
|
186
210
|
{
|
|
187
211
|
// jump from 9100 to 9110, however align with Rococo
|
|
188
212
|
minmax: [9100, 9105],
|
|
189
|
-
types:
|
|
213
|
+
types: {
|
|
214
|
+
...sharedTypes,
|
|
215
|
+
...mapXcmTypes('V1')
|
|
216
|
+
}
|
|
190
217
|
},
|
|
191
218
|
{
|
|
192
219
|
// metadata v14
|
|
@@ -204,4 +231,3 @@ const versioned = [
|
|
|
204
231
|
// }
|
|
205
232
|
// }
|
|
206
233
|
];
|
|
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