@pezkuwi/networks 14.0.9 → 14.0.11

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 (110) hide show
  1. package/build/LICENSE +201 -0
  2. package/build/README.md +5 -0
  3. package/build/cjs/defaults/genesis.d.ts +2 -0
  4. package/build/cjs/defaults/genesis.js +216 -0
  5. package/build/cjs/defaults/icons.d.ts +2 -0
  6. package/build/cjs/defaults/icons.js +12 -0
  7. package/build/cjs/defaults/index.d.ts +4 -0
  8. package/build/cjs/defaults/index.js +11 -0
  9. package/build/cjs/defaults/ledger.d.ts +2 -0
  10. package/build/cjs/defaults/ledger.js +55 -0
  11. package/build/cjs/defaults/testnets.d.ts +2 -0
  12. package/build/cjs/defaults/testnets.js +13 -0
  13. package/build/cjs/index.d.ts +2 -0
  14. package/build/cjs/index.js +7 -0
  15. package/build/cjs/interfaces.d.ts +4 -0
  16. package/build/cjs/interfaces.js +82 -0
  17. package/build/cjs/package.json +3 -0
  18. package/build/cjs/packageDetect.d.ts +1 -0
  19. package/build/cjs/packageDetect.js +5 -0
  20. package/build/cjs/packageInfo.d.ts +6 -0
  21. package/build/cjs/packageInfo.js +4 -0
  22. package/build/cjs/types.d.ts +31 -0
  23. package/build/cjs/types.js +2 -0
  24. package/build/defaults/genesis.d.ts +2 -0
  25. package/build/defaults/genesis.js +213 -0
  26. package/build/defaults/icons.d.ts +2 -0
  27. package/build/defaults/icons.js +9 -0
  28. package/build/defaults/index.d.ts +4 -0
  29. package/build/defaults/index.js +4 -0
  30. package/build/defaults/ledger.d.ts +2 -0
  31. package/build/defaults/ledger.js +52 -0
  32. package/build/defaults/testnets.d.ts +2 -0
  33. package/build/defaults/testnets.js +10 -0
  34. package/build/index.d.ts +2 -0
  35. package/build/index.js +2 -0
  36. package/build/interfaces.d.ts +4 -0
  37. package/build/interfaces.js +79 -0
  38. package/build/package.json +189 -0
  39. package/build/packageDetect.d.ts +1 -0
  40. package/build/packageDetect.js +3 -0
  41. package/build/packageInfo.d.ts +6 -0
  42. package/build/packageInfo.js +1 -0
  43. package/build/types.d.ts +31 -0
  44. package/build/types.js +1 -0
  45. package/build-deno/README.md +5 -0
  46. package/build-deno/defaults/genesis.ts +216 -0
  47. package/build-deno/defaults/icons.ts +12 -0
  48. package/build-deno/defaults/index.ts +5 -0
  49. package/build-deno/defaults/ledger.ts +55 -0
  50. package/build-deno/defaults/testnets.ts +13 -0
  51. package/build-deno/index.ts +4 -0
  52. package/build-deno/interfaces.ts +100 -0
  53. package/build-deno/mod.ts +2 -0
  54. package/build-deno/packageDetect.ts +7 -0
  55. package/build-deno/packageInfo.ts +3 -0
  56. package/build-deno/types.ts +41 -0
  57. package/build-tsc/defaults/genesis.d.ts +2 -0
  58. package/build-tsc/defaults/icons.d.ts +2 -0
  59. package/build-tsc/defaults/index.d.ts +4 -0
  60. package/build-tsc/defaults/ledger.d.ts +2 -0
  61. package/build-tsc/defaults/testnets.d.ts +2 -0
  62. package/build-tsc/index.d.ts +2 -0
  63. package/build-tsc/interfaces.d.ts +4 -0
  64. package/build-tsc/packageDetect.d.ts +1 -0
  65. package/build-tsc/packageInfo.d.ts +6 -0
  66. package/build-tsc/types.d.ts +31 -0
  67. package/build-tsc-cjs/defaults/genesis.js +216 -0
  68. package/build-tsc-cjs/defaults/icons.js +12 -0
  69. package/build-tsc-cjs/defaults/index.js +11 -0
  70. package/build-tsc-cjs/defaults/ledger.js +55 -0
  71. package/build-tsc-cjs/defaults/testnets.js +13 -0
  72. package/build-tsc-cjs/index.js +7 -0
  73. package/build-tsc-cjs/interfaces.js +82 -0
  74. package/build-tsc-cjs/packageDetect.js +5 -0
  75. package/build-tsc-cjs/packageInfo.js +4 -0
  76. package/build-tsc-cjs/types.js +2 -0
  77. package/build-tsc-esm/defaults/genesis.js +213 -0
  78. package/build-tsc-esm/defaults/icons.js +9 -0
  79. package/build-tsc-esm/defaults/index.js +4 -0
  80. package/build-tsc-esm/defaults/ledger.js +52 -0
  81. package/build-tsc-esm/defaults/testnets.js +10 -0
  82. package/build-tsc-esm/index.js +2 -0
  83. package/build-tsc-esm/interfaces.js +79 -0
  84. package/build-tsc-esm/packageDetect.js +3 -0
  85. package/build-tsc-esm/packageInfo.js +1 -0
  86. package/build-tsc-esm/types.js +1 -0
  87. package/cjs/interfaces.js +39 -3
  88. package/cjs/packageInfo.js +1 -1
  89. package/interfaces.js +39 -2
  90. package/package.json +3 -3
  91. package/packageInfo.js +1 -1
  92. package/src/defaults/genesis.ts +226 -0
  93. package/src/defaults/icons.ts +15 -0
  94. package/src/defaults/index.ts +7 -0
  95. package/src/defaults/ledger.ts +61 -0
  96. package/src/defaults/testnets.ts +16 -0
  97. package/src/defaults.spec.ts +59 -0
  98. package/src/index.spec.ts +120 -0
  99. package/src/index.ts +9 -0
  100. package/src/interfaces.ts +109 -0
  101. package/src/mod.ts +4 -0
  102. package/src/packageDetect.ts +11 -0
  103. package/src/packageInfo.ts +6 -0
  104. package/src/ss58registry.spec.ts +34 -0
  105. package/src/types.ts +43 -0
  106. package/test/ss58registry.json +1905 -0
  107. package/tsconfig.build.json +17 -0
  108. package/tsconfig.build.tsbuildinfo +1 -0
  109. package/tsconfig.spec.json +18 -0
  110. package/tsconfig.spec.tsbuildinfo +1 -0
