@polkadot/networks 7.5.2-2 → 7.5.2-3

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.
package/defaults.cjs CHANGED
@@ -3,13 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.knownTestnet = exports.knownLedger = exports.knownIcon = exports.knownGenesis = void 0;
6
+ exports.substrateRegistry = exports.knownTestnet = exports.knownLedger = exports.knownIcon = exports.knownGenesis = void 0;
7
7
  // Copyright 2017-2021 @polkadot/networks authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
- // NOTE: In the case where the network was hard-spooned and multiple genesisHashes
9
+ const substrateRegistry = 'https://raw.githubusercontent.com/paritytech/ss58-registry/main/ss58-registry.json'; // NOTE: In the case where the network was hard-spooned and multiple genesisHashes
10
10
  // are provided, it needs to be in reverse order, i.e. most-recent first, oldest
11
11
  // last. This make lookups for the current a simple genesisHash[0]
12
12
  // (See Kusama as an example)
13
+
14
+ exports.substrateRegistry = substrateRegistry;
13
15
  const knownGenesis = {
14
16
  bifrost: ['0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed'],
15
17
  centrifuge: ['0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5'],
@@ -64,6 +66,9 @@ const knownLedger = {
64
66
 
65
67
  exports.knownLedger = knownLedger;
66
68
  const knownTestnet = {
69
+ '': true,
70
+ // this is the default non-network entry
71
+ 'cess-testnet': true,
67
72
  'dock-testnet': true,
68
73
  jupiter: true,
69
74
  'mathchain-testnet': true,
package/defaults.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { KnownGenesis, KnownIcon, KnownLedger, KnownTestnet } from './types';
2
+ export declare const substrateRegistry = "https://raw.githubusercontent.com/paritytech/ss58-registry/main/ss58-registry.json";
2
3
  export declare const knownGenesis: KnownGenesis;
3
4
  export declare const knownIcon: KnownIcon;
4
5
  export declare const knownLedger: KnownLedger;
package/defaults.js CHANGED
@@ -1,9 +1,10 @@
1
1
  // Copyright 2017-2021 @polkadot/networks authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- // NOTE: In the case where the network was hard-spooned and multiple genesisHashes
3
+ export const substrateRegistry = 'https://raw.githubusercontent.com/paritytech/ss58-registry/main/ss58-registry.json'; // NOTE: In the case where the network was hard-spooned and multiple genesisHashes
4
4
  // are provided, it needs to be in reverse order, i.e. most-recent first, oldest
5
5
  // last. This make lookups for the current a simple genesisHash[0]
6
6
  // (See Kusama as an example)
7
+
7
8
  export const knownGenesis = {
8
9
  bifrost: ['0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed'],
9
10
  centrifuge: ['0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5'],
@@ -55,6 +56,9 @@ export const knownLedger = {
55
56
  }; // testnets should not allow selection
56
57
 
57
58
  export const knownTestnet = {
59
+ '': true,
60
+ // this is the default non-network entry
61
+ 'cess-testnet': true,
58
62
  'dock-testnet': true,
59
63
  jupiter: true,
60
64
  'mathchain-testnet': true,
package/interfaces.cjs CHANGED
@@ -21,7 +21,7 @@ const allNetworks = _substrate.knownSubstrate.map(o => {
21
21
  n.hasLedgerSupport = !!n.slip44;
22
22
  n.genesisHash = _defaults.knownGenesis[network] || [];
23
23
  n.icon = _defaults.knownIcon[network] || 'substrate';
24
- n.isIgnored = !network || !!_defaults.knownTestnet[network] || !o.standardAccount;
24
+ n.isIgnored = !!_defaults.knownTestnet[network] || !(o.standardAccount && o.decimals && o.symbols) && o.prefix !== 42;
25
25
  return n;
26
26
  }); // The list of available/claimed prefixes
27
27
  // - no testnets
package/interfaces.js CHANGED
@@ -11,7 +11,7 @@ export const allNetworks = knownSubstrate.map(o => {
11
11
  n.hasLedgerSupport = !!n.slip44;
12
12
  n.genesisHash = knownGenesis[network] || [];
13
13
  n.icon = knownIcon[network] || 'substrate';
14
- n.isIgnored = !network || !!knownTestnet[network] || !o.standardAccount;
14
+ n.isIgnored = !!knownTestnet[network] || !(o.standardAccount && o.decimals && o.symbols) && o.prefix !== 42;
15
15
  return n;
16
16
  }); // The list of available/claimed prefixes
17
17
  // - no testnets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polkadot/networks",
3
- "version": "7.5.2-2",
3
+ "version": "7.5.2-3",
4
4
  "type": "module",
5
5
  "description": "A list of all available Substrate networks and their applicable prefixes",
6
6
  "main": "index.js",
@@ -19,8 +19,8 @@
19
19
  "@babel/runtime": "^7.15.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@polkadot/util": "7.5.2-2",
23
- "@polkadot/x-fetch": "7.5.2-2"
22
+ "@polkadot/util": "7.5.2-3",
23
+ "@polkadot/x-fetch": "7.5.2-3"
24
24
  },
25
25
  "exports": {
26
26
  ".": {
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/networks',
12
- version: '7.5.2-2'
12
+ version: '7.5.2-3'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/networks',
6
- version: '7.5.2-2'
6
+ version: '7.5.2-3'
7
7
  };
package/substrate.cjs CHANGED
@@ -6,11 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.knownSubstrate = void 0;
7
7
  // Copyright 2017-2021 @polkadot/networks authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
+ //
9
10
  // Auto-generated by yarn networks:sync (via scripts/fromSubstrate.mjs)
10
11
  //
11
- // Do not edit, rather
12
- // - make a PR to the upstream registry as per https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json
13
- // - yarn networks:sync
12
+ // This file should never be edited manually. Rather the process is as follow -
13
+ //
14
+ // - make a PR to the upstream registry found at https://github.com/paritytech/ss58-registry/
15
+ // - ensure the PR gets merged
16
+ // - yarn networks:sync in this repo to sync
17
+ //
18
+ // Any manual changes to this file will make CI cron checks fail and will be
19
+ // lost when the registry is updated alongside the above sync.
14
20
  //
15
21
  const knownSubstrate = [{
16
22
  decimals: [10],
@@ -23,9 +29,9 @@ const knownSubstrate = [{
23
29
  }, {
24
30
  decimals: null,
25
31
  displayName: 'Bare 32-bit Schnorr/Ristretto (S/R 25519) public key.',
26
- network: null,
32
+ network: 'BareSr25519',
27
33
  prefix: 1,
28
- standardAccount: null,
34
+ standardAccount: 'Sr25519',
29
35
  symbols: null,
30
36
  website: null
31
37
  }, {
@@ -39,9 +45,9 @@ const knownSubstrate = [{
39
45
  }, {
40
46
  decimals: null,
41
47
  displayName: 'Bare 32-bit Ed25519 public key.',
42
- network: null,
48
+ network: 'BareEd25519',
43
49
  prefix: 3,
44
- standardAccount: null,
50
+ standardAccount: 'Ed25519',
45
51
  symbols: null,
46
52
  website: null
47
53
  }, {
@@ -347,13 +353,13 @@ const knownSubstrate = [{
347
353
  prefix: 42,
348
354
  standardAccount: '*25519',
349
355
  symbols: null,
350
- website: 'https://docs.substrate.io/'
356
+ website: 'https://substrate.io/'
351
357
  }, {
352
358
  decimals: null,
353
359
  displayName: 'Bare 32-bit ECDSA SECP-256k1 public key.',
354
- network: null,
360
+ network: 'BareSecp256k1',
355
361
  prefix: 43,
356
- standardAccount: null,
362
+ standardAccount: 'secp256k1',
357
363
  symbols: null,
358
364
  website: null
359
365
  }, {
@@ -556,6 +562,14 @@ const knownSubstrate = [{
556
562
  standardAccount: '*25519',
557
563
  symbols: ['NET'],
558
564
  website: 'https://social.network'
565
+ }, {
566
+ decimals: [15],
567
+ displayName: 'QUARTZ by UNIQUE',
568
+ network: 'quartz_mainnet',
569
+ prefix: 255,
570
+ standardAccount: '*25519',
571
+ symbols: ['QTZ'],
572
+ website: 'https://unique.network'
559
573
  }, {
560
574
  decimals: [18],
561
575
  displayName: 'Moonbeam',
@@ -572,14 +586,6 @@ const knownSubstrate = [{
572
586
  standardAccount: 'secp256k1',
573
587
  symbols: ['MOVR'],
574
588
  website: 'https://moonbeam.network'
575
- }, {
576
- decimals: [18],
577
- displayName: 'Automata Mainnet',
578
- network: 'automata',
579
- prefix: 2349,
580
- standardAccount: '*25519',
581
- symbols: ['ATA'],
582
- website: 'https://ata.network'
583
589
  }, {
584
590
  decimals: [12],
585
591
  displayName: 'Basilisk',
@@ -588,6 +594,22 @@ const knownSubstrate = [{
588
594
  standardAccount: '*25519',
589
595
  symbols: ['BSX'],
590
596
  website: 'https://bsx.fi'
597
+ }, {
598
+ decimals: [12],
599
+ displayName: 'CESS Testnet',
600
+ network: 'cess-testnet',
601
+ prefix: 10042,
602
+ standardAccount: '*25519',
603
+ symbols: ['TCESS'],
604
+ website: 'https://cess.cloud'
605
+ }, {
606
+ decimals: [12],
607
+ displayName: 'CESS',
608
+ network: 'cess',
609
+ prefix: 10043,
610
+ standardAccount: '*25519',
611
+ symbols: ['CESS'],
612
+ website: 'https://cess.cloud'
591
613
  }, {
592
614
  decimals: [18],
593
615
  displayName: 'Automata ContextFree',
package/substrate.js CHANGED
@@ -1,10 +1,16 @@
1
1
  // Copyright 2017-2021 @polkadot/networks authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ //
3
4
  // Auto-generated by yarn networks:sync (via scripts/fromSubstrate.mjs)
4
5
  //
5
- // Do not edit, rather
6
- // - make a PR to the upstream registry as per https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json
7
- // - yarn networks:sync
6
+ // This file should never be edited manually. Rather the process is as follow -
7
+ //
8
+ // - make a PR to the upstream registry found at https://github.com/paritytech/ss58-registry/
9
+ // - ensure the PR gets merged
10
+ // - yarn networks:sync in this repo to sync
11
+ //
12
+ // Any manual changes to this file will make CI cron checks fail and will be
13
+ // lost when the registry is updated alongside the above sync.
8
14
  //
9
15
  export const knownSubstrate = [{
10
16
  decimals: [10],
@@ -17,9 +23,9 @@ export const knownSubstrate = [{
17
23
  }, {
18
24
  decimals: null,
19
25
  displayName: 'Bare 32-bit Schnorr/Ristretto (S/R 25519) public key.',
20
- network: null,
26
+ network: 'BareSr25519',
21
27
  prefix: 1,
22
- standardAccount: null,
28
+ standardAccount: 'Sr25519',
23
29
  symbols: null,
24
30
  website: null
25
31
  }, {
@@ -33,9 +39,9 @@ export const knownSubstrate = [{
33
39
  }, {
34
40
  decimals: null,
35
41
  displayName: 'Bare 32-bit Ed25519 public key.',
36
- network: null,
42
+ network: 'BareEd25519',
37
43
  prefix: 3,
38
- standardAccount: null,
44
+ standardAccount: 'Ed25519',
39
45
  symbols: null,
40
46
  website: null
41
47
  }, {
@@ -341,13 +347,13 @@ export const knownSubstrate = [{
341
347
  prefix: 42,
342
348
  standardAccount: '*25519',
343
349
  symbols: null,
344
- website: 'https://docs.substrate.io/'
350
+ website: 'https://substrate.io/'
345
351
  }, {
346
352
  decimals: null,
347
353
  displayName: 'Bare 32-bit ECDSA SECP-256k1 public key.',
348
- network: null,
354
+ network: 'BareSecp256k1',
349
355
  prefix: 43,
350
- standardAccount: null,
356
+ standardAccount: 'secp256k1',
351
357
  symbols: null,
352
358
  website: null
353
359
  }, {
@@ -550,6 +556,14 @@ export const knownSubstrate = [{
550
556
  standardAccount: '*25519',
551
557
  symbols: ['NET'],
552
558
  website: 'https://social.network'
559
+ }, {
560
+ decimals: [15],
561
+ displayName: 'QUARTZ by UNIQUE',
562
+ network: 'quartz_mainnet',
563
+ prefix: 255,
564
+ standardAccount: '*25519',
565
+ symbols: ['QTZ'],
566
+ website: 'https://unique.network'
553
567
  }, {
554
568
  decimals: [18],
555
569
  displayName: 'Moonbeam',
@@ -566,14 +580,6 @@ export const knownSubstrate = [{
566
580
  standardAccount: 'secp256k1',
567
581
  symbols: ['MOVR'],
568
582
  website: 'https://moonbeam.network'
569
- }, {
570
- decimals: [18],
571
- displayName: 'Automata Mainnet',
572
- network: 'automata',
573
- prefix: 2349,
574
- standardAccount: '*25519',
575
- symbols: ['ATA'],
576
- website: 'https://ata.network'
577
583
  }, {
578
584
  decimals: [12],
579
585
  displayName: 'Basilisk',
@@ -582,6 +588,22 @@ export const knownSubstrate = [{
582
588
  standardAccount: '*25519',
583
589
  symbols: ['BSX'],
584
590
  website: 'https://bsx.fi'
591
+ }, {
592
+ decimals: [12],
593
+ displayName: 'CESS Testnet',
594
+ network: 'cess-testnet',
595
+ prefix: 10042,
596
+ standardAccount: '*25519',
597
+ symbols: ['TCESS'],
598
+ website: 'https://cess.cloud'
599
+ }, {
600
+ decimals: [12],
601
+ displayName: 'CESS',
602
+ network: 'cess',
603
+ prefix: 10043,
604
+ standardAccount: '*25519',
605
+ symbols: ['CESS'],
606
+ website: 'https://cess.cloud'
585
607
  }, {
586
608
  decimals: [18],
587
609
  displayName: 'Automata ContextFree',
package/types.d.ts CHANGED
@@ -4,7 +4,7 @@ export interface KnownSubstrate {
4
4
  displayName: string;
5
5
  network: string | null;
6
6
  prefix: number;
7
- standardAccount: '*25519' | 'secp256k1' | null;
7
+ standardAccount: '*25519' | 'Ed25519' | 'Sr25519' | 'secp256k1' | null;
8
8
  symbols: string[] | null;
9
9
  website: string | null;
10
10
  }