@pezkuwi/types-known 16.5.16 → 16.5.18

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 (266) hide show
  1. package/build/LICENSE +201 -0
  2. package/build/README.md +3 -0
  3. package/build/bundle.js +3 -0
  4. package/build/chain/index.js +1 -0
  5. package/build/cjs/bundle.d.ts +3 -0
  6. package/build/cjs/bundle.js +9 -0
  7. package/build/cjs/chain/index.d.ts +2 -0
  8. package/build/cjs/chain/index.js +4 -0
  9. package/build/cjs/index.js +5 -0
  10. package/build/cjs/packageInfo.js +4 -0
  11. package/build/cjs/spec/centrifuge-chain.js +105 -0
  12. package/build/cjs/spec/dicle.js +118 -0
  13. package/build/cjs/spec/index.js +27 -0
  14. package/build/cjs/spec/node-template.js +13 -0
  15. package/build/cjs/spec/node.js +13 -0
  16. package/build/cjs/spec/pezkuwi.js +105 -0
  17. package/build/cjs/spec/pezkuwichain.js +65 -0
  18. package/build/cjs/spec/shell.js +11 -0
  19. package/build/cjs/spec/statemine.js +55 -0
  20. package/build/cjs/spec/statemint.js +67 -0
  21. package/build/cjs/spec/westmint.js +55 -0
  22. package/build/cjs/spec/zagros.js +118 -0
  23. package/build/cjs/upgrades/e2e/dicle.js +6429 -0
  24. package/build/cjs/upgrades/e2e/index.js +9 -0
  25. package/build/cjs/upgrades/e2e/pezkuwi.js +3707 -0
  26. package/build/cjs/upgrades/e2e/zagros.js +6429 -0
  27. package/build/cjs/upgrades/index.js +35 -0
  28. package/build/cjs/upgrades/manual/dicle.js +25 -0
  29. package/build/cjs/upgrades/manual/index.js +9 -0
  30. package/build/cjs/upgrades/manual/pezkuwi.js +17 -0
  31. package/build/cjs/upgrades/manual/zagros.js +25 -0
  32. package/build/cjs/upgrades/types.js +2 -0
  33. package/build/cjs/util.js +112 -0
  34. package/build/index.d.ts +2 -0
  35. package/build/index.js +2 -0
  36. package/build/package.json +447 -0
  37. package/build/packageDetect.d.ts +1 -0
  38. package/build/packageDetect.js +4 -0
  39. package/build/packageInfo.d.ts +6 -0
  40. package/build/packageInfo.js +1 -0
  41. package/build/spec/centrifuge-chain.d.ts +2 -0
  42. package/build/spec/centrifuge-chain.js +102 -0
  43. package/build/spec/dicle.d.ts +2 -0
  44. package/build/spec/dicle.js +115 -0
  45. package/build/spec/index.d.ts +2 -0
  46. package/build/spec/index.js +24 -0
  47. package/build/spec/node-template.d.ts +2 -0
  48. package/build/spec/node-template.js +10 -0
  49. package/build/spec/node.d.ts +2 -0
  50. package/build/spec/node.js +10 -0
  51. package/build/spec/pezkuwi.d.ts +2 -0
  52. package/build/spec/pezkuwi.js +102 -0
  53. package/build/spec/pezkuwichain.d.ts +2 -0
  54. package/build/spec/pezkuwichain.js +62 -0
  55. package/build/spec/shell.d.ts +2 -0
  56. package/build/spec/shell.js +8 -0
  57. package/build/spec/statemine.d.ts +2 -0
  58. package/build/spec/statemine.js +52 -0
  59. package/build/spec/statemint.d.ts +2 -0
  60. package/build/spec/statemint.js +64 -0
  61. package/build/spec/westmint.d.ts +2 -0
  62. package/build/spec/westmint.js +52 -0
  63. package/build/spec/zagros.d.ts +2 -0
  64. package/build/spec/zagros.js +115 -0
  65. package/build/upgrades/e2e/dicle.d.ts +2 -0
  66. package/build/upgrades/e2e/dicle.js +6426 -0
  67. package/build/upgrades/e2e/index.d.ts +3 -0
  68. package/build/upgrades/e2e/index.js +3 -0
  69. package/build/upgrades/e2e/pezkuwi.d.ts +2 -0
  70. package/build/upgrades/e2e/pezkuwi.js +3704 -0
  71. package/build/upgrades/e2e/zagros.d.ts +2 -0
  72. package/build/upgrades/e2e/zagros.js +6426 -0
  73. package/build/upgrades/index.d.ts +2 -0
  74. package/build/upgrades/index.js +31 -0
  75. package/build/upgrades/manual/dicle.d.ts +2 -0
  76. package/build/upgrades/manual/dicle.js +22 -0
  77. package/build/upgrades/manual/index.d.ts +3 -0
  78. package/build/upgrades/manual/index.js +3 -0
  79. package/build/upgrades/manual/pezkuwi.d.ts +2 -0
  80. package/build/upgrades/manual/pezkuwi.js +14 -0
  81. package/build/upgrades/manual/zagros.d.ts +2 -0
  82. package/build/upgrades/manual/zagros.js +22 -0
  83. package/build/upgrades/types.d.ts +3 -0
  84. package/build/upgrades/types.js +1 -0
  85. package/build/util.d.ts +33 -0
  86. package/build/util.js +103 -0
  87. package/build-deno/README.md +3 -0
  88. package/build-deno/bundle.ts +6 -0
  89. package/build-deno/chain/index.ts +4 -0
  90. package/build-deno/index.ts +4 -0
  91. package/build-deno/mod.ts +2 -0
  92. package/build-deno/packageDetect.ts +8 -0
  93. package/build-deno/packageInfo.ts +3 -0
  94. package/build-deno/spec/centrifuge-chain.ts +114 -0
  95. package/build-deno/spec/dicle.ts +123 -0
  96. package/build-deno/spec/index.ts +28 -0
  97. package/build-deno/spec/node-template.ts +15 -0
  98. package/build-deno/spec/node.ts +15 -0
  99. package/build-deno/spec/pezkuwi.ts +109 -0
  100. package/build-deno/spec/pezkuwichain.ts +70 -0
  101. package/build-deno/spec/shell.ts +13 -0
  102. package/build-deno/spec/statemine.ts +59 -0
  103. package/build-deno/spec/statemint.ts +71 -0
  104. package/build-deno/spec/westmint.ts +59 -0
  105. package/build-deno/spec/zagros.ts +123 -0
  106. package/build-deno/upgrades/e2e/dicle.ts +6431 -0
  107. package/build-deno/upgrades/e2e/index.ts +4 -0
  108. package/build-deno/upgrades/e2e/pezkuwi.ts +3709 -0
  109. package/build-deno/upgrades/e2e/zagros.ts +6431 -0
  110. package/build-deno/upgrades/index.ts +42 -0
  111. package/build-deno/upgrades/manual/dicle.ts +25 -0
  112. package/build-deno/upgrades/manual/index.ts +4 -0
  113. package/build-deno/upgrades/manual/pezkuwi.ts +17 -0
  114. package/build-deno/upgrades/manual/zagros.ts +25 -0
  115. package/build-deno/upgrades/types.ts +6 -0
  116. package/build-deno/util.ts +126 -0
  117. package/build-tsc-cjs/packageDetect.js +6 -0
  118. package/{cjs → build-tsc-cjs}/packageInfo.js +1 -1
  119. package/{cjs → build-tsc-cjs}/upgrades/index.js +1 -1
  120. package/{packageInfo.js → build-tsc-esm/packageInfo.js} +1 -1
  121. package/{upgrades → build-tsc-esm/upgrades}/index.js +1 -1
  122. package/package.json +16 -13
  123. package/src/bundle.ts +11 -0
  124. package/src/chain/index.ts +7 -0
  125. package/src/index.ts +6 -0
  126. package/src/mod.ts +4 -0
  127. package/src/packageDetect.ts +12 -0
  128. package/src/packageInfo.ts +6 -0
  129. package/src/spec/centrifuge-chain.ts +116 -0
  130. package/src/spec/dicle.ts +125 -0
  131. package/src/spec/index.ts +31 -0
  132. package/src/spec/node-template.ts +17 -0
  133. package/src/spec/node.ts +17 -0
  134. package/src/spec/pezkuwi.ts +112 -0
  135. package/src/spec/pezkuwichain.ts +73 -0
  136. package/src/spec/shell.ts +15 -0
  137. package/src/spec/statemine.ts +62 -0
  138. package/src/spec/statemint.ts +74 -0
  139. package/src/spec/westmint.ts +62 -0
  140. package/src/spec/zagros.ts +125 -0
  141. package/src/upgrades/e2e/dicle.ts +6434 -0
  142. package/src/upgrades/e2e/index.spec.ts +66 -0
  143. package/src/upgrades/e2e/index.ts +6 -0
  144. package/src/upgrades/e2e/pezkuwi.ts +3712 -0
  145. package/src/upgrades/e2e/zagros.ts +6434 -0
  146. package/src/upgrades/index.spec.ts +110 -0
  147. package/src/upgrades/index.ts +46 -0
  148. package/src/upgrades/manual/dicle.ts +27 -0
  149. package/src/upgrades/manual/index.ts +6 -0
  150. package/src/upgrades/manual/pezkuwi.ts +19 -0
  151. package/src/upgrades/manual/zagros.ts +27 -0
  152. package/src/upgrades/types.ts +8 -0
  153. package/src/util.ts +128 -0
  154. package/tsconfig.build.json +17 -0
  155. package/tsconfig.build.tsbuildinfo +1 -0
  156. package/tsconfig.spec.json +19 -0
  157. package/tsconfig.spec.tsbuildinfo +1 -0
  158. /package/{cjs → build}/bundle.d.ts +0 -0
  159. /package/{cjs → build}/chain/index.d.ts +0 -0
  160. /package/{index.d.ts → build/cjs/index.d.ts} +0 -0
  161. /package/{cjs → build/cjs}/package.json +0 -0
  162. /package/{packageDetect.d.ts → build/cjs/packageDetect.d.ts} +0 -0
  163. /package/{cjs → build/cjs}/packageDetect.js +0 -0
  164. /package/{packageInfo.d.ts → build/cjs/packageInfo.d.ts} +0 -0
  165. /package/{spec → build/cjs/spec}/centrifuge-chain.d.ts +0 -0
  166. /package/{spec → build/cjs/spec}/dicle.d.ts +0 -0
  167. /package/{spec → build/cjs/spec}/index.d.ts +0 -0
  168. /package/{spec → build/cjs/spec}/node-template.d.ts +0 -0
  169. /package/{spec → build/cjs/spec}/node.d.ts +0 -0
  170. /package/{spec → build/cjs/spec}/pezkuwi.d.ts +0 -0
  171. /package/{spec → build/cjs/spec}/pezkuwichain.d.ts +0 -0
  172. /package/{spec → build/cjs/spec}/shell.d.ts +0 -0
  173. /package/{spec → build/cjs/spec}/statemine.d.ts +0 -0
  174. /package/{spec → build/cjs/spec}/statemint.d.ts +0 -0
  175. /package/{spec → build/cjs/spec}/westmint.d.ts +0 -0
  176. /package/{spec → build/cjs/spec}/zagros.d.ts +0 -0
  177. /package/{upgrades → build/cjs/upgrades}/e2e/dicle.d.ts +0 -0
  178. /package/{upgrades → build/cjs/upgrades}/e2e/index.d.ts +0 -0
  179. /package/{upgrades → build/cjs/upgrades}/e2e/pezkuwi.d.ts +0 -0
  180. /package/{upgrades → build/cjs/upgrades}/e2e/zagros.d.ts +0 -0
  181. /package/{upgrades → build/cjs/upgrades}/index.d.ts +0 -0
  182. /package/{upgrades → build/cjs/upgrades}/manual/dicle.d.ts +0 -0
  183. /package/{upgrades → build/cjs/upgrades}/manual/index.d.ts +0 -0
  184. /package/{upgrades → build/cjs/upgrades}/manual/pezkuwi.d.ts +0 -0
  185. /package/{upgrades → build/cjs/upgrades}/manual/zagros.d.ts +0 -0
  186. /package/{upgrades → build/cjs/upgrades}/types.d.ts +0 -0
  187. /package/{util.d.ts → build/cjs/util.d.ts} +0 -0
  188. /package/{bundle.d.ts → build-tsc/bundle.d.ts} +0 -0
  189. /package/{chain → build-tsc/chain}/index.d.ts +0 -0
  190. /package/{cjs → build-tsc}/index.d.ts +0 -0
  191. /package/{cjs → build-tsc}/packageDetect.d.ts +0 -0
  192. /package/{cjs → build-tsc}/packageInfo.d.ts +0 -0
  193. /package/{cjs → build-tsc}/spec/centrifuge-chain.d.ts +0 -0
  194. /package/{cjs → build-tsc}/spec/dicle.d.ts +0 -0
  195. /package/{cjs → build-tsc}/spec/index.d.ts +0 -0
  196. /package/{cjs → build-tsc}/spec/node-template.d.ts +0 -0
  197. /package/{cjs → build-tsc}/spec/node.d.ts +0 -0
  198. /package/{cjs → build-tsc}/spec/pezkuwi.d.ts +0 -0
  199. /package/{cjs → build-tsc}/spec/pezkuwichain.d.ts +0 -0
  200. /package/{cjs → build-tsc}/spec/shell.d.ts +0 -0
  201. /package/{cjs → build-tsc}/spec/statemine.d.ts +0 -0
  202. /package/{cjs → build-tsc}/spec/statemint.d.ts +0 -0
  203. /package/{cjs → build-tsc}/spec/westmint.d.ts +0 -0
  204. /package/{cjs → build-tsc}/spec/zagros.d.ts +0 -0
  205. /package/{cjs → build-tsc}/upgrades/e2e/dicle.d.ts +0 -0
  206. /package/{cjs → build-tsc}/upgrades/e2e/index.d.ts +0 -0
  207. /package/{cjs → build-tsc}/upgrades/e2e/pezkuwi.d.ts +0 -0
  208. /package/{cjs → build-tsc}/upgrades/e2e/zagros.d.ts +0 -0
  209. /package/{cjs → build-tsc}/upgrades/index.d.ts +0 -0
  210. /package/{cjs → build-tsc}/upgrades/manual/dicle.d.ts +0 -0
  211. /package/{cjs → build-tsc}/upgrades/manual/index.d.ts +0 -0
  212. /package/{cjs → build-tsc}/upgrades/manual/pezkuwi.d.ts +0 -0
  213. /package/{cjs → build-tsc}/upgrades/manual/zagros.d.ts +0 -0
  214. /package/{cjs → build-tsc}/upgrades/types.d.ts +0 -0
  215. /package/{cjs → build-tsc}/util.d.ts +0 -0
  216. /package/{cjs → build-tsc-cjs}/bundle.js +0 -0
  217. /package/{cjs → build-tsc-cjs}/chain/index.js +0 -0
  218. /package/{cjs → build-tsc-cjs}/index.js +0 -0
  219. /package/{cjs → build-tsc-cjs}/spec/centrifuge-chain.js +0 -0
  220. /package/{cjs → build-tsc-cjs}/spec/dicle.js +0 -0
  221. /package/{cjs → build-tsc-cjs}/spec/index.js +0 -0
  222. /package/{cjs → build-tsc-cjs}/spec/node-template.js +0 -0
  223. /package/{cjs → build-tsc-cjs}/spec/node.js +0 -0
  224. /package/{cjs → build-tsc-cjs}/spec/pezkuwi.js +0 -0
  225. /package/{cjs → build-tsc-cjs}/spec/pezkuwichain.js +0 -0
  226. /package/{cjs → build-tsc-cjs}/spec/shell.js +0 -0
  227. /package/{cjs → build-tsc-cjs}/spec/statemine.js +0 -0
  228. /package/{cjs → build-tsc-cjs}/spec/statemint.js +0 -0
  229. /package/{cjs → build-tsc-cjs}/spec/westmint.js +0 -0
  230. /package/{cjs → build-tsc-cjs}/spec/zagros.js +0 -0
  231. /package/{cjs → build-tsc-cjs}/upgrades/e2e/dicle.js +0 -0
  232. /package/{cjs → build-tsc-cjs}/upgrades/e2e/index.js +0 -0
  233. /package/{cjs → build-tsc-cjs}/upgrades/e2e/pezkuwi.js +0 -0
  234. /package/{cjs → build-tsc-cjs}/upgrades/e2e/zagros.js +0 -0
  235. /package/{cjs → build-tsc-cjs}/upgrades/manual/dicle.js +0 -0
  236. /package/{cjs → build-tsc-cjs}/upgrades/manual/index.js +0 -0
  237. /package/{cjs → build-tsc-cjs}/upgrades/manual/pezkuwi.js +0 -0
  238. /package/{cjs → build-tsc-cjs}/upgrades/manual/zagros.js +0 -0
  239. /package/{cjs → build-tsc-cjs}/upgrades/types.js +0 -0
  240. /package/{cjs → build-tsc-cjs}/util.js +0 -0
  241. /package/{bundle.js → build-tsc-esm/bundle.js} +0 -0
  242. /package/{chain → build-tsc-esm/chain}/index.js +0 -0
  243. /package/{index.js → build-tsc-esm/index.js} +0 -0
  244. /package/{packageDetect.js → build-tsc-esm/packageDetect.js} +0 -0
  245. /package/{spec → build-tsc-esm/spec}/centrifuge-chain.js +0 -0
  246. /package/{spec → build-tsc-esm/spec}/dicle.js +0 -0
  247. /package/{spec → build-tsc-esm/spec}/index.js +0 -0
  248. /package/{spec → build-tsc-esm/spec}/node-template.js +0 -0
  249. /package/{spec → build-tsc-esm/spec}/node.js +0 -0
  250. /package/{spec → build-tsc-esm/spec}/pezkuwi.js +0 -0
  251. /package/{spec → build-tsc-esm/spec}/pezkuwichain.js +0 -0
  252. /package/{spec → build-tsc-esm/spec}/shell.js +0 -0
  253. /package/{spec → build-tsc-esm/spec}/statemine.js +0 -0
  254. /package/{spec → build-tsc-esm/spec}/statemint.js +0 -0
  255. /package/{spec → build-tsc-esm/spec}/westmint.js +0 -0
  256. /package/{spec → build-tsc-esm/spec}/zagros.js +0 -0
  257. /package/{upgrades → build-tsc-esm/upgrades}/e2e/dicle.js +0 -0
  258. /package/{upgrades → build-tsc-esm/upgrades}/e2e/index.js +0 -0
  259. /package/{upgrades → build-tsc-esm/upgrades}/e2e/pezkuwi.js +0 -0
  260. /package/{upgrades → build-tsc-esm/upgrades}/e2e/zagros.js +0 -0
  261. /package/{upgrades → build-tsc-esm/upgrades}/manual/dicle.js +0 -0
  262. /package/{upgrades → build-tsc-esm/upgrades}/manual/index.js +0 -0
  263. /package/{upgrades → build-tsc-esm/upgrades}/manual/pezkuwi.js +0 -0
  264. /package/{upgrades → build-tsc-esm/upgrades}/manual/zagros.js +0 -0
  265. /package/{upgrades → build-tsc-esm/upgrades}/types.js +0 -0
  266. /package/{util.js → build-tsc-esm/util.js} +0 -0
