@polkadot/types-known 6.12.2-6 → 7.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 (57) hide show
  1. package/bundle.cjs +22 -34
  2. package/bundle.d.ts +2 -1
  3. package/bundle.js +3 -2
  4. package/chain/index.cjs +12 -0
  5. package/chain/index.d.ts +3 -0
  6. package/chain/index.js +5 -0
  7. package/package.json +92 -5
  8. package/packageInfo.cjs +1 -1
  9. package/packageInfo.js +1 -1
  10. package/spec/centrifuge-chain.cjs +98 -0
  11. package/spec/centrifuge-chain.d.ts +3 -0
  12. package/spec/centrifuge-chain.js +89 -0
  13. package/spec/index.cjs +45 -0
  14. package/spec/index.d.ts +3 -0
  15. package/spec/index.js +26 -0
  16. package/spec/kusama.cjs +177 -0
  17. package/spec/kusama.d.ts +3 -0
  18. package/spec/kusama.js +167 -0
  19. package/spec/node-template.cjs +17 -0
  20. package/spec/node-template.d.ts +3 -0
  21. package/spec/node-template.js +10 -0
  22. package/spec/node.cjs +17 -0
  23. package/spec/node.d.ts +3 -0
  24. package/spec/node.js +10 -0
  25. package/spec/polkadot.cjs +74 -0
  26. package/spec/polkadot.d.ts +3 -0
  27. package/spec/polkadot.js +65 -0
  28. package/spec/rococo.cjs +53 -0
  29. package/spec/rococo.d.ts +3 -0
  30. package/spec/rococo.js +43 -0
  31. package/spec/shell.cjs +17 -0
  32. package/spec/shell.d.ts +3 -0
  33. package/spec/shell.js +10 -0
  34. package/spec/statemint.cjs +35 -0
  35. package/spec/statemint.d.ts +3 -0
  36. package/spec/statemint.js +25 -0
  37. package/spec/westend.cjs +90 -0
  38. package/spec/westend.d.ts +3 -0
  39. package/spec/westend.js +80 -0
  40. package/upgrades/index.cjs +66 -0
  41. package/upgrades/index.d.ts +3 -0
  42. package/upgrades/index.js +47 -0
  43. package/upgrades/kusama.cjs +11 -0
  44. package/upgrades/kusama.d.ts +3 -0
  45. package/upgrades/kusama.js +4 -0
  46. package/upgrades/polkadot.cjs +11 -0
  47. package/upgrades/polkadot.d.ts +3 -0
  48. package/upgrades/polkadot.js +4 -0
  49. package/upgrades/types.cjs +1 -0
  50. package/upgrades/types.d.ts +1 -0
  51. package/upgrades/types.js +1 -0
  52. package/upgrades/westend.cjs +11 -0
  53. package/upgrades/westend.d.ts +3 -0
  54. package/upgrades/westend.js +4 -0
  55. package/util.cjs +139 -0
  56. package/util.d.ts +27 -0
  57. package/util.js +102 -0
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _typesCreate = require("@polkadot/types-create");
9
+
10
+ var _util = require("@polkadot/util");
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, _typesCreate.mapXcmTypes)('V0'))
167
+ }, {
168
+ // jump from 9100 to 9110, however align with Rococo
169
+ minmax: [9100, 9105],
170
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
171
+ }, {
172
+ // metadata v14
173
+ minmax: [9106, undefined],
174
+ types: {}
175
+ }];
176
+ var _default = versioned;
177
+ exports.default = _default;
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;
package/spec/kusama.js ADDED
@@ -0,0 +1,167 @@
1
+ // Copyright 2017-2021 @polkadot/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ /* eslint-disable sort-keys */
5
+ import { mapXcmTypes } from '@polkadot/types-create';
6
+ import { objectSpread } from '@polkadot/util';
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;
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;
@@ -0,0 +1,10 @@
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 ADDED
@@ -0,0 +1,17 @@
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 ADDED
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;
package/spec/node.js ADDED
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,74 @@
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;
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;
@@ -0,0 +1,65 @@
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;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _typesCreate = require("@polkadot/types-create");
9
+
10
+ var _util = require("@polkadot/util");
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, _typesCreate.mapXcmTypes)('V0'))
44
+ }, {
45
+ minmax: [9100, 9105],
46
+ types: (0, _util.objectSpread)({}, sharedTypes, (0, _typesCreate.mapXcmTypes)('V1'))
47
+ }, {
48
+ // metadata v14
49
+ minmax: [9106, undefined],
50
+ types: {}
51
+ }];
52
+ var _default = versioned;
53
+ exports.default = _default;
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;
package/spec/rococo.js ADDED
@@ -0,0 +1,43 @@
1
+ // Copyright 2017-2021 @polkadot/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ /* eslint-disable sort-keys */
5
+ import { mapXcmTypes } from '@polkadot/types-create';
6
+ import { objectSpread } from '@polkadot/util'; // 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 ADDED
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,3 @@
1
+ import type { OverrideVersionedType } from '@polkadot/types/types';
2
+ declare const versioned: OverrideVersionedType[];
3
+ export default versioned;