@pezkuwi/networks 14.0.5 → 14.0.7
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/README.md +2 -2
- package/cjs/interfaces.d.ts +2 -2
- package/cjs/packageInfo.js +1 -1
- package/cjs/types.d.ts +6 -6
- package/interfaces.d.ts +2 -2
- package/interfaces.js +2 -2
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/types.d.ts +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @pezkuwi/networks
|
|
2
2
|
|
|
3
|
-
A list of all available
|
|
3
|
+
A list of all available Bizinikiwi networks and their applicable prefixes.
|
|
4
4
|
|
|
5
5
|
This list is periodically checked against the master list available at https://github.com/paritytech/ss58-registry/blob/main/ss58-registry.json
|
package/cjs/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Network,
|
|
2
|
-
export declare const allNetworks:
|
|
1
|
+
import type { Network, BizinikwiNetwork } from './types.js';
|
|
2
|
+
export declare const allNetworks: BizinikwiNetwork[];
|
|
3
3
|
export declare const availableNetworks: Network[];
|
|
4
4
|
export declare const selectableNetworks: Network[];
|
package/cjs/packageInfo.js
CHANGED
|
@@ -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.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/networks', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.6' };
|
package/cjs/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { RegistryEntry } from '@substrate/ss58-registry';
|
|
2
|
-
import type { HexString } from '@
|
|
2
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
3
3
|
export type Icon = 'beachball' | 'empty' | 'jdenticon' | 'polkadot' | 'substrate';
|
|
4
4
|
export type KnownIcon = Record<string, Icon>;
|
|
5
5
|
export type KnownLedger = Record<string, number>;
|
|
6
6
|
export type KnownGenesis = Record<string, HexString[]>;
|
|
7
|
-
export type
|
|
7
|
+
export type KnownBizinikiwi = RegistryEntry;
|
|
8
8
|
export type KnownTestnet = Record<string, true>;
|
|
9
|
-
export interface
|
|
9
|
+
export interface BizinikwiNetwork extends KnownBizinikiwi {
|
|
10
10
|
/** The genesisHash for the chain */
|
|
11
11
|
genesisHash: HexString[];
|
|
12
12
|
/** Does the chain has support for Ledger devices */
|
|
@@ -20,12 +20,12 @@ export interface SubstrateNetwork extends KnownSubstrate {
|
|
|
20
20
|
/** The Ledger-specific/required slip44 for the chain */
|
|
21
21
|
slip44?: number | null;
|
|
22
22
|
}
|
|
23
|
-
export interface Network extends
|
|
23
|
+
export interface Network extends BizinikwiNetwork {
|
|
24
24
|
/** The network assigned to this chain */
|
|
25
25
|
network: string;
|
|
26
26
|
}
|
|
27
27
|
export interface Ss58Registry {
|
|
28
|
-
registry:
|
|
28
|
+
registry: KnownBizinikiwi[];
|
|
29
29
|
specification: string;
|
|
30
|
-
schema: Record<keyof
|
|
30
|
+
schema: Record<keyof KnownBizinikiwi, string>;
|
|
31
31
|
}
|
package/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Network,
|
|
2
|
-
export declare const allNetworks:
|
|
1
|
+
import type { Network, BizinikwiNetwork } from './types.js';
|
|
2
|
+
export declare const allNetworks: BizinikwiNetwork[];
|
|
3
3
|
export declare const availableNetworks: Network[];
|
|
4
4
|
export declare const selectableNetworks: Network[];
|
package/interfaces.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import knownBizinikiwi from '@substrate/ss58-registry';
|
|
2
2
|
import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
|
|
3
3
|
const UNSORTED = [0, 2, 42];
|
|
4
4
|
const TESTNETS = ['testnet'];
|
|
@@ -37,6 +37,6 @@ function sortNetworks(a, b) {
|
|
|
37
37
|
? -1
|
|
38
38
|
: 1;
|
|
39
39
|
}
|
|
40
|
-
export const allNetworks =
|
|
40
|
+
export const allNetworks = knownBizinikiwi.map(toExpanded);
|
|
41
41
|
export const availableNetworks = allNetworks.filter(filterAvailable).sort(sortNetworks);
|
|
42
42
|
export const selectableNetworks = availableNetworks.filter(filterSelectable);
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
-
"bugs": "https://github.com/
|
|
4
|
-
"description": "A list of all available
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
|
4
|
+
"description": "A list of all available Bizinikiwi networks and their applicable prefixes",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
7
7
|
},
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/networks#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"name": "@pezkuwi/networks",
|
|
11
11
|
"repository": {
|
|
12
12
|
"directory": "packages/networks",
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-common.git"
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "14.0.
|
|
18
|
+
"version": "14.0.7",
|
|
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.
|
|
185
|
+
"@pezkuwi/util": "14.0.1",
|
|
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.
|
|
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.6' };
|
package/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { RegistryEntry } from '@substrate/ss58-registry';
|
|
2
|
-
import type { HexString } from '@
|
|
2
|
+
import type { HexString } from '@pezkuwi/util/types';
|
|
3
3
|
export type Icon = 'beachball' | 'empty' | 'jdenticon' | 'polkadot' | 'substrate';
|
|
4
4
|
export type KnownIcon = Record<string, Icon>;
|
|
5
5
|
export type KnownLedger = Record<string, number>;
|
|
6
6
|
export type KnownGenesis = Record<string, HexString[]>;
|
|
7
|
-
export type
|
|
7
|
+
export type KnownBizinikiwi = RegistryEntry;
|
|
8
8
|
export type KnownTestnet = Record<string, true>;
|
|
9
|
-
export interface
|
|
9
|
+
export interface BizinikwiNetwork extends KnownBizinikiwi {
|
|
10
10
|
/** The genesisHash for the chain */
|
|
11
11
|
genesisHash: HexString[];
|
|
12
12
|
/** Does the chain has support for Ledger devices */
|
|
@@ -20,12 +20,12 @@ export interface SubstrateNetwork extends KnownSubstrate {
|
|
|
20
20
|
/** The Ledger-specific/required slip44 for the chain */
|
|
21
21
|
slip44?: number | null;
|
|
22
22
|
}
|
|
23
|
-
export interface Network extends
|
|
23
|
+
export interface Network extends BizinikwiNetwork {
|
|
24
24
|
/** The network assigned to this chain */
|
|
25
25
|
network: string;
|
|
26
26
|
}
|
|
27
27
|
export interface Ss58Registry {
|
|
28
|
-
registry:
|
|
28
|
+
registry: KnownBizinikiwi[];
|
|
29
29
|
specification: string;
|
|
30
|
-
schema: Record<keyof
|
|
30
|
+
schema: Record<keyof KnownBizinikiwi, string>;
|
|
31
31
|
}
|