@polkadot/networks 8.2.3-9 → 8.3.2-10
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 +1 -1
- package/defaults.js +1 -1
- package/detectOther.cjs +10 -0
- package/detectOther.d.ts +2 -0
- package/detectOther.js +3 -0
- package/detectPackage.cjs +14 -0
- package/detectPackage.d.ts +1 -0
- package/detectPackage.js +7 -0
- package/genesis.cjs +1 -1
- package/genesis.js +1 -1
- package/index.js +1 -1
- package/interfaces.cjs +2 -2
- package/interfaces.js +2 -2
- package/package.json +20 -10
- package/packageInfo.cjs +5 -3
- package/packageInfo.d.ts +2 -0
- package/packageInfo.js +5 -3
- package/substrate.cjs +14 -6
- package/substrate.js +14 -6
package/defaults.cjs
CHANGED
|
@@ -13,7 +13,7 @@ exports.substrateRegistry = exports.knownTestnet = exports.knownLedger = exports
|
|
|
13
13
|
|
|
14
14
|
var _genesis = require("./genesis.cjs");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
const substrateRegistry = 'https://raw.githubusercontent.com/paritytech/ss58-registry/main/ss58-registry.json'; // these are icon overrides
|
|
19
19
|
|
package/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export { knownGenesis } from "./genesis.js";
|
|
4
4
|
export const substrateRegistry = 'https://raw.githubusercontent.com/paritytech/ss58-registry/main/ss58-registry.json'; // these are icon overrides
|
package/detectOther.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
8
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
var _default = [];
|
|
10
|
+
exports.default = _default;
|
package/detectOther.d.ts
ADDED
package/detectOther.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _util = require("@polkadot/util");
|
|
6
|
+
|
|
7
|
+
var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
|
|
8
|
+
|
|
9
|
+
var _packageInfo = require("./packageInfo.cjs");
|
|
10
|
+
|
|
11
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
12
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
14
|
+
(0, _util.detectPackage)(_packageInfo.packageInfo, null, _detectOther.default);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/detectPackage.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
4
|
+
import { detectPackage } from '@polkadot/util';
|
|
5
|
+
import others from "./detectOther.js";
|
|
6
|
+
import { packageInfo } from "./packageInfo.js";
|
|
7
|
+
detectPackage(packageInfo, null, others);
|
package/genesis.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.knownGenesis = void 0;
|
|
7
|
-
// Copyright 2017-
|
|
7
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
// 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
|
package/genesis.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
// 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
|
package/index.js
CHANGED
package/interfaces.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _defaults = require("./defaults.cjs");
|
|
|
9
9
|
|
|
10
10
|
var _substrate = require("./substrate.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
// These are known prefixes that are not sorted
|
|
15
15
|
const UNSORTED = [0, 2, 42];
|
|
@@ -46,7 +46,7 @@ function filterAvailable(n) {
|
|
|
46
46
|
function sortNetworks(a, b) {
|
|
47
47
|
const isUnSortedA = UNSORTED.includes(a.prefix);
|
|
48
48
|
const isUnSortedB = UNSORTED.includes(b.prefix);
|
|
49
|
-
return isUnSortedA === isUnSortedB ?
|
|
49
|
+
return isUnSortedA === isUnSortedB ? isUnSortedA ? 0 : a.displayName.localeCompare(b.displayName) : isUnSortedA ? -1 : 1;
|
|
50
50
|
} // This is all the Substrate networks with our additional information
|
|
51
51
|
|
|
52
52
|
|
package/interfaces.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { knownGenesis, knownIcon, knownLedger, knownTestnet } from "./defaults.js";
|
|
4
4
|
import { knownSubstrate } from "./substrate.js"; // These are known prefixes that are not sorted
|
|
@@ -36,7 +36,7 @@ function filterAvailable(n) {
|
|
|
36
36
|
function sortNetworks(a, b) {
|
|
37
37
|
const isUnSortedA = UNSORTED.includes(a.prefix);
|
|
38
38
|
const isUnSortedB = UNSORTED.includes(b.prefix);
|
|
39
|
-
return isUnSortedA === isUnSortedB ?
|
|
39
|
+
return isUnSortedA === isUnSortedB ? isUnSortedA ? 0 : a.displayName.localeCompare(b.displayName) : isUnSortedA ? -1 : 1;
|
|
40
40
|
} // This is all the Substrate networks with our additional information
|
|
41
41
|
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -17,16 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "8.2
|
|
21
|
-
"main": "index.
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@polkadot/hw-ledger": "8.2.3-9",
|
|
27
|
-
"@polkadot/util": "8.2.3-9",
|
|
28
|
-
"@polkadot/x-fetch": "8.2.3-9"
|
|
29
|
-
},
|
|
20
|
+
"version": "8.3.2-10",
|
|
21
|
+
"main": "index.cjs",
|
|
22
|
+
"module": "index.js",
|
|
23
|
+
"types": "index.d.ts",
|
|
30
24
|
"exports": {
|
|
31
25
|
".": {
|
|
32
26
|
"types": "./index.d.ts",
|
|
@@ -38,6 +32,16 @@
|
|
|
38
32
|
"require": "./defaults.cjs",
|
|
39
33
|
"default": "./defaults.js"
|
|
40
34
|
},
|
|
35
|
+
"./detectOther": {
|
|
36
|
+
"types": "./detectOther.d.ts",
|
|
37
|
+
"require": "./detectOther.cjs",
|
|
38
|
+
"default": "./detectOther.js"
|
|
39
|
+
},
|
|
40
|
+
"./detectPackage": {
|
|
41
|
+
"types": "./detectPackage.d.ts",
|
|
42
|
+
"require": "./detectPackage.cjs",
|
|
43
|
+
"default": "./detectPackage.js"
|
|
44
|
+
},
|
|
41
45
|
"./genesis": {
|
|
42
46
|
"types": "./genesis.d.ts",
|
|
43
47
|
"require": "./genesis.cjs",
|
|
@@ -49,6 +53,8 @@
|
|
|
49
53
|
"default": "./interfaces.js"
|
|
50
54
|
},
|
|
51
55
|
"./package.json": "./package.json",
|
|
56
|
+
"./packageInfo.cjs": "./packageInfo.cjs",
|
|
57
|
+
"./packageInfo.js": "./packageInfo.js",
|
|
52
58
|
"./packageInfo": {
|
|
53
59
|
"types": "./packageInfo.d.ts",
|
|
54
60
|
"require": "./packageInfo.cjs",
|
|
@@ -64,5 +70,9 @@
|
|
|
64
70
|
"require": "./types.cjs",
|
|
65
71
|
"default": "./types.js"
|
|
66
72
|
}
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@babel/runtime": "^7.16.7",
|
|
76
|
+
"@polkadot/util": "8.3.2-10"
|
|
67
77
|
}
|
|
68
78
|
}
|
package/packageInfo.cjs
CHANGED
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.packageInfo = void 0;
|
|
7
|
-
// Copyright 2017-
|
|
7
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
//
|
|
9
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
10
10
|
const packageInfo = {
|
|
11
11
|
name: '@polkadot/networks',
|
|
12
|
-
|
|
12
|
+
path: typeof __dirname === 'string' ? __dirname : 'auto',
|
|
13
|
+
type: 'cjs',
|
|
14
|
+
version: '8.3.2-10'
|
|
13
15
|
};
|
|
14
16
|
exports.packageInfo = packageInfo;
|
package/packageInfo.d.ts
CHANGED
package/packageInfo.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
//
|
|
3
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
4
4
|
export const packageInfo = {
|
|
5
5
|
name: '@polkadot/networks',
|
|
6
|
-
|
|
6
|
+
path: new URL('.', import.meta.url).pathname,
|
|
7
|
+
type: 'esm',
|
|
8
|
+
version: '8.3.2-10'
|
|
7
9
|
};
|
package/substrate.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.knownSubstrate = void 0;
|
|
7
|
-
// Copyright 2017-
|
|
7
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
//
|
|
10
10
|
// Auto-generated by yarn networks:sync (via scripts/fromSubstrate.mjs)
|
|
@@ -59,13 +59,13 @@ const knownSubstrate = [{
|
|
|
59
59
|
symbols: null,
|
|
60
60
|
website: null
|
|
61
61
|
}, {
|
|
62
|
-
decimals: [
|
|
63
|
-
displayName: '
|
|
64
|
-
network: '
|
|
62
|
+
decimals: [18],
|
|
63
|
+
displayName: 'Astar Network',
|
|
64
|
+
network: 'astar',
|
|
65
65
|
prefix: 5,
|
|
66
66
|
standardAccount: '*25519',
|
|
67
|
-
symbols: ['
|
|
68
|
-
website: 'https://
|
|
67
|
+
symbols: ['ASTR'],
|
|
68
|
+
website: 'https://astar.network'
|
|
69
69
|
}, {
|
|
70
70
|
decimals: [12],
|
|
71
71
|
displayName: 'Bifrost',
|
|
@@ -602,6 +602,14 @@ const knownSubstrate = [{
|
|
|
602
602
|
standardAccount: '*25519',
|
|
603
603
|
symbols: ['NEER'],
|
|
604
604
|
website: 'https://bit.country'
|
|
605
|
+
}, {
|
|
606
|
+
decimals: [18],
|
|
607
|
+
displayName: 'SORA Kusama Parachain',
|
|
608
|
+
network: 'sora_kusama_para',
|
|
609
|
+
prefix: 420,
|
|
610
|
+
standardAccount: '*25519',
|
|
611
|
+
symbols: ['XOR'],
|
|
612
|
+
website: 'https://sora.org'
|
|
605
613
|
}, {
|
|
606
614
|
decimals: [18],
|
|
607
615
|
displayName: 'Efinity',
|
package/substrate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/networks authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
//
|
|
4
4
|
// Auto-generated by yarn networks:sync (via scripts/fromSubstrate.mjs)
|
|
@@ -53,13 +53,13 @@ export const knownSubstrate = [{
|
|
|
53
53
|
symbols: null,
|
|
54
54
|
website: null
|
|
55
55
|
}, {
|
|
56
|
-
decimals: [
|
|
57
|
-
displayName: '
|
|
58
|
-
network: '
|
|
56
|
+
decimals: [18],
|
|
57
|
+
displayName: 'Astar Network',
|
|
58
|
+
network: 'astar',
|
|
59
59
|
prefix: 5,
|
|
60
60
|
standardAccount: '*25519',
|
|
61
|
-
symbols: ['
|
|
62
|
-
website: 'https://
|
|
61
|
+
symbols: ['ASTR'],
|
|
62
|
+
website: 'https://astar.network'
|
|
63
63
|
}, {
|
|
64
64
|
decimals: [12],
|
|
65
65
|
displayName: 'Bifrost',
|
|
@@ -596,6 +596,14 @@ export const knownSubstrate = [{
|
|
|
596
596
|
standardAccount: '*25519',
|
|
597
597
|
symbols: ['NEER'],
|
|
598
598
|
website: 'https://bit.country'
|
|
599
|
+
}, {
|
|
600
|
+
decimals: [18],
|
|
601
|
+
displayName: 'SORA Kusama Parachain',
|
|
602
|
+
network: 'sora_kusama_para',
|
|
603
|
+
prefix: 420,
|
|
604
|
+
standardAccount: '*25519',
|
|
605
|
+
symbols: ['XOR'],
|
|
606
|
+
website: 'https://sora.org'
|
|
599
607
|
}, {
|
|
600
608
|
decimals: [18],
|
|
601
609
|
displayName: 'Efinity',
|