Rebrand: polkadot → pezkuwi internal references fixed

- Fixed internal @polkadot references to @pezkuwi
- Updated hw-ledger and hw-ledger-transports packages
- Updated keyring and networks packages
- Version 14.0.7
This commit is contained in:
2026-01-07 02:34:39 +03:00
parent 782581ecf6
commit a5542fdd87
619 changed files with 1200 additions and 1082 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# @pezkuwi/networks
A list of all available Substrate networks and their applicable prefixes.
A list of all available Bizinikiwi networks and their applicable prefixes.
This list is periodically checked against the master list available at https://github.com/paritytech/ss58-registry/blob/main/ss58-registry.json
+2 -2
View File
@@ -1,7 +1,7 @@
{
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
"description": "A list of all available Substrate networks and their applicable prefixes",
"description": "A list of all available Bizinikiwi networks and their applicable prefixes",
"engines": {
"node": ">=18"
},
@@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "14.0.1",
"version": "14.0.7",
"main": "index.js",
"dependencies": {
"@pezkuwi/util": "14.0.1",
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import { ledgerApps } from '@pezkuwi/hw-ledger/defaults';
import { isHex } from '@pezkuwi/util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownGenesis } from '../types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownIcon } from '../types.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { knownGenesis } from './genesis.js';
+2 -2
View File
@@ -1,9 +1,9 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownLedger } from '../types.js';
// These match up with the keys of the ledgerApps object in the @polkadot/hw-ledger/defaults.ts
// These match up with the keys of the ledgerApps object in the @pezkuwi/hw-ledger/defaults.ts
// and maps to the known slip44 (minus the `0x8` hard derivation flag)
//
// NOTE: Any network here needs to have a genesisHash attached in the ./genesis.ts config
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownTestnet } from '../types.js';
+5 -5
View File
@@ -1,9 +1,9 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import type { SubstrateNetwork } from './types.js';
import type { BizinikwiNetwork } from './types.js';
import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
import { allNetworks, availableNetworks, selectableNetworks } from './index.js';
@@ -93,8 +93,8 @@ describe('availableNetworks', (): void => {
describe('allNetworks', (): void => {
it('has no ss58 duplicates', (): void => {
const dupes: SubstrateNetwork[] = [];
const uniques: SubstrateNetwork[] = [];
const dupes: BizinikwiNetwork[] = [];
const uniques: BizinikwiNetwork[] = [];
allNetworks.forEach((a): void => {
if (uniques.some((u) => u.prefix === a.prefix)) {
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// TODO: This was removed, really cannot recall the reason...
+8 -8
View File
@@ -1,9 +1,9 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KnownSubstrate, Network, SubstrateNetwork } from './types.js';
import type { KnownBizinikiwi, Network, BizinikwiNetwork } from './types.js';
import knownSubstrate from '@substrate/ss58-registry';
import knownBizinikiwi from '@substrate/ss58-registry';
import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
@@ -11,10 +11,10 @@ import { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/i
const UNSORTED = [0, 2, 42];
const TESTNETS = ['testnet'];
function toExpanded (o: KnownSubstrate): SubstrateNetwork {
function toExpanded (o: KnownBizinikiwi): BizinikwiNetwork {
const network = o.network || '';
const nameParts = network.replace(/_/g, '-').split('-');
const n = o as SubstrateNetwork;
const n = o as BizinikwiNetwork;
// ledger additions
n.slip44 = knownLedger[network];
@@ -42,7 +42,7 @@ function filterSelectable ({ genesisHash, prefix }: Network): boolean {
return !!genesisHash.length || prefix === 42;
}
function filterAvailable (n: SubstrateNetwork): n is Network {
function filterAvailable (n: BizinikwiNetwork): n is Network {
return !n.isIgnored && !!n.network;
}
@@ -59,8 +59,8 @@ function sortNetworks (a: Network, b: Network): number {
: 1;
}
// This is all the Substrate networks with our additional information
export const allNetworks = knownSubstrate.map(toExpanded);
// This is all the Bizinikiwi networks with our additional information
export const allNetworks = knownBizinikiwi.map(toExpanded);
// The list of available/claimed prefixes
// - no testnets
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index.js';
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2026 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
// (packageInfo imports will be kept as-is, user-editable)
import { detectPackage } from '@pezkuwi/util';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2026 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '14.0.1' };
export const packageInfo = { name: '@pezkuwi/networks', path: 'auto', type: 'auto', version: '14.0.6' };
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/networks authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import known from '@substrate/ss58-registry';
import fs from 'node:fs';
+6 -6
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @polkadot/keyring authors & contributors
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { RegistryEntry } from '@substrate/ss58-registry';
@@ -12,11 +12,11 @@ export type KnownLedger = Record<string, number>;
export type KnownGenesis = Record<string, HexString[]>;
export type KnownSubstrate = RegistryEntry;
export type KnownBizinikiwi = RegistryEntry;
export type KnownTestnet = Record<string, true>;
export interface SubstrateNetwork extends KnownSubstrate {
export interface BizinikwiNetwork extends KnownBizinikiwi {
/** The genesisHash for the chain */
genesisHash: HexString[];
/** Does the chain has support for Ledger devices */
@@ -31,13 +31,13 @@ export interface SubstrateNetwork extends KnownSubstrate {
slip44?: number | null;
}
export interface Network extends SubstrateNetwork {
export interface Network extends BizinikwiNetwork {
/** The network assigned to this chain */
network: string;
}
export interface Ss58Registry {
registry: KnownSubstrate[];
registry: KnownBizinikiwi[];
specification: string;
schema: Record<keyof KnownSubstrate, string>;
schema: Record<keyof KnownBizinikiwi, string>;
}