Compare commits

...
36 Commits
Author SHA1 Message Date
github-actions[bot] 9c4d409e66 [CI Skip] release/stable 10.2.6
skip-checks: true
2023-01-13 14:21:32 +00:00
Jaco 5f9e345dd4 Drop stray console.error log (#1707) 2023-01-13 16:17:51 +02:00
github-actions[bot] bf141cd874 [CI Skip] release/stable 10.2.5
skip-checks: true
2023-01-13 13:59:30 +00:00
Jaco 08bf4b7eb2 Bugfix for formatBalance (forceUnit), result < 0 (#1706)
* Bugfix for formatBalance (forceUnit), result < 0

* Deps up
2023-01-13 15:54:40 +02:00
github-actions[bot] 42daac5327 [CI Skip] release/stable 10.2.4
skip-checks: true
2023-01-13 07:49:02 +00:00
Jaco 694fb8b241 10.2.4 (#1705) 2023-01-13 09:44:39 +02:00
github-actions[bot] b0b69c27dc [CI Skip] bump/beta 10.2.4-1-x
skip-checks: true
2023-01-12 10:10:49 +00:00
Jaco b57bcdc38f Bump deps (#1704) 2023-01-12 12:06:11 +02:00
github-actions[bot] 4fd4178ce9 [CI Skip] bump/beta 10.2.4-0-x
skip-checks: true
2023-01-11 13:49:51 +00:00
Jaco 39403fcfe7 formatBalance withAll/withZero (#1703) 2023-01-11 15:45:19 +02:00
github-actions[bot] 955605b2b0 [CI Skip] release/stable 10.2.3
skip-checks: true
2023-01-07 13:05:49 +00:00
Jaco d291a76798 10.2.3 (#1702) 2023-01-07 15:02:13 +02:00
github-actions[bot] aa12647ef6 [CI Skip] bump/beta 10.2.3-0-x
skip-checks: true
2023-01-07 10:16:23 +00:00
Jaco ceff8cc9ff Adjust Buffer check (#1701)
* Adjust Buffer check

* Adjust
2023-01-07 12:12:43 +02:00
github-actions[bot] 0b11d5b9c1 [CI Skip] release/stable 10.2.2
skip-checks: true
2023-01-06 10:28:35 +00:00
Jaco a1afff886b 10.2.2 (#1700) 2023-01-06 12:25:00 +02:00
github-actions[bot] 08785c3ae6 [CI Skip] bump/beta 10.2.2-9-x
skip-checks: true
2023-01-06 08:42:26 +00:00
Alex Sedighi 438fc8bd86 fix Nodle's known network name (#1699) 2023-01-06 10:38:38 +02:00
github-actions[bot] 6531bf1e36 [CI Skip] bump/beta 10.2.2-8-x
skip-checks: true
2023-01-03 12:42:26 +00:00
Jaco c066593d7a Bump deps (#1698) 2023-01-03 14:38:45 +02:00
github-actions[bot] 66f777ece9 [CI Skip] bump/beta 10.2.2-7-x
skip-checks: true
2023-01-01 08:25:34 +00:00
Jaco 3fe6be655d Update headers for 2023 (#1697) 2023-01-01 10:21:43 +02:00
github-actions[bot] 3810e392dd [CI Skip] bump/beta 10.2.2-6-x
skip-checks: true
2022-12-26 07:56:29 +00:00
Jaco 3dd4c8d6e5 Bump dev (#1696) 2022-12-26 09:52:49 +02:00
github-actions[bot] 7611ec8b01 [CI Skip] bump/beta 10.2.2-5-x
skip-checks: true
2022-12-17 11:26:20 +00:00
Jaco 82d8207f48 Bump @noble/hashes (#1695) 2022-12-17 13:22:42 +02:00
github-actions[bot] b2575437e4 [CI Skip] bump/beta 10.2.2-4-x
skip-checks: true
2022-12-14 06:10:22 +00:00
Jaco 1ee92c356a Bump dev (w/ deprecation warnings) (#1694) 2022-12-14 08:06:40 +02:00
github-actions[bot] 372e4cc59b [CI Skip] bump/beta 10.2.2-3-x
skip-checks: true
2022-12-13 08:02:41 +00:00
Jaco f1eb7ee489 Adjust TS target (#1693)
* Adjust TS target

* es2020
2022-12-13 09:58:52 +02:00
github-actions[bot] 039b849713 [CI Skip] bump/beta 10.2.2-2-x
skip-checks: true
2022-12-08 07:02:09 +00:00
Jaco 8913c70205 Remove CC (#1692) 2022-12-08 08:57:45 +02:00
github-actions[bot] 352c2df232 [CI Skip] bump/beta 10.2.2-1-x
skip-checks: true
2022-12-08 06:28:19 +00:00
Jaco 2994c594fc Bump TS (#1691)
* Bump TS

* Add ss registry compare
2022-12-08 08:24:41 +02:00
github-actions[bot] 29dba0a55f [CI Skip] bump/beta 10.2.2-0-x
skip-checks: true
2022-12-07 13:51:36 +00:00
Jaco 2d89b5b493 Update token retrieval (#1690) 2022-12-07 15:47:51 +02:00
623 changed files with 1550 additions and 1396 deletions
-21
View File
@@ -1,21 +0,0 @@
checks:
argument-count:
config:
threshold: 5
method-complexity:
config:
threshold: 7
method-count:
config:
threshold: 25
method-lines:
config:
threshold: 30
exclude_patterns:
- "**/*.spec.js"
- "**/*.spec.ts"
- "packages/networks/src/substrate.ts"
- "packages/util/src/is/utf8.ts"
- "packages/x-noble-hashes/src/**.ts"
- "packages/x-noble-secp256k1/src/**.ts"
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util authors & contributors // Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/eslint.cjs'); const base = require('@polkadot/dev/config/eslint.cjs');
+3 -3
View File
@@ -15,14 +15,14 @@ jobs:
env: env:
YARN_ENABLE_SCRIPTS: false YARN_ENABLE_SCRIPTS: false
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GH_PAT: ${{ secrets.GH_PAT }} GH_PAT: ${{ secrets.GH_PAT_BOT }}
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }} GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps: steps:
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
with: with:
fetch-depth: 0 fetch-depth: 0
token: ${{ secrets.GH_PAT }} token: ${{ secrets.GH_PAT_BOT }}
- name: ${{ matrix.step }} - name: ${{ matrix.step }}
run: | run: |
yarn install --immutable | grep -v 'YN0013' yarn install --immutable | grep -v 'YN0013'
-20
View File
@@ -1,20 +0,0 @@
name: Semgrep
on:
pull_request: {}
push:
branches:
- master
jobs:
check:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
env:
YARN_ENABLE_SCRIPTS: false
steps:
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
- uses: returntocorp/semgrep-action@aeafd770072c4f48798b991e3449592bddc2c435
with:
auditOn: push
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 1395
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/dev authors & contributors // Copyright 2017-2023 @polkadot/dev 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');
+41
View File
@@ -1,5 +1,46 @@
# CHANGELOG # CHANGELOG
## 10.2.6 Jan 13, 2023
Changes:
- Drop stray `console.error` log (it really _is_ Friday 13th)
## 10.2.5 Jan 13, 2023
Changes:
- Bugfix for `formatBalance` (forceUnit) with `BN` inputs where output is less than 0
## 10.2.4 Jan 13, 2023
Changes:
- Add the `withAll` (default false) flag to `formatBalance` to format to max decimals
- Add the `withZero` (default true) flags to `formatBalance` to retain trailing zeros
## 10.2.3 Jan 7, 2023
Changes:
- Adjust `isBuffer` check on `xglobal` (no auto-polyfill detection on eg. parcel)
- Upgrade dependencies to latest stable versions
## 10.2.2 Jan 6, 2023
Contributed:
- Adjust Nodle Ledger mapping (Thanks to https://github.com/aliXsed)
Changes:
- Upgrade dependencies to latest stable versions
## 10.2.1 Dec 4, 2022 ## 10.2.1 Dec 4, 2022
Contributed: Contributed:
+2 -1
View File
@@ -1,4 +1,4 @@
1492 Jaco 10.2.1 (#1687) 1509 Jaco Drop stray `console.error` log (#1707)
10 Carlo Sala feat(networks): support ledger for ajuna (#1682) 10 Carlo Sala feat(networks): support ledger for ajuna (#1682)
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)
@@ -16,6 +16,7 @@
2 Nantian fix bigint type (#1079) 2 Nantian fix bigint type (#1079)
2 Stefanie Doll Add missing dependencies to util-crypto (#424) 2 Stefanie Doll Add missing dependencies to util-crypto (#424)
1 Agustinus Theodorus docs: fix typo in naclSeal docs. (#1005) 1 Agustinus Theodorus docs: fix typo in naclSeal docs. (#1005)
1 Alex Sedighi fix Nodle's known network name (#1699)
1 Alexander Krupenkin Added ECDSA keypair support (#589) 1 Alexander Krupenkin Added ECDSA keypair support (#589)
1 alexdniep added equilibrium slip44; added equilibrium genesis hash (#984) 1 alexdniep added equilibrium slip44; added equilibrium genesis hash (#984)
1 amphineko chore: fix typo in versionDetect messages (#941) 1 amphineko chore: fix typo in versionDetect messages (#941)
-7
View File
@@ -1,10 +1,3 @@
[![polkadotjs](https://img.shields.io/badge/polkadot-js-orange?logo=&style=flat-square)](https://polkadot.js.org)
![license](https://img.shields.io/badge/License-Apache%202.0-blue?logo=apache&style=flat-square)
[![npm](https://img.shields.io/npm/v/@polkadot/util?logo=npm&style=flat-square)](https://www.npmjs.com/package/@polkadot/util)
[![beta](https://img.shields.io/npm/v/@polkadot/util/beta?label=beta&logo=npm&style=flat-square)](https://www.npmjs.com/package/@polkadot/util)
[![maintainability](https://img.shields.io/codeclimate/maintainability-percentage/polkadot-js/common?logo=code-climate&style=flat-square)](https://codeclimate.com/github/polkadot-js/common)
[![coverage](https://img.shields.io/codeclimate/coverage/polkadot-js/common?logo=code-climate&style=flat-square)](https://codeclimate.com/github/polkadot-js/common)
# @polkadot/common # @polkadot/common
Various useful utility functions that are used across all projects in the [@polkadot](https://polkadot.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate. Various useful utility functions that are used across all projects in the [@polkadot](https://polkadot.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util authors & contributors // Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
module.exports = require('@polkadot/dev/config/babel-config-cjs.cjs'); module.exports = require('@polkadot/dev/config/babel-config-cjs.cjs');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util authors & contributors // Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
const config = require('@polkadot/dev/config/jest.cjs'); const config = require('@polkadot/dev/config/jest.cjs');
+7 -7
View File
@@ -11,10 +11,10 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"versions": { "versions": {
"git": "10.2.1", "git": "10.2.6",
"npm": "10.2.1" "npm": "10.2.6"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@@ -33,11 +33,11 @@
"test:one": "polkadot-dev-run-test --runInBand" "test:one": "polkadot-dev-run-test --runInBand"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.5", "@babel/core": "^7.20.12",
"@polkadot/dev": "^0.67.167", "@polkadot/dev": "^0.67.178",
"@types/jest": "^29.2.3" "@types/jest": "^29.2.5"
}, },
"resolutions": { "resolutions": {
"typescript": "^4.9.3" "typescript": "^4.9.4"
} }
} }
+7 -7
View File
@@ -16,18 +16,18 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"browser": "browser.js", "browser": "browser.js",
"main": "node.js", "main": "node.js",
"react-native": "react-native.js", "react-native": "react-native.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.20.6", "@babel/runtime": "^7.20.7",
"@ledgerhq/hw-transport": "^6.27.8", "@ledgerhq/hw-transport": "^6.27.9",
"@ledgerhq/hw-transport-webhid": "^6.27.8", "@ledgerhq/hw-transport-webhid": "^6.27.9",
"@ledgerhq/hw-transport-webusb": "^6.27.8", "@ledgerhq/hw-transport-webusb": "^6.27.9",
"@polkadot/util": "10.2.1" "@polkadot/util": "10.2.6"
}, },
"optionalDependencies": { "optionalDependencies": {
"@ledgerhq/hw-transport-node-hid-singleton": "^6.28.5" "@ledgerhq/hw-transport-node-hid-singleton": "^6.28.6"
} }
} }
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type Transport from '@ledgerhq/hw-transport'; import type Transport from '@ledgerhq/hw-transport';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export default []; export default [];
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger-transports authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { TransportDef } from './types'; import type { TransportDef } from './types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export * from './empty'; export * from './empty';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type Transport from '@ledgerhq/hw-transport'; import type Transport from '@ledgerhq/hw-transport';
@@ -1,6 +1,6 @@
// Copyright 2017-2022 @polkadot/hw-ledger-transports authors & contributors // Copyright 2017-2023 @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: '10.2.1' }; export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '10.2.6' };
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export * from './empty'; export * from './empty';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import Transport from '@ledgerhq/hw-transport'; import Transport from '@ledgerhq/hw-transport';
+6 -6
View File
@@ -19,13 +19,13 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.20.6", "@babel/runtime": "^7.20.7",
"@ledgerhq/hw-transport": "^6.27.8", "@ledgerhq/hw-transport": "^6.27.9",
"@polkadot/hw-ledger-transports": "10.2.1", "@polkadot/hw-ledger-transports": "10.2.6",
"@polkadot/util": "10.2.1", "@polkadot/util": "10.2.6",
"@zondax/ledger-substrate": "^0.40.2" "@zondax/ledger-substrate": "^0.40.3"
} }
} }
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { supportedApps } from '@zondax/ledger-substrate'; import { supportedApps } from '@zondax/ledger-substrate';
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// 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
@@ -22,7 +22,7 @@ export const ledgerApps: Record<string, string> = {
karura: 'Karura', karura: 'Karura',
khala: 'Khala', khala: 'Khala',
kusama: 'Kusama', kusama: 'Kusama',
'nodle-para': 'Nodle', nodle: 'Nodle',
origintrail: 'OriginTrail', origintrail: 'OriginTrail',
parallel: 'Parallel', parallel: 'Parallel',
phala: 'Phala', phala: 'Phala',
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { packageInfo as transportInfo } from '@polkadot/hw-ledger-transports/packageInfo'; import { packageInfo as transportInfo } from '@polkadot/hw-ledger-transports/packageInfo';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import './detectPackage'; import './detectPackage';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @polkadot/hw-ledger authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export * from './index'; export * from './index';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @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: '10.2.1' }; export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '10.2.6' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/hw-ledger authors & contributors // Copyright 2017-2023 @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';
+6 -6
View File
@@ -20,15 +20,15 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.20.6", "@babel/runtime": "^7.20.7",
"@polkadot/util": "10.2.1", "@polkadot/util": "10.2.6",
"@polkadot/util-crypto": "10.2.1" "@polkadot/util-crypto": "10.2.6"
}, },
"peerDependencies": { "peerDependencies": {
"@polkadot/util": "10.2.1", "@polkadot/util": "10.2.6",
"@polkadot/util-crypto": "10.2.1" "@polkadot/util-crypto": "10.2.6"
} }
} }
+2 -1
View File
@@ -1,8 +1,9 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { Keyring } from './keyring'; import { Keyring } from './keyring';
// eslint-disable-next-line deprecation/deprecation
export { decodeAddress, encodeAddress, setSS58Format } from '@polkadot/util-crypto'; export { decodeAddress, encodeAddress, setSS58Format } from '@polkadot/util-crypto';
export * from './defaults'; export * from './defaults';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { packageInfo as utilInfo } from '@polkadot/util/packageInfo'; import { packageInfo as utilInfo } from '@polkadot/util/packageInfo';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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
+2 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KeyringPair$Json } from './types'; import type { KeyringPair$Json } from './types';
@@ -48,6 +48,7 @@ describe('keypair', (): void => {
}); });
it('adds from a mnemonic, with correct ss58', (): void => { it('adds from a mnemonic, with correct ss58', (): void => {
// eslint-disable-next-line deprecation/deprecation
setSS58Format(20); // this would not be used setSS58Format(20); // this would not be used
keyring.setSS58Format(2); // this would be used keyring.setSS58Format(2); // this would be used
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import './detectPackage'; import './detectPackage';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export * from './index'; export * from './index';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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: '10.2.1' }; export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '10.2.6' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { createTestPairs } from '../testingPairs'; import { createTestPairs } from '../testingPairs';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export const PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]); export const PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { NONCE_LENGTH, SCRYPT_LENGTH } from '@polkadot/util-crypto/json/constants'; import { NONCE_LENGTH, SCRYPT_LENGTH } from '@polkadot/util-crypto/json/constants';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { PairInfo } from './types'; import type { PairInfo } from './types';
+3 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { hexToU8a, u8aToHex } from '@polkadot/util'; import { hexToU8a, u8aToHex } from '@polkadot/util';
@@ -198,10 +198,12 @@ describe('pair', (): void => {
it('allows encoding of address with different prefixes', (): void => { it('allows encoding of address with different prefixes', (): void => {
expect(keyring.alice.address).toEqual('5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaQua'); expect(keyring.alice.address).toEqual('5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaQua');
// eslint-disable-next-line deprecation/deprecation
setSS58Format(255); setSS58Format(255);
expect(keyring.alice.address).toEqual('yGHU8YKprxHbHdEv7oUK4rzMZXtsdhcXVG2CAMyC9WhzhjH2k'); expect(keyring.alice.address).toEqual('yGHU8YKprxHbHdEv7oUK4rzMZXtsdhcXVG2CAMyC9WhzhjH2k');
// eslint-disable-next-line deprecation/deprecation
setSS58Format(42); setSS58Format(42);
}); });
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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'; import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { createTestPairs } from '../testingPairs'; import { createTestPairs } from '../testingPairs';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export interface PairInfo { export interface PairInfo {
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KeyringPair } from '../types'; import type { KeyringPair } from '../types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// From https://github.com/paritytech/substrate/wiki/Secret-URI-Test-Vectors // From https://github.com/paritytech/substrate/wiki/Secret-URI-Test-Vectors
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { u8aToHex } from '@polkadot/util'; import { u8aToHex } from '@polkadot/util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KeyringOptions, KeyringPair } from './types'; import type { KeyringOptions, KeyringPair } from './types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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';
+5 -5
View File
@@ -17,14 +17,14 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.20.6", "@babel/runtime": "^7.20.7",
"@polkadot/util": "10.2.1", "@polkadot/util": "10.2.6",
"@substrate/ss58-registry": "^1.35.0" "@substrate/ss58-registry": "^1.37.0"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/hw-ledger": "10.2.1" "@polkadot/hw-ledger": "10.2.6"
} }
} }
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { ledgerApps } from '@polkadot/hw-ledger/defaults'; import { ledgerApps } from '@polkadot/hw-ledger/defaults';
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KnownGenesis } from '../types'; import type { KnownGenesis } from '../types';
@@ -76,7 +76,7 @@ export const knownGenesis: KnownGenesis = {
'0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2 '0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636', // Kusama CC2
'0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1 '0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf' // Kusama CC1
], ],
'nodle-para': [ nodle: [
'0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21' '0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21'
], ],
origintrail: [ origintrail: [
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KnownIcon } from '../types'; import type { KnownIcon } from '../types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export { knownGenesis } from './genesis'; export { knownGenesis } from './genesis';
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KnownLedger } from '../types'; import type { KnownLedger } from '../types';
@@ -26,7 +26,7 @@ export const knownLedger: KnownLedger = {
karura: 0x000002ae, karura: 0x000002ae,
khala: 0x000001b2, khala: 0x000001b2,
kusama: 0x000001b2, kusama: 0x000001b2,
'nodle-para': 0x000003eb, nodle: 0x000003eb,
origintrail: 0x00000162, origintrail: 0x00000162,
parallel: 0x00000162, parallel: 0x00000162,
phala: 0x00000162, phala: 0x00000162,
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KnownTestnet } from '../types'; import type { KnownTestnet } from '../types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export default []; export default [];
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { SubstrateNetwork } from './types'; import type { SubstrateNetwork } from './types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { KnownSubstrate, Network, SubstrateNetwork } from './types'; import type { KnownSubstrate, Network, SubstrateNetwork } from './types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export * from './index'; export * from './index';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @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: '10.2.1' }; export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '10.2.6' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/networks authors & contributors // Copyright 2017-2023 @polkadot/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import known from '@substrate/ss58-registry'; import known from '@substrate/ss58-registry';
@@ -847,6 +847,19 @@
"standardAccount": "*25519", "standardAccount": "*25519",
"website": "https://manta.network" "website": "https://manta.network"
}, },
{
"prefix": 81,
"network": "sora_dot_para",
"displayName": "SORA Polkadot Parachain",
"symbols": [
"XOR"
],
"decimals": [
18
],
"standardAccount": "*25519",
"website": "https://sora.org"
},
{ {
"prefix": 88, "prefix": 88,
"network": "polkadex", "network": "polkadex",
@@ -1196,10 +1209,10 @@
}, },
{ {
"prefix": 1222, "prefix": 1222,
"network": "apex", "network": "krest",
"displayName": "Apex Network", "displayName": "Krest Network",
"symbols": [ "symbols": [
"APEX" "KREST"
], ],
"decimals": [ "decimals": [
18 18
@@ -1626,5 +1639,18 @@
], ],
"standardAccount": "*25519", "standardAccount": "*25519",
"website": "https://nftmart.io" "website": "https://nftmart.io"
},
{
"prefix": 13116,
"network": "bittensor",
"displayName": "Bittensor",
"symbols": [
"TAO"
],
"decimals": [
9
],
"standardAccount": "*25519",
"website": "https://bittensor.com"
} }
] ]
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/keyring authors & contributors // Copyright 2017-2023 @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';
+9 -9
View File
@@ -22,21 +22,21 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "10.2.1", "version": "10.2.6",
"browser": { "browser": {
"crypto": false, "crypto": false,
"stream": false "stream": false
}, },
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.20.6", "@babel/runtime": "^7.20.7",
"@noble/hashes": "1.1.3", "@noble/hashes": "1.1.5",
"@noble/secp256k1": "1.7.0", "@noble/secp256k1": "1.7.1",
"@polkadot/networks": "10.2.1", "@polkadot/networks": "10.2.6",
"@polkadot/util": "10.2.1", "@polkadot/util": "10.2.6",
"@polkadot/wasm-crypto": "^6.4.1", "@polkadot/wasm-crypto": "^6.4.1",
"@polkadot/x-bigint": "10.2.1", "@polkadot/x-bigint": "10.2.6",
"@polkadot/x-randomvalues": "10.2.1", "@polkadot/x-randomvalues": "10.2.6",
"@scure/base": "1.1.1", "@scure/base": "1.1.1",
"ed2curve": "^0.3.0", "ed2curve": "^0.3.0",
"tweetnacl": "^1.0.3" "tweetnacl": "^1.0.3"
@@ -45,6 +45,6 @@
"@types/ed2curve": "^0.2.2" "@types/ed2curve": "^0.2.2"
}, },
"peerDependencies": { "peerDependencies": {
"@polkadot/util": "10.2.1" "@polkadot/util": "10.2.6"
} }
} }
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { hexToU8a } from '@polkadot/util'; import { hexToU8a } from '@polkadot/util';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { checkAddress } from '.'; import { checkAddress } from '.';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { base58Decode } from '../base58'; import { base58Decode } from '../base58';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { sshash } from './sshash'; import { sshash } from './sshash';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { hexToU8a, stringToU8a, u8aToHex } from '@polkadot/util'; import { hexToU8a, stringToU8a, u8aToHex } from '@polkadot/util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { availableNetworks } from '../networks'; import { availableNetworks } from '../networks';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { waitReady } from '@polkadot/wasm-crypto'; import { waitReady } from '@polkadot/wasm-crypto';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { encodeAddress } from '.'; import { encodeAddress } from '.';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { encodeDerivedAddress } from '.'; import { encodeDerivedAddress } from '.';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { encodeMultiAddress } from '.'; import { encodeMultiAddress } from '.';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @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 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { ALICE_PUBLIC_SR } from './encode.spec'; import { ALICE_PUBLIC_SR } from './encode.spec';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import { evmToAddress } from '.'; import { evmToAddress } from '.';
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto 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';
+4 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2022 @polkadot/util-crypto authors & contributors // Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
export { addressToEvm } from './addressToEvm'; export { addressToEvm } from './addressToEvm';
@@ -14,6 +14,8 @@ export { encodeMultiAddress } from './encodeMulti';
export { evmToAddress } from './evmToAddress'; export { evmToAddress } from './evmToAddress';
export { addressEq } from './eq'; export { addressEq } from './eq';
export { isAddress } from './is'; export { isAddress } from './is';
export { setSS58Format } from './setSS58Format';
export { sortAddresses } from './sort'; export { sortAddresses } from './sort';
export { validateAddress } from './validate'; export { validateAddress } from './validate';
// eslint-disable-next-line deprecation/deprecation
export { setSS58Format } from './setSS58Format';

Some files were not shown because too many files have changed in this diff Show More