@pezkuwi/types-known 16.5.5 → 16.5.6

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 (150) hide show
  1. package/LICENSE +201 -0
  2. package/bundle.js +3 -0
  3. package/chain/index.js +1 -0
  4. package/cjs/bundle.d.ts +3 -0
  5. package/cjs/bundle.js +9 -0
  6. package/cjs/chain/index.d.ts +2 -0
  7. package/cjs/chain/index.js +4 -0
  8. package/cjs/index.js +5 -0
  9. package/cjs/package.json +3 -0
  10. package/cjs/packageDetect.js +6 -0
  11. package/cjs/packageInfo.js +4 -0
  12. package/cjs/spec/centrifuge-chain.js +105 -0
  13. package/cjs/spec/dicle.js +118 -0
  14. package/cjs/spec/index.js +27 -0
  15. package/cjs/spec/node-template.js +13 -0
  16. package/cjs/spec/node.js +13 -0
  17. package/cjs/spec/pezkuwi.js +105 -0
  18. package/cjs/spec/pezkuwichain.js +65 -0
  19. package/cjs/spec/shell.js +11 -0
  20. package/cjs/spec/statemine.js +55 -0
  21. package/cjs/spec/statemint.js +67 -0
  22. package/cjs/spec/westmint.js +55 -0
  23. package/cjs/spec/zagros.js +118 -0
  24. package/cjs/upgrades/e2e/dicle.js +6429 -0
  25. package/cjs/upgrades/e2e/index.d.ts +3 -0
  26. package/cjs/upgrades/e2e/index.js +9 -0
  27. package/cjs/upgrades/e2e/pezkuwi.js +3707 -0
  28. package/cjs/upgrades/e2e/zagros.js +6429 -0
  29. package/cjs/upgrades/index.js +29 -0
  30. package/cjs/upgrades/manual/dicle.js +25 -0
  31. package/cjs/upgrades/manual/index.d.ts +3 -0
  32. package/cjs/upgrades/manual/index.js +9 -0
  33. package/cjs/upgrades/manual/pezkuwi.js +17 -0
  34. package/cjs/upgrades/manual/zagros.js +25 -0
  35. package/cjs/upgrades/types.js +2 -0
  36. package/cjs/util.js +112 -0
  37. package/index.d.ts +2 -0
  38. package/index.js +2 -0
  39. package/package.json +424 -11
  40. package/packageDetect.d.ts +1 -0
  41. package/packageDetect.js +4 -0
  42. package/packageInfo.d.ts +6 -0
  43. package/packageInfo.js +1 -0
  44. package/spec/centrifuge-chain.d.ts +2 -0
  45. package/spec/centrifuge-chain.js +102 -0
  46. package/spec/dicle.d.ts +2 -0
  47. package/spec/dicle.js +115 -0
  48. package/spec/index.d.ts +2 -0
  49. package/spec/index.js +24 -0
  50. package/spec/node-template.d.ts +2 -0
  51. package/spec/node-template.js +10 -0
  52. package/spec/node.d.ts +2 -0
  53. package/spec/node.js +10 -0
  54. package/spec/pezkuwi.d.ts +2 -0
  55. package/spec/pezkuwi.js +102 -0
  56. package/spec/pezkuwichain.d.ts +2 -0
  57. package/spec/pezkuwichain.js +62 -0
  58. package/spec/shell.d.ts +2 -0
  59. package/spec/shell.js +8 -0
  60. package/spec/statemine.d.ts +2 -0
  61. package/spec/statemine.js +52 -0
  62. package/spec/statemint.d.ts +2 -0
  63. package/spec/statemint.js +64 -0
  64. package/spec/westmint.d.ts +2 -0
  65. package/spec/westmint.js +52 -0
  66. package/spec/zagros.d.ts +2 -0
  67. package/spec/zagros.js +115 -0
  68. package/upgrades/e2e/dicle.d.ts +2 -0
  69. package/upgrades/e2e/dicle.js +6426 -0
  70. package/upgrades/e2e/index.d.ts +3 -0
  71. package/upgrades/e2e/index.js +3 -0
  72. package/upgrades/e2e/pezkuwi.d.ts +2 -0
  73. package/upgrades/e2e/pezkuwi.js +3704 -0
  74. package/upgrades/e2e/zagros.d.ts +2 -0
  75. package/upgrades/e2e/zagros.js +6426 -0
  76. package/upgrades/index.d.ts +2 -0
  77. package/upgrades/index.js +25 -0
  78. package/upgrades/manual/dicle.d.ts +2 -0
  79. package/upgrades/manual/dicle.js +22 -0
  80. package/upgrades/manual/index.d.ts +3 -0
  81. package/upgrades/manual/index.js +3 -0
  82. package/upgrades/manual/pezkuwi.d.ts +2 -0
  83. package/upgrades/manual/pezkuwi.js +14 -0
  84. package/upgrades/manual/zagros.d.ts +2 -0
  85. package/upgrades/manual/zagros.js +22 -0
  86. package/{src/upgrades/types.ts → upgrades/types.d.ts} +0 -5
  87. package/upgrades/types.js +1 -0
  88. package/util.d.ts +33 -0
  89. package/util.js +103 -0
  90. package/build/upgrades/e2e/index.d.ts +0 -3
  91. package/build/upgrades/manual/index.d.ts +0 -3
  92. package/src/bundle.ts +0 -11
  93. package/src/chain/index.ts +0 -7
  94. package/src/index.ts +0 -6
  95. package/src/mod.ts +0 -4
  96. package/src/packageDetect.ts +0 -12
  97. package/src/packageInfo.ts +0 -6
  98. package/src/spec/centrifuge-chain.ts +0 -116
  99. package/src/spec/index.ts +0 -31
  100. package/src/spec/kusama.ts +0 -258
  101. package/src/spec/node-template.ts +0 -17
  102. package/src/spec/node.ts +0 -17
  103. package/src/spec/polkadot.ts +0 -112
  104. package/src/spec/rococo.ts +0 -73
  105. package/src/spec/shell.ts +0 -15
  106. package/src/spec/statemine.ts +0 -62
  107. package/src/spec/statemint.ts +0 -74
  108. package/src/spec/westend.ts +0 -125
  109. package/src/spec/westmint.ts +0 -62
  110. package/src/upgrades/e2e/index.spec.ts +0 -67
  111. package/src/upgrades/e2e/index.ts +0 -6
  112. package/src/upgrades/e2e/kusama.ts +0 -5372
  113. package/src/upgrades/e2e/polkadot.ts +0 -3712
  114. package/src/upgrades/e2e/westend.ts +0 -6434
  115. package/src/upgrades/index.spec.ts +0 -118
  116. package/src/upgrades/index.ts +0 -40
  117. package/src/upgrades/manual/index.ts +0 -6
  118. package/src/upgrades/manual/kusama.ts +0 -26
  119. package/src/upgrades/manual/polkadot.ts +0 -19
  120. package/src/upgrades/manual/westend.ts +0 -27
  121. package/src/util.ts +0 -128
  122. package/tsconfig.build.json +0 -17
  123. package/tsconfig.build.tsbuildinfo +0 -1
  124. package/tsconfig.spec.json +0 -19
  125. /package/{build/bundle.d.ts → bundle.d.ts} +0 -0
  126. /package/{build/chain → chain}/index.d.ts +0 -0
  127. /package/{build → cjs}/index.d.ts +0 -0
  128. /package/{build → cjs}/packageDetect.d.ts +0 -0
  129. /package/{build → cjs}/packageInfo.d.ts +0 -0
  130. /package/{build → cjs}/spec/centrifuge-chain.d.ts +0 -0
  131. /package/{build/spec/kusama.d.ts → cjs/spec/dicle.d.ts} +0 -0
  132. /package/{build → cjs}/spec/index.d.ts +0 -0
  133. /package/{build → cjs}/spec/node-template.d.ts +0 -0
  134. /package/{build → cjs}/spec/node.d.ts +0 -0
  135. /package/{build/spec/polkadot.d.ts → cjs/spec/pezkuwi.d.ts} +0 -0
  136. /package/{build/spec/rococo.d.ts → cjs/spec/pezkuwichain.d.ts} +0 -0
  137. /package/{build → cjs}/spec/shell.d.ts +0 -0
  138. /package/{build → cjs}/spec/statemine.d.ts +0 -0
  139. /package/{build → cjs}/spec/statemint.d.ts +0 -0
  140. /package/{build → cjs}/spec/westmint.d.ts +0 -0
  141. /package/{build/spec/westend.d.ts → cjs/spec/zagros.d.ts} +0 -0
  142. /package/{build/upgrades/e2e/kusama.d.ts → cjs/upgrades/e2e/dicle.d.ts} +0 -0
  143. /package/{build/upgrades/e2e/polkadot.d.ts → cjs/upgrades/e2e/pezkuwi.d.ts} +0 -0
  144. /package/{build/upgrades/e2e/westend.d.ts → cjs/upgrades/e2e/zagros.d.ts} +0 -0
  145. /package/{build → cjs}/upgrades/index.d.ts +0 -0
  146. /package/{build/upgrades/manual/kusama.d.ts → cjs/upgrades/manual/dicle.d.ts} +0 -0
  147. /package/{build/upgrades/manual/polkadot.d.ts → cjs/upgrades/manual/pezkuwi.d.ts} +0 -0
  148. /package/{build/upgrades/manual/westend.d.ts → cjs/upgrades/manual/zagros.d.ts} +0 -0
  149. /package/{build → cjs}/upgrades/types.d.ts +0 -0
  150. /package/{build → cjs}/util.d.ts +0 -0
