@polkadot/types-known 9.14.1 → 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.
Files changed (54) hide show
  1. package/bundle.js +2 -5
  2. package/chain/index.js +0 -4
  3. package/cjs/bundle.js +8 -34
  4. package/cjs/chain/index.js +2 -11
  5. package/cjs/detectOther.js +3 -10
  6. package/cjs/detectPackage.js +6 -11
  7. package/cjs/index.js +3 -15
  8. package/cjs/packageInfo.js +2 -16
  9. package/cjs/spec/centrifuge-chain.js +99 -93
  10. package/cjs/spec/index.js +23 -32
  11. package/cjs/spec/kusama.js +201 -195
  12. package/cjs/spec/node-template.js +12 -20
  13. package/cjs/spec/node.js +12 -20
  14. package/cjs/spec/polkadot.js +77 -82
  15. package/cjs/spec/rococo.js +52 -59
  16. package/cjs/spec/shell.js +10 -18
  17. package/cjs/spec/statemint.js +49 -50
  18. package/cjs/spec/westend.js +95 -96
  19. package/cjs/upgrades/e2e/index.js +11 -26
  20. package/cjs/upgrades/e2e/kusama.js +4176 -14
  21. package/cjs/upgrades/e2e/polkadot.js +2626 -14
  22. package/cjs/upgrades/e2e/westend.js +4014 -14
  23. package/cjs/upgrades/index.js +23 -40
  24. package/cjs/upgrades/manual/index.js +11 -26
  25. package/cjs/upgrades/manual/kusama.js +20 -13
  26. package/cjs/upgrades/manual/polkadot.js +13 -11
  27. package/cjs/upgrades/manual/westend.js +18 -11
  28. package/cjs/upgrades/types.js +2 -1
  29. package/cjs/util.js +55 -105
  30. package/detectOther.js +0 -3
  31. package/detectPackage.js +2 -7
  32. package/index.js +2 -5
  33. package/package.json +11 -8
  34. package/packageInfo.js +1 -11
  35. package/spec/centrifuge-chain.js +95 -84
  36. package/spec/index.js +20 -25
  37. package/spec/kusama.js +197 -187
  38. package/spec/node-template.js +10 -13
  39. package/spec/node.js +10 -13
  40. package/spec/polkadot.js +74 -75
  41. package/spec/rococo.js +48 -52
  42. package/spec/shell.js +8 -11
  43. package/spec/statemint.js +45 -42
  44. package/spec/westend.js +91 -88
  45. package/upgrades/e2e/index.js +3 -6
  46. package/upgrades/e2e/kusama.js +4174 -7
  47. package/upgrades/e2e/polkadot.js +2624 -7
  48. package/upgrades/e2e/westend.js +4012 -7
  49. package/upgrades/index.js +17 -25
  50. package/upgrades/manual/index.js +3 -6
  51. package/upgrades/manual/kusama.js +18 -6
  52. package/upgrades/manual/polkadot.js +11 -4
  53. package/upgrades/manual/westend.js +16 -4
  54. package/util.js +42 -77
@@ -1,203 +1,209 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _typesCreate = require("@polkadot/types-create");
8
- var _util = require("@polkadot/util");
9
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
10
- // SPDX-License-Identifier: Apache-2.0
11
-
12
- /* eslint-disable sort-keys */
13
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_create_1 = require("@polkadot/types-create");
4
+ const util_1 = require("@polkadot/util");
14
5
  const sharedTypes = {
15
- CompactAssignments: 'CompactAssignmentsWith24',
16
- DispatchErrorModule: 'DispatchErrorModuleU8',
17
- RawSolution: 'RawSolutionWith24',
18
- Keys: 'SessionKeys6',
19
- ProxyType: {
20
- _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
21
- },
22
- Weight: 'WeightV1'
6
+ CompactAssignments: 'CompactAssignmentsWith24',
7
+ DispatchErrorModule: 'DispatchErrorModuleU8',
8
+ RawSolution: 'RawSolutionWith24',
9
+ Keys: 'SessionKeys6',
10
+ ProxyType: {
11
+ _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
12
+ },
13
+ Weight: 'WeightV1'
23
14
  };
