Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f7954a89b | ||
|
|
e056618d2e | ||
|
|
82a485cc9c | ||
|
|
2cbea7bf8d | ||
|
|
748f670351 | ||
|
|
5b2749073f | ||
|
|
a328ab4409 | ||
|
|
e25bb48ba9 | ||
|
|
8456870148 | ||
|
|
6f8caad80f | ||
|
|
25fe5f4e27 | ||
|
|
da2edf0aa0 | ||
|
|
eb7b24f9aa | ||
|
|
f4e93cf2c2 | ||
|
|
85b2da734c | ||
|
|
5d03be1084 | ||
|
|
2261862097 | ||
|
|
20d3af56ec | ||
|
|
367633a612 | ||
|
|
b127f678e9 | ||
|
|
3404ad2945 | ||
|
|
4059615d66 | ||
|
|
be9739ee9f |
@@ -19,9 +19,10 @@ jobs:
|
|||||||
- uses: denoland/setup-deno@v1
|
- uses: denoland/setup-deno@v1
|
||||||
with:
|
with:
|
||||||
# Deno v2 throws errors with specific types therefore we set it to the last version before v2
|
# Deno v2 throws errors with specific types therefore we set it to the last version before v2
|
||||||
deno-version: v1.42.x
|
deno-version: v1.46.3
|
||||||
- name: ${{ matrix.step }}
|
- name: ${{ matrix.step }}
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
deno --version
|
||||||
yarn install --immutable
|
yarn install --immutable
|
||||||
yarn ${{ matrix.step }}
|
yarn ${{ matrix.step }}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util authors & contributors
|
// Copyright 2017-2025 @polkadot/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('@polkadot/dev/config/prettier.cjs');
|
||||||
|
|||||||
+277
-277
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
|||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.5.1.cjs
|
yarnPath: .yarn/releases/yarn-4.6.0.cjs
|
||||||
|
|||||||
@@ -1,5 +1,36 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 13.4.1 Feb 16, 2025
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Enable KeyringPair Creation with Custom Mnemonic Wordlists ([#1974](https://github.com/polkadot-js/common/pull/1974))
|
||||||
|
- Use ws library in Node.js 22+ for Better WebSocket Error Handling ([#1976](https://github.com/polkadot-js/common/pull/1976))
|
||||||
|
- Fix Misclassification of ECDSA Signatures in `verifyMultisig` ([#1973](https://github.com/polkadot-js/common/pull/1973))
|
||||||
|
- Bump dev to 0.83.2 ([#1972](https://github.com/polkadot-js/common/pull/1972))
|
||||||
|
- Bump yarn to 4.6.0 ([#1967](https://github.com/polkadot-js/common/pull/1967))
|
||||||
|
|
||||||
|
|
||||||
|
## 13.3.1 Jan 6, 2025
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Give compatibility for nodejs v22
|
||||||
|
- Fix `getSeparator` which fixes toLocaleString ([#1965](https://github.com/polkadot-js/common/pull/1965))
|
||||||
|
- 2025 Headers ([#1963](https://github.com/polkadot-js/common/pull/1963))
|
||||||
|
|
||||||
|
|
||||||
|
## 13.2.3 Nov 11, 2024
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Add Vara support to the Generic Ledger App ([#1958](https://github.com/polkadot-js/common/pull/1958)) (Thanks to https://github.com/breathx)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Bump Dev to 0.82.1 ([#1959](https://github.com/polkadot-js/common/pull/1959))
|
||||||
|
|
||||||
|
|
||||||
## 13.2.2 Oct 28, 2024
|
## 13.2.2 Oct 28, 2024
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+3
-1
@@ -1,5 +1,5 @@
|
|||||||
1674 Jaco Bump deps (#1912)
|
1674 Jaco Bump deps (#1912)
|
||||||
29 Tarik Gul 13.2.2 (#1956)
|
37 Tarik Gul 13.4.1 (#1977)
|
||||||
13 Carlo Sala feat(networks): add zeitgeist Ledger support (#1840)
|
13 Carlo Sala feat(networks): add zeitgeist Ledger support (#1840)
|
||||||
9 Antoine Estienne Add eth uri keyring test (#1291)
|
9 Antoine Estienne Add eth uri keyring test (#1291)
|
||||||
6 Amaury Martiny Add tests from Rust (#283)
|
6 Amaury Martiny Add tests from Rust (#283)
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
4 Adam Dossa Update Polymesh Genesis Hash (#1193)
|
4 Adam Dossa Update Polymesh Genesis Hash (#1193)
|
||||||
4 pan add bifrost kusama (#1626)
|
4 pan add bifrost kusama (#1626)
|
||||||
3 Luke Schoen docs: Fix example in readme since we use default imports (#243)
|
3 Luke Schoen docs: Fix example in readme since we use default imports (#243)
|
||||||
|
3 Valentin Fernandez Fix Misclassification of ECDSA Signatures in `verifyMultisig()` (#1973)
|
||||||
2 AndreasGassmann feat(dependencies): remove moment.js (#530)
|
2 AndreasGassmann feat(dependencies): remove moment.js (#530)
|
||||||
2 Cameron Fairchild Add bittensor details (#1783)
|
2 Cameron Fairchild Add bittensor details (#1783)
|
||||||
2 Gav Wood Fix stake:unstake (#182)
|
2 Gav Wood Fix stake:unstake (#182)
|
||||||
@@ -27,6 +28,7 @@
|
|||||||
1 Brad Larson [FIX] Adjust error message (#646)
|
1 Brad Larson [FIX] Adjust error message (#646)
|
||||||
1 Carlos Medeiros add hydradx to knownLedger (#1647)
|
1 Carlos Medeiros add hydradx to knownLedger (#1647)
|
||||||
1 Chris Get rid of warnings for dual esm and cjs packages of the same version (#1890)
|
1 Chris Get rid of warnings for dual esm and cjs packages of the same version (#1890)
|
||||||
|
1 Dmitrii Novikov Add `Vara` support to Generic Ledger App (#1958)
|
||||||
1 Eliott Teissonniere add nodle ledger specs (#1089)
|
1 Eliott Teissonniere add nodle ledger specs (#1089)
|
||||||
1 Guilane DENGUIR feat(VTB): Added support for VTB blockchain (#1651)
|
1 Guilane DENGUIR feat(VTB): Added support for VTB blockchain (#1651)
|
||||||
1 h4x3rotab Throws an error when signing with a locked keypair (#578)
|
1 h4x3rotab Throws an error when signing with a locked keypair (#578)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util authors & contributors
|
// Copyright 2017-2025 @polkadot/util authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import baseConfig from '@polkadot/dev/config/eslint';
|
import baseConfig from '@polkadot/dev/config/eslint';
|
||||||
|
|||||||
+5
-5
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/common#readme",
|
"homepage": "https://github.com/polkadot-js/common#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@4.5.1",
|
"packageManager": "yarn@4.6.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -14,10 +14,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "13.2.2",
|
"version": "13.4.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "13.2.2",
|
"git": "13.4.1",
|
||||||
"npm": "13.2.2"
|
"npm": "13.4.1"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"test:one": "polkadot-dev-run-test --env browser"
|
"test:one": "polkadot-dev-run-test --env browser"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.81.2",
|
"@polkadot/dev": "^0.83.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": "13.2.2",
|
"version": "13.4.1",
|
||||||
"browser": "browser.js",
|
"browser": "browser.js",
|
||||||
"main": "node.js",
|
"main": "node.js",
|
||||||
"react-native": "react-native.js",
|
"react-native": "react-native.js",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"@ledgerhq/hw-transport": "^6.31.4",
|
"@ledgerhq/hw-transport": "^6.31.4",
|
||||||
"@ledgerhq/hw-transport-webhid": "^6.29.4",
|
"@ledgerhq/hw-transport-webhid": "^6.29.4",
|
||||||
"@ledgerhq/hw-transport-webusb": "^6.29.4",
|
"@ledgerhq/hw-transport-webusb": "^6.29.4",
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger-transports authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger-transports authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.2.2' };
|
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '13.4.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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,11 +17,11 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "13.2.2",
|
"version": "13.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/hw-ledger-transports": "13.2.2",
|
"@polkadot/hw-ledger-transports": "13.4.1",
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"@zondax/ledger-substrate": "1.0.0",
|
"@zondax/ledger-substrate": "1.0.0",
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { TransportDef, TransportType } from '@polkadot/hw-ledger-transports/types';
|
import type { TransportDef, TransportType } from '@polkadot/hw-ledger-transports/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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
|
||||||
@@ -54,7 +54,8 @@ export const genericLedgerApps = {
|
|||||||
encointer: 'Encointer',
|
encointer: 'Encointer',
|
||||||
frequency: 'Frequency',
|
frequency: 'Frequency',
|
||||||
integritee: 'Integritee',
|
integritee: 'Integritee',
|
||||||
polimec: 'Polimec'
|
polimec: 'Polimec',
|
||||||
|
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 @polkadot/networks/defaults/ledger.ts
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.2.2' };
|
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '13.4.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/hw-ledger authors & contributors
|
// Copyright 2017-2025 @polkadot/hw-ledger authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|||||||
@@ -18,15 +18,15 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "13.2.2",
|
"version": "13.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"@polkadot/util-crypto": "13.2.2",
|
"@polkadot/util-crypto": "13.4.1",
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"@polkadot/util-crypto": "13.2.2"
|
"@polkadot/util-crypto": "13.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// default substrate dev phrase
|
// default substrate dev phrase
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
@@ -6,7 +6,8 @@
|
|||||||
import type { KeyringPair$Json } from './types.js';
|
import type { KeyringPair$Json } from './types.js';
|
||||||
|
|
||||||
import { hexToU8a, stringToU8a } from '@polkadot/util';
|
import { hexToU8a, stringToU8a } from '@polkadot/util';
|
||||||
import { base64Decode, cryptoWaitReady, encodeAddress, randomAsU8a, setSS58Format } from '@polkadot/util-crypto';
|
import { base64Decode, cryptoWaitReady, encodeAddress, mnemonicGenerate, randomAsU8a, setSS58Format } from '@polkadot/util-crypto';
|
||||||
|
import * as languages from '@polkadot/util-crypto/mnemonic/wordlists/index';
|
||||||
|
|
||||||
import { decodePair } from './pair/decode.js';
|
import { decodePair } from './pair/decode.js';
|
||||||
import Keyring from './index.js';
|
import Keyring from './index.js';
|
||||||
@@ -574,4 +575,35 @@ describe('keypair', (): void => {
|
|||||||
expect(pair.address).toBe('FLiSDPCcJ6auZUGXALLj6jpahcP6adVFDBUQznPXUQ7yoqH');
|
expect(pair.address).toBe('FLiSDPCcJ6auZUGXALLj6jpahcP6adVFDBUQznPXUQ7yoqH');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('wordlist', (): void => {
|
||||||
|
it('creates keypair from different wordlists mnemonics', (): void => {
|
||||||
|
Object.keys(languages).forEach((language) => {
|
||||||
|
const mnemonic = mnemonicGenerate(12, languages[language as keyof typeof languages]);
|
||||||
|
const keyring = new Keyring({
|
||||||
|
type: 'ed25519'
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(keyring.addFromMnemonic(
|
||||||
|
mnemonic,
|
||||||
|
{},
|
||||||
|
'ed25519',
|
||||||
|
languages[language as keyof typeof languages]
|
||||||
|
)).toBeDefined();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
it('cannot create from invalid wordlist', (): void => {
|
||||||
|
const mnemonic = mnemonicGenerate(12, languages.japanese);
|
||||||
|
const keyring = new Keyring({
|
||||||
|
type: 'ed25519'
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(() => keyring.addFromMnemonic(
|
||||||
|
mnemonic,
|
||||||
|
{},
|
||||||
|
'ed25519',
|
||||||
|
languages.english
|
||||||
|
)).toThrow('Invalid bip39 mnemonic specified');
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
|
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
|
||||||
@@ -121,8 +121,8 @@ export class Keyring implements KeyringInstance {
|
|||||||
* of an account backup), and then generates a keyring pair from it that it passes to
|
* of an account backup), and then generates a keyring pair from it that it passes to
|
||||||
* `addPair` to stores in a keyring pair dictionary the public key of the generated pair as a key and the pair as the associated value.
|
* `addPair` to stores in a keyring pair dictionary the public key of the generated pair as a key and the pair as the associated value.
|
||||||
*/
|
*/
|
||||||
public addFromMnemonic (mnemonic: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
|
public addFromMnemonic (mnemonic: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
|
||||||
return this.addFromUri(mnemonic, meta, type);
|
return this.addFromUri(mnemonic, meta, type, wordlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -153,9 +153,9 @@ export class Keyring implements KeyringInstance {
|
|||||||
* @summary Creates an account via an suri
|
* @summary Creates an account via an suri
|
||||||
* @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed). The secret can be a hex string, mnemonic phrase or a string (to be padded)
|
* @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed). The secret can be a hex string, mnemonic phrase or a string (to be padded)
|
||||||
*/
|
*/
|
||||||
public addFromUri (suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
|
public addFromUri (suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
|
||||||
return this.addPair(
|
return this.addPair(
|
||||||
this.createFromUri(suri, meta, type)
|
this.createFromUri(suri, meta, type, wordlist)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ export class Keyring implements KeyringInstance {
|
|||||||
* @summary Creates a Keypair from an suri
|
* @summary Creates a Keypair from an suri
|
||||||
* @description This creates a pair from the suri, but does not add it to the keyring
|
* @description This creates a pair from the suri, but does not add it to the keyring
|
||||||
*/
|
*/
|
||||||
public createFromUri (_suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type): KeyringPair {
|
public createFromUri (_suri: string, meta: KeyringPair$Meta = {}, type: KeypairType = this.type, wordlist?: string[]): KeyringPair {
|
||||||
// here we only aut-add the dev phrase if we have a hard-derived path
|
// here we only aut-add the dev phrase if we have a hard-derived path
|
||||||
const suri = _suri.startsWith('//')
|
const suri = _suri.startsWith('//')
|
||||||
? `${DEV_PHRASE}${_suri}`
|
? `${DEV_PHRASE}${_suri}`
|
||||||
@@ -220,7 +220,7 @@ export class Keyring implements KeyringInstance {
|
|||||||
if ([12, 15, 18, 21, 24].includes(parts.length)) {
|
if ([12, 15, 18, 21, 24].includes(parts.length)) {
|
||||||
seed = type === 'ethereum'
|
seed = type === 'ethereum'
|
||||||
? mnemonicToLegacySeed(phrase, '', false, 64)
|
? mnemonicToLegacySeed(phrase, '', false, 64)
|
||||||
: mnemonicToMiniSecret(phrase, password);
|
: mnemonicToMiniSecret(phrase, password, wordlist);
|
||||||
} else {
|
} else {
|
||||||
if (phrase.length > 32) {
|
if (phrase.length > 32) {
|
||||||
throw new Error('specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes');
|
throw new Error('specified phrase is not a valid mnemonic and is invalid as a raw seed at > 32 bytes');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.2.2' };
|
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '13.4.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding } from '@polkadot/util-crypto/types';
|
import type { EncryptedJsonEncoding } from '@polkadot/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
|
import type { EncryptedJsonEncoding, Keypair, KeypairType } from '@polkadot/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export interface PairInfo {
|
export interface PairInfo {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
@@ -116,13 +116,13 @@ export interface KeyringInstance {
|
|||||||
addPair (pair: KeyringPair): KeyringPair;
|
addPair (pair: KeyringPair): KeyringPair;
|
||||||
addFromAddress (address: string | Uint8Array, meta?: KeyringPair$Meta, encoded?: Uint8Array | null, type?: KeypairType, ignoreChecksum?: boolean): KeyringPair;
|
addFromAddress (address: string | Uint8Array, meta?: KeyringPair$Meta, encoded?: Uint8Array | null, type?: KeypairType, ignoreChecksum?: boolean): KeyringPair;
|
||||||
addFromJson (pair: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
|
addFromJson (pair: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
|
||||||
addFromMnemonic (mnemonic: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
addFromMnemonic (mnemonic: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
|
||||||
addFromPair (pair: Keypair, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair
|
addFromPair (pair: Keypair, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair
|
||||||
addFromSeed (seed: Uint8Array, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
addFromSeed (seed: Uint8Array, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
||||||
addFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
addFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
|
||||||
createFromJson (json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
|
createFromJson (json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
|
||||||
createFromPair (pair: Keypair, meta: KeyringPair$Meta, type: KeypairType): KeyringPair
|
createFromPair (pair: Keypair, meta: KeyringPair$Meta, type: KeypairType): KeyringPair
|
||||||
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType, wordlist?: string[]): KeyringPair;
|
||||||
getPair (address: string | Uint8Array): KeyringPair;
|
getPair (address: string | Uint8Array): KeyringPair;
|
||||||
getPairs (): KeyringPair[];
|
getPairs (): KeyringPair[];
|
||||||
getPublicKeys (): Uint8Array[];
|
getPublicKeys (): Uint8Array[];
|
||||||
|
|||||||
@@ -15,14 +15,14 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "13.2.2",
|
"version": "13.4.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"@substrate/ss58-registry": "^1.51.0",
|
"@substrate/ss58-registry": "^1.51.0",
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/hw-ledger": "13.2.2"
|
"@polkadot/hw-ledger": "13.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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';
|
||||||
@@ -177,6 +177,9 @@ export const knownGenesis: KnownGenesis = {
|
|||||||
unique: [
|
unique: [
|
||||||
'0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31'
|
'0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31'
|
||||||
],
|
],
|
||||||
|
vara: [
|
||||||
|
'0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763'
|
||||||
|
],
|
||||||
vtb: [
|
vtb: [
|
||||||
'0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f',
|
'0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f',
|
||||||
'0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa'
|
'0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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';
|
||||||
@@ -50,6 +50,7 @@ export const knownLedger: KnownLedger = {
|
|||||||
statemint: 0x00000162, // common-good on Polkadot, shares derivation
|
statemint: 0x00000162, // common-good on Polkadot, shares derivation
|
||||||
ternoa: 0x00003e3,
|
ternoa: 0x00003e3,
|
||||||
unique: 0x00000295,
|
unique: 0x00000295,
|
||||||
|
vara: 0x00001370,
|
||||||
vtb: 0x000002b6,
|
vtb: 0x000002b6,
|
||||||
xxnetwork: 0x000007a3,
|
xxnetwork: 0x000007a3,
|
||||||
zeitgeist: 0x00000162
|
zeitgeist: 0x00000162
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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 { KnownSubstrate, Network, SubstrateNetwork } from './types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/networks authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index.js';
|
export * from './index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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 @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.2.2' };
|
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '13.4.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/networks authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/keyring authors & contributors
|
// Copyright 2017-2025 @polkadot/keyring 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';
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "13.2.2",
|
"version": "13.4.1",
|
||||||
"browser": {
|
"browser": {
|
||||||
"crypto": false,
|
"crypto": false,
|
||||||
"stream": false
|
"stream": false
|
||||||
@@ -29,16 +29,16 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@noble/curves": "^1.3.0",
|
"@noble/curves": "^1.3.0",
|
||||||
"@noble/hashes": "^1.3.3",
|
"@noble/hashes": "^1.3.3",
|
||||||
"@polkadot/networks": "13.2.2",
|
"@polkadot/networks": "13.4.1",
|
||||||
"@polkadot/util": "13.2.2",
|
"@polkadot/util": "13.4.1",
|
||||||
"@polkadot/wasm-crypto": "^7.4.1",
|
"@polkadot/wasm-crypto": "^7.4.1",
|
||||||
"@polkadot/wasm-util": "^7.4.1",
|
"@polkadot/wasm-util": "^7.4.1",
|
||||||
"@polkadot/x-bigint": "13.2.2",
|
"@polkadot/x-bigint": "13.4.1",
|
||||||
"@polkadot/x-randomvalues": "13.2.2",
|
"@polkadot/x-randomvalues": "13.4.1",
|
||||||
"@scure/base": "^1.1.7",
|
"@scure/base": "^1.1.7",
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "13.2.2"
|
"@polkadot/util": "13.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { u8aEq } from '@polkadot/util';
|
import { u8aEq } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/util-crypto authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2024 @polkadot/util-crypto authors & contributors
|
// Copyright 2017-2025 @polkadot/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="@polkadot/dev-test/globals.d.ts" />
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user