@@ -1,258 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- import { mapXcmTypes } from '@pezkuwi/types-create';
9
-
10
- const sharedTypes = {
11
- CompactAssignments: 'CompactAssignmentsWith24',
12
- DispatchErrorModule: 'DispatchErrorModuleU8',
13
- RawSolution: 'RawSolutionWith24',
14
- Keys: 'SessionKeys6',
15
- ProxyType: {
16
- _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
17
- },
18
- Weight: 'WeightV1'
19
- };
20
-
21
- const addrIndicesTypes = {
22
- AccountInfo: 'AccountInfoWithRefCount',
23
- Address: 'LookupSource',
24
- CompactAssignments: 'CompactAssignmentsWith16',
25
- DispatchErrorModule: 'DispatchErrorModuleU8',
26
- RawSolution: 'RawSolutionWith16',
27
- Keys: 'SessionKeys5',
28
- LookupSource: 'IndicesLookupSource',
29
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
30
- };
31
-
32
- const addrAccountIdTypes = {
33
- AccountInfo: 'AccountInfoWithRefCount',
34
- Address: 'AccountId',
35
- CompactAssignments: 'CompactAssignmentsWith16',
36
- DispatchErrorModule: 'DispatchErrorModuleU8',
37
- RawSolution: 'RawSolutionWith16',
38
- Keys: 'SessionKeys5',
39
- LookupSource: 'AccountId',
40
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
41
- };
42
-
43
- export const versioned: OverrideVersionedType[] = [
44
- {
45
- // 1020 is first CC3
46
- minmax: [1019, 1031],
47
- types: {
48
- ...addrIndicesTypes,
49
- BalanceLock: 'BalanceLockTo212',
50
- CompactAssignments: 'CompactAssignmentsTo257',
51
- DispatchError: 'DispatchErrorTo198',
52
- DispatchInfo: 'DispatchInfoTo244',
53
- Heartbeat: 'HeartbeatTo244',
54
- IdentityInfo: 'IdentityInfoTo198',
55
- Keys: 'SessionKeys5',
56
- Multiplier: 'Fixed64',
57
- OpenTip: 'OpenTipTo225',
58
- RefCount: 'RefCountTo259',
59
- ReferendumInfo: 'ReferendumInfoTo239',
60
- Scheduled: 'ScheduledTo254',
61
- SlashingSpans: 'SlashingSpansTo204',
62
- StakingLedger: 'StakingLedgerTo223',
63
- Votes: 'VotesTo230',
64
- Weight: 'u32'
65
- }
66
- },
67
- {
68
- minmax: [1032, 1042],
69
- types: {
70
- ...addrIndicesTypes,
71
- BalanceLock: 'BalanceLockTo212',
72
- CompactAssignments: 'CompactAssignmentsTo257',
73
- DispatchInfo: 'DispatchInfoTo244',
74
- Heartbeat: 'HeartbeatTo244',
75
- Keys: 'SessionKeys5',
76
- Multiplier: 'Fixed64',
77
- OpenTip: 'OpenTipTo225',
78
- RefCount: 'RefCountTo259',
79
- ReferendumInfo: 'ReferendumInfoTo239',
80
- Scheduled: 'ScheduledTo254',
81
- SlashingSpans: 'SlashingSpansTo204',
82
- StakingLedger: 'StakingLedgerTo223',
83
- Votes: 'VotesTo230',
84
- Weight: 'u32'
85
- }
86
- },
87
- {
88
- // actual at 1045 (1043-1044 is dev)
89
- minmax: [1043, 1045],
90
- types: {
91
- ...addrIndicesTypes,
92
- BalanceLock: 'BalanceLockTo212',
93
- CompactAssignments: 'CompactAssignmentsTo257',
94
- DispatchInfo: 'DispatchInfoTo244',
95
- Heartbeat: 'HeartbeatTo244',
96
- Keys: 'SessionKeys5',
97
- Multiplier: 'Fixed64',
98
- OpenTip: 'OpenTipTo225',
99
- RefCount: 'RefCountTo259',
100
- ReferendumInfo: 'ReferendumInfoTo239',
101
- Scheduled: 'ScheduledTo254',
102
- StakingLedger: 'StakingLedgerTo223',
103
- Votes: 'VotesTo230',
104
- Weight: 'u32'
105
- }
106
- },
107
- {
108
- minmax: [1046, 1049],
109
- types: {
110
- ...sharedTypes,
111
- ...addrAccountIdTypes,
112
- CompactAssignments: 'CompactAssignmentsTo257',
113
- DispatchInfo: 'DispatchInfoTo244',
114
- Heartbeat: 'HeartbeatTo244',
115
- Multiplier: 'Fixed64',
116
- OpenTip: 'OpenTipTo225',
117
- RefCount: 'RefCountTo259',
118
- ReferendumInfo: 'ReferendumInfoTo239',
119
- Scheduled: 'ScheduledTo254',
120
- StakingLedger: 'StakingLedgerTo223',
121
- Weight: 'u32'
122
- }
123
- },
124
- {
125
- minmax: [1050, 1054],
126
- types: {
127
- ...sharedTypes,
128
- ...addrAccountIdTypes,
129
- CompactAssignments: 'CompactAssignmentsTo257',
130
- DispatchInfo: 'DispatchInfoTo244',
131
- Heartbeat: 'HeartbeatTo244',
132
- Multiplier: 'Fixed64',
133
- OpenTip: 'OpenTipTo225',
134
- RefCount: 'RefCountTo259',
135
- ReferendumInfo: 'ReferendumInfoTo239',
136
- Scheduled: 'ScheduledTo254',
137
- StakingLedger: 'StakingLedgerTo240',
138
- Weight: 'u32'
139
- }
140
- },
141
- {
142
- minmax: [1055, 1056],
143
- types: {
144
- ...sharedTypes,
145
- ...addrAccountIdTypes,
146
- CompactAssignments: 'CompactAssignmentsTo257',
147
- DispatchInfo: 'DispatchInfoTo244',
148
- Heartbeat: 'HeartbeatTo244',
149
- Multiplier: 'Fixed64',
150
- OpenTip: 'OpenTipTo225',
151
- RefCount: 'RefCountTo259',
152
- Scheduled: 'ScheduledTo254',
153
- StakingLedger: 'StakingLedgerTo240',
154
- Weight: 'u32'
155
- }
156
- },
157
- {
158
- minmax: [1057, 1061],
159
- types: {
160
- ...sharedTypes,
161
- ...addrAccountIdTypes,
162
- CompactAssignments: 'CompactAssignmentsTo257',
163
- DispatchInfo: 'DispatchInfoTo244',
164
- Heartbeat: 'HeartbeatTo244',
165
- OpenTip: 'OpenTipTo225',
166
- RefCount: 'RefCountTo259',
167
- // Last 100% known problematic runtime range - this quite possibly need to
168
- // apply to more runtime ranges that follow, we just don't know how far this
169
- // should be applied to
170
- //
171
- // TL;DR whack-a-mole since this was not histrically checked
172
- //
173
- // See https://github.com/polkadot-js/api/issues/5618#issuecomment-1530970316
174
- Scheduled: 'ScheduledTo254'
175
- }
176
- },
177
- {
178
- minmax: [1062, 2012],
179
- types: {
180
- ...sharedTypes,
181
- ...addrAccountIdTypes,
182
- CompactAssignments: 'CompactAssignmentsTo257',
183
- OpenTip: 'OpenTipTo225',
184
- RefCount: 'RefCountTo259'
185
- }
186
- },
187
- {
188
- minmax: [2013, 2022],
189
- types: {
190
- ...sharedTypes,
191
- ...addrAccountIdTypes,
192
- CompactAssignments: 'CompactAssignmentsTo257',
193
- RefCount: 'RefCountTo259'
194
- }
195
- },
196
- {
197
- minmax: [2023, 2024],
198
- types: {
199
- ...sharedTypes,
200
- ...addrAccountIdTypes,
201
- RefCount: 'RefCountTo259'
202
- }
203
- },
204
- {
205
- minmax: [2025, 2027],
206
- types: {
207
- ...sharedTypes,
208
- ...addrAccountIdTypes
209
- }
210
- },
211
- {
212
- minmax: [2028, 2029],
213
- types: {
214
- ...sharedTypes,
215
- AccountInfo: 'AccountInfoWithDualRefCount',
216
- CompactAssignments: 'CompactAssignmentsWith16',
217
- RawSolution: 'RawSolutionWith16'
218
- }
219
- },
220
- {
221
- minmax: [2030, 9000],
222
- types: {
223
- ...sharedTypes,
224
- CompactAssignments: 'CompactAssignmentsWith16',
225
- RawSolution: 'RawSolutionWith16'
226
- }
227
- },
228
- {
229
- minmax: [9010, 9099],
230
- types: {
231
- ...sharedTypes,
232
- ...mapXcmTypes('V0')
233
- }
234
- },
235
- {
236
- // jump from 9100 to 9110, however align with Rococo
237
- minmax: [9100, 9105],
238
- types: {
239
- ...sharedTypes,
240
- ...mapXcmTypes('V1')
241
- }
242
- },
243
- {
244
- // metadata v14
245
- minmax: [9106, undefined],
246
- types: {
247
- Weight: 'WeightV1'
248
- }
249
- }
250
- // ,
251
- // {
252
- // // weight v2 introduction
253
- // minmax: [9300, undefined],
254
- // types: {
255
- // Weight: 'WeightV2'
256
- // }
257
- // }
258
- ];
@@ -1,17 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- export const versioned: OverrideVersionedType[] = [
9
- {
10
- minmax: [0, undefined],
11
- types: {
12
- // nothing, API tracks master
13
- // (v2 weights are not yet the default)
14
- Weight: 'WeightV2'
15
- }
16
- }
17
- ];
package/src/spec/node.ts DELETED
@@ -1,17 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- export const versioned: OverrideVersionedType[] = [
9
- {
10
- minmax: [0, undefined],
11
- types: {
12
- // nothing, API tracks master
13
- // (v2 weights are not yet the default)
14
- Weight: 'WeightV2'
15
- }
16
- }
17
- ];
@@ -1,112 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- const sharedTypes = {
9
- CompactAssignments: 'CompactAssignmentsWith16',
10
- DispatchErrorModule: 'DispatchErrorModuleU8',
11
- RawSolution: 'RawSolutionWith16',
12
- Keys: 'SessionKeys6',
13
- ProxyType: {
14
- _enum: {
15
- Any: 0,
16
- NonTransfer: 1,
17
- Governance: 2,
18
- Staking: 3,
19
- UnusedSudoBalances: 4,
20
- IdentityJudgement: 5,
21
- CancelProxy: 6,
22
- Auction: 7
23
- }
24
- },
25
- Weight: 'WeightV1'
26
- };
27
-
28
- const addrAccountIdTypes = {
29
- AccountInfo: 'AccountInfoWithRefCount',
30
- Address: 'AccountId',
31
- DispatchErrorModule: 'DispatchErrorModuleU8',
32
- Keys: 'SessionKeys5',
33
- LookupSource: 'AccountId',
34
- ValidatorPrefs: 'ValidatorPrefsWithCommission'
35
- };
36
-
37
- // these are override types for Polkadot
38
- export const versioned: OverrideVersionedType[] = [
39
- {
40
- minmax: [0, 10],
41
- types: {
42
- ...sharedTypes,
43
- ...addrAccountIdTypes,
44
- CompactAssignments: 'CompactAssignmentsTo257',
45
- OpenTip: 'OpenTipTo225',
46
- RefCount: 'RefCountTo259',
47
- ElectionResult: 'ElectionResultToSpec10'
48
- }
49
- },
50
- {
51
- minmax: [11, 12],
52
- types: {
53
- ...sharedTypes,
54
- ...addrAccountIdTypes,
55
- CompactAssignments: 'CompactAssignmentsTo257',
56
- OpenTip: 'OpenTipTo225',
57
- RefCount: 'RefCountTo259'
58
- }
59
- },
60
- {
61
- minmax: [13, 22],
62
- types: {
63
- ...sharedTypes,
64
- ...addrAccountIdTypes,
65
- CompactAssignments: 'CompactAssignmentsTo257',
66
- RefCount: 'RefCountTo259'
67
- }
68
- },
69
- {
70
- minmax: [23, 24],
71
- types: {
72
- ...sharedTypes,
73
- ...addrAccountIdTypes,
74
- RefCount: 'RefCountTo259'
75
- }
76
- },
77
- {
78
- minmax: [25, 27],
79
- types: {
80
- ...sharedTypes,
81
- ...addrAccountIdTypes
82
- }
83
- },
84
- {
85
- minmax: [28, 29],
86
- types: {
87
- ...sharedTypes,
88
- AccountInfo: 'AccountInfoWithDualRefCount'
89
- }
90
- },
91
- {
92
- minmax: [30, 9109],
93
- types: {
94
- ...sharedTypes
95
- }
96
- },
97
- {
98
- // metadata v14
99
- minmax: [9110, undefined],
100
- types: {
101
- Weight: 'WeightV1'
102
- }
103
- }
104
- // ,
105
- // {
106
- // // weight v2 introduction
107
- // minmax: [9300, undefined],
108
- // types: {
109
- // Weight: 'WeightV2'
110
- // }
111
- // }
112
- ];
@@ -1,73 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- import { mapXcmTypes } from '@pezkuwi/types-create';
9
-
10
- // structs need to be in order
11
- /* eslint-disable sort-keys */
12
-
13
- const sharedTypes = {
14
- DispatchErrorModule: 'DispatchErrorModuleU8',
15
- FullIdentification: '()', // No staking, only session (as per config)
16
- Keys: 'SessionKeys7B',
17
- Weight: 'WeightV1'
18
- };
19
-
20
- export const versioned: OverrideVersionedType[] = [
21
- {
22
- minmax: [0, 200],
23
- types: {
24
- ...sharedTypes,
25
- AccountInfo: 'AccountInfoWithDualRefCount',
26
- Address: 'AccountId',
27
- LookupSource: 'AccountId'
28
- }
29
- },
30
- {
31
- minmax: [201, 214],
32
- types: {
33
- ...sharedTypes,
34
- AccountInfo: 'AccountInfoWithDualRefCount'
35
- }
36
- },
37
- {
38
- minmax: [215, 228],
39
- types: {
40
- ...sharedTypes,
41
- Keys: 'SessionKeys6'
42
- }
43
- },
44
- {
45
- minmax: [229, 9099],
46
- types: {
47
- ...sharedTypes,
48
- ...mapXcmTypes('V0')
49
- }
50
- },
51
- {
52
- minmax: [9100, 9105],
53
- types: {
54
- ...sharedTypes,
55
- ...mapXcmTypes('V1')
56
- }
57
- },
58
- {
59
- // metadata v14
60
- minmax: [9106, undefined],
61
- types: {
62
- Weight: 'WeightV1'
63
- }
64
- }
65
- // ,
66
- // {
67
- // // weight v2 introduction
68
- // minmax: [9300, undefined],
69
- // types: {
70
- // Weight: 'WeightV2'
71
- // }
72
- // }
73
- ];
package/src/spec/shell.ts DELETED
@@ -1,15 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- export const versioned: OverrideVersionedType[] = [
9
- {
10
- minmax: [0, undefined],
11
- types: {
12
- // nothing, limited runtime
13
- }
14
- }
15
- ];
@@ -1,62 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- import { mapXcmTypes } from '@pezkuwi/types-create';
9
-
10
- const sharedTypes = {
11
- DispatchErrorModule: 'DispatchErrorModuleU8',
12
- TAssetBalance: 'u128',
13
- ProxyType: {
14
- _enum: [
15
- 'Any',
16
- 'NonTransfer',
17
- 'CancelProxy',
18
- 'Assets',
19
- 'AssetOwner',
20
- 'AssetManager',
21
- 'Staking'
22
- ]
23
- },
24
- Weight: 'WeightV1'
25
- };
26
-
27
- // these are override types for Statemine, Westmint
28
- export const versioned: OverrideVersionedType[] = [
29
- {
30
- minmax: [0, 3],
31
- types: {
32
- // Enum was modified mid-flight -
33
- // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
34
- DispatchError: 'DispatchErrorPre6First',
35
- ...sharedTypes,
36
- ...mapXcmTypes('V0')
37
- }
38
- },
39
- {
40
- minmax: [4, 5],
41
- types: {
42
- // As above, see https://github.com/polkadot-js/api/issues/5301
43
- DispatchError: 'DispatchErrorPre6First',
44
- ...sharedTypes,
45
- ...mapXcmTypes('V1')
46
- }
47
- },
48
- {
49
- // metadata V14
50
- minmax: [500, 9999],
51
- types: {
52
- Weight: 'WeightV1',
53
- TAssetConversion: 'Option<AssetId>'
54
- }
55
- },
56
- {
57
- minmax: [10000, undefined],
58
- types: {
59
- Weight: 'WeightV1'
60
- }
61
- }
62
- ];
@@ -1,74 +0,0 @@
1
- // Copyright 2017-2025 @polkadot/types-known authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /* eslint-disable sort-keys */
5
-
6
- import type { OverrideVersionedType } from '@pezkuwi/types/types';
7
-
8
- import { mapXcmTypes } from '@pezkuwi/types-create';
9
-
10
- const sharedTypes = {
11
- DispatchErrorModule: 'DispatchErrorModuleU8',
12
- TAssetBalance: 'u128',
13
- ProxyType: {
14
- _enum: [
15
- 'Any',
16
- 'NonTransfer',
17
- 'CancelProxy',
18
- 'Assets',
19
- 'AssetOwner',
20
- 'AssetManager',
21
- 'Staking'
22
- ]
23
- },
24
- Weight: 'WeightV1'
25
- };
26
-
27
- // these are override types for Statemine, Statemint, Westmint
28
- export const versioned: OverrideVersionedType[] = [
29
- {
30
- minmax: [0, 3],
31
- types: {
32
- // Enum was modified mid-flight -
33
- // https://github.com/paritytech/substrate/pull/10382/files#diff-e4e016b33a82268b6208dc974eea841bad47597865a749fee2f937eb6fdf67b4R498
34
- DispatchError: 'DispatchErrorPre6First',
35
- ...sharedTypes,
36
- ...mapXcmTypes('V0')
37
- }
38
- },
39
- {
40
- minmax: [4, 5],
41
- types: {
42
- // As above, see https://github.com/polkadot-js/api/issues/5301
43
- DispatchError: 'DispatchErrorPre6First',
44
- ...sharedTypes,
45
- ...mapXcmTypes('V1')
46
- }
47
- },
48
- {
49
- // metadata V14
50
- minmax: [500, 1001003],
51
- types: {
52
- Weight: 'WeightV1',
53
- TAssetConversion: 'Option<AssetId>'
54
- }
55
- },
56
- // ref: https://github.com/polkadot-js/api/pull/6208
57
- // The following patches an issue where polkadot asset hub block 9686187, can't be decoding using xcm v5
58
- // mappings.
59
- {
60
- minmax: [1002000, undefined],
61
- types: {
62
- Weight: 'WeightV1',
63
- ...mapXcmTypes('V4')
64
- }
65
- }
66
- // ,
67
- // {
68
- // // weight v2 introduction
69
- // minmax: [9300, undefined],
70
- // types: {
71
- // Weight: 'WeightV2'
72
- // }
73
- // }
74
- ];