24
15
  const addrIndicesTypes = {
25
- AccountInfo: 'AccountInfoWithRefCount',
26
- Address: 'LookupSource',
27
- CompactAssignments: 'CompactAssignmentsWith16',
28
- DispatchErrorModule: 'DispatchErrorModuleU8',
29
- RawSolution: 'RawSolutionWith16',
30
- Keys: 'SessionKeys5',
31
- LookupSource: 'IndicesLookupSource',
32
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
16
+ AccountInfo: 'AccountInfoWithRefCount',
17
+ Address: 'LookupSource',
18
+ CompactAssignments: 'CompactAssignmentsWith16',
19
+ DispatchErrorModule: 'DispatchErrorModuleU8',
20
+ RawSolution: 'RawSolutionWith16',
21
+ Keys: 'SessionKeys5',
22
+ LookupSource: 'IndicesLookupSource',
23
+ ValidatorPrefs: 'ValidatorPrefsWithCommission'
33
24
  };
34
25
  const addrAccountIdTypes = {
35
- AccountInfo: 'AccountInfoWithRefCount',
36
- Address: 'AccountId',
37
- CompactAssignments: 'CompactAssignmentsWith16',
38
- DispatchErrorModule: 'DispatchErrorModuleU8',
39
- RawSolution: 'RawSolutionWith16',
40
- Keys: 'SessionKeys5',
41
- LookupSource: 'AccountId',
42
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
43
- };
44
- const versioned = [{
45
- // 1020 is first CC3
46
- minmax: [1019, 1031],
47
- types: (0, _util.objectSpread)({}, addrIndicesTypes, {
48
- BalanceLock: 'BalanceLockTo212',
49
- CompactAssignments: 'CompactAssignmentsTo257',
50
- DispatchError: 'DispatchErrorTo198',
51
- DispatchInfo: 'DispatchInfoTo244',
52
- Heartbeat: 'HeartbeatTo244',
53
- IdentityInfo: 'IdentityInfoTo198',
54
- Keys: 'SessionKeys5',
55
- Multiplier: 'Fixed64',
56
- OpenTip: 'OpenTipTo225',
57
- RefCount: 'RefCountTo259',
58
- ReferendumInfo: 'ReferendumInfoTo239',
59
- SlashingSpans: 'SlashingSpansTo204',
60
- StakingLedger: 'StakingLedgerTo223',
61
- Votes: 'VotesTo230',
62
- Weight: 'u32'
63
- })
64
- }, {
65
- minmax: [1032, 1042],
66
- types: (0, _util.objectSpread)({}, addrIndicesTypes, {
67
- BalanceLock: 'BalanceLockTo212',
68
- CompactAssignments: 'CompactAssignmentsTo257',
69
- DispatchInfo: 'DispatchInfoTo244',
70
- Heartbeat: 'HeartbeatTo244',
71
- Keys: 'SessionKeys5',
72
- Multiplier: 'Fixed64',
73
- OpenTip: 'OpenTipTo225',
74
- RefCount: 'RefCountTo259',
75
- ReferendumInfo: 'ReferendumInfoTo239',
76
- SlashingSpans: 'SlashingSpansTo204',
77
- StakingLedger: 'StakingLedgerTo223',
78
- Votes: 'VotesTo230',
79
- Weight: 'u32'
80
- })
81
- }, {
82
- // actual at 1045 (1043-1044 is dev)
83
- minmax: [1043, 1045],
84
- types: (0, _util.objectSpread)({}, addrIndicesTypes, {
85
- BalanceLock: 'BalanceLockTo212',
86
- CompactAssignments: 'CompactAssignmentsTo257',
87
- DispatchInfo: 'DispatchInfoTo244',
88
- Heartbeat: 'HeartbeatTo244',
89
- Keys: 'SessionKeys5',
90
- Multiplier: 'Fixed64',
91
- OpenTip: 'OpenTipTo225',
92
- RefCount: 'RefCountTo259',
93
- ReferendumInfo: 'ReferendumInfoTo239',
94
- StakingLedger: 'StakingLedgerTo223',
95
- Votes: 'VotesTo230',
96
- Weight: 'u32'
97
- })
98
- }, {
99
- minmax: [1046, 1049],
100
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
101
- CompactAssignments: 'CompactAssignmentsTo257',
102
- DispatchInfo: 'DispatchInfoTo244',
103
- Heartbeat: 'HeartbeatTo244',
104
- Multiplier: 'Fixed64',
105
- OpenTip: 'OpenTipTo225',
106
- RefCount: 'RefCountTo259',
107
- ReferendumInfo: 'ReferendumInfoTo239',
108
- StakingLedger: 'StakingLedgerTo223',
109
- Weight: 'u32'
110
- })
111
- }, {
112
- minmax: [1050, 1054],
113
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
114
- CompactAssignments: 'CompactAssignmentsTo257',
115
- DispatchInfo: 'DispatchInfoTo244',
116
- Heartbeat: 'HeartbeatTo244',
117
- Multiplier: 'Fixed64',
118
- OpenTip: 'OpenTipTo225',
119
- RefCount: 'RefCountTo259',
120
- ReferendumInfo: 'ReferendumInfoTo239',
121
- StakingLedger: 'StakingLedgerTo240',
122
- Weight: 'u32'
123
- })
124
- }, {
125
- minmax: [1055, 1056],
126
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
127
- CompactAssignments: 'CompactAssignmentsTo257',
128
- DispatchInfo: 'DispatchInfoTo244',
129
- Heartbeat: 'HeartbeatTo244',
130
- Multiplier: 'Fixed64',
131
- OpenTip: 'OpenTipTo225',
132
- RefCount: 'RefCountTo259',
133
- StakingLedger: 'StakingLedgerTo240',
134
- Weight: 'u32'
135
- })
136
- }, {
137
- minmax: [1057, 1061],
138
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
139
- CompactAssignments: 'CompactAssignmentsTo257',
140
- DispatchInfo: 'DispatchInfoTo244',
141
- Heartbeat: 'HeartbeatTo244',
142
- OpenTip: 'OpenTipTo225',
143
- RefCount: 'RefCountTo259'
144
- })
145
- }, {
146
- minmax: [1062, 2012],
147
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
148
- CompactAssignments: 'CompactAssignmentsTo257',
149
- OpenTip: 'OpenTipTo225',
150
- RefCount: 'RefCountTo259'
151
- })
152
- }, {
153
- minmax: [2013, 2022],
154
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
155
- CompactAssignments: 'CompactAssignmentsTo257',
156
- RefCount: 'RefCountTo259'
157
- })
158
- }, {
159
- minmax: [2023, 2024],
160
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
161
- RefCount: 'RefCountTo259'
162
- })
163
- }, {
164
- minmax: [2025, 2027],
165
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
166
- }, {
167
- minmax: [2028, 2029],
168
- types: (0, _util.objectSpread)({}, sharedTypes, {
169
- AccountInfo: 'AccountInfoWithDualRefCount',
170
- CompactAssignments: 'CompactAssignmentsWith16',
171
- RawSolution: 'RawSolutionWith16'
172
- })
173
- }, {
174
- minmax: [2030, 9000],
175
- types: (0, _util.objectSpread)({}, sharedTypes, {
26
+ AccountInfo: 'AccountInfoWithRefCount',
27
+ Address: 'AccountId',
176
28
  CompactAssignments: 'CompactAssignmentsWith16',
177
- RawSolution: 'RawSolutionWith16'
178
- })
179
- }, {
180
- minmax: [9010, 9099],
181
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V0'))
182
- }, {
183
- // jump from 9100 to 9110, however align with Rococo
184
- minmax: [9100, 9105],
185
- types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
186
- }, {
187
- // metadata v14
188
- minmax: [9106, undefined],
189
- types: {
190
- Weight: 'WeightV1'
191
- }
192
- }
193
- // ,
194
- // {
195
- // // weight v2 introduction
196
- // minmax: [9300, undefined],
197
- // types: {
198
- // Weight: 'WeightV2'
199
- // }
200
- // }
29
+ DispatchErrorModule: 'DispatchErrorModuleU8',
30
+ RawSolution: 'RawSolutionWith16',
31
+ Keys: 'SessionKeys5',
32
+ LookupSource: 'AccountId',
33
+ ValidatorPrefs: 'ValidatorPrefsWithCommission'
34
+ };
35
+ const versioned = [
36
+ {
37
+ // 1020 is first CC3
38
+ minmax: [1019, 1031],
39
+ types: (0, util_1.objectSpread)({}, addrIndicesTypes, {
40
+ BalanceLock: 'BalanceLockTo212',
41
+ CompactAssignments: 'CompactAssignmentsTo257',
42
+ DispatchError: 'DispatchErrorTo198',
43
+ DispatchInfo: 'DispatchInfoTo244',
44
+ Heartbeat: 'HeartbeatTo244',
45
+ IdentityInfo: 'IdentityInfoTo198',
46
+ Keys: 'SessionKeys5',
47
+ Multiplier: 'Fixed64',
48
+ OpenTip: 'OpenTipTo225',
49
+ RefCount: 'RefCountTo259',
50
+ ReferendumInfo: 'ReferendumInfoTo239',
51
+ SlashingSpans: 'SlashingSpansTo204',
52
+ StakingLedger: 'StakingLedgerTo223',
53
+ Votes: 'VotesTo230',
54
+ Weight: 'u32'
55
+ })
56
+ },
57
+ {
58
+ minmax: [1032, 1042],
59
+ types: (0, util_1.objectSpread)({}, addrIndicesTypes, {
60
+ BalanceLock: 'BalanceLockTo212',
61
+ CompactAssignments: 'CompactAssignmentsTo257',
62
+ DispatchInfo: 'DispatchInfoTo244',
63
+ Heartbeat: 'HeartbeatTo244',
64
+ Keys: 'SessionKeys5',
65
+ Multiplier: 'Fixed64',
66
+ OpenTip: 'OpenTipTo225',
67
+ RefCount: 'RefCountTo259',
68
+ ReferendumInfo: 'ReferendumInfoTo239',
69
+ SlashingSpans: 'SlashingSpansTo204',
70
+ StakingLedger: 'StakingLedgerTo223',
71
+ Votes: 'VotesTo230',
72
+ Weight: 'u32'
73
+ })
74
+ },
75
+ {
76
+ // actual at 1045 (1043-1044 is dev)
77
+ minmax: [1043, 1045],
78
+ types: (0, util_1.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
+ {
94
+ minmax: [1046, 1049],
95
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
96
+ CompactAssignments: 'CompactAssignmentsTo257',
97
+ DispatchInfo: 'DispatchInfoTo244',
98
+ Heartbeat: 'HeartbeatTo244',
99
+ Multiplier: 'Fixed64',
100
+ OpenTip: 'OpenTipTo225',
101
+ RefCount: 'RefCountTo259',
102
+ ReferendumInfo: 'ReferendumInfoTo239',
103
+ StakingLedger: 'StakingLedgerTo223',
104
+ Weight: 'u32'
105
+ })
106
+ },
107
+ {
108
+ minmax: [1050, 1054],
109
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
110
+ CompactAssignments: 'CompactAssignmentsTo257',
111
+ DispatchInfo: 'DispatchInfoTo244',
112
+ Heartbeat: 'HeartbeatTo244',
113
+ Multiplier: 'Fixed64',
114
+ OpenTip: 'OpenTipTo225',
115
+ RefCount: 'RefCountTo259',
116
+ ReferendumInfo: 'ReferendumInfoTo239',
117
+ StakingLedger: 'StakingLedgerTo240',
118
+ Weight: 'u32'
119
+ })
120
+ },
121
+ {
122
+ minmax: [1055, 1056],
123
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
124
+ CompactAssignments: 'CompactAssignmentsTo257',
125
+ DispatchInfo: 'DispatchInfoTo244',
126
+ Heartbeat: 'HeartbeatTo244',
127
+ Multiplier: 'Fixed64',
128
+ OpenTip: 'OpenTipTo225',
129
+ RefCount: 'RefCountTo259',
130
+ StakingLedger: 'StakingLedgerTo240',
131
+ Weight: 'u32'
132
+ })
133
+ },
134
+ {
135
+ minmax: [1057, 1061],
136
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
137
+ CompactAssignments: 'CompactAssignmentsTo257',
138
+ DispatchInfo: 'DispatchInfoTo244',
139
+ Heartbeat: 'HeartbeatTo244',
140
+ OpenTip: 'OpenTipTo225',
141
+ RefCount: 'RefCountTo259'
142
+ })
143
+ },
144
+ {
145
+ minmax: [1062, 2012],
146
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
147
+ CompactAssignments: 'CompactAssignmentsTo257',
148
+ OpenTip: 'OpenTipTo225',
149
+ RefCount: 'RefCountTo259'
150
+ })
151
+ },
152
+ {
153
+ minmax: [2013, 2022],
154
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
155
+ CompactAssignments: 'CompactAssignmentsTo257',
156
+ RefCount: 'RefCountTo259'
157
+ })
158
+ },
159
+ {
160
+ minmax: [2023, 2024],
161
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
162
+ RefCount: 'RefCountTo259'
163
+ })
164
+ },
165
+ {
166
+ minmax: [2025, 2027],
167
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes)
168
+ },
169
+ {
170
+ minmax: [2028, 2029],
171
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
172
+ AccountInfo: 'AccountInfoWithDualRefCount',
173
+ CompactAssignments: 'CompactAssignmentsWith16',
174
+ RawSolution: 'RawSolutionWith16'
175
+ })
176
+ },
177
+ {
178
+ minmax: [2030, 9000],
179
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
180
+ CompactAssignments: 'CompactAssignmentsWith16',
181
+ RawSolution: 'RawSolutionWith16'
182
+ })
183
+ },
184
+ {
185
+ minmax: [9010, 9099],
186
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V0'))
187
+ },
188
+ {
189
+ // jump from 9100 to 9110, however align with Rococo
190
+ minmax: [9100, 9105],
191
+ types: (0, util_1.objectSpread)({}, sharedTypes, (0, types_create_1.mapXcmTypes)('V1'))
192
+ },
193
+ {
194
+ // metadata v14
195
+ minmax: [9106, undefined],
196
+ types: {
197
+ Weight: 'WeightV1'
198
+ }
199
+ }
200
+ // ,
201
+ // {
202
+ // // weight v2 introduction
203
+ // minmax: [9300, undefined],
204
+ // types: {
205
+ // Weight: 'WeightV2'
206
+ // }
207
+ // }
201
208
  ];
202
- var _default = versioned;
203
- exports.default = _default;
209
+ exports.default = versioned;
@@ -1,21 +1,13 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
8
- // SPDX-License-Identifier: Apache-2.0
9
-
10
- /* eslint-disable sort-keys */
11
-
12
- const versioned = [{
13
- minmax: [0, undefined],
14
- types: {
15
- // nothing, API tracks master
16
- // (v2 weights are not yet the default)
17
- Weight: 'WeightV2'
18
- }
19
- }];
20
- var _default = versioned;
21
- exports.default = _default;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const versioned = [
4
+ {
5
+ minmax: [0, undefined],
6
+ types: {
7
+ // nothing, API tracks master
8
+ // (v2 weights are not yet the default)
9
+ Weight: 'WeightV2'
10
+ }
11
+ }
12
+ ];
13
+ exports.default = versioned;
package/cjs/spec/node.js CHANGED
@@ -1,21 +1,13 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
8
- // SPDX-License-Identifier: Apache-2.0
9
-
10
- /* eslint-disable sort-keys */
11
-
12
- const versioned = [{
13
- minmax: [0, undefined],
14
- types: {
15
- // nothing, API tracks master
16
- // (v2 weights are not yet the default)
17
- Weight: 'WeightV2'
18
- }
19
- }];
20
- var _default = versioned;
21
- exports.default = _default;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const versioned = [
4
+ {
5
+ minmax: [0, undefined],
6
+ types: {
7
+ // nothing, API tracks master
8
+ // (v2 weights are not yet the default)
9
+ Weight: 'WeightV2'
10
+ }
11
+ }
12
+ ];
13
+ exports.default = versioned;
@@ -1,88 +1,83 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _util = require("@polkadot/util");
8
- // Copyright 2017-2023 @polkadot/types-known authors & contributors
9
- // SPDX-License-Identifier: Apache-2.0
10
-
11
- /* eslint-disable sort-keys */
12
-
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const util_1 = require("@polkadot/util");
13
4
  const sharedTypes = {
14
- CompactAssignments: 'CompactAssignmentsWith16',
15
- DispatchErrorModule: 'DispatchErrorModuleU8',
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
- Weight: 'WeightV1'
5
+ CompactAssignments: 'CompactAssignmentsWith16',
6
+ DispatchErrorModule: 'DispatchErrorModuleU8',
7
+ RawSolution: 'RawSolutionWith16',
8
+ Keys: 'SessionKeys6',
9
+ ProxyType: {
10
+ _enum: {
11
+ Any: 0,
12
+ NonTransfer: 1,
13
+ Governance: 2,
14
+ Staking: 3,
15
+ UnusedSudoBalances: 4,
16
+ IdentityJudgement: 5,
17
+ CancelProxy: 6,
18
+ Auction: 7
19
+ }
20
+ },
21
+ Weight: 'WeightV1'
31
22
  };
