@polkadot/types-known 9.14.2 → 10.0.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/bundle.js +2 -5
- package/chain/index.js +0 -4
- package/cjs/bundle.js +8 -34
- package/cjs/chain/index.js +2 -11
- package/cjs/detectOther.js +3 -10
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +3 -15
- package/cjs/packageInfo.js +2 -16
- package/cjs/spec/centrifuge-chain.js +99 -93
- package/cjs/spec/index.js +23 -32
- package/cjs/spec/kusama.js +201 -195
- package/cjs/spec/node-template.js +12 -20
- package/cjs/spec/node.js +12 -20
- package/cjs/spec/polkadot.js +77 -82
- package/cjs/spec/rococo.js +52 -59
- package/cjs/spec/shell.js +10 -18
- package/cjs/spec/statemint.js +49 -50
- package/cjs/spec/westend.js +95 -96
- package/cjs/upgrades/e2e/index.js +11 -26
- package/cjs/upgrades/e2e/kusama.js +4176 -14
- package/cjs/upgrades/e2e/polkadot.js +2626 -14
- package/cjs/upgrades/e2e/westend.js +4014 -14
- package/cjs/upgrades/index.js +23 -40
- package/cjs/upgrades/manual/index.js +11 -26
- package/cjs/upgrades/manual/kusama.js +20 -13
- package/cjs/upgrades/manual/polkadot.js +13 -11
- package/cjs/upgrades/manual/westend.js +18 -11
- package/cjs/upgrades/types.js +2 -1
- package/cjs/util.js +55 -105
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.js +2 -5
- package/package.json +11 -8
- package/packageInfo.js +1 -11
- package/spec/centrifuge-chain.js +95 -84
- package/spec/index.js +20 -25
- package/spec/kusama.js +197 -187
- package/spec/node-template.js +10 -13
- package/spec/node.js +10 -13
- package/spec/polkadot.js +74 -75
- package/spec/rococo.js +48 -52
- package/spec/shell.js +8 -11
- package/spec/statemint.js +45 -42
- package/spec/westend.js +91 -88
- package/upgrades/e2e/index.js +3 -6
- package/upgrades/e2e/kusama.js +4174 -7
- package/upgrades/e2e/polkadot.js +2624 -7
- package/upgrades/e2e/westend.js +4012 -7
- package/upgrades/index.js +17 -25
- package/upgrades/manual/index.js +3 -6
- package/upgrades/manual/kusama.js +18 -6
- package/upgrades/manual/polkadot.js +11 -4
- package/upgrades/manual/westend.js +16 -4
- package/util.js +42 -77
package/spec/centrifuge-chain.js
CHANGED
|
@@ -1,91 +1,102 @@
|
|
|
1
|
-
// Copyright 2017-2023 @polkadot/types-known authors & contributors
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
/* eslint-disable sort-keys */
|
|
5
|
-
|
|
6
1
|
import { objectSpread } from '@polkadot/util';
|
|
7
2
|
const sharedTypes = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
3
|
+
// Anchor
|
|
4
|
+
AnchorData: {
|
|
5
|
+
anchoredBlock: 'u64',
|
|
6
|
+
docRoot: 'H256',
|
|
7
|
+
id: 'H256'
|
|
8
|
+
},
|
|
9
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
10
|
+
PreCommitData: {
|
|
11
|
+
expirationBlock: 'u64',
|
|
12
|
+
identity: 'H256',
|
|
13
|
+
signingRoot: 'H256'
|
|
14
|
+
},
|
|
15
|
+
// Fees
|
|
16
|
+
Fee: {
|
|
17
|
+
key: 'Hash',
|
|
18
|
+
price: 'Balance'
|
|
19
|
+
},
|
|
20
|
+
// MultiAccount
|
|
21
|
+
MultiAccountData: {
|
|
22
|
+
deposit: 'Balance',
|
|
23
|
+
depositor: 'AccountId',
|
|
24
|
+
signatories: 'Vec<AccountId>',
|
|
25
|
+
threshold: 'u16'
|
|
26
|
+
},
|
|
27
|
+
// Bridge
|
|
28
|
+
ChainId: 'u8',
|
|
29
|
+
DepositNonce: 'u64',
|
|
30
|
+
ResourceId: '[u8; 32]',
|
|
31
|
+
'chainbridge::ChainId': 'u8',
|
|
32
|
+
// NFT
|
|
33
|
+
RegistryId: 'H160',
|
|
34
|
+
TokenId: 'U256',
|
|
35
|
+
AssetId: {
|
|
36
|
+
registryId: 'RegistryId',
|
|
37
|
+
tokenId: 'TokenId'
|
|
38
|
+
},
|
|
39
|
+
AssetInfo: {
|
|
40
|
+
metadata: 'Bytes'
|
|
41
|
+
},
|
|
42
|
+
MintInfo: {
|
|
43
|
+
anchorId: 'Hash',
|
|
44
|
+
proofs: 'Vec<ProofMint>',
|
|
45
|
+
staticHashes: '[Hash; 3]'
|
|
46
|
+
},
|
|
47
|
+
Proof: {
|
|
48
|
+
leafHash: 'H256',
|
|
49
|
+
sortedHashes: 'H256'
|
|
50
|
+
},
|
|
51
|
+
ProofMint: {
|
|
52
|
+
hashes: 'Vec<Hash>',
|
|
53
|
+
property: 'Bytes',
|
|
54
|
+
salt: '[u8; 32]',
|
|
55
|
+
value: 'Bytes'
|
|
56
|
+
},
|
|
57
|
+
RegistryInfo: {
|
|
58
|
+
fields: 'Vec<Bytes>',
|
|
59
|
+
ownerCanBurn: 'bool'
|
|
60
|
+
},
|
|
61
|
+
ProxyType: {
|
|
62
|
+
_enum: [
|
|
63
|
+
'Any',
|
|
64
|
+
'NonTransfer',
|
|
65
|
+
'Governance',
|
|
66
|
+
'Staking',
|
|
67
|
+
'NonProxy'
|
|
68
|
+
]
|
|
69
|
+
}
|
|
69
70
|
};
|
|
70
71
|
const standaloneTypes = objectSpread({}, sharedTypes, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
73
|
+
Address: 'LookupSource',
|
|
74
|
+
LookupSource: 'IndicesLookupSource',
|
|
75
|
+
Multiplier: 'Fixed64',
|
|
76
|
+
RefCount: 'RefCountTo259'
|
|
76
77
|
});
|
|
77
|
-
const versioned = [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
const versioned = [
|
|
79
|
+
{
|
|
80
|
+
minmax: [240, 243],
|
|
81
|
+
types: objectSpread({}, standaloneTypes, {
|
|
82
|
+
ProxyType: {
|
|
83
|
+
_enum: [
|
|
84
|
+
'Any',
|
|
85
|
+
'NonTransfer',
|
|
86
|
+
'Governance',
|
|
87
|
+
'Staking',
|
|
88
|
+
'Vesting'
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
minmax: [244, 999],
|
|
95
|
+
types: objectSpread({}, standaloneTypes)
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
minmax: [1000, undefined],
|
|
99
|
+
types: objectSpread({}, sharedTypes)
|
|
82
100
|
}
|
|
83
|
-
|
|
84
|
-
}, {
|
|
85
|
-
minmax: [244, 999],
|
|
86
|
-
types: objectSpread({}, standaloneTypes)
|
|
87
|
-
}, {
|
|
88
|
-
minmax: [1000, undefined],
|
|
89
|
-
types: objectSpread({}, sharedTypes)
|
|
90
|
-
}];
|
|
101
|
+
];
|
|
91
102
|
export default versioned;
|
package/spec/index.js
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import shell from "./shell.js";
|
|
11
|
-
import statemint from "./statemint.js";
|
|
12
|
-
import westend from "./westend.js";
|
|
13
|
-
|
|
14
|
-
// Type overrides for specific spec types & versions as given in runtimeVersion
|
|
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';
|
|
15
10
|
const typesSpec = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
'centrifuge-chain': centrifugeChain,
|
|
12
|
+
kusama,
|
|
13
|
+
node,
|
|
14
|
+
'node-template': nodeTemplate,
|
|
15
|
+
polkadot,
|
|
16
|
+
rococo,
|
|
17
|
+
shell,
|
|
18
|
+
statemine: statemint,
|
|
19
|
+
statemint,
|
|
20
|
+
westend,
|
|
21
|
+
westmint: statemint
|
|
27
22
|
};
|
|
28
23
|
export default typesSpec;
|
package/spec/kusama.js
CHANGED
|
@@ -1,197 +1,207 @@
|
|
|
1
|
-
// Copyright 2017-2023 @polkadot/types-known authors & contributors
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
/* eslint-disable sort-keys */
|
|
5
|
-
|
|
6
1
|
import { mapXcmTypes } from '@polkadot/types-create';
|
|
7
2
|
import { objectSpread } from '@polkadot/util';
|
|
8
3
|
const sharedTypes = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
CompactAssignments: 'CompactAssignmentsWith24',
|
|
5
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
6
|
+
RawSolution: 'RawSolutionWith24',
|
|
7
|
+
Keys: 'SessionKeys6',
|
|
8
|
+
ProxyType: {
|
|
9
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
|
10
|
+
},
|
|
11
|
+
Weight: 'WeightV1'
|
|
17
12
|
};
|
|
18
13
|
const addrIndicesTypes = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
15
|
+
Address: 'LookupSource',
|
|
16
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
17
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
18
|
+
RawSolution: 'RawSolutionWith16',
|
|
19
|
+
Keys: 'SessionKeys5',
|
|
20
|
+
LookupSource: 'IndicesLookupSource',
|
|
21
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
27
22
|
};
|
|
28
23
|
const addrAccountIdTypes = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
32
|
-
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
33
|
-
RawSolution: 'RawSolutionWith16',
|
|
34
|
-
Keys: 'SessionKeys5',
|
|
35
|
-
LookupSource: 'AccountId',
|
|
36
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
37
|
-
};
|
|
38
|
-
const versioned = [{
|
|
39
|
-
// 1020 is first CC3
|
|
40
|
-
minmax: [1019, 1031],
|
|
41
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
42
|
-
BalanceLock: 'BalanceLockTo212',
|
|
43
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
44
|
-
DispatchError: 'DispatchErrorTo198',
|
|
45
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
46
|
-
Heartbeat: 'HeartbeatTo244',
|
|
47
|
-
IdentityInfo: 'IdentityInfoTo198',
|
|
48
|
-
Keys: 'SessionKeys5',
|
|
49
|
-
Multiplier: 'Fixed64',
|
|
50
|
-
OpenTip: 'OpenTipTo225',
|
|
51
|
-
RefCount: 'RefCountTo259',
|
|
52
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
53
|
-
SlashingSpans: 'SlashingSpansTo204',
|
|
54
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
55
|
-
Votes: 'VotesTo230',
|
|
56
|
-
Weight: 'u32'
|
|
57
|
-
})
|
|
58
|
-
}, {
|
|
59
|
-
minmax: [1032, 1042],
|
|
60
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
61
|
-
BalanceLock: 'BalanceLockTo212',
|
|
62
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
63
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
64
|
-
Heartbeat: 'HeartbeatTo244',
|
|
65
|
-
Keys: 'SessionKeys5',
|
|
66
|
-
Multiplier: 'Fixed64',
|
|
67
|
-
OpenTip: 'OpenTipTo225',
|
|
68
|
-
RefCount: 'RefCountTo259',
|
|
69
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
70
|
-
SlashingSpans: 'SlashingSpansTo204',
|
|
71
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
72
|
-
Votes: 'VotesTo230',
|
|
73
|
-
Weight: 'u32'
|
|
74
|
-
})
|
|
75
|
-
}, {
|
|
76
|
-
// actual at 1045 (1043-1044 is dev)
|
|
77
|
-
minmax: [1043, 1045],
|
|
78
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
79
|
-
BalanceLock: 'BalanceLockTo212',
|
|
80
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
81
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
82
|
-
Heartbeat: 'HeartbeatTo244',
|
|
83
|
-
Keys: 'SessionKeys5',
|
|
84
|
-
Multiplier: 'Fixed64',
|
|
85
|
-
OpenTip: 'OpenTipTo225',
|
|
86
|
-
RefCount: 'RefCountTo259',
|
|
87
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
88
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
89
|
-
Votes: 'VotesTo230',
|
|
90
|
-
Weight: 'u32'
|
|
91
|
-
})
|
|
92
|
-
}, {
|
|
93
|
-
minmax: [1046, 1049],
|
|
94
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
95
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
96
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
97
|
-
Heartbeat: 'HeartbeatTo244',
|
|
98
|
-
Multiplier: 'Fixed64',
|
|
99
|
-
OpenTip: 'OpenTipTo225',
|
|
100
|
-
RefCount: 'RefCountTo259',
|
|
101
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
102
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
103
|
-
Weight: 'u32'
|
|
104
|
-
})
|
|
105
|
-
}, {
|
|
106
|
-
minmax: [1050, 1054],
|
|
107
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
108
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
109
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
110
|
-
Heartbeat: 'HeartbeatTo244',
|
|
111
|
-
Multiplier: 'Fixed64',
|
|
112
|
-
OpenTip: 'OpenTipTo225',
|
|
113
|
-
RefCount: 'RefCountTo259',
|
|
114
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
115
|
-
StakingLedger: 'StakingLedgerTo240',
|
|
116
|
-
Weight: 'u32'
|
|
117
|
-
})
|
|
118
|
-
}, {
|
|
119
|
-
minmax: [1055, 1056],
|
|
120
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
121
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
122
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
123
|
-
Heartbeat: 'HeartbeatTo244',
|
|
124
|
-
Multiplier: 'Fixed64',
|
|
125
|
-
OpenTip: 'OpenTipTo225',
|
|
126
|
-
RefCount: 'RefCountTo259',
|
|
127
|
-
StakingLedger: 'StakingLedgerTo240',
|
|
128
|
-
Weight: 'u32'
|
|
129
|
-
})
|
|
130
|
-
}, {
|
|
131
|
-
minmax: [1057, 1061],
|
|
132
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
133
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
134
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
135
|
-
Heartbeat: 'HeartbeatTo244',
|
|
136
|
-
OpenTip: 'OpenTipTo225',
|
|
137
|
-
RefCount: 'RefCountTo259'
|
|
138
|
-
})
|
|
139
|
-
}, {
|
|
140
|
-
minmax: [1062, 2012],
|
|
141
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
142
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
143
|
-
OpenTip: 'OpenTipTo225',
|
|
144
|
-
RefCount: 'RefCountTo259'
|
|
145
|
-
})
|
|
146
|
-
}, {
|
|
147
|
-
minmax: [2013, 2022],
|
|
148
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
149
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
150
|
-
RefCount: 'RefCountTo259'
|
|
151
|
-
})
|
|
152
|
-
}, {
|
|
153
|
-
minmax: [2023, 2024],
|
|
154
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
155
|
-
RefCount: 'RefCountTo259'
|
|
156
|
-
})
|
|
157
|
-
}, {
|
|
158
|
-
minmax: [2025, 2027],
|
|
159
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes)
|
|
160
|
-
}, {
|
|
161
|
-
minmax: [2028, 2029],
|
|
162
|
-
types: objectSpread({}, sharedTypes, {
|
|
163
|
-
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
164
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
165
|
-
RawSolution: 'RawSolutionWith16'
|
|
166
|
-
})
|
|
167
|
-
}, {
|
|
168
|
-
minmax: [2030, 9000],
|
|
169
|
-
types: objectSpread({}, sharedTypes, {
|
|
24
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
25
|
+
Address: 'AccountId',
|
|
170
26
|
CompactAssignments: 'CompactAssignmentsWith16',
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
27
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
28
|
+
RawSolution: 'RawSolutionWith16',
|
|
29
|
+
Keys: 'SessionKeys5',
|
|
30
|
+
LookupSource: 'AccountId',
|
|
31
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
32
|
+
};
|
|
33
|
+
const versioned = [
|
|
34
|
+
{
|
|
35
|
+
// 1020 is first CC3
|
|
36
|
+
minmax: [1019, 1031],
|
|
37
|
+
types: objectSpread({}, addrIndicesTypes, {
|
|
38
|
+
BalanceLock: 'BalanceLockTo212',
|
|
39
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
40
|
+
DispatchError: 'DispatchErrorTo198',
|
|
41
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
42
|
+
Heartbeat: 'HeartbeatTo244',
|
|
43
|
+
IdentityInfo: 'IdentityInfoTo198',
|
|
44
|
+
Keys: 'SessionKeys5',
|
|
45
|
+
Multiplier: 'Fixed64',
|
|
46
|
+
OpenTip: 'OpenTipTo225',
|
|
47
|
+
RefCount: 'RefCountTo259',
|
|
48
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
49
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
50
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
51
|
+
Votes: 'VotesTo230',
|
|
52
|
+
Weight: 'u32'
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
minmax: [1032, 1042],
|
|
57
|
+
types: objectSpread({}, addrIndicesTypes, {
|
|
58
|
+
BalanceLock: 'BalanceLockTo212',
|
|
59
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
60
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
61
|
+
Heartbeat: 'HeartbeatTo244',
|
|
62
|
+
Keys: 'SessionKeys5',
|
|
63
|
+
Multiplier: 'Fixed64',
|
|
64
|
+
OpenTip: 'OpenTipTo225',
|
|
65
|
+
RefCount: 'RefCountTo259',
|
|
66
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
67
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
68
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
69
|
+
Votes: 'VotesTo230',
|
|
70
|
+
Weight: 'u32'
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
// actual at 1045 (1043-1044 is dev)
|
|
75
|
+
minmax: [1043, 1045],
|
|
76
|
+
types: objectSpread({}, addrIndicesTypes, {
|
|
77
|
+
BalanceLock: 'BalanceLockTo212',
|
|
78
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
79
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
80
|
+
Heartbeat: 'HeartbeatTo244',
|
|
81
|
+
Keys: 'SessionKeys5',
|
|
82
|
+
Multiplier: 'Fixed64',
|
|
83
|
+
OpenTip: 'OpenTipTo225',
|
|
84
|
+
RefCount: 'RefCountTo259',
|
|
85
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
86
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
87
|
+
Votes: 'VotesTo230',
|
|
88
|
+
Weight: 'u32'
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
minmax: [1046, 1049],
|
|
93
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
94
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
95
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
96
|
+
Heartbeat: 'HeartbeatTo244',
|
|
97
|
+
Multiplier: 'Fixed64',
|
|
98
|
+
OpenTip: 'OpenTipTo225',
|
|
99
|
+
RefCount: 'RefCountTo259',
|
|
100
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
101
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
102
|
+
Weight: 'u32'
|
|
103
|
+
})
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
minmax: [1050, 1054],
|
|
107
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
108
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
109
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
110
|
+
Heartbeat: 'HeartbeatTo244',
|
|
111
|
+
Multiplier: 'Fixed64',
|
|
112
|
+
OpenTip: 'OpenTipTo225',
|
|
113
|
+
RefCount: 'RefCountTo259',
|
|
114
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
115
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
116
|
+
Weight: 'u32'
|
|
117
|
+
})
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
minmax: [1055, 1056],
|
|
121
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
122
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
123
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
124
|
+
Heartbeat: 'HeartbeatTo244',
|
|
125
|
+
Multiplier: 'Fixed64',
|
|
126
|
+
OpenTip: 'OpenTipTo225',
|
|
127
|
+
RefCount: 'RefCountTo259',
|
|
128
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
129
|
+
Weight: 'u32'
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
minmax: [1057, 1061],
|
|
134
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
135
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
136
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
137
|
+
Heartbeat: 'HeartbeatTo244',
|
|
138
|
+
OpenTip: 'OpenTipTo225',
|
|
139
|
+
RefCount: 'RefCountTo259'
|
|
140
|
+
})
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
minmax: [1062, 2012],
|
|
144
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
145
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
146
|
+
OpenTip: 'OpenTipTo225',
|
|
147
|
+
RefCount: 'RefCountTo259'
|
|
148
|
+
})
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
minmax: [2013, 2022],
|
|
152
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
153
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
154
|
+
RefCount: 'RefCountTo259'
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
minmax: [2023, 2024],
|
|
159
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
160
|
+
RefCount: 'RefCountTo259'
|
|
161
|
+
})
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
minmax: [2025, 2027],
|
|
165
|
+
types: objectSpread({}, sharedTypes, addrAccountIdTypes)
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
minmax: [2028, 2029],
|
|
169
|
+
types: objectSpread({}, sharedTypes, {
|
|
170
|
+
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
171
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
172
|
+
RawSolution: 'RawSolutionWith16'
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
minmax: [2030, 9000],
|
|
177
|
+
types: objectSpread({}, sharedTypes, {
|
|
178
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
179
|
+
RawSolution: 'RawSolutionWith16'
|
|
180
|
+
})
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
minmax: [9010, 9099],
|
|
184
|
+
types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
// jump from 9100 to 9110, however align with Rococo
|
|
188
|
+
minmax: [9100, 9105],
|
|
189
|
+
types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
// metadata v14
|
|
193
|
+
minmax: [9106, undefined],
|
|
194
|
+
types: {
|
|
195
|
+
Weight: 'WeightV1'
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// ,
|
|
199
|
+
// {
|
|
200
|
+
// // weight v2 introduction
|
|
201
|
+
// minmax: [9300, undefined],
|
|
202
|
+
// types: {
|
|
203
|
+
// Weight: 'WeightV2'
|
|
204
|
+
// }
|
|
205
|
+
// }
|
|
195
206
|
];
|
|
196
|
-
|
|
197
207
|
export default versioned;
|
package/spec/node-template.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Weight: 'WeightV2'
|
|
12
|
-
}
|
|
13
|
-
}];
|
|
1
|
+
const versioned = [
|
|
2
|
+
{
|
|
3
|
+
minmax: [0, undefined],
|
|
4
|
+
types: {
|
|
5
|
+
// nothing, API tracks master
|
|
6
|
+
// (v2 weights are not yet the default)
|
|
7
|
+
Weight: 'WeightV2'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
];
|
|
14
11
|
export default versioned;
|
package/spec/node.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Weight: 'WeightV2'
|
|
12
|
-
}
|
|
13
|
-
}];
|
|
1
|
+
const versioned = [
|
|
2
|
+
{
|
|
3
|
+
minmax: [0, undefined],
|
|
4
|
+
types: {
|
|
5
|
+
// nothing, API tracks master
|
|
6
|
+
// (v2 weights are not yet the default)
|
|
7
|
+
Weight: 'WeightV2'
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
];
|
|
14
11
|
export default versioned;
|