@@ -0,0 +1,52 @@
1
+ export const knownLedger = {
2
+ acala: 0x00000313,
3
+ ajuna: 0x00000162,
4
+ 'aleph-node': 0x00000283,
5
+ astar: 0x0000032a,
6
+ bifrost: 0x00000314,
7
+ 'bifrost-kusama': 0x00000314,
8
+ bittensor: 0x00000162,
9
+ centrifuge: 0x000002eb,
10
+ composable: 0x00000162,
11
+ creditcoin3: 0x00000162,
12
+ darwinia: 0x00000162,
13
+ dentnet: 0x000002de,
14
+ 'dock-mainnet': 0x00000252,
15
+ edgeware: 0x0000020b,
16
+ encointer: 0x000001b2,
17
+ enjin: 0x00000483,
18
+ equilibrium: 0x05f5e0fd,
19
+ frequency: 0x0000082b,
20
+ genshiro: 0x05f5e0fc,
21
+ hydradx: 0x00000162,
22
+ integritee: 0x000007df,
23
+ 'interlay-parachain': 0x00000162,
24
+ karura: 0x000002ae,
25
+ khala: 0x000001b2,
26
+ kusama: 0x000001b2,
27
+ liberland: 0x000002ff,
28
+ matrixchain: 0x00000483,
29
+ mythos: 0x0000003c,
30
+ nodle: 0x000003eb,
31
+ origintrail: 0x00000162,
32
+ parallel: 0x00000162,
33
+ peaq: 0x00000d0a,
34
+ pendulum: 0x00000162,
35
+ phala: 0x00000162,
36
+ picasso: 0x000001b2,
37
+ polimec: 0x00000d10,
38
+ polkadex: 0x0000031f,
39
+ polkadot: 0x00000162,
40
+ polymesh: 0x00000253,
41
+ quartz: 0x00000277,
42
+ sora: 0x00000269,
43
+ stafi: 0x0000038b,
44
+ statemine: 0x000001b2, // common-good on Kusama, shares derivation
45
+ statemint: 0x00000162, // common-good on Polkadot, shares derivation
46
+ ternoa: 0x00003e3,
47
+ unique: 0x00000295,
48
+ vara: 0x00001370,
49
+ vtb: 0x000002b6,
50
+ xxnetwork: 0x000007a3,
51
+ zeitgeist: 0x00000162
52
+ };
@@ -0,0 +1,10 @@
1
+ export const knownTestnet = {
2
+ '': true, // this is the default non-network entry
3
+ 'cess-testnet': true,
4
+ 'dock-testnet': true,
5
+ jupiter: true,
6
+ 'mathchain-testnet': true,
7
+ p3dt: true,
8
+ subspace_testnet: true,
9
+ 'zero-alphaville': true
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from './interfaces.js';
2
+ export { packageInfo } from './packageInfo.js';
@@ -0,0 +1,79 @@
1
+ import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
2
+ const UNSORTED = [0, 2, 42];
3
+ const TESTNETS = ['testnet'];
4
+ const customNetworks = [
5
+ {
6
+ decimals: [10],
7
+ displayName: 'Pezkuwi Relay Chain',
8
+ network: 'pezkuwi',
9
+ prefix: 0,
10
+ standardAccount: '*25519',
11
+ symbols: ['PZW'],
12
+ website: 'https://pezkuwi.com'
13
+ },
14
+ {
15
+ decimals: [12],
16
+ displayName: 'Zagros Relay Chain',
17
+ network: 'zagros',
18
+ prefix: 2,
19
+ standardAccount: '*25519',
20
+ symbols: ['ZGS'],
21
+ website: 'https://zagros.pezkuwi.com'
22
+ },
23
+ {
24
+ decimals: [12],
25
+ displayName: 'Bizinikiwi',
26
+ network: 'bizinikiwi',
27
+ prefix: 42,
28
+ standardAccount: '*25519',
29
+ symbols: ['BZN'],
30
+ website: 'https://bizinikiwi.com'
31
+ },
32
+ {
33
+ decimals: [18],
34
+ displayName: 'PezkuwiChain',
35
+ network: 'pezkuwichain',
36
+ prefix: 1453,
37
+ standardAccount: '*25519',
38
+ symbols: ['PZC'],
39
+ website: 'https://chain.pezkuwi.com'
40
+ }
41
+ ];
42
+ function toExpanded(o) {
43
+ const network = o.network || '';
44
+ const nameParts = network.replace(/_/g, '-').split('-');
45
+ const n = o;
46
+ // ledger additions
47
+ n.slip44 = knownLedger[network];
48
+ n.hasLedgerSupport = !!n.slip44;
49
+ // general items
50
+ n.genesisHash = knownGenesis[network] || [];
51
+ n.icon = knownIcon[network] || 'substrate';
52
+ // filtering
53
+ n.isTestnet = !!knownTestnet[network] || TESTNETS.includes(nameParts[nameParts.length - 1]);
54
+ n.isIgnored = n.isTestnet || (!(o.standardAccount &&
55
+ o.decimals?.length &&
56
+ o.symbols?.length) &&
57
+ o.prefix !== 42);
58
+ return n;
59
+ }
60
+ function filterSelectable({ genesisHash, prefix }) {
61
+ return !!genesisHash.length || prefix === 42;
62
+ }
63
+ function filterAvailable(n) {
64
+ return !n.isIgnored && !!n.network;
65
+ }
66
+ function sortNetworks(a, b) {
67
+ const isUnSortedA = UNSORTED.includes(a.prefix);
68
+ const isUnSortedB = UNSORTED.includes(b.prefix);
69
+ return isUnSortedA === isUnSortedB
70
+ ? isUnSortedA
71
+ ? 0
72
+ : a.displayName.localeCompare(b.displayName)
73
+ : isUnSortedA
74
+ ? -1
75
+ : 1;
76
+ }
77
+ export const allNetworks = customNetworks.map(toExpanded);
78
+ export const availableNetworks = allNetworks.filter(filterAvailable).sort(sortNetworks);
79
+ export const selectableNetworks = availableNetworks.filter(filterSelectable);
@@ -0,0 +1,3 @@
1
+ import { detectPackage } from '@pezkuwi/util';
2
+ import { packageInfo } from './packageInfo.js';
3
+ detectPackage(packageInfo, null, []);
@@ -0,0 +1 @@
1
+ export const packageInfo = { name: '@pezkuwi/networks', 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: '14.0.10' };
@@ -0,0 +1 @@
1
+ export {};
package/cjs/interfaces.js CHANGED
@@ -1,11 +1,47 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.selectableNetworks = exports.availableNetworks = exports.allNetworks = void 0;
4
- const tslib_1 = require("tslib");
5
- const ss58_registry_1 = tslib_1.__importDefault(require("@substrate/ss58-registry"));
6
4
  const index_js_1 = require("./defaults/index.js");
7
5
  const UNSORTED = [0, 2, 42];
8
6
  const TESTNETS = ['testnet'];
7
+ const customNetworks = [
8
+ {
9
+ decimals: [10],
10
+ displayName: 'Pezkuwi Relay Chain',
11
+ network: 'pezkuwi',
12
+ prefix: 0,
13
+ standardAccount: '*25519',
14
+ symbols: ['PZW'],
15
+ website: 'https://pezkuwi.com'
16
+ },
17
+ {
18
+ decimals: [12],
19
+ displayName: 'Zagros Relay Chain',
20
+ network: 'zagros',
21
+ prefix: 2,
22
+ standardAccount: '*25519',
23
+ symbols: ['ZGS'],
24
+ website: 'https://zagros.pezkuwi.com'
25
+ },
26
+ {
27
+ decimals: [12],
28
+ displayName: 'Bizinikiwi',
29
+ network: 'bizinikiwi',
30
+ prefix: 42,
31
+ standardAccount: '*25519',
32
+ symbols: ['BZN'],
33
+ website: 'https://bizinikiwi.com'
34
+ },
35
+ {
36
+ decimals: [18],
37
+ displayName: 'PezkuwiChain',
38
+ network: 'pezkuwichain',
39
+ prefix: 1453,
40
+ standardAccount: '*25519',
41
+ symbols: ['PZC'],
42
+ website: 'https://chain.pezkuwi.com'
43
+ }
44
+ ];
9
45
  function toExpanded(o) {
10
46
  const network = o.network || '';
11
47
  const nameParts = network.replace(/_/g, '-').split('-');
@@ -41,6 +77,6 @@ function sortNetworks(a, b) {
41
77
  ? -1
42
78
  : 1;
43
79
  }
44
- exports.allNetworks = ss58_registry_1.default.map(toExpanded);
80
+ exports.allNetworks = customNetworks.map(toExpanded);
45
81
  exports.availableNetworks = exports.allNetworks.filter(filterAvailable).sort(sortNetworks);
46
82
  exports.selectableNetworks = exports.availableNetworks.filter(filterSelectable);
@@ -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/networks', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.8' };
4
+ exports.packageInfo = { name: '@pezkuwi/networks', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
package/interfaces.js CHANGED
@@ -1,7 +1,44 @@
1
- import knownBizinikiwi from '@substrate/ss58-registry';
2
1
  import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
3
2
  const UNSORTED = [0, 2, 42];
4
3
  const TESTNETS = ['testnet'];
4
+ const customNetworks = [
5
+ {
6
+ decimals: [10],
7
+ displayName: 'Pezkuwi Relay Chain',
8
+ network: 'pezkuwi',
9
+ prefix: 0,
10
+ standardAccount: '*25519',
11
+ symbols: ['PZW'],
12
+ website: 'https://pezkuwi.com'
13
+ },
14
+ {
15
+ decimals: [12],
16
+ displayName: 'Zagros Relay Chain',
17
+ network: 'zagros',
18
+ prefix: 2,
19
+ standardAccount: '*25519',
20
+ symbols: ['ZGS'],
21
+ website: 'https://zagros.pezkuwi.com'
22
+ },
23
+ {
24
+ decimals: [12],
25
+ displayName: 'Bizinikiwi',
26
+ network: 'bizinikiwi',
27
+ prefix: 42,
28
+ standardAccount: '*25519',
29
+ symbols: ['BZN'],
30
+ website: 'https://bizinikiwi.com'
31
+ },
32
+ {
33
+ decimals: [18],
34
+ displayName: 'PezkuwiChain',
35
+ network: 'pezkuwichain',
36
+ prefix: 1453,
37
+ standardAccount: '*25519',
38
+ symbols: ['PZC'],
39
+ website: 'https://chain.pezkuwi.com'
40
+ }
41
+ ];
5
42
  function toExpanded(o) {
6
43
  const network = o.network || '';
7
44
  const nameParts = network.replace(/_/g, '-').split('-');
@@ -37,6 +74,6 @@ function sortNetworks(a, b) {
37
74
  ? -1
38
75
  : 1;
39
76
  }
40
- export const allNetworks = knownBizinikiwi.map(toExpanded);
77
+ export const allNetworks = customNetworks.map(toExpanded);
41
78
  export const availableNetworks = allNetworks.filter(filterAvailable).sort(sortNetworks);
42
79
  export const selectableNetworks = availableNetworks.filter(filterSelectable);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Jaco Greeff <jacogr@gmail.com>",
2
+ "author": "Pezkuwi Team <team@pezkuwichain.app>",
3
3
  "bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
4
4
  "description": "A list of all available Bizinikiwi networks and their applicable prefixes",
5
5
  "engines": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "sideEffects": false,
17
17
  "type": "module",
18
- "version": "14.0.9",
18
+ "version": "14.0.11",
19
19
  "main": "./cjs/index.js",
20
20
  "module": "./index.js",
21
21
  "types": "./index.d.ts",
@@ -182,7 +182,7 @@
182
182
  }
183
183
  },
184
184
  "dependencies": {
185
- "@pezkuwi/util": "14.0.1",
185
+ "@pezkuwi/util": "14.0.11",
186
186
  "@substrate/ss58-registry": "^1.51.0",
187
187
  "tslib": "^2.8.0"
188
188
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/networks', 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: '14.0.8' };
1
+ export const packageInfo = { name: '@pezkuwi/networks', 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: '14.0.10' };
@@ -0,0 +1,226 @@
1
+ // Copyright 2017-2025 @pezkuwi/networks authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { KnownGenesis } from '../types.js';
5
+
6
+ // In the case where the network was hard-spooned and multiple genesisHashes
7
+ // are provided, it needs to be in reverse order, i.e. most-recent goes first,
8
+ // oldest goes last. This make lookups for the current a simple genesisHash[0]
9
+ // where the latest ios always the first entry (See Kusama as an example)
10
+ //
11
+ // IMPORTANT: Apart from the test relays, this list is limited to live parachains
12
+ // and live production networks. It does not and should not contain any testnets,
13
+ // either stand-alone or connected to test relays such as Westend/Rococo
14
+ export const knownGenesis: KnownGenesis = {
15
+ acala: [
16
+ '0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c'
17
+ ],
18
+ ajuna: [
19
+ '0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee'
20
+ ],
21
+ 'aleph-node': [
22
+ '0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e'
23
+ ],
24
+ astar: [
25
+ '0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
26
+ ],
27
+ basilisk: [
28
+ '0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755'
29
+ ],
30
+ bifrost: [
31
+ '0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b'
32
+ ],
33
+ 'bifrost-kusama': [
34
+ '0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed'
35
+ ],
36
+ bittensor: [
37
+ '0x2f0555cc76fc2840a25a6ea3b9637146806f1f44b090c175ffde2a7e5ab36c03'
38
+ ],
39
+ centrifuge: [
40
+ '0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82',
41
+ '0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5'
42
+ ],
43
+ cere: [
44
+ '0x81443836a9a24caaa23f1241897d1235717535711d1d3fe24eae4fdc942c092c'
45
+ ],
46
+ composable: [
47
+ '0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d'
48
+ ],
49
+ creditcoin3: [
50
+ '0x4436a7d64e363df85e065a894721002a86643283f9707338bf195d360ba2ee71', // cc3 mainnet
51
+ '0xfc4ec97a1c1f119c4353aecb4a17c7c0cf7b40d5d660143d8bad9117e9866572', // cc3 testnet/drynet
52
+ '0xfc9df99a665f964aed6649f275055e54df5e3420489538ed31d7788f53d11ef6' // cc3 devnet
53
+ ],
54
+ darwinia: [
55
+ '0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6'
56
+ ],
57
+ dentnet: [
58
+ '0x0313f6a011d128d22f996703cbab05162e2fdc9e031493314fe6db79979c5ca7'
59
+ ],
60
+ 'dock-mainnet': [
61
+ '0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae',
62
+ '0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9'
63
+ ],
64
+ edgeware: [
65
+ '0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b'
66
+ ],
67
+ encointer: [
68
+ '0x7dd99936c1e9e6d1ce7d90eb6f33bea8393b4bf87677d675aa63c9cb3e8c5b5b'
69
+ ],
70
+ enjin: [
71
+ '0xd8761d3c88f26dc12875c00d3165f7d67243d56fc85b4cf19937601a7916e5a9'
72
+ ],
73
+ equilibrium: [
74
+ '0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925'
75
+ ],
76
+ frequency: [
77
+ '0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1'
78
+ ],
79
+ genshiro: [
80
+ '0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243'
81
+ ],
82
+ hydradx: [
83
+ '0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d', // Hydration | HydraDX Parachain
84
+ '0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc', // Snakenet Gen3-1
85
+ '0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9', // Snakenet Gen3
86
+ '0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047', // Snakenet Gen2
87
+ '0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2' // Snakenet Gen1
88
+ ],
89
+ integritee: [
90
+ '0xcdedc8eadbfa209d3f207bba541e57c3c58a667b05a2e1d1e86353c9000758da', // on Kusama
91
+ '0xe13e7af377c64e83f95e0d70d5e5c3c01d697a84538776c5b9bbe0e7d7b6034c' // on Polkadot
92
+ ],
93
+ 'interlay-parachain': [
94
+ '0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72'
95
+ ],
96
+ karura: [
97
+ '0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b'
98
+ ],
99
+ khala: [
100
+ '0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d'
101
+ ],
102
+ kulupu: [
103
+ '0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba'
104
+ ],
105
+ kusama: [
106
+ '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe', // Kusama CC3,
107
+ '0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2
108
+ '0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1
109
+ ],
110
+ // Dicle - Pezkuwi canary relay chain (placeholder until mainnet launch)
111
+ dicle: [
112
+ '0xd9d3cd7c1e5d890d969b957f4c5b71a111bbeeabc968f1d0d4538c2663f080a7'
113
+ ],
114
+ liberland: [
115
+ '0x6bd89e052d67a45bb60a9a23e8581053d5e0d619f15cb9865946937e690c42d6'
116
+ ],
117
+ matrixchain: [
118
+ '0x3af4ff48ec76d2efc8476730f423ac07e25ad48f5f4c9dc39c778b164d808615'
119
+ ],
120
+ mythos: [
121
+ '0xf6ee56e9c5277df5b4ce6ae9983ee88f3cbed27d31beeb98f9f84f997a1ab0b9'
122
+ ],
123
+ nodle: [
124
+ '0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21'
125
+ ],
126
+ origintrail: [
127
+ '0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174'
128
+ ],
129
+ p3d: [
130
+ '0x6c5894837ad89b6d92b114a2fb3eafa8fe3d26a54848e3447015442cd6ef4e66'
131
+ ],
132
+ parallel: [
133
+ '0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97'
134
+ ],
135
+ peaq: [
136
+ '0xd2a5d385932d1f650dae03ef8e2748983779ee342c614f80854d32b8cd8fa48c'
137
+ ],
138
+ pendulum: [
139
+ '0x5d3c298622d5634ed019bf61ea4b71655030015bde9beb0d6a24743714462c86'
140
+ ],
141
+ phala: [
142
+ '0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736'
143
+ ],
144
+ picasso: [
145
+ '0x6811a339673c9daa897944dcdac99c6e2939cc88245ed21951a0a3c9a2be75bc',
146
+ '0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c'
147
+ ],
148
+ polimec: [
149
+ '0x7eb9354488318e7549c722669dcbdcdc526f1fef1420e7944667212f3601fdbd'
150
+ ],
151
+ polkadex: [
152
+ '0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c'
153
+ ],
154
+ polkadot: [
155
+ '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
156
+ ],
157
+ // Pezkuwi - Pezkuwi main relay chain (placeholder until mainnet launch)
158
+ pezkuwi: [
159
+ '0x41693961995d879073269a008d0a52832caa3e0ae73869f02127f3d5daa4934c'
160
+ ],
161
+ polymesh: [
162
+ '0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063'
163
+ ],
164
+ quartz: [
165
+ '0xcd4d732201ebe5d6b014edda071c4203e16867305332301dc8d092044b28e554'
166
+ ],
167
+ rococo: [
168
+ '0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e',
169
+ '0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897',
170
+ '0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770',
171
+ '0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff',
172
+ '0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a',
173
+ '0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9',
174
+ '0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779',
175
+ '0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215',
176
+ '0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9',
177
+ '0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147',
178
+ '0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd',
179
+ '0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299'
180
+ ],
181
+ // PezkuwiChain - Pezkuwi dev relay chain (placeholder until devnet launch)
182
+ pezkuwichain: [
183
+ '0x32154fd2c844f928c82964ff66168b41b15fc235f3a956d14393734c1ed4326b'
184
+ ],
185
+ sora: [
186
+ '0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5'
187
+ ],
188
+ stafi: [
189
+ '0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80'
190
+ ],
191
+ statemine: [
192
+ '0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a'
193
+ ],
194
+ statemint: [
195
+ '0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f'
196
+ ],
197
+ subsocial: [
198
+ '0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8'
199
+ ],
200
+ ternoa: [
201
+ '0x6859c81ca95ef624c9dfe4dc6e3381c33e5d6509e35e147092bfbc780f777c4e'
202
+ ],
203
+ unique: [
204
+ '0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31'
205
+ ],
206
+ vara: [
207
+ '0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763'
208
+ ],
209
+ vtb: [
210
+ '0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f',
211
+ '0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa'
212
+ ],
213
+ westend: [
214
+ '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e'
215
+ ],
216
+ // Zagros - Pezkuwi test relay chain (placeholder until testnet launch)
217
+ zagros: [
218
+ '0x297f5a4d105b4b28312586ff1915572ffe4ee015ff772b76399ecbff25a22026'
219
+ ],
220
+ xxnetwork: [
221
+ '0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa'
222
+ ],
223
+ zeitgeist: [
224
+ '0x1bf2a2ecb4a868de66ea8610f2ce7c8c43706561b6476031315f6640fe38e060'
225
+ ]
226
+ };
@@ -0,0 +1,15 @@
1
+ // Copyright 2017-2025 @pezkuwi/networks authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { KnownIcon } from '../types.js';
5
+
6
+ // these are icon overrides
7
+ export const knownIcon: KnownIcon = {
8
+ centrifuge: 'polkadot',
9
+ kusama: 'polkadot',
10
+ polkadot: 'polkadot',
11
+ sora: 'polkadot',
12
+ statemine: 'polkadot',
13
+ statemint: 'polkadot',
14
+ westmint: 'polkadot'
15
+ };
@@ -0,0 +1,7 @@
1
+ // Copyright 2017-2025 @pezkuwi/networks authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export { knownGenesis } from './genesis.js';
5
+ export { knownIcon } from './icons.js';
6
+ export { knownLedger } from './ledger.js';
7
+ export { knownTestnet } from './testnets.js';
@@ -0,0 +1,61 @@
1
+ // Copyright 2017-2025 @pezkuwi/networks authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { KnownLedger } from '../types.js';
5
+
6
+ // These match up with the keys of the ledgerApps object in the @pezkuwi/hw-ledger/defaults.ts
7
+ // and maps to the known slip44 (minus the `0x8` hard derivation flag)
8
+ //
9
+ // NOTE: Any network here needs to have a genesisHash attached in the ./genesis.ts config
10
+ export const knownLedger: KnownLedger = {
11
+ acala: 0x00000313,
12
+ ajuna: 0x00000162,
13
+ 'aleph-node': 0x00000283,
14
+ astar: 0x0000032a,
15
+ bifrost: 0x00000314,
16
+ 'bifrost-kusama': 0x00000314,
17
+ bittensor: 0x00000162,
18
+ centrifuge: 0x000002eb,
19
+ composable: 0x00000162,
20
+ creditcoin3: 0x00000162,
21
+ darwinia: 0x00000162,
22
+ dentnet: 0x000002de,
23
+ 'dock-mainnet': 0x00000252,
24
+ edgeware: 0x0000020b,
25
+ encointer: 0x000001b2,
26
+ enjin: 0x00000483,
27
+ equilibrium: 0x05f5e0fd,
28
+ frequency: 0x0000082b,
29
+ genshiro: 0x05f5e0fc,
30
+ hydradx: 0x00000162,
31
+ integritee: 0x000007df,
32
+ 'interlay-parachain': 0x00000162,
33
+ karura: 0x000002ae,
34
+ khala: 0x000001b2,
35
+ kusama: 0x000001b2,
36
+ liberland: 0x000002ff,
37
+ matrixchain: 0x00000483,
38
+ mythos: 0x0000003c,
39
+ nodle: 0x000003eb,
40
+ origintrail: 0x00000162,
41
+ parallel: 0x00000162,
42
+ peaq: 0x00000d0a,
43
+ pendulum: 0x00000162,
44
+ phala: 0x00000162,
45
+ picasso: 0x000001b2,
46
+ polimec: 0x00000d10,
47
+ polkadex: 0x0000031f,
48
+ polkadot: 0x00000162,
49
+ polymesh: 0x00000253,
50
+ quartz: 0x00000277,
51
+ sora: 0x00000269,
52
+ stafi: 0x0000038b,
53
+ statemine: 0x000001b2, // common-good on Kusama, shares derivation
54
+ statemint: 0x00000162, // common-good on Polkadot, shares derivation
55
+ ternoa: 0x00003e3,
56
+ unique: 0x00000295,
57
+ vara: 0x00001370,
58
+ vtb: 0x000002b6,
59
+ xxnetwork: 0x000007a3,
60
+ zeitgeist: 0x00000162
61
+ };
@@ -0,0 +1,16 @@
1
+ // Copyright 2017-2025 @pezkuwi/networks authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { KnownTestnet } from '../types.js';
5
+
6
+ // testnets should not allow selection
7
+ export const knownTestnet: KnownTestnet = {
8
+ '': true, // this is the default non-network entry
9
+ 'cess-testnet': true,
10
+ 'dock-testnet': true,
11
+ jupiter: true,
12
+ 'mathchain-testnet': true,
13
+ p3dt: true,
14
+ subspace_testnet: true,
15
+ 'zero-alphaville': true
16
+ };