Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/networks

Package Overview
Dependencies
Maintainers
2
Versions
751
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/networks - npm Package Compare versions

Comparing version 5.0.2-7 to 5.0.2-8

24

index.js

@@ -18,11 +18,3 @@ "use strict";

// SPDX-License-Identifier: Apache-2.0
// This contains exactly the same information as available in (with some extensions)
// https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json
//
// Once the above is published as a package, the duplication here can be removed
// These are known prefixes that are not sorted
const UNSORTED = [0, 2, 42]; // NOTE: In the case where the network was hard-spooned and multiple genesisHashes
// are provided, it needs to be in reverse order, i.e. most-recent first, oldest
// last. This make lookups for the current a simple genesisHash[0]
// (See Kusama as an example)
const UNSORTED = [0, 2, 42];

@@ -52,6 +44,3 @@ const createReserved = (prefix, displayName = 'This prefix is reserved.') => ({

displayName: 'Kusama Relay Chain',
genesisHash: ['0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe', // Kusama CC3,
'0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1
],
genesisHash: ['0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe', '0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', '0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf'],
icon: 'polkadot',

@@ -342,7 +331,3 @@ network: 'kusama',

website: 'https://chainx.org/'
}, createReserved(46), createReserved(47), createReserved(48, 'All prefixes 48 and higher are reserved and cannot be allocated.')]; // The list of available/claimed prefixes
// - we only include those where we have a standardAccount
// - when no icon has been specified, default to substrate
// - sort by name, however we keep 0, 2, 42 first in the list
}, createReserved(46), createReserved(47), createReserved(48, 'All prefixes 48 and higher are reserved and cannot be allocated.')];
exports.all = all;

@@ -352,4 +337,3 @@ const available = all.filter(n => n.standardAccount === '*25519').map(n => _objectSpread(_objectSpread({}, n), {}, {

icon: n.icon || 'substrate'
})).sort((a, b) => UNSORTED.includes(a.prefix) && UNSORTED.includes(b.prefix) ? 0 : UNSORTED.includes(a.prefix) ? -1 : UNSORTED.includes(b.prefix) ? 1 : a.displayName.localeCompare(b.displayName)); // A filtered list of those chains we have details about (genesisHashes)
})).sort((a, b) => UNSORTED.includes(a.prefix) && UNSORTED.includes(b.prefix) ? 0 : UNSORTED.includes(a.prefix) ? -1 : UNSORTED.includes(b.prefix) ? 1 : a.displayName.localeCompare(b.displayName));
exports.available = available;

@@ -356,0 +340,0 @@ const filtered = available.filter(n => n.genesisHash.length || n.prefix === 42);

2

package-info.json
{
"name": "@polkadot/networks",
"version": "5.0.2-7"
"version": "5.0.2-8"
}
{
"name": "@polkadot/networks",
"version": "5.0.2-7",
"version": "5.0.2-8",
"description": "A list of all available Substrate networks and their applicable prefixes",

@@ -19,4 +19,4 @@ "main": "index.js",

"devDependencies": {
"@polkadot/util": "5.0.2-7",
"@polkadot/x-fetch": "5.0.2-7"
"@polkadot/util": "5.0.2-8",
"@polkadot/x-fetch": "5.0.2-8"
},

@@ -23,0 +23,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc