@polkadot/types-known 6.11.2-9 → 6.12.2-2
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 +17 -174
- package/bundle.d.ts +1 -33
- package/bundle.js +2 -118
- 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 -33
- package/knownOrigins.d.ts +0 -1
- package/knownOrigins.js +0 -26
- 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/spec/kusama.js
DELETED
|
@@ -1,167 +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
|
-
import { mapXcmTypes } from "../xcm.js";
|
|
7
|
-
const sharedTypes = {
|
|
8
|
-
CompactAssignments: 'CompactAssignmentsWith24',
|
|
9
|
-
RawSolution: 'RawSolutionWith24',
|
|
10
|
-
Keys: 'SessionKeys6',
|
|
11
|
-
ProxyType: {
|
|
12
|
-
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const addrIndicesTypes = {
|
|
16
|
-
AccountInfo: 'AccountInfoWithRefCount',
|
|
17
|
-
Address: 'LookupSource',
|
|
18
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
19
|
-
RawSolution: 'RawSolutionWith16',
|
|
20
|
-
Keys: 'SessionKeys5',
|
|
21
|
-
LookupSource: 'IndicesLookupSource',
|
|
22
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
23
|
-
};
|
|
24
|
-
const addrAccountIdTypes = {
|
|
25
|
-
AccountInfo: 'AccountInfoWithRefCount',
|
|
26
|
-
Address: 'AccountId',
|
|
27
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
28
|
-
RawSolution: 'RawSolutionWith16',
|
|
29
|
-
Keys: 'SessionKeys5',
|
|
30
|
-
LookupSource: 'AccountId',
|
|
31
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
32
|
-
};
|
|
33
|
-
const versioned = [{
|
|
34
|
-
// 1020 is first CC3
|
|
35
|
-
minmax: [1019, 1031],
|
|
36
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
37
|
-
BalanceLock: 'BalanceLockTo212',
|
|
38
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
39
|
-
DispatchError: 'DispatchErrorTo198',
|
|
40
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
41
|
-
Heartbeat: 'HeartbeatTo244',
|
|
42
|
-
IdentityInfo: 'IdentityInfoTo198',
|
|
43
|
-
Keys: 'SessionKeys5',
|
|
44
|
-
Multiplier: 'Fixed64',
|
|
45
|
-
OpenTip: 'OpenTipTo225',
|
|
46
|
-
RefCount: 'RefCountTo259',
|
|
47
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
48
|
-
SlashingSpans: 'SlashingSpansTo204',
|
|
49
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
50
|
-
Votes: 'VotesTo230',
|
|
51
|
-
Weight: 'u32'
|
|
52
|
-
})
|
|
53
|
-
}, {
|
|
54
|
-
minmax: [1032, 1042],
|
|
55
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
56
|
-
BalanceLock: 'BalanceLockTo212',
|
|
57
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
58
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
59
|
-
Heartbeat: 'HeartbeatTo244',
|
|
60
|
-
Keys: 'SessionKeys5',
|
|
61
|
-
Multiplier: 'Fixed64',
|
|
62
|
-
OpenTip: 'OpenTipTo225',
|
|
63
|
-
RefCount: 'RefCountTo259',
|
|
64
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
65
|
-
SlashingSpans: 'SlashingSpansTo204',
|
|
66
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
67
|
-
Votes: 'VotesTo230',
|
|
68
|
-
Weight: 'u32'
|
|
69
|
-
})
|
|
70
|
-
}, {
|
|
71
|
-
// actual at 1045 (1043-1044 is dev)
|
|
72
|
-
minmax: [1043, 1045],
|
|
73
|
-
types: objectSpread({}, addrIndicesTypes, {
|
|
74
|
-
BalanceLock: 'BalanceLockTo212',
|
|
75
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
76
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
77
|
-
Heartbeat: 'HeartbeatTo244',
|
|
78
|
-
Keys: 'SessionKeys5',
|
|
79
|
-
Multiplier: 'Fixed64',
|
|
80
|
-
OpenTip: 'OpenTipTo225',
|
|
81
|
-
RefCount: 'RefCountTo259',
|
|
82
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
83
|
-
StakingLedger: 'StakingLedgerTo223',
|
|
84
|
-
Votes: 'VotesTo230',
|
|
85
|
-
Weight: 'u32'
|
|
86
|
-
})
|
|
87
|
-
}, {
|
|
88
|
-
minmax: [1046, 1054],
|
|
89
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
90
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
91
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
92
|
-
Heartbeat: 'HeartbeatTo244',
|
|
93
|
-
Multiplier: 'Fixed64',
|
|
94
|
-
OpenTip: 'OpenTipTo225',
|
|
95
|
-
RefCount: 'RefCountTo259',
|
|
96
|
-
ReferendumInfo: 'ReferendumInfoTo239',
|
|
97
|
-
StakingLedger: 'StakingLedgerTo240',
|
|
98
|
-
Weight: 'u32'
|
|
99
|
-
})
|
|
100
|
-
}, {
|
|
101
|
-
minmax: [1055, 1056],
|
|
102
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
103
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
104
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
105
|
-
Heartbeat: 'HeartbeatTo244',
|
|
106
|
-
Multiplier: 'Fixed64',
|
|
107
|
-
OpenTip: 'OpenTipTo225',
|
|
108
|
-
RefCount: 'RefCountTo259',
|
|
109
|
-
StakingLedger: 'StakingLedgerTo240',
|
|
110
|
-
Weight: 'u32'
|
|
111
|
-
})
|
|
112
|
-
}, {
|
|
113
|
-
minmax: [1057, 1061],
|
|
114
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
115
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
116
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
117
|
-
Heartbeat: 'HeartbeatTo244',
|
|
118
|
-
OpenTip: 'OpenTipTo225',
|
|
119
|
-
RefCount: 'RefCountTo259'
|
|
120
|
-
})
|
|
121
|
-
}, {
|
|
122
|
-
minmax: [1062, 2012],
|
|
123
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
124
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
125
|
-
OpenTip: 'OpenTipTo225',
|
|
126
|
-
RefCount: 'RefCountTo259'
|
|
127
|
-
})
|
|
128
|
-
}, {
|
|
129
|
-
minmax: [2013, 2022],
|
|
130
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
131
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
132
|
-
RefCount: 'RefCountTo259'
|
|
133
|
-
})
|
|
134
|
-
}, {
|
|
135
|
-
minmax: [2023, 2024],
|
|
136
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
137
|
-
RefCount: 'RefCountTo259'
|
|
138
|
-
})
|
|
139
|
-
}, {
|
|
140
|
-
minmax: [2025, 2027],
|
|
141
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes)
|
|
142
|
-
}, {
|
|
143
|
-
minmax: [2028, 2029],
|
|
144
|
-
types: objectSpread({}, sharedTypes, {
|
|
145
|
-
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
146
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
147
|
-
RawSolution: 'RawSolutionWith16'
|
|
148
|
-
})
|
|
149
|
-
}, {
|
|
150
|
-
minmax: [2030, 9000],
|
|
151
|
-
types: objectSpread({}, sharedTypes, {
|
|
152
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
153
|
-
RawSolution: 'RawSolutionWith16'
|
|
154
|
-
})
|
|
155
|
-
}, {
|
|
156
|
-
minmax: [9010, 9099],
|
|
157
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
|
|
158
|
-
}, {
|
|
159
|
-
// jump from 9100 to 9110, however align with Rococo
|
|
160
|
-
minmax: [9100, 9105],
|
|
161
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
|
|
162
|
-
}, {
|
|
163
|
-
// metadata v14
|
|
164
|
-
minmax: [9106, undefined],
|
|
165
|
-
types: {}
|
|
166
|
-
}];
|
|
167
|
-
export default versioned;
|
package/spec/node-template.cjs
DELETED
|
@@ -1,17 +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
|
-
|
|
10
|
-
/* eslint-disable sort-keys */
|
|
11
|
-
const versioned = [{
|
|
12
|
-
minmax: [0, undefined],
|
|
13
|
-
types: {// nothing, API tracks master
|
|
14
|
-
}
|
|
15
|
-
}];
|
|
16
|
-
var _default = versioned;
|
|
17
|
-
exports.default = _default;
|
package/spec/node-template.d.ts
DELETED
package/spec/node-template.js
DELETED
|
@@ -1,10 +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
|
-
const versioned = [{
|
|
6
|
-
minmax: [0, undefined],
|
|
7
|
-
types: {// nothing, API tracks master
|
|
8
|
-
}
|
|
9
|
-
}];
|
|
10
|
-
export default versioned;
|
package/spec/node.cjs
DELETED
|
@@ -1,17 +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
|
-
|
|
10
|
-
/* eslint-disable sort-keys */
|
|
11
|
-
const versioned = [{
|
|
12
|
-
minmax: [0, undefined],
|
|
13
|
-
types: {// nothing, API tracks master
|
|
14
|
-
}
|
|
15
|
-
}];
|
|
16
|
-
var _default = versioned;
|
|
17
|
-
exports.default = _default;
|
package/spec/node.d.ts
DELETED
package/spec/node.js
DELETED
|
@@ -1,10 +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
|
-
const versioned = [{
|
|
6
|
-
minmax: [0, undefined],
|
|
7
|
-
types: {// nothing, API tracks master
|
|
8
|
-
}
|
|
9
|
-
}];
|
|
10
|
-
export default versioned;
|
package/spec/polkadot.cjs
DELETED
|
@@ -1,74 +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
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
16
|
-
RawSolution: 'RawSolutionWith16',
|
|
17
|
-
Keys: 'SessionKeys6',
|
|
18
|
-
ProxyType: {
|
|
19
|
-
_enum: {
|
|
20
|
-
Any: 0,
|
|
21
|
-
NonTransfer: 1,
|
|
22
|
-
Governance: 2,
|
|
23
|
-
Staking: 3,
|
|
24
|
-
UnusedSudoBalances: 4,
|
|
25
|
-
IdentityJudgement: 5,
|
|
26
|
-
CancelProxy: 6,
|
|
27
|
-
Auction: 7
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const addrAccountIdTypes = {
|
|
32
|
-
AccountInfo: 'AccountInfoWithRefCount',
|
|
33
|
-
Address: 'AccountId',
|
|
34
|
-
Keys: 'SessionKeys5',
|
|
35
|
-
LookupSource: 'AccountId',
|
|
36
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
37
|
-
}; // these are override types for Polkadot
|
|
38
|
-
|
|
39
|
-
const versioned = [{
|
|
40
|
-
minmax: [0, 12],
|
|
41
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
42
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
43
|
-
OpenTip: 'OpenTipTo225',
|
|
44
|
-
RefCount: 'RefCountTo259'
|
|
45
|
-
})
|
|
46
|
-
}, {
|
|
47
|
-
minmax: [13, 22],
|
|
48
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
49
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
50
|
-
RefCount: 'RefCountTo259'
|
|
51
|
-
})
|
|
52
|
-
}, {
|
|
53
|
-
minmax: [23, 24],
|
|
54
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
55
|
-
RefCount: 'RefCountTo259'
|
|
56
|
-
})
|
|
57
|
-
}, {
|
|
58
|
-
minmax: [25, 27],
|
|
59
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
|
|
60
|
-
}, {
|
|
61
|
-
minmax: [28, 29],
|
|
62
|
-
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
63
|
-
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
64
|
-
})
|
|
65
|
-
}, {
|
|
66
|
-
minmax: [30, 9109],
|
|
67
|
-
types: (0, _util.objectSpread)({}, sharedTypes)
|
|
68
|
-
}, {
|
|
69
|
-
// metadata v14
|
|
70
|
-
minmax: [9110, undefined],
|
|
71
|
-
types: {}
|
|
72
|
-
}];
|
|
73
|
-
var _default = versioned;
|
|
74
|
-
exports.default = _default;
|
package/spec/polkadot.d.ts
DELETED
package/spec/polkadot.js
DELETED
|
@@ -1,65 +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
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
8
|
-
RawSolution: 'RawSolutionWith16',
|
|
9
|
-
Keys: 'SessionKeys6',
|
|
10
|
-
ProxyType: {
|
|
11
|
-
_enum: {
|
|
12
|
-
Any: 0,
|
|
13
|
-
NonTransfer: 1,
|
|
14
|
-
Governance: 2,
|
|
15
|
-
Staking: 3,
|
|
16
|
-
UnusedSudoBalances: 4,
|
|
17
|
-
IdentityJudgement: 5,
|
|
18
|
-
CancelProxy: 6,
|
|
19
|
-
Auction: 7
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const addrAccountIdTypes = {
|
|
24
|
-
AccountInfo: 'AccountInfoWithRefCount',
|
|
25
|
-
Address: 'AccountId',
|
|
26
|
-
Keys: 'SessionKeys5',
|
|
27
|
-
LookupSource: 'AccountId',
|
|
28
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
29
|
-
}; // these are override types for Polkadot
|
|
30
|
-
|
|
31
|
-
const versioned = [{
|
|
32
|
-
minmax: [0, 12],
|
|
33
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
34
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
35
|
-
OpenTip: 'OpenTipTo225',
|
|
36
|
-
RefCount: 'RefCountTo259'
|
|
37
|
-
})
|
|
38
|
-
}, {
|
|
39
|
-
minmax: [13, 22],
|
|
40
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
41
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
42
|
-
RefCount: 'RefCountTo259'
|
|
43
|
-
})
|
|
44
|
-
}, {
|
|
45
|
-
minmax: [23, 24],
|
|
46
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes, {
|
|
47
|
-
RefCount: 'RefCountTo259'
|
|
48
|
-
})
|
|
49
|
-
}, {
|
|
50
|
-
minmax: [25, 27],
|
|
51
|
-
types: objectSpread({}, sharedTypes, addrAccountIdTypes)
|
|
52
|
-
}, {
|
|
53
|
-
minmax: [28, 29],
|
|
54
|
-
types: objectSpread({}, sharedTypes, {
|
|
55
|
-
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
56
|
-
})
|
|
57
|
-
}, {
|
|
58
|
-
minmax: [30, 9109],
|
|
59
|
-
types: objectSpread({}, sharedTypes)
|
|
60
|
-
}, {
|
|
61
|
-
// metadata v14
|
|
62
|
-
minmax: [9110, undefined],
|
|
63
|
-
types: {}
|
|
64
|
-
}];
|
|
65
|
-
export default versioned;
|
package/spec/rococo.cjs
DELETED
|
@@ -1,53 +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
|
-
// structs need to be in order
|
|
17
|
-
|
|
18
|
-
/* eslint-disable sort-keys */
|
|
19
|
-
const sharedTypes = {
|
|
20
|
-
FullIdentification: '()',
|
|
21
|
-
// No staking, only session (as per config)
|
|
22
|
-
Keys: 'SessionKeys7B'
|
|
23
|
-
};
|
|
24
|
-
const versioned = [{
|
|
25
|
-
minmax: [0, 200],
|
|
26
|
-
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
27
|
-
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
28
|
-
Address: 'AccountId',
|
|
29
|
-
LookupSource: 'AccountId'
|
|
30
|
-
})
|
|
31
|
-
}, {
|
|
32
|
-
minmax: [201, 214],
|
|
33
|
-
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
34
|
-
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
35
|
-
})
|
|
36
|
-
}, {
|
|
37
|
-
minmax: [215, 228],
|
|
38
|
-
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
39
|
-
Keys: 'SessionKeys6'
|
|
40
|
-
})
|
|
41
|
-
}, {
|
|
42
|
-
minmax: [229, 9099],
|
|
43
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
|
|
44
|
-
}, {
|
|
45
|
-
minmax: [9100, 9105],
|
|
46
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
|
|
47
|
-
}, {
|
|
48
|
-
// metadata v14
|
|
49
|
-
minmax: [9106, undefined],
|
|
50
|
-
types: {}
|
|
51
|
-
}];
|
|
52
|
-
var _default = versioned;
|
|
53
|
-
exports.default = _default;
|
package/spec/rococo.d.ts
DELETED
package/spec/rococo.js
DELETED
|
@@ -1,43 +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
|
-
import { mapXcmTypes } from "../xcm.js"; // structs need to be in order
|
|
7
|
-
|
|
8
|
-
/* eslint-disable sort-keys */
|
|
9
|
-
|
|
10
|
-
const sharedTypes = {
|
|
11
|
-
FullIdentification: '()',
|
|
12
|
-
// No staking, only session (as per config)
|
|
13
|
-
Keys: 'SessionKeys7B'
|
|
14
|
-
};
|
|
15
|
-
const versioned = [{
|
|
16
|
-
minmax: [0, 200],
|
|
17
|
-
types: objectSpread({}, sharedTypes, {
|
|
18
|
-
AccountInfo: 'AccountInfoWithDualRefCount',
|
|
19
|
-
Address: 'AccountId',
|
|
20
|
-
LookupSource: 'AccountId'
|
|
21
|
-
})
|
|
22
|
-
}, {
|
|
23
|
-
minmax: [201, 214],
|
|
24
|
-
types: objectSpread({}, sharedTypes, {
|
|
25
|
-
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
26
|
-
})
|
|
27
|
-
}, {
|
|
28
|
-
minmax: [215, 228],
|
|
29
|
-
types: objectSpread({}, sharedTypes, {
|
|
30
|
-
Keys: 'SessionKeys6'
|
|
31
|
-
})
|
|
32
|
-
}, {
|
|
33
|
-
minmax: [229, 9099],
|
|
34
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
|
|
35
|
-
}, {
|
|
36
|
-
minmax: [9100, 9105],
|
|
37
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
|
|
38
|
-
}, {
|
|
39
|
-
// metadata v14
|
|
40
|
-
minmax: [9106, undefined],
|
|
41
|
-
types: {}
|
|
42
|
-
}];
|
|
43
|
-
export default versioned;
|
package/spec/shell.cjs
DELETED
|
@@ -1,17 +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
|
-
|
|
10
|
-
/* eslint-disable sort-keys */
|
|
11
|
-
const versioned = [{
|
|
12
|
-
minmax: [0, undefined],
|
|
13
|
-
types: {// nothing, limited runtime
|
|
14
|
-
}
|
|
15
|
-
}];
|
|
16
|
-
var _default = versioned;
|
|
17
|
-
exports.default = _default;
|
package/spec/shell.d.ts
DELETED
package/spec/shell.js
DELETED
|
@@ -1,10 +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
|
-
const versioned = [{
|
|
6
|
-
minmax: [0, undefined],
|
|
7
|
-
types: {// nothing, limited runtime
|
|
8
|
-
}
|
|
9
|
-
}];
|
|
10
|
-
export default versioned;
|
package/spec/statemint.cjs
DELETED
|
@@ -1,35 +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
|
-
TAssetBalance: 'u128',
|
|
18
|
-
ProxyType: {
|
|
19
|
-
_enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Staking']
|
|
20
|
-
}
|
|
21
|
-
}; // these are override types for Statemine, Statemint, Westmint
|
|
22
|
-
|
|
23
|
-
const versioned = [{
|
|
24
|
-
minmax: [0, 3],
|
|
25
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
|
|
26
|
-
}, {
|
|
27
|
-
minmax: [4, 5],
|
|
28
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
|
|
29
|
-
}, {
|
|
30
|
-
// metadata V14
|
|
31
|
-
minmax: [500, undefined],
|
|
32
|
-
types: {}
|
|
33
|
-
}];
|
|
34
|
-
var _default = versioned;
|
|
35
|
-
exports.default = _default;
|
package/spec/statemint.d.ts
DELETED
package/spec/statemint.js
DELETED
|
@@ -1,25 +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
|
-
import { mapXcmTypes } from "../xcm.js";
|
|
7
|
-
const sharedTypes = {
|
|
8
|
-
TAssetBalance: 'u128',
|
|
9
|
-
ProxyType: {
|
|
10
|
-
_enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Staking']
|
|
11
|
-
}
|
|
12
|
-
}; // these are override types for Statemine, Statemint, Westmint
|
|
13
|
-
|
|
14
|
-
const versioned = [{
|
|
15
|
-
minmax: [0, 3],
|
|
16
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V0'))
|
|
17
|
-
}, {
|
|
18
|
-
minmax: [4, 5],
|
|
19
|
-
types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
|
|
20
|
-
}, {
|
|
21
|
-
// metadata V14
|
|
22
|
-
minmax: [500, undefined],
|
|
23
|
-
types: {}
|
|
24
|
-
}];
|
|
25
|
-
export default versioned;
|
package/spec/westend.cjs
DELETED
|
@@ -1,90 +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
|
-
// 16 validators
|
|
18
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
19
|
-
RawSolution: 'RawSolutionWith16',
|
|
20
|
-
// general
|
|
21
|
-
Keys: 'SessionKeys6',
|
|
22
|
-
ProxyType: {
|
|
23
|
-
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const addrAccountIdTypes = {
|
|
27
|
-
AccountInfo: 'AccountInfoWithRefCount',
|
|
28
|
-
Address: 'AccountId',
|
|
29
|
-
CompactAssignments: 'CompactAssignmentsWith16',
|
|
30
|
-
LookupSource: 'AccountId',
|
|
31
|
-
Keys: 'SessionKeys5',
|
|
32
|
-
RawSolution: 'RawSolutionWith16',
|
|
33
|
-
ValidatorPrefs: 'ValidatorPrefsWithCommission'
|
|
34
|
-
};
|
|
35
|
-
const versioned = [{
|
|
36
|
-
minmax: [1, 2],
|
|
37
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
38
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
39
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
40
|
-
Heartbeat: 'HeartbeatTo244',
|
|
41
|
-
Multiplier: 'Fixed64',
|
|
42
|
-
OpenTip: 'OpenTipTo225',
|
|
43
|
-
RefCount: 'RefCountTo259',
|
|
44
|
-
Weight: 'u32'
|
|
45
|
-
})
|
|
46
|
-
}, {
|
|
47
|
-
minmax: [3, 22],
|
|
48
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
49
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
50
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
51
|
-
Heartbeat: 'HeartbeatTo244',
|
|
52
|
-
OpenTip: 'OpenTipTo225',
|
|
53
|
-
RefCount: 'RefCountTo259'
|
|
54
|
-
})
|
|
55
|
-
}, {
|
|
56
|
-
minmax: [23, 42],
|
|
57
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
58
|
-
CompactAssignments: 'CompactAssignmentsTo257',
|
|
59
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
60
|
-
Heartbeat: 'HeartbeatTo244',
|
|
61
|
-
RefCount: 'RefCountTo259'
|
|
62
|
-
})
|
|
63
|
-
}, {
|
|
64
|
-
minmax: [43, 44],
|
|
65
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
|
|
66
|
-
DispatchInfo: 'DispatchInfoTo244',
|
|
67
|
-
Heartbeat: 'HeartbeatTo244',
|
|
68
|
-
RefCount: 'RefCountTo259'
|
|
69
|
-
})
|
|
70
|
-
}, {
|
|
71
|
-
minmax: [45, 47],
|
|
72
|
-
types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
|
|
73
|
-
}, {
|
|
74
|
-
minmax: [48, 49],
|
|
75
|
-
types: (0, _util.objectSpread)({}, sharedTypes, {
|
|
76
|
-
AccountInfo: 'AccountInfoWithDualRefCount'
|
|
77
|
-
})
|
|
78
|
-
}, {
|
|
79
|
-
minmax: [50, 9099],
|
|
80
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V0'))
|
|
81
|
-
}, {
|
|
82
|
-
minmax: [9100, 9105],
|
|
83
|
-
types: (0, _util.objectSpread)({}, sharedTypes, (0, _xcm.mapXcmTypes)('V1'))
|
|
84
|
-
}, {
|
|
85
|
-
// metadata v14
|
|
86
|
-
minmax: [9106, undefined],
|
|
87
|
-
types: {}
|
|
88
|
-
}];
|
|
89
|
-
var _default = versioned;
|
|
90
|
-
exports.default = _default;
|
package/spec/westend.d.ts
DELETED