mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-21 23:48:05 +00:00
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:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
module.exports = require('@pezkuwi/dev/config/prettier.cjs');
|
||||||
|
|||||||
+16
-16
@@ -14,30 +14,30 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.1",
|
"version": "14.0.7",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "14.0.1",
|
"git": "14.0.6",
|
||||||
"npm": "14.0.1"
|
"npm": "14.0.6"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "polkadot-dev-build-ts",
|
"build": "pezkuwi-dev-build-ts",
|
||||||
"build:networks": "polkadot-dev-run-test packages/networks/src",
|
"build:networks": "pezkuwi-dev-run-test packages/networks/src",
|
||||||
"build:release": "polkadot-ci-ghact-build",
|
"build:release": "pezkuwi-ci-ghact-build",
|
||||||
"build:rollup": "polkadot-exec-rollup --config",
|
"build:rollup": "pezkuwi-exec-rollup --config",
|
||||||
"clean": "polkadot-dev-clean-build",
|
"clean": "pezkuwi-dev-clean-build",
|
||||||
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
"deno": "yarn pezkuwi-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
||||||
"lint": "polkadot-dev-run-lint",
|
"lint": "pezkuwi-dev-run-lint",
|
||||||
"postinstall": "polkadot-dev-yarn-only",
|
"postinstall": "pezkuwi-dev-yarn-only",
|
||||||
"test": "polkadot-dev-run-test --env browser ^mnemonic/toMiniSecretCmp",
|
"test": "pezkuwi-dev-run-test --env browser ^mnemonic/toMiniSecretCmp",
|
||||||
"test:mnemonicCmp": "polkadot-dev-run-test --env browser mnemonic/toMiniSecretCmp",
|
"test:mnemonicCmp": "pezkuwi-dev-run-test --env browser mnemonic/toMiniSecretCmp",
|
||||||
"test:node": "polkadot-dev-run-test --env browser ^mnemonic/toMiniSecretCmp",
|
"test:node": "pezkuwi-dev-run-test --env browser ^mnemonic/toMiniSecretCmp",
|
||||||
"test:one": "polkadot-dev-run-test --env browser"
|
"test:one": "pezkuwi-dev-run-test --env browser"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.83.3",
|
"@pezkuwi/dev": "^0.85.2",
|
||||||
"@types/node": "^22.7.5"
|
"@types/node": "^22.7.5"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.1",
|
"version": "14.0.7",
|
||||||
"browser": "browser.js",
|
"browser": "browser.js",
|
||||||
"main": "node.js",
|
"main": "node.js",
|
||||||
"react-native": "react-native.js",
|
"react-native": "react-native.js",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import LedgerHid from '@ledgerhq/hw-transport-webhid';
|
import LedgerHid from '@ledgerhq/hw-transport-webhid';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { createDefs } from './util.js';
|
import { createDefs } from './util.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './empty.js';
|
export * from './empty.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton';
|
import LedgerHid from '@ledgerhq/hw-transport-node-hid-singleton';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger-transports authors & contributors
|
// Copyright 2017-2026 @pezkuwi/hw-ledger-transports authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { detectPackage } from '@pezkuwi/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger-transports authors & contributors
|
// Copyright 2017-2026 @pezkuwi/hw-ledger-transports authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/hw-ledger-transports', path: 'auto', type: 'auto', version: '14.0.1' };
|
export const packageInfo = { name: '@pezkuwi/hw-ledger-transports', path: 'auto', type: 'auto', version: '14.0.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './empty.js';
|
export * from './empty.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// CJS, so we use import * syntax
|
// CJS, so we use import * syntax
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Transport, TransportDef, TransportType } from './types.js';
|
import type { Transport, TransportDef, TransportType } from './types.js';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.1",
|
"version": "14.0.7",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pezkuwi/hw-ledger-transports": "14.0.1",
|
"@pezkuwi/hw-ledger-transports": "14.0.1",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { SubstrateApp } from '@zondax/ledger-substrate';
|
import type { SubstrateApp } from '@zondax/ledger-substrate';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { TransportDef, TransportType } from '@pezkuwi/hw-ledger-transports/types';
|
import type { TransportDef, TransportType } from '@pezkuwi/hw-ledger-transports/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// This is necessary to ensure users still have access to class Ledger even though its deprecated.
|
// This is necessary to ensure users still have access to class Ledger even though its deprecated.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export const LEDGER_DEFAULT_ACCOUNT = 0x80000000;
|
export const LEDGER_DEFAULT_ACCOUNT = 0x80000000;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { supportedApps } from '@zondax/ledger-substrate';
|
import { supportedApps } from '@zondax/ledger-substrate';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// These map to the known name in the @zondax/ledger-substrate/supported_apps package
|
// These map to the known name in the @zondax/ledger-substrate/supported_apps package
|
||||||
@@ -62,7 +62,7 @@ export const genericLedgerApps = {
|
|||||||
vara: 'Vara'
|
vara: 'Vara'
|
||||||
};
|
};
|
||||||
|
|
||||||
// These match up with the keys of the knownLedger object in the @polkadot/networks/defaults/ledger.ts
|
// These match up with the keys of the knownLedger object in the @pezkuwi/networks/defaults/ledger.ts
|
||||||
export const ledgerApps: Record<string, string> = {
|
export const ledgerApps: Record<string, string> = {
|
||||||
...prevLedgerRecord,
|
...prevLedgerRecord,
|
||||||
...genericLedgerApps
|
...genericLedgerApps
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
import './packageDetect.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2026 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { packageInfo as transportInfo } from '@pezkuwi/hw-ledger-transports/packageInfo';
|
import { packageInfo as transportInfo } from '@pezkuwi/hw-ledger-transports/packageInfo';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2026 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/hw-ledger', path: 'auto', type: 'auto', version: '14.0.1' };
|
export const packageInfo = { name: '@pezkuwi/hw-ledger', path: 'auto', type: 'auto', version: '14.0.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @pezkuwi/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@pezkuwi/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.2",
|
"version": "14.0.7",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pezkuwi/util": "14.0.1",
|
"@pezkuwi/util": "14.0.1",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// all external
|
// all external
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// default substrate dev phrase
|
// default substrate dev phrase
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import type { KeyringPair$Json } from './types.js';
|
import type { KeyringPair$Json } from './types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
import './packageDetect.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
@@ -23,7 +23,7 @@ function pairToPublic ({ publicKey }: KeyringPair): Uint8Array {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* # @polkadot/keyring
|
* # @pezkuwi/keyring
|
||||||
*
|
*
|
||||||
* ## Overview
|
* ## Overview
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2026 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { detectPackage } from '@pezkuwi/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2026 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/keyring', path: 'auto', type: 'auto', version: '14.0.1' };
|
export const packageInfo = { name: '@pezkuwi/keyring', path: 'auto', type: 'auto', version: '14.0.6' };
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { createTestPairs } from '../testingPairs.js';
|
import { createTestPairs } from '../testingPairs.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding } from '@pezkuwi/util-crypto/types';
|
import type { EncryptedJsonEncoding } from '@pezkuwi/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/** public/secret section divider (generation 1-3, will change in 4, don't rely on value) */
|
/** public/secret section divider (generation 1-3, will change in 4, don't rely on value) */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { NONCE_LENGTH, SCRYPT_LENGTH } from '@pezkuwi/util-crypto/json/constants';
|
import { NONCE_LENGTH, SCRYPT_LENGTH } from '@pezkuwi/util-crypto/json/constants';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { PairInfo } from './types.js';
|
import type { PairInfo } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { hexToU8a, u8aToHex } from '@pezkuwi/util';
|
import { hexToU8a, u8aToHex } from '@pezkuwi/util';
|
||||||
import { cryptoWaitReady, encodeAddress as toSS58, setSS58Format } from '@pezkuwi/util-crypto';
|
import { cryptoWaitReady, encodeAddress as toSS58, setSS58Format } from '@pezkuwi/util-crypto';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types.js';
|
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { createTestPairs } from '../testingPairs.js';
|
import { createTestPairs } from '../testingPairs.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export interface PairInfo {
|
export interface PairInfo {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { u8aToHex } from '@pezkuwi/util';
|
import { u8aToHex } from '@pezkuwi/util';
|
||||||
import { cryptoWaitReady, ed25519PairFromSeed, encodeAddress as toSS58, randomAsU8a, secp256k1PairFromSeed, sr25519PairFromSeed } from '@pezkuwi/util-crypto';
|
import { cryptoWaitReady, ed25519PairFromSeed, encodeAddress as toSS58, randomAsU8a, secp256k1PairFromSeed, sr25519PairFromSeed } from '@pezkuwi/util-crypto';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair, KeyringPairs } from './types.js';
|
import type { KeyringPair, KeyringPairs } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
// From https://github.com/paritytech/substrate/wiki/Secret-URI-Test-Vectors
|
// From https://github.com/paritytech/substrate/wiki/Secret-URI-Test-Vectors
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@pezkuwi/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { u8aToHex } from '@pezkuwi/util';
|
import { u8aToHex } from '@pezkuwi/util';
|
||||||
import { cryptoWaitReady } from '@pezkuwi/util-crypto';
|
import { cryptoWaitReady } from '@pezkuwi/util-crypto';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
@@ -13,7 +13,7 @@ export interface TestKeyringMap {
|
|||||||
[index: string]: KeyringPair;
|
[index: string]: KeyringPair;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TestKeyringMapSubstrate extends TestKeyringMap {
|
export interface TestKeyringMapBizinikiwi extends TestKeyringMap {
|
||||||
alice: KeyringPair;
|
alice: KeyringPair;
|
||||||
bob: KeyringPair;
|
bob: KeyringPair;
|
||||||
charlie: KeyringPair;
|
charlie: KeyringPair;
|
||||||
@@ -33,7 +33,7 @@ export interface TestKeyringMapEthereum extends TestKeyringMap {
|
|||||||
|
|
||||||
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum'
|
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum'
|
||||||
? TestKeyringMapEthereum
|
? TestKeyringMapEthereum
|
||||||
: TestKeyringMapSubstrate;
|
: TestKeyringMapBizinikiwi;
|
||||||
|
|
||||||
export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions
|
export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions
|
||||||
? O['type'] extends KeypairType
|
? O['type'] extends KeypairType
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@pezkuwi/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# @pezkuwi/networks
|
# @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
|
This list is periodically checked against the master list available at https://github.com/paritytech/ss58-registry/blob/main/ss58-registry.json
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
"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": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.1",
|
"version": "14.0.7",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pezkuwi/util": "14.0.1",
|
"@pezkuwi/util": "14.0.1",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { ledgerApps } from '@pezkuwi/hw-ledger/defaults';
|
||||||
import { isHex } from '@pezkuwi/util';
|
import { isHex } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KnownGenesis } from '../types.js';
|
import type { KnownGenesis } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KnownIcon } from '../types.js';
|
import type { KnownIcon } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { knownGenesis } from './genesis.js';
|
export { knownGenesis } from './genesis.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KnownLedger } from '../types.js';
|
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)
|
// 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
|
// NOTE: Any network here needs to have a genesisHash attached in the ./genesis.ts config
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KnownTestnet } from '../types.js';
|
import type { KnownTestnet } from '../types.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { knownGenesis, knownIcon, knownLedger, knownTestnet } from './defaults/index.js';
|
||||||
import { allNetworks, availableNetworks, selectableNetworks } from './index.js';
|
import { allNetworks, availableNetworks, selectableNetworks } from './index.js';
|
||||||
@@ -93,8 +93,8 @@ describe('availableNetworks', (): void => {
|
|||||||
|
|
||||||
describe('allNetworks', (): void => {
|
describe('allNetworks', (): void => {
|
||||||
it('has no ss58 duplicates', (): void => {
|
it('has no ss58 duplicates', (): void => {
|
||||||
const dupes: SubstrateNetwork[] = [];
|
const dupes: BizinikwiNetwork[] = [];
|
||||||
const uniques: SubstrateNetwork[] = [];
|
const uniques: BizinikwiNetwork[] = [];
|
||||||
|
|
||||||
allNetworks.forEach((a): void => {
|
allNetworks.forEach((a): void => {
|
||||||
if (uniques.some((u) => u.prefix === a.prefix)) {
|
if (uniques.some((u) => u.prefix === a.prefix)) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// TODO: This was removed, really cannot recall the reason...
|
// TODO: This was removed, really cannot recall the reason...
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
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 UNSORTED = [0, 2, 42];
|
||||||
const TESTNETS = ['testnet'];
|
const TESTNETS = ['testnet'];
|
||||||
|
|
||||||
function toExpanded (o: KnownSubstrate): SubstrateNetwork {
|
function toExpanded (o: KnownBizinikiwi): BizinikwiNetwork {
|
||||||
const network = o.network || '';
|
const network = o.network || '';
|
||||||
const nameParts = network.replace(/_/g, '-').split('-');
|
const nameParts = network.replace(/_/g, '-').split('-');
|
||||||
const n = o as SubstrateNetwork;
|
const n = o as BizinikwiNetwork;
|
||||||
|
|
||||||
// ledger additions
|
// ledger additions
|
||||||
n.slip44 = knownLedger[network];
|
n.slip44 = knownLedger[network];
|
||||||
@@ -42,7 +42,7 @@ function filterSelectable ({ genesisHash, prefix }: Network): boolean {
|
|||||||
return !!genesisHash.length || prefix === 42;
|
return !!genesisHash.length || prefix === 42;
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterAvailable (n: SubstrateNetwork): n is Network {
|
function filterAvailable (n: BizinikwiNetwork): n is Network {
|
||||||
return !n.isIgnored && !!n.network;
|
return !n.isIgnored && !!n.network;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ function sortNetworks (a: Network, b: Network): number {
|
|||||||
: 1;
|
: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is all the Substrate networks with our additional information
|
// This is all the Bizinikiwi networks with our additional information
|
||||||
export const allNetworks = knownSubstrate.map(toExpanded);
|
export const allNetworks = knownBizinikiwi.map(toExpanded);
|
||||||
|
|
||||||
// The list of available/claimed prefixes
|
// The list of available/claimed prefixes
|
||||||
// - no testnets
|
// - no testnets
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2026 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { detectPackage } from '@pezkuwi/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2026 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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' };
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 known from '@substrate/ss58-registry';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { RegistryEntry } from '@substrate/ss58-registry';
|
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 KnownGenesis = Record<string, HexString[]>;
|
||||||
|
|
||||||
export type KnownSubstrate = RegistryEntry;
|
export type KnownBizinikiwi = RegistryEntry;
|
||||||
|
|
||||||
export type KnownTestnet = Record<string, true>;
|
export type KnownTestnet = Record<string, true>;
|
||||||
|
|
||||||
export interface SubstrateNetwork extends KnownSubstrate {
|
export interface BizinikwiNetwork extends KnownBizinikiwi {
|
||||||
/** The genesisHash for the chain */
|
/** The genesisHash for the chain */
|
||||||
genesisHash: HexString[];
|
genesisHash: HexString[];
|
||||||
/** Does the chain has support for Ledger devices */
|
/** Does the chain has support for Ledger devices */
|
||||||
@@ -31,13 +31,13 @@ export interface SubstrateNetwork extends KnownSubstrate {
|
|||||||
slip44?: number | null;
|
slip44?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Network extends SubstrateNetwork {
|
export interface Network extends BizinikwiNetwork {
|
||||||
/** The network assigned to this chain */
|
/** The network assigned to this chain */
|
||||||
network: string;
|
network: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Ss58Registry {
|
export interface Ss58Registry {
|
||||||
registry: KnownSubstrate[];
|
registry: KnownBizinikiwi[];
|
||||||
specification: string;
|
specification: string;
|
||||||
schema: Record<keyof KnownSubstrate, string>;
|
schema: Record<keyof KnownBizinikiwi, string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "14.0.2",
|
"version": "14.0.7",
|
||||||
"browser": {
|
"browser": {
|
||||||
"crypto": false,
|
"crypto": false,
|
||||||
"stream": false
|
"stream": false
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"@noble/hashes": "^1.3.3",
|
"@noble/hashes": "^1.3.3",
|
||||||
"@pezkuwi/networks": "14.0.1",
|
"@pezkuwi/networks": "14.0.1",
|
||||||
"@pezkuwi/util": "14.0.1",
|
"@pezkuwi/util": "14.0.1",
|
||||||
"@polkadot/wasm-crypto": "^7.5.3",
|
"@pezkuwi/wasm-crypto": "^7.5.4",
|
||||||
"@polkadot/wasm-util": "^7.5.3",
|
"@pezkuwi/wasm-util": "^7.5.4",
|
||||||
"@pezkuwi/x-bigint": "14.0.1",
|
"@pezkuwi/x-bigint": "14.0.1",
|
||||||
"@pezkuwi/x-randomvalues": "14.0.1",
|
"@pezkuwi/x-randomvalues": "14.0.1",
|
||||||
"@scure/base": "^1.1.7",
|
"@scure/base": "^1.1.7",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { hexToU8a } from '@pezkuwi/util';
|
import { hexToU8a } from '@pezkuwi/util';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { decodeAddress } from './decode.js';
|
import { decodeAddress } from './decode.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { checkAddress } from './index.js';
|
import { checkAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { base58Decode } from '../base58/index.js';
|
import { base58Decode } from '../base58/index.js';
|
||||||
import { checkAddressChecksum } from './checksum.js';
|
import { checkAddressChecksum } from './checksum.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { sshash } from './sshash.js';
|
import { sshash } from './sshash.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { hexToU8a, stringToU8a, u8aToHex } from '@pezkuwi/util';
|
import { hexToU8a, stringToU8a, u8aToHex } from '@pezkuwi/util';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { availableNetworks } from '../networks.js';
|
import { availableNetworks } from '../networks.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { waitReady } from '@pezkuwi/wasm-crypto';
|
import { waitReady } from '@pezkuwi/wasm-crypto';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { DeriveJunction } from '../key/DeriveJunction.js';
|
import type { DeriveJunction } from '../key/DeriveJunction.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { encodeAddress } from './index.js';
|
import { encodeAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { encodeDerivedAddress } from './index.js';
|
import { encodeDerivedAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@pezkuwi/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { encodeMultiAddress } from './index.js';
|
import { encodeMultiAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@pezkuwi/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { ALICE_PUBLIC_SR } from './encode.spec.js';
|
import { ALICE_PUBLIC_SR } from './encode.spec.js';
|
||||||
import { addressEq } from './index.js';
|
import { addressEq } from './index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { u8aEq } from '@pezkuwi/util';
|
import { u8aEq } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { evmToAddress } from './index.js';
|
import { evmToAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HashType } from '../secp256k1/types.js';
|
import type { HashType } from '../secp256k1/types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { addressToEvm } from './addressToEvm.js';
|
export { addressToEvm } from './addressToEvm.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { isAddress } from './index.js';
|
import { isAddress } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { createKeyDerived } from './index.js';
|
import { createKeyDerived } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@pezkuwi/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { createKeyMulti } from './index.js';
|
import { createKeyMulti } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@pezkuwi/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { encodeAddress, setSS58Format } from './index.js';
|
import { encodeAddress, setSS58Format } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { sortAddresses } from './index.js';
|
import { sortAddresses } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/util authors & contributors
|
// Copyright 2017-2025 @pezkuwi/util authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from './types.js';
|
import type { Prefix } from './types.js';
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user