@@ -0,0 +1,42 @@
1
+
2
+ import type { ChainUpgrades } from 'https://deno.land/x/pezkuwi/types/types/index.ts';
3
+ import type { HexString } from 'https://deno.land/x/pezkuwi/util/types.ts';
4
+ import type { ChainUpgradesExpanded } from './types.ts';
5
+
6
+ import { selectableNetworks } from 'https://deno.land/x/pezkuwi/networks/mod.ts';
7
+ import { BN, hexToU8a } from 'https://deno.land/x/pezkuwi/util/mod.ts';
8
+
9
+ import * as allKnown from './e2e/index.ts';
10
+
11
+ const NET_EXTRA: Record<string, { genesisHash: HexString[] }> = {
12
+ dicle: {
13
+ genesisHash: ['0xd9d3cd7c1e5d890d969b957f4c5b71a111bbeeabc968f1d0d4538c2663f080a7']
14
+ },
15
+ pezkuwi: {
16
+ genesisHash: ['0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75']
17
+ },
18
+ zagros: {
19
+ genesisHash: ['0x297f5a4d105b4b28312586ff1915572ffe4ee015ff772b76399ecbff25a22026']
20
+ }
21
+ };
22
+
23
+ /** @internal */
24
+ function mapRaw ([network, versions]: [string, ChainUpgradesExpanded]): ChainUpgrades {
25
+ const chain = selectableNetworks.find((n) => n.network === network) || NET_EXTRA[network];
26
+
27
+ if (!chain) {
28
+ throw new Error(`Unable to find info for chain ${network}`);
29
+ }
30
+
31
+ return {
32
+ genesisHash: hexToU8a(chain.genesisHash[0]),
33
+ network,
34
+ versions: versions.map(([blockNumber, specVersion, apis]) => ({
35
+ apis,
36
+ blockNumber: new BN(blockNumber),
37
+ specVersion: new BN(specVersion)
38
+ }))
39
+ };
40
+ }
41
+
42
+ export const upgrades = Object.entries<ChainUpgradesExpanded>(allKnown).map(mapRaw);
@@ -0,0 +1,25 @@
1
+
2
+ import type { ChainUpgradesRaw } from '../types.ts';
3
+
4
+ export const upgrades: ChainUpgradesRaw = [
5
+ [214356, 4], [392764, 7], [409740, 8], [809976, 20], [877581, 24],
6
+ [879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
7
+ [1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
8
+ [1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
9
+ [2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
10
+ [5124076, 50], [5478664, 900], [5482450, 9000], [5584305, 9010], [5784566, 9030],
11
+ [5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
12
+ [6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
13
+ [7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
14
+ [9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200],
15
+ [10678509, 9210], [10811001, 9220], [11096116, 9230], [11409279, 9250], [11584820, 9251],
16
+ [11716837, 9260], [11876919, 9261], [11987927, 9270], [12077324, 9271], [12301871, 9280],
17
+ [12604343, 9290], [12841034, 9300], [13128237, 9310], [13272363, 9320], [13483497, 9330],
18
+ [13649433, 9340], [13761100, 9350], [13847400, 9360], [14249200, 9370], [14576855, 9380],
19
+ [14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
20
+ [18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
21
+ [19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
22
+ [20368318, 1010000], [20649086, 1011000], [21217837, 1011001], [21300429, 1013000], [21460051, 1014000],
23
+ [21925427, 1015000], [22500517, 1016000], [22759684, 1016001], [23056976, 1016002], [23544582, 1017000],
24
+ [24002343, 1017001]
25
+ ];
@@ -0,0 +1,4 @@
1
+
2
+ export { upgrades as dicle } from './dicle.ts';
3
+ export { upgrades as pezkuwi } from './pezkuwi.ts';
4
+ export { upgrades as zagros } from './zagros.ts';
@@ -0,0 +1,17 @@
1
+
2
+ import type { ChainUpgradesRaw } from '../types.ts';
3
+
4
+ export const upgrades: ChainUpgradesRaw = [
5
+ [0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7],
6
+ [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
7
+ [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
8
+ [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
9
+ [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
10
+ [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
11
+ [8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190],
12
+ [10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260],
13
+ [11933818, 9270], [12217535, 9280], [12245277, 9281], [12532644, 9291], [12876189, 9300],
14
+ [13800015, 9340], [14188833, 9360], [14543918, 9370], [15978362, 9420], [16450000, 9430],
15
+ [17840000, 9431], [18407475, 1000001], [19551000, 1001002], [20181758, 1001003],
16
+ [20438530, 1002000], [21169168, 1002004], [21455374, 1002005], [21558004, 1002006], [21800141, 1002007]
17
+ ];
@@ -0,0 +1,25 @@
1
+
2
+ import type { ChainUpgradesRaw } from '../types.ts';
3
+
4
+ export const upgrades: ChainUpgradesRaw = [
5
+ [214356, 4], [392764, 7], [409740, 8], [809976, 20], [877581, 24],
6
+ [879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
7
+ [1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
8
+ [1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
9
+ [2549864, 45], [3925782, 46], [3925843, 47], [4207800, 48], [4627944, 49],
10
+ [5124076, 50], [5478664, 900], [5482450, 9000], [5584305, 9010], [5784566, 9030],
11
+ [5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
12
+ [6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
13
+ [7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
14
+ [9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200],
15
+ [10678509, 9210], [10811001, 9220], [11096116, 9230], [11409279, 9250], [11584820, 9251],
16
+ [11716837, 9260], [11876919, 9261], [11987927, 9270], [12077324, 9271], [12301871, 9280],
17
+ [12604343, 9290], [12841034, 9300], [13128237, 9310], [13272363, 9320], [13483497, 9330],
18
+ [13649433, 9340], [13761100, 9350], [13847400, 9360], [14249200, 9370], [14576855, 9380],
19
+ [14849830, 9390], [15146832, 9400], [15332317, 9401], [15661793, 9420], [16165469, 9430],
20
+ [18293984, 102000], [18293991, 103000], [18451783, 104000], [18679741, 1005000], [19166695, 1006000],
21
+ [19234157, 1006001], [19542944, 1007000], [19621258, 1007001], [19761406, 1008000], [20056997, 1009000],
22
+ [20368318, 1010000], [20649086, 1011000], [21217837, 1011001], [21300429, 1013000], [21460051, 1014000],
23
+ [21925427, 1015000], [22500517, 1016000], [22759684, 1016001], [23056976, 1016002], [23544582, 1017000],
24
+ [24002343, 1017001]
25
+ ];
@@ -0,0 +1,6 @@
1
+
2
+ import type { HexString } from 'https://deno.land/x/pezkuwi/util/types.ts';
3
+
4
+ export type ChainUpgradesRaw = [blockNumber: number, specVersion: number][];
5
+
6
+ export type ChainUpgradesExpanded = [blockNumber: number, specVersion: number, runtimeApis: [apiHash: HexString, apiVersion: number][]][];
@@ -0,0 +1,126 @@
1
+
2
+ import type { ExtDef } from 'https://deno.land/x/pezkuwi/types/extrinsic/signedExtensions/types.ts';
3
+ import type { Hash } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
4
+ import type { ChainUpgradeVersion, CodecHasher, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, OverrideModuleType, OverrideVersionedType, Registry, RegistryTypes } from 'https://deno.land/x/pezkuwi/types/types/index.ts';
5
+ import type { Text } from 'https://deno.land/x/pezkuwi/types-codec/mod.ts';
6
+ import type { BN } from 'https://deno.land/x/pezkuwi/util/mod.ts';
7
+
8
+ import { bnToBn } from 'https://deno.land/x/pezkuwi/util/mod.ts';
9
+
10
+ import { typesChain } from './chain/index.ts';
11
+ import { typesSpec } from './spec/index.ts';
12
+ import { upgrades } from './upgrades/index.ts';
13
+
14
+ /**
15
+ * @description Perform the callback function using the stringified spec/chain
16
+ * @internal
17
+ * */
18
+ function withNames <T> (chainName: Text | string, specName: Text | string, fn: (c: string, s: string) => T): T {
19
+ return fn(chainName.toString(), specName.toString());
20
+ }
21
+
22
+ /**
23
+ * @descriptionFflatten a VersionedType[] into a Record<string, string>
24
+ * @internal
25
+ * */
26
+ function filterVersions (versions: OverrideVersionedType[] = [], specVersion: number): RegistryTypes {
27
+ return versions
28
+ .filter(({ minmax: [min, max] }) =>
29
+ (min === undefined || min === null || specVersion >= min) &&
30
+ (max === undefined || max === null || specVersion <= max)
31
+ )
32
+ .reduce((result: RegistryTypes, { types }) => ({ ...result, ...types }), {});
33
+ }
34
+
35
+ /**
36
+ * @description Based on the chain and runtimeVersion, get the applicable signed extensions (ready for registration)
37
+ */
38
+ export function getSpecExtensions ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): ExtDef {
39
+ return withNames(chainName, specName, (c, s) => ({
40
+ ...(knownTypes.typesBundle?.spec?.[s]?.signedExtensions ?? {}),
41
+ ...(knownTypes.typesBundle?.chain?.[c]?.signedExtensions ?? {})
42
+ }));
43
+ }
44
+
45
+ /**
46
+ * @description Based on the chain and runtimeVersion, get the applicable types (ready for registration)
47
+ */
48
+ export function getSpecTypes ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string, specVersion: bigint | BN | number): RegistryTypes {
49
+ const _specVersion = bnToBn(specVersion).toNumber();
50
+
51
+ return withNames(chainName, specName, (c, s) => ({
52
+ // The order here is always, based on -
53
+ // - spec then chain
54
+ // - typesBundle takes higher precedence
55
+ // - types is the final catch-all override
56
+ ...filterVersions(typesSpec[s], _specVersion),
57
+ ...filterVersions(typesChain[c], _specVersion),
58
+ ...filterVersions(knownTypes.typesBundle?.spec?.[s]?.types, _specVersion),
59
+ ...filterVersions(knownTypes.typesBundle?.chain?.[c]?.types, _specVersion),
60
+ ...(knownTypes.typesSpec?.[s] ?? {}),
61
+ ...(knownTypes.typesChain?.[c] ?? {}),
62
+ ...(knownTypes.types ?? {})
63
+ }));
64
+ }
65
+
66
+ /**
67
+ * @description Based on the chain or spec, return the hasher used
68
+ */
69
+ export function getSpecHasher ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): CodecHasher | null {
70
+ return withNames(chainName, specName, (c, s) =>
71
+ knownTypes.hasher ||
72
+ knownTypes.typesBundle?.chain?.[c]?.hasher ||
73
+ knownTypes.typesBundle?.spec?.[s]?.hasher ||
74
+ null
75
+ );
76
+ }
77
+
78
+ /**
79
+ * @description Based on the chain and runtimeVersion, get the applicable rpc definitions (ready for registration)
80
+ */
81
+ export function getSpecRpc ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>> {
82
+ return withNames(chainName, specName, (c, s) => ({
83
+ ...(knownTypes.typesBundle?.spec?.[s]?.rpc ?? {}),
84
+ ...(knownTypes.typesBundle?.chain?.[c]?.rpc ?? {})
85
+ }));
86
+ }
87
+
88
+ /**
89
+ * @description Based on the chain and runtimeVersion, get the applicable runtime definitions (ready for registration)
90
+ */
91
+ export function getSpecRuntime ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): DefinitionsCall {
92
+ return withNames(chainName, specName, (c, s) => ({
93
+ ...(knownTypes.typesBundle?.spec?.[s]?.runtime ?? {}),
94
+ ...(knownTypes.typesBundle?.chain?.[c]?.runtime ?? {})
95
+ }));
96
+ }
97
+
98
+ /**
99
+ * @description Based on the chain and runtimeVersion, get the applicable alias definitions (ready for registration)
100
+ */
101
+ export function getSpecAlias ({ knownTypes }: Registry, chainName: Text | string, specName: Text | string): Record<string, OverrideModuleType> {
102
+ return withNames(chainName, specName, (c, s) => ({
103
+ // as per versions, first spec, then chain then finally non-versioned
104
+ ...(knownTypes.typesBundle?.spec?.[s]?.alias ?? {}),
105
+ ...(knownTypes.typesBundle?.chain?.[c]?.alias ?? {}),
106
+ ...(knownTypes.typesAlias ?? {})
107
+ }));
108
+ }
109
+
110
+ /**
111
+ * @description Returns a version record for known chains where upgrades are being tracked
112
+ */
113
+ export function getUpgradeVersion (genesisHash: Hash, blockNumber: BN): [ChainUpgradeVersion | undefined, ChainUpgradeVersion | undefined] {
114
+ const known = upgrades.find((u) => genesisHash.eq(u.genesisHash));
115
+
116
+ return known
117
+ ? [
118
+ known.versions.reduce<ChainUpgradeVersion | undefined>((last, version) => {
119
+ return blockNumber.gt(version.blockNumber)
120
+ ? version
121
+ : last;
122
+ }, undefined),
123
+ known.versions.find((version) => blockNumber.lte(version.blockNumber))
124
+ ]
125
+ : [undefined, undefined];
126
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const packageInfo_1 = require("@pezkuwi/types/packageInfo");
4
+ const util_1 = require("@pezkuwi/util");
5
+ const packageInfo_js_1 = require("./packageInfo.js");
6
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.16' };
4
+ exports.packageInfo = { name: '@pezkuwi/types-known', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.18' };
@@ -10,7 +10,7 @@ const NET_EXTRA = {
10
10
  genesisHash: ['0xd9d3cd7c1e5d890d969b957f4c5b71a111bbeeabc968f1d0d4538c2663f080a7']
11
11
  },
12
12
  pezkuwi: {
13
- genesisHash: ['0x41693961995d879073269a008d0a52832caa3e0ae73869f02127f3d5daa4934c']
13
+ genesisHash: ['0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75']
14
14
  },
15
15
  zagros: {
16
16
  genesisHash: ['0x297f5a4d105b4b28312586ff1915572ffe4ee015ff772b76399ecbff25a22026']
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.16' };
1
+ export const packageInfo = { name: '@pezkuwi/types-known', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.18' };
@@ -6,7 +6,7 @@ const NET_EXTRA = {
6
6
  genesisHash: ['0xd9d3cd7c1e5d890d969b957f4c5b71a111bbeeabc968f1d0d4538c2663f080a7']
7
7
  },
8
8
  pezkuwi: {
9
- genesisHash: ['0x41693961995d879073269a008d0a52832caa3e0ae73869f02127f3d5daa4934c']
9
+ genesisHash: ['0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75']
10
10
  },
11
11
  zagros: {
12
12
  genesisHash: ['0x297f5a4d105b4b28312586ff1915572ffe4ee015ff772b76399ecbff25a22026']
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Dijital Kurdistan Tech Institute <dev@pezkuwichain.io>",
2
+ "author": "Jaco Greeff <jacogr@gmail.com>",
3
3
  "bugs": "https://github.com/pezkuwichain/pezkuwi-api/issues",
4
4
  "description": "Known type definitions",
5
5
  "engines": {
@@ -18,13 +18,11 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "16.5.16",
21
+ "types": "./index.d.ts",
22
+ "version": "16.5.18",
22
23
  "main": "./cjs/index.js",
23
- "module": "./cjs/index.js",
24
- "types": "./cjs/index.d.ts",
24
+ "module": "./index.js",
25
25
  "exports": {
26
- "./cjs/package.json": "./cjs/package.json",
27
- "./cjs/*": "./cjs/*.js",
28
26
  ".": {
29
27
  "module": {
30
28
  "types": "./index.d.ts",
@@ -67,6 +65,8 @@
67
65
  "default": "./chain/index.js"
68
66
  }
69
67
  },
68
+ "./cjs/*": "./cjs/*.js",
69
+ "./cjs/package.json": "./cjs/package.json",
70
70
  "./package.json": {
71
71
  "require": "./cjs/package.json",
72
72
  "default": "./package.json"
@@ -85,7 +85,7 @@
85
85
  "default": "./packageDetect.js"
86
86
  }
87
87
  },
88
- "./packageInfo.js": {
88
+ "./packageInfo": {
89
89
  "module": {
90
90
  "types": "./packageInfo.d.ts",
91
91
  "default": "./packageInfo.js"
@@ -99,7 +99,7 @@
99
99
  "default": "./packageInfo.js"
100
100
  }
101
101
  },
102
- "./packageInfo": {
102
+ "./packageInfo.js": {
103
103
  "module": {
104
104
  "types": "./packageInfo.d.ts",
105
105
  "default": "./packageInfo.js"
@@ -437,11 +437,14 @@
437
437
  }
438
438
  },
439
439
  "dependencies": {
440
- "@pezkuwi/networks": "14.0.12",
441
- "@pezkuwi/types": "16.5.15",
442
- "@pezkuwi/types-codec": "16.5.15",
443
- "@pezkuwi/types-create": "16.5.15",
444
- "@pezkuwi/util": "14.0.12",
440
+ "@pezkuwi/networks": "16.5.9",
441
+ "@pezkuwi/types": "16.5.9",
442
+ "@pezkuwi/types-codec": "16.5.9",
443
+ "@pezkuwi/types-create": "16.5.9",
444
+ "@pezkuwi/util": "14.0.11",
445
445
  "tslib": "^2.8.1"
446
+ },
447
+ "devDependencies": {
448
+ "@pezkuwi/api": "workspace:*"
446
449
  }
447
450
  }
package/src/bundle.ts ADDED
@@ -0,0 +1,11 @@
1
+ // Copyright 2017-2025 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // all external
5
+ export { mapXcmTypes } from '@pezkuwi/types-create';
6
+
7
+ // all named
8
+ export { packageInfo } from './packageInfo.js';
9
+
10
+ // all starred
11
+ export * from './util.js';
@@ -0,0 +1,7 @@
1
+ // Copyright 2017-2025 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { OverrideVersionedType } from '@pezkuwi/types/types';
5
+
6
+ // Type overrides based on specific nodes
7
+ export const typesChain: Record<string, OverrideVersionedType[]> = {};
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2025 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import './packageDetect.js';
5
+
6
+ export * from './bundle.js';
package/src/mod.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2025 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export * from './index.js';
@@ -0,0 +1,12 @@
1
+ // Copyright 2017-2026 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // Do not edit, auto-generated by @pezkuwi/dev
5
+ // (packageInfo imports will be kept as-is, user-editable)
6
+
7
+ import { packageInfo as typesInfo } from '@pezkuwi/types/packageInfo';
8
+ import { detectPackage } from '@pezkuwi/util';
9
+
10
+ import { packageInfo } from './packageInfo.js';
11
+
12
+ detectPackage(packageInfo, null, [typesInfo]);
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2026 @pezkuwi/types-known authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // Do not edit, auto-generated by @pezkuwi/dev
5
+
6
+ export const packageInfo = { name: '@pezkuwi/types-known', path: 'auto', type: 'auto', version: '16.5.18' };
@@ -0,0 +1,116 @@
1
+ // Copyright 2017-2025 @pezkuwi/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
+ // Anchor
10
+ AnchorData: {
11
+ anchoredBlock: 'u64',
12
+ docRoot: 'H256',
13
+ id: 'H256'
14
+ },
15
+ DispatchErrorModule: 'DispatchErrorModuleU8',
16
+ PreCommitData: {
17
+ expirationBlock: 'u64',
18
+ identity: 'H256',
19
+ signingRoot: 'H256'
20
+ },
21
+
22
+ // Fees
23
+ Fee: {
24
+ key: 'Hash',
25
+ price: 'Balance'
26
+ },
27
+
28
+ // MultiAccount
29
+ MultiAccountData: {
30
+ deposit: 'Balance',
31
+ depositor: 'AccountId',
32
+ signatories: 'Vec<AccountId>',
33
+ threshold: 'u16'
34
+ },
35
+
36
+ // Bridge
37
+ ChainId: 'u8',
38
+ DepositNonce: 'u64',
39
+ ResourceId: '[u8; 32]',
40
+ 'chainbridge::ChainId': 'u8',
41
+
42
+ // NFT
43
+ RegistryId: 'H160',
44
+ TokenId: 'U256',
45
+ AssetId: {
46
+ registryId: 'RegistryId',
47
+ tokenId: 'TokenId'
48
+ },
49
+ AssetInfo: {
50
+ metadata: 'Bytes'
51
+ },
52
+ MintInfo: {
53
+ anchorId: 'Hash',
54
+ proofs: 'Vec<ProofMint>',
55
+ staticHashes: '[Hash; 3]'
56
+ },
57
+ Proof: {
58
+ leafHash: 'H256',
59
+ sortedHashes: 'H256'
60
+ },
61
+ ProofMint: {
62
+ hashes: 'Vec<Hash>',
63
+ property: 'Bytes',
64
+ salt: '[u8; 32]',
65
+ value: 'Bytes'
66
+ },
67
+ RegistryInfo: {
68
+ fields: 'Vec<Bytes>',
69
+ ownerCanBurn: 'bool'
70
+ },
71
+
72
+ ProxyType: {
73
+ _enum: [
74
+ 'Any',
75
+ 'NonTransfer',
76
+ 'Governance',
77
+ 'Staking',
78
+ 'NonProxy'
79
+ ]
80
+ }
81
+ };
82
+
83
+ const standaloneTypes = {
84
+ ...sharedTypes,
85
+ AccountInfo: 'AccountInfoWithRefCount',
86
+ Address: 'LookupSource',
87
+ LookupSource: 'IndicesLookupSource',
88
+ Multiplier: 'Fixed64',
89
+ RefCount: 'RefCountTo259'
90
+ };
91
+
92
+ export const versioned: OverrideVersionedType[] = [
93
+ {
94
+ minmax: [240, 243],
95
+ types: {
96
+ ...standaloneTypes,
97
+ ProxyType: {
98
+ _enum: [
99
+ 'Any',
100
+ 'NonTransfer',
101
+ 'Governance',
102
+ 'Staking',
103
+ 'Vesting'
104
+ ]
105
+ }
106
+ }
107
+ },
108
+ {
109
+ minmax: [244, 999],
110
+ types: { ...standaloneTypes }
111
+ },
112
+ {
113
+ minmax: [1000, undefined],
114
+ types: { ...sharedTypes }
115
+ }
116
+ ];
@@ -0,0 +1,125 @@
1
+ // Copyright 2017-2025 @pezkuwi/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
+ // 16 validators
12
+ CompactAssignments: 'CompactAssignmentsWith16',
13
+ DispatchErrorModule: 'DispatchErrorModuleU8',
14
+ RawSolution: 'RawSolutionWith16',
15
+ // general
16
+ Keys: 'SessionKeys6',
17
+ ProxyType: {
18
+ _enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement', 'CancelProxy']
19
+ },
20
+ Weight: 'WeightV1'
21
+ };
22
+
23
+ const addrAccountIdTypes = {
24
+ AccountInfo: 'AccountInfoWithRefCount',
25
+ Address: 'AccountId',
26
+ CompactAssignments: 'CompactAssignmentsWith16',
27
+ DispatchErrorModule: 'DispatchErrorModuleU8',
28
+ LookupSource: 'AccountId',
29
+ Keys: 'SessionKeys5',
30
+ RawSolution: 'RawSolutionWith16',
31
+ ValidatorPrefs: 'ValidatorPrefsWithCommission'
32
+ };
33
+
34
+ export const versioned: OverrideVersionedType[] = [
35
+ {
36
+ minmax: [1, 2],
37
+ types: {
38
+ ...sharedTypes,
39
+ ...addrAccountIdTypes,
40
+ CompactAssignments: 'CompactAssignmentsTo257',
41
+ DispatchInfo: 'DispatchInfoTo244',
42
+ Heartbeat: 'HeartbeatTo244',
43
+ Multiplier: 'Fixed64',
44
+ OpenTip: 'OpenTipTo225',
45
+ RefCount: 'RefCountTo259',
46
+ Weight: 'u32'
47
+ }
48
+ },
49
+ {
50
+ minmax: [3, 22],
51
+ types: {
52
+ ...sharedTypes,
53
+ ...addrAccountIdTypes,
54
+ CompactAssignments: 'CompactAssignmentsTo257',
55
+ DispatchInfo: 'DispatchInfoTo244',
56
+ Heartbeat: 'HeartbeatTo244',
57
+ OpenTip: 'OpenTipTo225',
58
+ RefCount: 'RefCountTo259'
59
+ }
60
+ },
61
+ {
62
+ minmax: [23, 42],
63
+ types: {
64
+ ...sharedTypes,
65
+ ...addrAccountIdTypes,
66
+ CompactAssignments: 'CompactAssignmentsTo257',
67
+ DispatchInfo: 'DispatchInfoTo244',
68
+ Heartbeat: 'HeartbeatTo244',
69
+ RefCount: 'RefCountTo259'
70
+ }
71
+ },
72
+ {
73
+ minmax: [43, 44],
74
+ types: {
75
+ ...sharedTypes,
76
+ ...addrAccountIdTypes,
77
+ DispatchInfo: 'DispatchInfoTo244',
78
+ Heartbeat: 'HeartbeatTo244',
79
+ RefCount: 'RefCountTo259'
80
+ }
81
+ },
82
+ {
83
+ minmax: [45, 47],
84
+ types: {
85
+ ...sharedTypes,
86
+ ...addrAccountIdTypes
87
+ }
88
+ },
89
+ {
90
+ minmax: [48, 49],
91
+ types: {
92
+ ...sharedTypes,
93
+ AccountInfo: 'AccountInfoWithDualRefCount'
94
+ }
95
+ },
96
+ {
97
+ minmax: [50, 9099],
98
+ types: {
99
+ ...sharedTypes,
100
+ ...mapXcmTypes('V0')
101
+ }
102
+ },
103
+ {
104
+ minmax: [9100, 9105],
105
+ types: {
106
+ ...sharedTypes,
107
+ ...mapXcmTypes('V1')
108
+ }
109
+ },
110
+ {
111
+ // metadata v14
112
+ minmax: [9106, undefined],
113
+ types: {
114
+ Weight: 'WeightV1'
115
+ }
116
+ }
117
+ // ,
118
+ // {
119
+ // // weight v2 introduction
120
+ // minmax: [9300, undefined],
121
+ // types: {
122
+ // Weight: 'WeightV2'
123
+ // }
124
+ // }
125
+ ];