@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/cjs/spec/westend.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
|
// 16 validators
|
|
7
7
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
@@ -24,10 +24,12 @@ const addrAccountIdTypes = {
|
|
|
24
24
|
RawSolution: 'RawSolutionWith16',
|
|
25
25
|
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
exports.versioned = [
|
|
28
28
|
{
|
|
29
29
|
minmax: [1, 2],
|
|
30
|
-
types:
|
|
30
|
+
types: {
|
|
31
|
+
...sharedTypes,
|
|
32
|
+
...addrAccountIdTypes,
|
|
31
33
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
32
34
|
DispatchInfo: 'DispatchInfoTo244',
|
|
33
35
|
Heartbeat: 'HeartbeatTo244',
|
|
@@ -35,52 +37,68 @@ const versioned = [
|
|
|
35
37
|
OpenTip: 'OpenTipTo225',
|
|
36
38
|
RefCount: 'RefCountTo259',
|
|
37
39
|
Weight: 'u32'
|
|
38
|
-
}
|
|
40
|
+
}
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
43
|
minmax: [3, 22],
|
|
42
|
-
types:
|
|
44
|
+
types: {
|
|
45
|
+
...sharedTypes,
|
|
46
|
+
...addrAccountIdTypes,
|
|
43
47
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
44
48
|
DispatchInfo: 'DispatchInfoTo244',
|
|
45
49
|
Heartbeat: 'HeartbeatTo244',
|
|
46
50
|
OpenTip: 'OpenTipTo225',
|
|
47
51
|
RefCount: 'RefCountTo259'
|
|
48
|
-
}
|
|
52
|
+
}
|
|
49
53
|
},
|
|
50
54
|
{
|
|
51
55
|
minmax: [23, 42],
|
|
52
|
-
types:
|
|
56
|
+
types: {
|
|
57
|
+
...sharedTypes,
|
|
58
|
+
...addrAccountIdTypes,
|
|
53
59
|
CompactAssignments: 'CompactAssignmentsTo257',
|
|
54
60
|
DispatchInfo: 'DispatchInfoTo244',
|
|
55
61
|
Heartbeat: 'HeartbeatTo244',
|
|
56
62
|
RefCount: 'RefCountTo259'
|
|
57
|
-
}
|
|
63
|
+
}
|
|
58
64
|
},
|
|
59
65
|
{
|
|
60
66
|
minmax: [43, 44],
|
|
61
|
-
types:
|
|
67
|
+
types: {
|
|
68
|
+
...sharedTypes,
|
|
69
|
+
...addrAccountIdTypes,
|
|
62
70
|
DispatchInfo: 'DispatchInfoTo244',
|
|
63
71
|
Heartbeat: 'HeartbeatTo244',
|
|
64
72
|
RefCount: 'RefCountTo259'
|
|
65
|
-
}
|
|
73
|
+
}
|
|
66
74
|
},
|
|
67
75
|
{
|
|
68
76
|
minmax: [45, 47],
|
|
69
|
-
types:
|
|
77
|
+
types: {
|
|
78
|
+
...sharedTypes,
|
|
79
|
+
...addrAccountIdTypes
|
|
80
|
+
}
|
|
70
81
|
},
|
|
71
82
|
{
|
|
72
83
|
minmax: [48, 49],
|
|
73
|
-
types:
|
|
84
|
+
types: {
|
|
85
|
+
...sharedTypes,
|
|
74
86
|
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
75
|
-
}
|
|
87
|
+
}
|
|
76
88
|
},
|
|
77
89
|
{
|
|
78
90
|
minmax: [50, 9099],
|
|
79
|
-
types:
|
|
91
|
+
types: {
|
|
92
|
+
...sharedTypes,
|
|
93
|
+
...(0, types_create_1.mapXcmTypes)('V0')
|
|
94
|
+
}
|
|
80
95
|
},
|
|
81
96
|
{
|
|
82
97
|
minmax: [9100, 9105],
|
|
83
|
-
types:
|
|
98
|
+
types: {
|
|
99
|
+
...sharedTypes,
|
|
100
|
+
...(0, types_create_1.mapXcmTypes)('V1')
|
|
101
|
+
}
|
|
84
102
|
},
|
|
85
103
|
{
|
|
86
104
|
// metadata v14
|
|
@@ -98,4 +116,3 @@ const versioned = [
|
|
|
98
116
|
// }
|
|
99
117
|
// }
|
|
100
118
|
];
|
|
101
|
-
exports.default = versioned;
|
|
@@ -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.6.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.2",
|
|
175
|
+
"@polkadot/types": "10.6.1",
|
|
176
|
+
"@polkadot/types-codec": "10.6.1",
|
|
177
|
+
"@polkadot/types-create": "10.6.1",
|
|
178
|
+
"@polkadot/util": "^12.1.2",
|
|
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.6.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