@polkadot/types-known 6.12.1 → 6.12.2-3
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 +30 -158
- package/bundle.d.ts +1 -33
- package/bundle.js +2 -115
- package/package.json +4 -99
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/chain/index.cjs +0 -12
- package/chain/index.d.ts +0 -3
- package/chain/index.js +0 -5
- package/knownOrigins.cjs +0 -32
- package/knownOrigins.d.ts +0 -1
- package/knownOrigins.js +0 -25
- package/modules.cjs +0 -111
- package/modules.d.ts +0 -3
- package/modules.js +0 -104
- package/spec/centrifuge-chain.cjs +0 -98
- package/spec/centrifuge-chain.d.ts +0 -3
- package/spec/centrifuge-chain.js +0 -89
- package/spec/index.cjs +0 -45
- package/spec/index.d.ts +0 -3
- package/spec/index.js +0 -26
- package/spec/kusama.cjs +0 -177
- package/spec/kusama.d.ts +0 -3
- package/spec/kusama.js +0 -167
- package/spec/node-template.cjs +0 -17
- package/spec/node-template.d.ts +0 -3
- package/spec/node-template.js +0 -10
- package/spec/node.cjs +0 -17
- package/spec/node.d.ts +0 -3
- package/spec/node.js +0 -10
- package/spec/polkadot.cjs +0 -74
- package/spec/polkadot.d.ts +0 -3
- package/spec/polkadot.js +0 -65
- package/spec/rococo.cjs +0 -53
- package/spec/rococo.d.ts +0 -3
- package/spec/rococo.js +0 -43
- package/spec/shell.cjs +0 -17
- package/spec/shell.d.ts +0 -3
- package/spec/shell.js +0 -10
- package/spec/statemint.cjs +0 -35
- package/spec/statemint.d.ts +0 -3
- package/spec/statemint.js +0 -25
- package/spec/westend.cjs +0 -90
- package/spec/westend.d.ts +0 -3
- package/spec/westend.js +0 -80
- package/upgrades/index.cjs +0 -66
- package/upgrades/index.d.ts +0 -3
- package/upgrades/index.js +0 -47
- package/upgrades/kusama.cjs +0 -11
- package/upgrades/kusama.d.ts +0 -3
- package/upgrades/kusama.js +0 -4
- package/upgrades/polkadot.cjs +0 -11
- package/upgrades/polkadot.d.ts +0 -3
- package/upgrades/polkadot.js +0 -4
- package/upgrades/types.cjs +0 -1
- package/upgrades/types.d.ts +0 -1
- package/upgrades/types.js +0 -1
- package/upgrades/westend.cjs +0 -11
- package/upgrades/westend.d.ts +0 -3
- package/upgrades/westend.js +0 -4
- package/xcm.cjs +0 -20
- package/xcm.d.ts +0 -2
- package/xcm.js +0 -9
package/modules.cjs
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
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 for modules (where duplication between modules exist)
|
|
10
|
-
const typesModules = {
|
|
11
|
-
assets: {
|
|
12
|
-
Approval: 'AssetApproval',
|
|
13
|
-
ApprovalKey: 'AssetApprovalKey',
|
|
14
|
-
Balance: 'TAssetBalance',
|
|
15
|
-
DestroyWitness: 'AssetDestroyWitness'
|
|
16
|
-
},
|
|
17
|
-
babe: {
|
|
18
|
-
EquivocationProof: 'BabeEquivocationProof'
|
|
19
|
-
},
|
|
20
|
-
balances: {
|
|
21
|
-
Status: 'BalanceStatus'
|
|
22
|
-
},
|
|
23
|
-
beefy: {
|
|
24
|
-
AuthorityId: 'BeefyId'
|
|
25
|
-
},
|
|
26
|
-
contracts: {
|
|
27
|
-
StorageKey: 'ContractStorageKey'
|
|
28
|
-
},
|
|
29
|
-
electionProviderMultiPhase: {
|
|
30
|
-
Phase: 'ElectionPhase'
|
|
31
|
-
},
|
|
32
|
-
ethereum: {
|
|
33
|
-
Block: 'EthBlock',
|
|
34
|
-
Header: 'EthHeader',
|
|
35
|
-
Receipt: 'EthReceipt',
|
|
36
|
-
Transaction: 'EthTransaction',
|
|
37
|
-
TransactionStatus: 'EthTransactionStatus'
|
|
38
|
-
},
|
|
39
|
-
evm: {
|
|
40
|
-
Account: 'EvmAccount',
|
|
41
|
-
Log: 'EvmLog',
|
|
42
|
-
Vicinity: 'EvmVicinity'
|
|
43
|
-
},
|
|
44
|
-
grandpa: {
|
|
45
|
-
Equivocation: 'GrandpaEquivocation',
|
|
46
|
-
EquivocationProof: 'GrandpaEquivocationProof'
|
|
47
|
-
},
|
|
48
|
-
identity: {
|
|
49
|
-
Judgement: 'IdentityJudgement'
|
|
50
|
-
},
|
|
51
|
-
inclusion: {
|
|
52
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
53
|
-
},
|
|
54
|
-
paraDisputes: {
|
|
55
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
56
|
-
},
|
|
57
|
-
paraInclusion: {
|
|
58
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
59
|
-
},
|
|
60
|
-
paraScheduler: {
|
|
61
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
62
|
-
},
|
|
63
|
-
paraShared: {
|
|
64
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
65
|
-
},
|
|
66
|
-
parachains: {
|
|
67
|
-
Id: 'ParaId'
|
|
68
|
-
},
|
|
69
|
-
parasDisputes: {
|
|
70
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
71
|
-
},
|
|
72
|
-
parasInclusion: {
|
|
73
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
74
|
-
},
|
|
75
|
-
parasScheduler: {
|
|
76
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
77
|
-
},
|
|
78
|
-
parasShared: {
|
|
79
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
80
|
-
},
|
|
81
|
-
proposeParachain: {
|
|
82
|
-
Proposal: 'ParachainProposal'
|
|
83
|
-
},
|
|
84
|
-
proxy: {
|
|
85
|
-
Announcement: 'ProxyAnnouncement'
|
|
86
|
-
},
|
|
87
|
-
scheduler: {
|
|
88
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
89
|
-
},
|
|
90
|
-
shared: {
|
|
91
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
92
|
-
},
|
|
93
|
-
society: {
|
|
94
|
-
Judgement: 'SocietyJudgement',
|
|
95
|
-
Vote: 'SocietyVote'
|
|
96
|
-
},
|
|
97
|
-
staking: {
|
|
98
|
-
Compact: 'CompactAssignments'
|
|
99
|
-
},
|
|
100
|
-
treasury: {
|
|
101
|
-
Proposal: 'TreasuryProposal'
|
|
102
|
-
},
|
|
103
|
-
xcm: {
|
|
104
|
-
AssetId: 'XcmAssetId'
|
|
105
|
-
},
|
|
106
|
-
xcmPallet: {
|
|
107
|
-
AssetId: 'XcmAssetId'
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
var _default = typesModules;
|
|
111
|
-
exports.default = _default;
|
package/modules.d.ts
DELETED
package/modules.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
// type overrides for modules (where duplication between modules exist)
|
|
4
|
-
const typesModules = {
|
|
5
|
-
assets: {
|
|
6
|
-
Approval: 'AssetApproval',
|
|
7
|
-
ApprovalKey: 'AssetApprovalKey',
|
|
8
|
-
Balance: 'TAssetBalance',
|
|
9
|
-
DestroyWitness: 'AssetDestroyWitness'
|
|
10
|
-
},
|
|
11
|
-
babe: {
|
|
12
|
-
EquivocationProof: 'BabeEquivocationProof'
|
|
13
|
-
},
|
|
14
|
-
balances: {
|
|
15
|
-
Status: 'BalanceStatus'
|
|
16
|
-
},
|
|
17
|
-
beefy: {
|
|
18
|
-
AuthorityId: 'BeefyId'
|
|
19
|
-
},
|
|
20
|
-
contracts: {
|
|
21
|
-
StorageKey: 'ContractStorageKey'
|
|
22
|
-
},
|
|
23
|
-
electionProviderMultiPhase: {
|
|
24
|
-
Phase: 'ElectionPhase'
|
|
25
|
-
},
|
|
26
|
-
ethereum: {
|
|
27
|
-
Block: 'EthBlock',
|
|
28
|
-
Header: 'EthHeader',
|
|
29
|
-
Receipt: 'EthReceipt',
|
|
30
|
-
Transaction: 'EthTransaction',
|
|
31
|
-
TransactionStatus: 'EthTransactionStatus'
|
|
32
|
-
},
|
|
33
|
-
evm: {
|
|
34
|
-
Account: 'EvmAccount',
|
|
35
|
-
Log: 'EvmLog',
|
|
36
|
-
Vicinity: 'EvmVicinity'
|
|
37
|
-
},
|
|
38
|
-
grandpa: {
|
|
39
|
-
Equivocation: 'GrandpaEquivocation',
|
|
40
|
-
EquivocationProof: 'GrandpaEquivocationProof'
|
|
41
|
-
},
|
|
42
|
-
identity: {
|
|
43
|
-
Judgement: 'IdentityJudgement'
|
|
44
|
-
},
|
|
45
|
-
inclusion: {
|
|
46
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
47
|
-
},
|
|
48
|
-
paraDisputes: {
|
|
49
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
50
|
-
},
|
|
51
|
-
paraInclusion: {
|
|
52
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
53
|
-
},
|
|
54
|
-
paraScheduler: {
|
|
55
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
56
|
-
},
|
|
57
|
-
paraShared: {
|
|
58
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
59
|
-
},
|
|
60
|
-
parachains: {
|
|
61
|
-
Id: 'ParaId'
|
|
62
|
-
},
|
|
63
|
-
parasDisputes: {
|
|
64
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
65
|
-
},
|
|
66
|
-
parasInclusion: {
|
|
67
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
68
|
-
},
|
|
69
|
-
parasScheduler: {
|
|
70
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
71
|
-
},
|
|
72
|
-
parasShared: {
|
|
73
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
74
|
-
},
|
|
75
|
-
proposeParachain: {
|
|
76
|
-
Proposal: 'ParachainProposal'
|
|
77
|
-
},
|
|
78
|
-
proxy: {
|
|
79
|
-
Announcement: 'ProxyAnnouncement'
|
|
80
|
-
},
|
|
81
|
-
scheduler: {
|
|
82
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
83
|
-
},
|
|
84
|
-
shared: {
|
|
85
|
-
ValidatorIndex: 'ParaValidatorIndex'
|
|
86
|
-
},
|
|
87
|
-
society: {
|
|
88
|
-
Judgement: 'SocietyJudgement',
|
|
89
|
-
Vote: 'SocietyVote'
|
|
90
|
-
},
|
|
91
|
-
staking: {
|
|
92
|
-
Compact: 'CompactAssignments'
|
|
93
|
-
},
|
|
94
|
-
treasury: {
|
|
95
|
-
Proposal: 'TreasuryProposal'
|
|
96
|
-
},
|
|
97
|
-
xcm: {
|
|
98
|
-
AssetId: 'XcmAssetId'
|
|
99
|
-
},
|
|
100
|
-
xcmPallet: {
|
|
101
|
-
AssetId: 'XcmAssetId'
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
export default typesModules;
|
|
@@ -1,98 +0,0 @@
|
|
|
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;
|
package/spec/centrifuge-chain.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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
DELETED
package/spec/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
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
|
-
var _xcm = require("../xcm.cjs");
|
|
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, _xcm.mapXcmTypes)('V0'))
|
|
167
|
-
}, {
|
|
168
|
-
// jump from 9100 to 9110, however align with Rococo
|
|
169
|
-
minmax: [9100, 9105],
|
|
170
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
|
|
171
|
-
}, {
|
|
172
|
-
// metadata v14
|
|
173
|
-
minmax: [9106, undefined],
|
|
174
|
-
types: {}
|
|
175
|
-
}];
|
|
176
|
-
var _default = versioned;
|
|
177
|
-
exports.default = _default;
|
package/spec/kusama.d.ts
DELETED