32
23
  const addrAccountIdTypes = {
33
- AccountInfo: 'AccountInfoWithRefCount',
34
- Address: 'AccountId',
35
- DispatchErrorModule: 'DispatchErrorModuleU8',
36
- Keys: 'SessionKeys5',
37
- LookupSource: 'AccountId',
38
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
24
+ AccountInfo: 'AccountInfoWithRefCount',
25
+ Address: 'AccountId',
26
+ DispatchErrorModule: 'DispatchErrorModuleU8',
27
+ Keys: 'SessionKeys5',
28
+ LookupSource: 'AccountId',
29
+ ValidatorPrefs: 'ValidatorPrefsWithCommission'
39
30
  };
40
-
41
- // these are override types for Polkadot
42
- const versioned = [{
43
- minmax: [0, 12],
44
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
45
- CompactAssignments: 'CompactAssignmentsTo257',
46
- OpenTip: 'OpenTipTo225',
47
- RefCount: 'RefCountTo259'
48
- })
49
- }, {
50
- minmax: [13, 22],
51
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
52
- CompactAssignments: 'CompactAssignmentsTo257',
53
- RefCount: 'RefCountTo259'
54
- })
55
- }, {
56
- minmax: [23, 24],
57
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
58
- RefCount: 'RefCountTo259'
59
- })
60
- }, {
61
- minmax: [25, 27],
62
- types: (0, _util.objectSpread)({}, sharedTypes, addrAccountIdTypes)
63
- }, {
64
- minmax: [28, 29],
65
- types: (0, _util.objectSpread)({}, sharedTypes, {
66
- AccountInfo: 'AccountInfoWithDualRefCount'
67
- })
68
- }, {
69
- minmax: [30, 9109],
70
- types: (0, _util.objectSpread)({}, sharedTypes)
71
- }, {
72
- // metadata v14
73
- minmax: [9110, undefined],
74
- types: {
75
- Weight: 'WeightV1'
76
- }
77
- }
78
- // ,
79
- // {
80
- // // weight v2 introduction
81
- // minmax: [9300, undefined],
82
- // types: {
83
- // Weight: 'WeightV2'
84
- // }
85
- // }
31
+ const versioned = [
32
+ {
33
+ minmax: [0, 12],
34
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
35
+ CompactAssignments: 'CompactAssignmentsTo257',
36
+ OpenTip: 'OpenTipTo225',
37
+ RefCount: 'RefCountTo259'
38
+ })
39
+ },
40
+ {
41
+ minmax: [13, 22],
42
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
43
+ CompactAssignments: 'CompactAssignmentsTo257',
44
+ RefCount: 'RefCountTo259'
45
+ })
46
+ },
47
+ {
48
+ minmax: [23, 24],
49
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes, {
50
+ RefCount: 'RefCountTo259'
51
+ })
52
+ },
53
+ {
54
+ minmax: [25, 27],
55
+ types: (0, util_1.objectSpread)({}, sharedTypes, addrAccountIdTypes)
56
+ },
57
+ {
58
+ minmax: [28, 29],
59
+ types: (0, util_1.objectSpread)({}, sharedTypes, {
60
+ AccountInfo: 'AccountInfoWithDualRefCount'
61
+ })
62
+ },
63
+ {
64
+ minmax: [30, 9109],
65
+ types: (0, util_1.objectSpread)({}, sharedTypes)
66
+ },
67
+ {
68
+ // metadata v14
69
+ minmax: [9110, undefined],
70
+ types: {
71
+ Weight: 'WeightV1'
72
+ }
73
+ }
74
+ // ,
75
+ // {
76
+ // // weight v2 introduction
77
+ // minmax: [9300, undefined],
78
+ // types: {
79
+ // Weight: 'WeightV2'
80
+ // }
81
+ // }
86
82
  ];
87
- var _default = versioned;
88
- exports.default = _default;
83
+ exports.default = versioned;