@polkadot/types-known 6.12.2-8 → 6.12.2-9
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/bundle.cjs +22 -34
- package/bundle.d.ts +2 -1
- package/bundle.js +3 -2
- package/chain/index.cjs +12 -0
- package/chain/index.d.ts +3 -0
- package/chain/index.js +5 -0
- package/package.json +88 -3
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/spec/centrifuge-chain.cjs +98 -0
- package/spec/centrifuge-chain.d.ts +3 -0
- package/spec/centrifuge-chain.js +89 -0
- package/spec/index.cjs +45 -0
- package/spec/index.d.ts +3 -0
- package/spec/index.js +26 -0
- package/spec/kusama.cjs +177 -0
- package/spec/kusama.d.ts +3 -0
- package/spec/kusama.js +167 -0
- package/spec/node-template.cjs +17 -0
- package/spec/node-template.d.ts +3 -0
- package/spec/node-template.js +10 -0
- package/spec/node.cjs +17 -0
- package/spec/node.d.ts +3 -0
- package/spec/node.js +10 -0
- package/spec/polkadot.cjs +74 -0
- package/spec/polkadot.d.ts +3 -0
- package/spec/polkadot.js +65 -0
- package/spec/rococo.cjs +53 -0
- package/spec/rococo.d.ts +3 -0
- package/spec/rococo.js +43 -0
- package/spec/shell.cjs +17 -0
- package/spec/shell.d.ts +3 -0
- package/spec/shell.js +10 -0
- package/spec/statemint.cjs +35 -0
- package/spec/statemint.d.ts +3 -0
- package/spec/statemint.js +25 -0
- package/spec/westend.cjs +90 -0
- package/spec/westend.d.ts +3 -0
- package/spec/westend.js +80 -0
- package/upgrades/index.cjs +66 -0
- package/upgrades/index.d.ts +3 -0
- package/upgrades/index.js +47 -0
- package/upgrades/kusama.cjs +11 -0
- package/upgrades/kusama.d.ts +3 -0
- package/upgrades/kusama.js +4 -0
- package/upgrades/polkadot.cjs +11 -0
- package/upgrades/polkadot.d.ts +3 -0
- package/upgrades/polkadot.js +4 -0
- package/upgrades/types.cjs +1 -0
- package/upgrades/types.d.ts +1 -0
- package/upgrades/types.js +1 -0
- package/upgrades/westend.cjs +11 -0
- package/upgrades/westend.d.ts +3 -0
- package/upgrades/westend.js +4 -0
- package/util.cjs +139 -0
- package/util.d.ts +27 -0
- package/util.js +102 -0
package/bundle.cjs
CHANGED
|
@@ -3,40 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
mapXcmTypes: true,
|
|
8
|
+
packageInfo: true
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "mapXcmTypes", {
|
|
7
11
|
enumerable: true,
|
|
8
12
|
get: function () {
|
|
9
|
-
return
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "getSpecExtensions", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _types.getSpecExtensions;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "getSpecHasher", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _types.getSpecHasher;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "getSpecRpc", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _types.getSpecRpc;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "getSpecTypes", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _types.getSpecTypes;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "getUpgradeVersion", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _types.getUpgradeVersion;
|
|
13
|
+
return _typesCreate.mapXcmTypes;
|
|
40
14
|
}
|
|
41
15
|
});
|
|
42
16
|
Object.defineProperty(exports, "packageInfo", {
|
|
@@ -46,6 +20,20 @@ Object.defineProperty(exports, "packageInfo", {
|
|
|
46
20
|
}
|
|
47
21
|
});
|
|
48
22
|
|
|
49
|
-
var
|
|
23
|
+
var _typesCreate = require("@polkadot/types-create");
|
|
24
|
+
|
|
25
|
+
var _packageInfo = require("./packageInfo.cjs");
|
|
26
|
+
|
|
27
|
+
var _util = require("./util.cjs");
|
|
50
28
|
|
|
51
|
-
|
|
29
|
+
Object.keys(_util).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
+
if (key in exports && exports[key] === _util[key]) return;
|
|
33
|
+
Object.defineProperty(exports, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return _util[key];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
package/bundle.d.ts
CHANGED
package/bundle.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
export {
|
|
4
|
-
export { packageInfo } from "./packageInfo.js";
|
|
3
|
+
export { mapXcmTypes } from '@polkadot/types-create';
|
|
4
|
+
export { packageInfo } from "./packageInfo.js";
|
|
5
|
+
export * from "./util.js";
|
package/chain/index.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
8
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
// Type overrides based on specific nodes
|
|
10
|
+
const typesChain = {};
|
|
11
|
+
var _default = typesChain;
|
|
12
|
+
exports.default = _default;
|
package/chain/index.d.ts
ADDED
package/chain/index.js
ADDED
package/package.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "6.12.2-
|
|
23
|
+
"version": "6.12.2-9",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.16.5",
|
|
27
27
|
"@polkadot/networks": "^8.1.2",
|
|
28
|
-
"@polkadot/types": "6.12.2-
|
|
28
|
+
"@polkadot/types": "6.12.2-9",
|
|
29
29
|
"@polkadot/util": "^8.1.2"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"default": "./bundle.js"
|
|
39
39
|
},
|
|
40
40
|
"./bundle.d.ts": "./bundle.d.ts",
|
|
41
|
+
"./chain": {
|
|
42
|
+
"require": "./chain/index.cjs",
|
|
43
|
+
"default": "./chain/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./chain/index.d.ts": "./chain/index.d.ts",
|
|
41
46
|
"./detectPackage": {
|
|
42
47
|
"require": "./detectPackage.cjs",
|
|
43
48
|
"default": "./detectPackage.js"
|
|
@@ -50,6 +55,86 @@
|
|
|
50
55
|
"default": "./packageInfo.js"
|
|
51
56
|
},
|
|
52
57
|
"./packageInfo.d.ts": "./packageInfo.d.ts",
|
|
53
|
-
"./README.md": "./README.md"
|
|
58
|
+
"./README.md": "./README.md",
|
|
59
|
+
"./spec": {
|
|
60
|
+
"require": "./spec/index.cjs",
|
|
61
|
+
"default": "./spec/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./spec/centrifuge-chain": {
|
|
64
|
+
"require": "./spec/centrifuge-chain.cjs",
|
|
65
|
+
"default": "./spec/centrifuge-chain.js"
|
|
66
|
+
},
|
|
67
|
+
"./spec/centrifuge-chain.d.ts": "./spec/centrifuge-chain.d.ts",
|
|
68
|
+
"./spec/index.d.ts": "./spec/index.d.ts",
|
|
69
|
+
"./spec/kusama": {
|
|
70
|
+
"require": "./spec/kusama.cjs",
|
|
71
|
+
"default": "./spec/kusama.js"
|
|
72
|
+
},
|
|
73
|
+
"./spec/kusama.d.ts": "./spec/kusama.d.ts",
|
|
74
|
+
"./spec/node": {
|
|
75
|
+
"require": "./spec/node.cjs",
|
|
76
|
+
"default": "./spec/node.js"
|
|
77
|
+
},
|
|
78
|
+
"./spec/node-template": {
|
|
79
|
+
"require": "./spec/node-template.cjs",
|
|
80
|
+
"default": "./spec/node-template.js"
|
|
81
|
+
},
|
|
82
|
+
"./spec/node-template.d.ts": "./spec/node-template.d.ts",
|
|
83
|
+
"./spec/node.d.ts": "./spec/node.d.ts",
|
|
84
|
+
"./spec/polkadot": {
|
|
85
|
+
"require": "./spec/polkadot.cjs",
|
|
86
|
+
"default": "./spec/polkadot.js"
|
|
87
|
+
},
|
|
88
|
+
"./spec/polkadot.d.ts": "./spec/polkadot.d.ts",
|
|
89
|
+
"./spec/rococo": {
|
|
90
|
+
"require": "./spec/rococo.cjs",
|
|
91
|
+
"default": "./spec/rococo.js"
|
|
92
|
+
},
|
|
93
|
+
"./spec/rococo.d.ts": "./spec/rococo.d.ts",
|
|
94
|
+
"./spec/shell": {
|
|
95
|
+
"require": "./spec/shell.cjs",
|
|
96
|
+
"default": "./spec/shell.js"
|
|
97
|
+
},
|
|
98
|
+
"./spec/shell.d.ts": "./spec/shell.d.ts",
|
|
99
|
+
"./spec/statemint": {
|
|
100
|
+
"require": "./spec/statemint.cjs",
|
|
101
|
+
"default": "./spec/statemint.js"
|
|
102
|
+
},
|
|
103
|
+
"./spec/statemint.d.ts": "./spec/statemint.d.ts",
|
|
104
|
+
"./spec/westend": {
|
|
105
|
+
"require": "./spec/westend.cjs",
|
|
106
|
+
"default": "./spec/westend.js"
|
|
107
|
+
},
|
|
108
|
+
"./spec/westend.d.ts": "./spec/westend.d.ts",
|
|
109
|
+
"./upgrades": {
|
|
110
|
+
"require": "./upgrades/index.cjs",
|
|
111
|
+
"default": "./upgrades/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./upgrades/index.d.ts": "./upgrades/index.d.ts",
|
|
114
|
+
"./upgrades/kusama": {
|
|
115
|
+
"require": "./upgrades/kusama.cjs",
|
|
116
|
+
"default": "./upgrades/kusama.js"
|
|
117
|
+
},
|
|
118
|
+
"./upgrades/kusama.d.ts": "./upgrades/kusama.d.ts",
|
|
119
|
+
"./upgrades/polkadot": {
|
|
120
|
+
"require": "./upgrades/polkadot.cjs",
|
|
121
|
+
"default": "./upgrades/polkadot.js"
|
|
122
|
+
},
|
|
123
|
+
"./upgrades/polkadot.d.ts": "./upgrades/polkadot.d.ts",
|
|
124
|
+
"./upgrades/types": {
|
|
125
|
+
"require": "./upgrades/types.cjs",
|
|
126
|
+
"default": "./upgrades/types.js"
|
|
127
|
+
},
|
|
128
|
+
"./upgrades/types.d.ts": "./upgrades/types.d.ts",
|
|
129
|
+
"./upgrades/westend": {
|
|
130
|
+
"require": "./upgrades/westend.cjs",
|
|
131
|
+
"default": "./upgrades/westend.js"
|
|
132
|
+
},
|
|
133
|
+
"./upgrades/westend.d.ts": "./upgrades/westend.d.ts",
|
|
134
|
+
"./util": {
|
|
135
|
+
"require": "./util.cjs",
|
|
136
|
+
"default": "./util.js"
|
|
137
|
+
},
|
|
138
|
+
"./util.d.ts": "./util.d.ts"
|
|
54
139
|
}
|
|
55
140
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _util = require("@polkadot/util");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
|
|
13
|
+
/* eslint-disable sort-keys */
|
|
14
|
+
const sharedTypes = {
|
|
15
|
+
// Anchor
|
|
16
|
+
AnchorData: {
|
|
17
|
+
anchoredBlock: 'u64',
|
|
18
|
+
docRoot: 'H256',
|
|
19
|
+
id: 'H256'
|
|
20
|
+
},
|
|
21
|
+
PreCommitData: {
|
|
22
|
+
expirationBlock: 'u64',
|
|
23
|
+
identity: 'H256',
|
|
24
|
+
signingRoot: 'H256'
|
|
25
|
+
},
|
|
26
|
+
// Fees
|
|
27
|
+
Fee: {
|
|
28
|
+
key: 'Hash',
|
|
29
|
+
price: 'Balance'
|
|
30
|
+
},
|
|
31
|
+
// MultiAccount
|
|
32
|
+
MultiAccountData: {
|
|
33
|
+
deposit: 'Balance',
|
|
34
|
+
depositor: 'AccountId',
|
|
35
|
+
signatories: 'Vec<AccountId>',
|
|
36
|
+
threshold: 'u16'
|
|
37
|
+
},
|
|
38
|
+
// Bridge
|
|
39
|
+
ChainId: 'u8',
|
|
40
|
+
DepositNonce: 'u64',
|
|
41
|
+
ResourceId: '[u8; 32]',
|
|
42
|
+
'chainbridge::ChainId': 'u8',
|
|
43
|
+
// NFT
|
|
44
|
+
RegistryId: 'H160',
|
|
45
|
+
TokenId: 'U256',
|
|
46
|
+
AssetId: {
|
|
47
|
+
registryId: 'RegistryId',
|
|
48
|
+
tokenId: 'TokenId'
|
|
49
|
+
},
|
|
50
|
+
AssetInfo: {
|
|
51
|
+
metadata: 'Bytes'
|
|
52
|
+
},
|
|
53
|
+
MintInfo: {
|
|
54
|
+
anchorId: 'Hash',
|
|
55
|
+
proofs: 'Vec<ProofMint>',
|
|
56
|
+
staticHashes: '[Hash; 3]'
|
|
57
|
+
},
|
|
58
|
+
Proof: {
|
|
59
|
+
leafHash: 'H256',
|
|
60
|
+
sortedHashes: 'H256'
|
|
61
|
+
},
|
|
62
|
+
ProofMint: {
|
|
63
|
+
hashes: 'Vec<Hash>',
|
|
64
|
+
property: 'Bytes',
|
|
65
|
+
salt: '[u8; 32]',
|
|
66
|
+
value: 'Bytes'
|
|
67
|
+
},
|
|
68
|
+
RegistryInfo: {
|
|
69
|
+
fields: 'Vec<Bytes>',
|
|
70
|
+
ownerCanBurn: 'bool'
|
|
71
|
+
},
|
|
72
|
+
ProxyType: {
|
|
73
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'NonProxy']
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const standaloneTypes = (0, _util.objectSpread)({}, sharedTypes, {
|
|
77
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
78
|
+
Address: 'LookupSource',
|
|
79
|
+
LookupSource: 'IndicesLookupSource',
|
|
80
|
+
Multiplier: 'Fixed64',
|
|
81
|
+
RefCount: 'RefCountTo259'
|
|
82
|
+
});
|
|
83
|
+
const versioned = [{
|
|
84
|
+
minmax: [240, 243],
|
|
85
|
+
types: (0, _util.objectSpread)({}, standaloneTypes, {
|
|
86
|
+
ProxyType: {
|
|
87
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Vesting']
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
}, {
|
|
91
|
+
minmax: [244, 999],
|
|
92
|
+
types: (0, _util.objectSpread)({}, standaloneTypes)
|
|
93
|
+
}, {
|
|
94
|
+
minmax: [1000, undefined],
|
|
95
|
+
types: (0, _util.objectSpread)({}, sharedTypes)
|
|
96
|
+
}];
|
|
97
|
+
var _default = versioned;
|
|
98
|
+
exports.default = _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
/* eslint-disable sort-keys */
|
|
5
|
+
import { objectSpread } from '@polkadot/util';
|
|
6
|
+
const sharedTypes = {
|
|
7
|
+
// Anchor
|
|
8
|
+
AnchorData: {
|
|
9
|
+
anchoredBlock: 'u64',
|
|
10
|
+
docRoot: 'H256',
|
|
11
|
+
id: 'H256'
|
|
12
|
+
},
|
|
13
|
+
PreCommitData: {
|
|
14
|
+
expirationBlock: 'u64',
|
|
15
|
+
identity: 'H256',
|
|
16
|
+
signingRoot: 'H256'
|
|
17
|
+
},
|
|
18
|
+
// Fees
|
|
19
|
+
Fee: {
|
|
20
|
+
key: 'Hash',
|
|
21
|
+
price: 'Balance'
|
|
22
|
+
},
|
|
23
|
+
// MultiAccount
|
|
24
|
+
MultiAccountData: {
|
|
25
|
+
deposit: 'Balance',
|
|
26
|
+
depositor: 'AccountId',
|
|
27
|
+
signatories: 'Vec<AccountId>',
|
|
28
|
+
threshold: 'u16'
|
|
29
|
+
},
|
|
30
|
+
// Bridge
|
|
31
|
+
ChainId: 'u8',
|
|
32
|
+
DepositNonce: 'u64',
|
|
33
|
+
ResourceId: '[u8; 32]',
|
|
34
|
+
'chainbridge::ChainId': 'u8',
|
|
35
|
+
// NFT
|
|
36
|
+
RegistryId: 'H160',
|
|
37
|
+
TokenId: 'U256',
|
|
38
|
+
AssetId: {
|
|
39
|
+
registryId: 'RegistryId',
|
|
40
|
+
tokenId: 'TokenId'
|
|
41
|
+
},
|
|
42
|
+
AssetInfo: {
|
|
43
|
+
metadata: 'Bytes'
|
|
44
|
+
},
|
|
45
|
+
MintInfo: {
|
|
46
|
+
anchorId: 'Hash',
|
|
47
|
+
proofs: 'Vec<ProofMint>',
|
|
48
|
+
staticHashes: '[Hash; 3]'
|
|
49
|
+
},
|
|
50
|
+
Proof: {
|
|
51
|
+
leafHash: 'H256',
|
|
52
|
+
sortedHashes: 'H256'
|
|
53
|
+
},
|
|
54
|
+
ProofMint: {
|
|
55
|
+
hashes: 'Vec<Hash>',
|
|
56
|
+
property: 'Bytes',
|
|
57
|
+
salt: '[u8; 32]',
|
|
58
|
+
value: 'Bytes'
|
|
59
|
+
},
|
|
60
|
+
RegistryInfo: {
|
|
61
|
+
fields: 'Vec<Bytes>',
|
|
62
|
+
ownerCanBurn: 'bool'
|
|
63
|
+
},
|
|
64
|
+
ProxyType: {
|
|
65
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'NonProxy']
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const standaloneTypes = objectSpread({}, sharedTypes, {
|
|
69
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
70
|
+
Address: 'LookupSource',
|
|
71
|
+
LookupSource: 'IndicesLookupSource',
|
|
72
|
+
Multiplier: 'Fixed64',
|
|
73
|
+
RefCount: 'RefCountTo259'
|
|
74
|
+
});
|
|
75
|
+
const versioned = [{
|
|
76
|
+
minmax: [240, 243],
|
|
77
|
+
types: objectSpread({}, standaloneTypes, {
|
|
78
|
+
ProxyType: {
|
|
79
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Vesting']
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
}, {
|
|
83
|
+
minmax: [244, 999],
|
|
84
|
+
types: objectSpread({}, standaloneTypes)
|
|
85
|
+
}, {
|
|
86
|
+
minmax: [1000, undefined],
|
|
87
|
+
types: objectSpread({}, sharedTypes)
|
|
88
|
+
}];
|
|
89
|
+
export default versioned;
|
package/spec/index.cjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _centrifugeChain = _interopRequireDefault(require("./centrifuge-chain.cjs"));
|
|
11
|
+
|
|
12
|
+
var _kusama = _interopRequireDefault(require("./kusama.cjs"));
|
|
13
|
+
|
|
14
|
+
var _node = _interopRequireDefault(require("./node.cjs"));
|
|
15
|
+
|
|
16
|
+
var _nodeTemplate = _interopRequireDefault(require("./node-template.cjs"));
|
|
17
|
+
|
|
18
|
+
var _polkadot = _interopRequireDefault(require("./polkadot.cjs"));
|
|
19
|
+
|
|
20
|
+
var _rococo = _interopRequireDefault(require("./rococo.cjs"));
|
|
21
|
+
|
|
22
|
+
var _shell = _interopRequireDefault(require("./shell.cjs"));
|
|
23
|
+
|
|
24
|
+
var _statemint = _interopRequireDefault(require("./statemint.cjs"));
|
|
25
|
+
|
|
26
|
+
var _westend = _interopRequireDefault(require("./westend.cjs"));
|
|
27
|
+
|
|
28
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
29
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
30
|
+
// Type overrides for specific spec types & versions as given in runtimeVersion
|
|
31
|
+
const typesSpec = {
|
|
32
|
+
'centrifuge-chain': _centrifugeChain.default,
|
|
33
|
+
kusama: _kusama.default,
|
|
34
|
+
node: _node.default,
|
|
35
|
+
'node-template': _nodeTemplate.default,
|
|
36
|
+
polkadot: _polkadot.default,
|
|
37
|
+
rococo: _rococo.default,
|
|
38
|
+
shell: _shell.default,
|
|
39
|
+
statemine: _statemint.default,
|
|
40
|
+
statemint: _statemint.default,
|
|
41
|
+
westend: _westend.default,
|
|
42
|
+
westmint: _statemint.default
|
|
43
|
+
};
|
|
44
|
+
var _default = typesSpec;
|
|
45
|
+
exports.default = _default;
|
package/spec/index.d.ts
ADDED
package/spec/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import centrifugeChain from "./centrifuge-chain.js";
|
|
4
|
+
import kusama from "./kusama.js";
|
|
5
|
+
import node from "./node.js";
|
|
6
|
+
import nodeTemplate from "./node-template.js";
|
|
7
|
+
import polkadot from "./polkadot.js";
|
|
8
|
+
import rococo from "./rococo.js";
|
|
9
|
+
import shell from "./shell.js";
|
|
10
|
+
import statemint from "./statemint.js";
|
|
11
|
+
import westend from "./westend.js"; // Type overrides for specific spec types & versions as given in runtimeVersion
|
|
12
|
+
|
|
13
|
+
const typesSpec = {
|
|
14
|
+
'centrifuge-chain': centrifugeChain,
|
|
15
|
+
kusama,
|
|
16
|
+
node,
|
|
17
|
+
'node-template': nodeTemplate,
|
|
18
|
+
polkadot,
|
|
19
|
+
rococo,
|
|
20
|
+
shell,
|
|
21
|
+
statemine: statemint,
|
|
22
|
+
statemint,
|
|
23
|
+
westend,
|
|
24
|
+
westmint: statemint
|
|
25
|
+
};
|
|
26
|
+
export default typesSpec;
|
package/spec/kusama.cjs
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _typesCreate = require("@polkadot/types-create");
|
|
9
|
+
|
|
10
|
+
var _util = require("@polkadot/util");
|
|
11
|
+
|
|
12
|
+
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
13
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
14
|
+
|
|
15
|
+
/* eslint-disable sort-keys */
|
|
16
|
+
const sharedTypes = {
|
|
17
|
+
CompactAssignments: 'CompactAssignmentsWith24',
|
|
18
|
+
RawSolution: 'RawSolutionWith24',
|
|
19
|
+
Keys: 'SessionKeys6',
|
|
20
|
+
ProxyType: {
|
|
21
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const addrIndicesTypes = {
|
|
25
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
26
|
+
Address: 'LookupSource',
|
|
27
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
28
|
+
RawSolution: 'RawSolutionWith16',
|
|
29
|
+
Keys: 'SessionKeys5',
|
|
30
|
+
LookupSource: 'IndicesLookupSource',
|
|
31
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
32
|
+
};
|
|
33
|
+
const addrAccountIdTypes = {
|
|
34
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
35
|
+
Address: 'AccountId',
|
|
36
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
37
|
+
RawSolution: 'RawSolutionWith16',
|
|
38
|
+
Keys: 'SessionKeys5',
|
|
39
|
+
LookupSource: 'AccountId',
|
|
40
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
41
|
+
};
|
|
42
|
+
const versioned = [{
|
|
43
|
+
// 1020 is first CC3
|
|
44
|
+
minmax: [1019, 1031],
|
|
45
|
+
types: (0, _util.objectSpread)({}, addrIndicesTypes, {
|
|
46
|
+
BalanceLock: 'BalanceLockTo212',
|
|
47
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
48
|
+
DispatchError: 'DispatchErrorTo198',
|
|
49
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
50
|
+
Heartbeat: 'HeartbeatTo244',
|
|
51
|
+
IdentityInfo: 'IdentityInfoTo198',
|
|
52
|
+
Keys: 'SessionKeys5',
|
|
53
|
+
Multiplier: 'Fixed64',
|
|
54
|
+
OpenTip: 'OpenTipTo225',
|
|
55
|
+
RefCount: 'RefCountTo259',
|
|
56
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
57
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
58
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
59
|
+
Votes: 'VotesTo230',
|
|
60
|
+
Weight: 'u32'
|
|
61
|
+
})
|
|
62
|
+
}, {
|
|
63
|
+
minmax: [1032, 1042],
|
|
64
|
+
types: (0, _util.objectSpread)({}, addrIndicesTypes, {
|
|
65
|
+
BalanceLock: 'BalanceLockTo212',
|
|
66
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
67
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
68
|
+
Heartbeat: 'HeartbeatTo244',
|
|
69
|
+
Keys: 'SessionKeys5',
|
|
70
|
+
Multiplier: 'Fixed64',
|
|
71
|
+
OpenTip: 'OpenTipTo225',
|
|
72
|
+
RefCount: 'RefCountTo259',
|
|
73
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
74
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
75
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
76
|
+
Votes: 'VotesTo230',
|
|
77
|
+
Weight: 'u32'
|
|
78
|
+
})
|
|
79
|
+
}, {
|
|
80
|
+
// actual at 1045 (1043-1044 is dev)
|
|
81
|
+
minmax: [1043, 1045],
|
|
82
|
+
types: (0, _util.objectSpread)({}, addrIndicesTypes, {
|
|
83
|
+
BalanceLock: 'BalanceLockTo212',
|
|
84
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
85
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
86
|
+
Heartbeat: 'HeartbeatTo244',
|
|
87
|
+
Keys: 'SessionKeys5',
|
|
88
|
+
Multiplier: 'Fixed64',
|
|
89
|
+
OpenTip: 'OpenTipTo225',
|
|
90
|
+
RefCount: 'RefCountTo259',
|
|
91
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
92
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
93
|
+
Votes: 'VotesTo230',
|
|
94
|
+
Weight: 'u32'
|
|
95
|
+
})
|
|
96
|
+
}, {
|
|
97
|
+
minmax: [1046, 1054],
|
|
98
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
99
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
100
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
101
|
+
Heartbeat: 'HeartbeatTo244',
|
|
102
|
+
Multiplier: 'Fixed64',
|
|
103
|
+
OpenTip: 'OpenTipTo225',
|
|
104
|
+
RefCount: 'RefCountTo259',
|
|
105
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
106
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
107
|
+
Weight: 'u32'
|
|
108
|
+
})
|
|
109
|
+
}, {
|
|
110
|
+
minmax: [1055, 1056],
|
|
111
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
112
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
113
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
114
|
+
Heartbeat: 'HeartbeatTo244',
|
|
115
|
+
Multiplier: 'Fixed64',
|
|
116
|
+
OpenTip: 'OpenTipTo225',
|
|
117
|
+
RefCount: 'RefCountTo259',
|
|
118
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
119
|
+
Weight: 'u32'
|
|
120
|
+
})
|
|
121
|
+
}, {
|
|
122
|
+
minmax: [1057, 1061],
|
|
123
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
124
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
125
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
126
|
+
Heartbeat: 'HeartbeatTo244',
|
|
127
|
+
OpenTip: 'OpenTipTo225',
|
|
128
|
+
RefCount: 'RefCountTo259'
|
|
129
|
+
})
|
|
130
|
+
}, {
|
|
131
|
+
minmax: [1062, 2012],
|
|
132
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
133
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
134
|
+
OpenTip: 'OpenTipTo225',
|
|
135
|
+
RefCount: 'RefCountTo259'
|
|
136
|
+
})
|
|
137
|
+
}, {
|
|
138
|
+
minmax: [2013, 2022],
|
|
139
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
140
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
141
|
+
RefCount: 'RefCountTo259'
|
|
142
|
+
})
|
|
143
|
+
}, {
|
|
144
|
+
minmax: [2023, 2024],
|
|
145
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
146
|
+
RefCount: 'RefCountTo259'
|
|
147
|
+
})
|
|
148
|
+
}, {
|
|
149
|
+
minmax: [2025, 2027],
|
|
150
|
+
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
|
|
151
|
+
}, {
|
|
152
|
+
minmax: [2028, 2029],
|
|
153
|
+
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
154
|
+
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
155
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
156
|
+
RawSolution: 'RawSolutionWith16'
|
|
157
|
+
})
|
|
158
|
+
}, {
|
|
159
|
+
minmax: [2030, 9000],
|
|
160
|
+
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
161
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
162
|
+
RawSolution: 'RawSolutionWith16'
|
|
163
|
+
})
|
|
164
|
+
}, {
|
|
165
|
+
minmax: [9010, 9099],
|
|
166
|
+
types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V0'))
|
|
167
|
+
}, {
|
|
168
|
+
// jump from 9100 to 9110, however align with Rococo
|
|
169
|
+
minmax: [9100, 9105],
|
|
170
|
+
types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
|
|
171
|
+
}, {
|
|
172
|
+
// metadata v14
|
|
173
|
+
minmax: [9106, undefined],
|
|
174
|
+
types: {}
|
|
175
|
+
}];
|
|
176
|
+
var _default = versioned;
|
|
177
|
+
exports.default = _default;
|