@pezkuwi/types-known 16.5.5
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/README.md +3 -0
- package/build/bundle.d.ts +3 -0
- package/build/chain/index.d.ts +2 -0
- package/build/index.d.ts +2 -0
- package/build/packageDetect.d.ts +1 -0
- package/build/packageInfo.d.ts +6 -0
- package/build/spec/centrifuge-chain.d.ts +2 -0
- package/build/spec/index.d.ts +2 -0
- package/build/spec/kusama.d.ts +2 -0
- package/build/spec/node-template.d.ts +2 -0
- package/build/spec/node.d.ts +2 -0
- package/build/spec/polkadot.d.ts +2 -0
- package/build/spec/rococo.d.ts +2 -0
- package/build/spec/shell.d.ts +2 -0
- package/build/spec/statemine.d.ts +2 -0
- package/build/spec/statemint.d.ts +2 -0
- package/build/spec/westend.d.ts +2 -0
- package/build/spec/westmint.d.ts +2 -0
- package/build/upgrades/e2e/index.d.ts +3 -0
- package/build/upgrades/e2e/kusama.d.ts +2 -0
- package/build/upgrades/e2e/polkadot.d.ts +2 -0
- package/build/upgrades/e2e/westend.d.ts +2 -0
- package/build/upgrades/index.d.ts +2 -0
- package/build/upgrades/manual/index.d.ts +3 -0
- package/build/upgrades/manual/kusama.d.ts +2 -0
- package/build/upgrades/manual/polkadot.d.ts +2 -0
- package/build/upgrades/manual/westend.d.ts +2 -0
- package/build/upgrades/types.d.ts +3 -0
- package/build/util.d.ts +33 -0
- package/package.json +34 -0
- package/src/bundle.ts +11 -0
- package/src/chain/index.ts +7 -0
- package/src/index.ts +6 -0
- package/src/mod.ts +4 -0
- package/src/packageDetect.ts +12 -0
- package/src/packageInfo.ts +6 -0
- package/src/spec/centrifuge-chain.ts +116 -0
- package/src/spec/index.ts +31 -0
- package/src/spec/kusama.ts +258 -0
- package/src/spec/node-template.ts +17 -0
- package/src/spec/node.ts +17 -0
- package/src/spec/polkadot.ts +112 -0
- package/src/spec/rococo.ts +73 -0
- package/src/spec/shell.ts +15 -0
- package/src/spec/statemine.ts +62 -0
- package/src/spec/statemint.ts +74 -0
- package/src/spec/westend.ts +125 -0
- package/src/spec/westmint.ts +62 -0
- package/src/upgrades/e2e/index.spec.ts +67 -0
- package/src/upgrades/e2e/index.ts +6 -0
- package/src/upgrades/e2e/kusama.ts +5372 -0
- package/src/upgrades/e2e/polkadot.ts +3712 -0
- package/src/upgrades/e2e/westend.ts +6434 -0
- package/src/upgrades/index.spec.ts +118 -0
- package/src/upgrades/index.ts +40 -0
- package/src/upgrades/manual/index.ts +6 -0
- package/src/upgrades/manual/kusama.ts +26 -0
- package/src/upgrades/manual/polkadot.ts +19 -0
- package/src/upgrades/manual/westend.ts +27 -0
- package/src/upgrades/types.ts +8 -0
- package/src/util.ts +128 -0
- package/tsconfig.build.json +17 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.spec.json +19 -0
package/README.md
ADDED
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/util.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ExtDef } from '@pezkuwi/types/extrinsic/signedExtensions/types';
|
|
2
|
+
import type { Hash } from '@pezkuwi/types/interfaces';
|
|
3
|
+
import type { ChainUpgradeVersion, CodecHasher, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, OverrideModuleType, Registry, RegistryTypes } from '@pezkuwi/types/types';
|
|
4
|
+
import type { Text } from '@pezkuwi/types-codec';
|
|
5
|
+
import type { BN } from '@pezkuwi/util';
|
|
6
|
+
/**
|
|
7
|
+
* @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSpecExtensions({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): ExtDef;
|
|
10
|
+
/**
|
|
11
|
+
* @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSpecTypes({ knownTypes }: Registry, chainName: Text | string, specName: Text | string, specVersion: bigint | BN | number): RegistryTypes;
|
|
14
|
+
/**
|
|
15
|
+
* @description Based on the chain or spec, return the hasher used
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSpecHasher({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): CodecHasher | null;
|
|
18
|
+
/**
|
|
19
|
+
* @description Based on the chain and runtimeVersion, get the applicable rpc definitions (ready for registration)
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSpecRpc({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
|
22
|
+
/**
|
|
23
|
+
* @description Based on the chain and runtimeVersion, get the applicable runtime definitions (ready for registration)
|
|
24
|
+
*/
|
|
25
|
+
export declare function getSpecRuntime({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): DefinitionsCall;
|
|
26
|
+
/**
|
|
27
|
+
* @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
|
|
28
|
+
*/
|
|
29
|
+
export declare function getSpecAlias({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, OverrideModuleType>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Returns a version record for known chains where upgrades are being tracked
|
|
32
|
+
*/
|
|
33
|
+
export declare function getUpgradeVersion(genesisHash: Hash, blockNumber: BN): [ChainUpgradeVersion | undefined, ChainUpgradeVersion | undefined];
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-api/issues",
|
|
4
|
+
"description": "Known type definitions",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-api/tree/master/packages/types-known#readme",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"name": "@pezkuwi/types-known",
|
|
11
|
+
"repository": {
|
|
12
|
+
"directory": "packages/types-known",
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-api.git"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"./packageDetect.js",
|
|
18
|
+
"./packageDetect.cjs"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"version": "16.5.5",
|
|
22
|
+
"main": "index.js",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@pezkuwi/networks": "14.0.5",
|
|
25
|
+
"@pezkuwi/types": "16.5.5",
|
|
26
|
+
"@pezkuwi/types-codec": "16.5.5",
|
|
27
|
+
"@pezkuwi/types-create": "16.5.5",
|
|
28
|
+
"@pezkuwi/util": "14.0.5",
|
|
29
|
+
"tslib": "^2.8.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@pezkuwi/api": "16.5.5"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/bundle.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// all external
|
|
5
|
+
export { mapXcmTypes } from '@pezkuwi/types-create';
|
|
6
|
+
|
|
7
|
+
// all named
|
|
8
|
+
export { packageInfo } from './packageInfo.js';
|
|
9
|
+
|
|
10
|
+
// all starred
|
|
11
|
+
export * from './util.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { OverrideVersionedType } from '@pezkuwi/types/types';
|
|
5
|
+
|
|
6
|
+
// Type overrides based on specific nodes
|
|
7
|
+
export const typesChain: Record<string, OverrideVersionedType[]> = {};
|
package/src/index.ts
ADDED
package/src/mod.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
5
|
+
// (packageInfo imports will be kept as-is, user-editable)
|
|
6
|
+
|
|
7
|
+
import { packageInfo as typesInfo } from '@pezkuwi/types/packageInfo';
|
|
8
|
+
import { detectPackage } from '@pezkuwi/util';
|
|
9
|
+
|
|
10
|
+
import { packageInfo } from './packageInfo.js';
|
|
11
|
+
|
|
12
|
+
detectPackage(packageInfo, null, [typesInfo]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
5
|
+
|
|
6
|
+
export const packageInfo = { name: '@pezkuwi/types-known', path: 'auto', type: 'auto', version: '16.5.5' };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
/* eslint-disable sort-keys */
|
|
5
|
+
|
|
6
|
+
import type { OverrideVersionedType } from '@pezkuwi/types/types';
|
|
7
|
+
|
|
8
|
+
const sharedTypes = {
|
|
9
|
+
// Anchor
|
|
10
|
+
AnchorData: {
|
|
11
|
+
anchoredBlock: 'u64',
|
|
12
|
+
docRoot: 'H256',
|
|
13
|
+
id: 'H256'
|
|
14
|
+
},
|
|
15
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
16
|
+
PreCommitData: {
|
|
17
|
+
expirationBlock: 'u64',
|
|
18
|
+
identity: 'H256',
|
|
19
|
+
signingRoot: 'H256'
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
// Fees
|
|
23
|
+
Fee: {
|
|
24
|
+
key: 'Hash',
|
|
25
|
+
price: 'Balance'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// MultiAccount
|
|
29
|
+
MultiAccountData: {
|
|
30
|
+
deposit: 'Balance',
|
|
31
|
+
depositor: 'AccountId',
|
|
32
|
+
signatories: 'Vec<AccountId>',
|
|
33
|
+
threshold: 'u16'
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// Bridge
|
|
37
|
+
ChainId: 'u8',
|
|
38
|
+
DepositNonce: 'u64',
|
|
39
|
+
ResourceId: '[u8; 32]',
|
|
40
|
+
'chainbridge::ChainId': 'u8',
|
|
41
|
+
|
|
42
|
+
// NFT
|
|
43
|
+
RegistryId: 'H160',
|
|
44
|
+
TokenId: 'U256',
|
|
45
|
+
AssetId: {
|
|
46
|
+
registryId: 'RegistryId',
|
|
47
|
+
tokenId: 'TokenId'
|
|
48
|
+
},
|
|
49
|
+
AssetInfo: {
|
|
50
|
+
metadata: 'Bytes'
|
|
51
|
+
},
|
|
52
|
+
MintInfo: {
|
|
53
|
+
anchorId: 'Hash',
|
|
54
|
+
proofs: 'Vec<ProofMint>',
|
|
55
|
+
staticHashes: '[Hash; 3]'
|
|
56
|
+
},
|
|
57
|
+
Proof: {
|
|
58
|
+
leafHash: 'H256',
|
|
59
|
+
sortedHashes: 'H256'
|
|
60
|
+
},
|
|
61
|
+
ProofMint: {
|
|
62
|
+
hashes: 'Vec<Hash>',
|
|
63
|
+
property: 'Bytes',
|
|
64
|
+
salt: '[u8; 32]',
|
|
65
|
+
value: 'Bytes'
|
|
66
|
+
},
|
|
67
|
+
RegistryInfo: {
|
|
68
|
+
fields: 'Vec<Bytes>',
|
|
69
|
+
ownerCanBurn: 'bool'
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
ProxyType: {
|
|
73
|
+
_enum: [
|
|
74
|
+
'Any',
|
|
75
|
+
'NonTransfer',
|
|
76
|
+
'Governance',
|
|
77
|
+
'Staking',
|
|
78
|
+
'NonProxy'
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const standaloneTypes = {
|
|
84
|
+
...sharedTypes,
|
|
85
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
86
|
+
Address: 'LookupSource',
|
|
87
|
+
LookupSource: 'IndicesLookupSource',
|
|
88
|
+
Multiplier: 'Fixed64',
|
|
89
|
+
RefCount: 'RefCountTo259'
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const versioned: OverrideVersionedType[] = [
|
|
93
|
+
{
|
|
94
|
+
minmax: [240, 243],
|
|
95
|
+
types: {
|
|
96
|
+
...standaloneTypes,
|
|
97
|
+
ProxyType: {
|
|
98
|
+
_enum: [
|
|
99
|
+
'Any',
|
|
100
|
+
'NonTransfer',
|
|
101
|
+
'Governance',
|
|
102
|
+
'Staking',
|
|
103
|
+
'Vesting'
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
minmax: [244, 999],
|
|
110
|
+
types: { ...standaloneTypes }
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
minmax: [1000, undefined],
|
|
114
|
+
types: { ...sharedTypes }
|
|
115
|
+
}
|
|
116
|
+
];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { OverrideVersionedType } from '@pezkuwi/types/types';
|
|
5
|
+
|
|
6
|
+
import { versioned as centrifugeChain } from './centrifuge-chain.js';
|
|
7
|
+
import { versioned as kusama } from './kusama.js';
|
|
8
|
+
import { versioned as node } from './node.js';
|
|
9
|
+
import { versioned as nodeTemplate } from './node-template.js';
|
|
10
|
+
import { versioned as polkadot } from './polkadot.js';
|
|
11
|
+
import { versioned as rococo } from './rococo.js';
|
|
12
|
+
import { versioned as shell } from './shell.js';
|
|
13
|
+
import { versioned as statemine } from './statemine.js';
|
|
14
|
+
import { versioned as statemint } from './statemint.js';
|
|
15
|
+
import { versioned as westend } from './westend.js';
|
|
16
|
+
import { versioned as westmint } from './westmint.js';
|
|
17
|
+
|
|
18
|
+
// Type overrides for specific spec types & versions as given in runtimeVersion
|
|
19
|
+
export const typesSpec: Record<string, OverrideVersionedType[]> = {
|
|
20
|
+
'centrifuge-chain': centrifugeChain,
|
|
21
|
+
kusama,
|
|
22
|
+
node,
|
|
23
|
+
'node-template': nodeTemplate,
|
|
24
|
+
polkadot,
|
|
25
|
+
rococo,
|
|
26
|
+
shell,
|
|
27
|
+
statemine,
|
|
28
|
+
statemint,
|
|
29
|
+
westend,
|
|
30
|
+
westmint
|
|
31
|
+
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/types-known authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
/* eslint-disable sort-keys */
|
|
5
|
+
|
|
6
|
+
import type { OverrideVersionedType } from '@pezkuwi/types/types';
|
|
7
|
+
|
|
8
|
+
import { mapXcmTypes } from '@pezkuwi/types-create';
|
|
9
|
+
|
|
10
|
+
const sharedTypes = {
|
|
11
|
+
CompactAssignments: 'CompactAssignmentsWith24',
|
|
12
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
13
|
+
RawSolution: 'RawSolutionWith24',
|
|
14
|
+
Keys: 'SessionKeys6',
|
|
15
|
+
ProxyType: {
|
|
16
|
+
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
|
17
|
+
},
|
|
18
|
+
Weight: 'WeightV1'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const addrIndicesTypes = {
|
|
22
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
23
|
+
Address: 'LookupSource',
|
|
24
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
25
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
26
|
+
RawSolution: 'RawSolutionWith16',
|
|
27
|
+
Keys: 'SessionKeys5',
|
|
28
|
+
LookupSource: 'IndicesLookupSource',
|
|
29
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const addrAccountIdTypes = {
|
|
33
|
+
AccountInfo: 'AccountInfoWithRefCount',
|
|
34
|
+
Address: 'AccountId',
|
|
35
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
36
|
+
DispatchErrorModule: 'DispatchErrorModuleU8',
|
|
37
|
+
RawSolution: 'RawSolutionWith16',
|
|
38
|
+
Keys: 'SessionKeys5',
|
|
39
|
+
LookupSource: 'AccountId',
|
|
40
|
+
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const versioned: OverrideVersionedType[] = [
|
|
44
|
+
{
|
|
45
|
+
// 1020 is first CC3
|
|
46
|
+
minmax: [1019, 1031],
|
|
47
|
+
types: {
|
|
48
|
+
...addrIndicesTypes,
|
|
49
|
+
BalanceLock: 'BalanceLockTo212',
|
|
50
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
51
|
+
DispatchError: 'DispatchErrorTo198',
|
|
52
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
53
|
+
Heartbeat: 'HeartbeatTo244',
|
|
54
|
+
IdentityInfo: 'IdentityInfoTo198',
|
|
55
|
+
Keys: 'SessionKeys5',
|
|
56
|
+
Multiplier: 'Fixed64',
|
|
57
|
+
OpenTip: 'OpenTipTo225',
|
|
58
|
+
RefCount: 'RefCountTo259',
|
|
59
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
60
|
+
Scheduled: 'ScheduledTo254',
|
|
61
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
62
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
63
|
+
Votes: 'VotesTo230',
|
|
64
|
+
Weight: 'u32'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
minmax: [1032, 1042],
|
|
69
|
+
types: {
|
|
70
|
+
...addrIndicesTypes,
|
|
71
|
+
BalanceLock: 'BalanceLockTo212',
|
|
72
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
73
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
74
|
+
Heartbeat: 'HeartbeatTo244',
|
|
75
|
+
Keys: 'SessionKeys5',
|
|
76
|
+
Multiplier: 'Fixed64',
|
|
77
|
+
OpenTip: 'OpenTipTo225',
|
|
78
|
+
RefCount: 'RefCountTo259',
|
|
79
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
80
|
+
Scheduled: 'ScheduledTo254',
|
|
81
|
+
SlashingSpans: 'SlashingSpansTo204',
|
|
82
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
83
|
+
Votes: 'VotesTo230',
|
|
84
|
+
Weight: 'u32'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
// actual at 1045 (1043-1044 is dev)
|
|
89
|
+
minmax: [1043, 1045],
|
|
90
|
+
types: {
|
|
91
|
+
...addrIndicesTypes,
|
|
92
|
+
BalanceLock: 'BalanceLockTo212',
|
|
93
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
94
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
95
|
+
Heartbeat: 'HeartbeatTo244',
|
|
96
|
+
Keys: 'SessionKeys5',
|
|
97
|
+
Multiplier: 'Fixed64',
|
|
98
|
+
OpenTip: 'OpenTipTo225',
|
|
99
|
+
RefCount: 'RefCountTo259',
|
|
100
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
101
|
+
Scheduled: 'ScheduledTo254',
|
|
102
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
103
|
+
Votes: 'VotesTo230',
|
|
104
|
+
Weight: 'u32'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
minmax: [1046, 1049],
|
|
109
|
+
types: {
|
|
110
|
+
...sharedTypes,
|
|
111
|
+
...addrAccountIdTypes,
|
|
112
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
113
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
114
|
+
Heartbeat: 'HeartbeatTo244',
|
|
115
|
+
Multiplier: 'Fixed64',
|
|
116
|
+
OpenTip: 'OpenTipTo225',
|
|
117
|
+
RefCount: 'RefCountTo259',
|
|
118
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
119
|
+
Scheduled: 'ScheduledTo254',
|
|
120
|
+
StakingLedger: 'StakingLedgerTo223',
|
|
121
|
+
Weight: 'u32'
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
minmax: [1050, 1054],
|
|
126
|
+
types: {
|
|
127
|
+
...sharedTypes,
|
|
128
|
+
...addrAccountIdTypes,
|
|
129
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
130
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
131
|
+
Heartbeat: 'HeartbeatTo244',
|
|
132
|
+
Multiplier: 'Fixed64',
|
|
133
|
+
OpenTip: 'OpenTipTo225',
|
|
134
|
+
RefCount: 'RefCountTo259',
|
|
135
|
+
ReferendumInfo: 'ReferendumInfoTo239',
|
|
136
|
+
Scheduled: 'ScheduledTo254',
|
|
137
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
138
|
+
Weight: 'u32'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
minmax: [1055, 1056],
|
|
143
|
+
types: {
|
|
144
|
+
...sharedTypes,
|
|
145
|
+
...addrAccountIdTypes,
|
|
146
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
147
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
148
|
+
Heartbeat: 'HeartbeatTo244',
|
|
149
|
+
Multiplier: 'Fixed64',
|
|
150
|
+
OpenTip: 'OpenTipTo225',
|
|
151
|
+
RefCount: 'RefCountTo259',
|
|
152
|
+
Scheduled: 'ScheduledTo254',
|
|
153
|
+
StakingLedger: 'StakingLedgerTo240',
|
|
154
|
+
Weight: 'u32'
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
minmax: [1057, 1061],
|
|
159
|
+
types: {
|
|
160
|
+
...sharedTypes,
|
|
161
|
+
...addrAccountIdTypes,
|
|
162
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
163
|
+
DispatchInfo: 'DispatchInfoTo244',
|
|
164
|
+
Heartbeat: 'HeartbeatTo244',
|
|
165
|
+
OpenTip: 'OpenTipTo225',
|
|
166
|
+
RefCount: 'RefCountTo259',
|
|
167
|
+
// Last 100% known problematic runtime range - this quite possibly need to
|
|
168
|
+
// apply to more runtime ranges that follow, we just don't know how far this
|
|
169
|
+
// should be applied to
|
|
170
|
+
//
|
|
171
|
+
// TL;DR whack-a-mole since this was not histrically checked
|
|
172
|
+
//
|
|
173
|
+
// See https://github.com/polkadot-js/api/issues/5618#issuecomment-1530970316
|
|
174
|
+
Scheduled: 'ScheduledTo254'
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
minmax: [1062, 2012],
|
|
179
|
+
types: {
|
|
180
|
+
...sharedTypes,
|
|
181
|
+
...addrAccountIdTypes,
|
|
182
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
183
|
+
OpenTip: 'OpenTipTo225',
|
|
184
|
+
RefCount: 'RefCountTo259'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
minmax: [2013, 2022],
|
|
189
|
+
types: {
|
|
190
|
+
...sharedTypes,
|
|
191
|
+
...addrAccountIdTypes,
|
|
192
|
+
CompactAssignments: 'CompactAssignmentsTo257',
|
|
193
|
+
RefCount: 'RefCountTo259'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
minmax: [2023, 2024],
|
|
198
|
+
types: {
|
|
199
|
+
...sharedTypes,
|
|
200
|
+
...addrAccountIdTypes,
|
|
201
|
+
RefCount: 'RefCountTo259'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
minmax: [2025, 2027],
|
|
206
|
+
types: {
|
|
207
|
+
...sharedTypes,
|
|
208
|
+
...addrAccountIdTypes
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
minmax: [2028, 2029],
|
|
213
|
+
types: {
|
|
214
|
+
...sharedTypes,
|
|
215
|
+
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
216
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
217
|
+
RawSolution: 'RawSolutionWith16'
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
minmax: [2030, 9000],
|
|
222
|
+
types: {
|
|
223
|
+
...sharedTypes,
|
|
224
|
+
CompactAssignments: 'CompactAssignmentsWith16',
|
|
225
|
+
RawSolution: 'RawSolutionWith16'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
minmax: [9010, 9099],
|
|
230
|
+
types: {
|
|
231
|
+
...sharedTypes,
|
|
232
|
+
...mapXcmTypes('V0')
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
// jump from 9100 to 9110, however align with Rococo
|
|
237
|
+
minmax: [9100, 9105],
|
|
238
|
+
types: {
|
|
239
|
+
...sharedTypes,
|
|
240
|
+
...mapXcmTypes('V1')
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
// metadata v14
|
|
245
|
+
minmax: [9106, undefined],
|
|
246
|
+
types: {
|
|
247
|
+
Weight: 'WeightV1'
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
// ,
|
|
251
|
+
// {
|
|
252
|
+
// // weight v2 introduction
|
|
253
|
+
// minmax: [9300, undefined],
|
|
254
|
+
// types: {
|
|
255
|
+
// Weight: 'WeightV2'
|
|
256
|
+
// }
|
|
257
|
+
// }
|
|
258
|
+
];
|