Compare commits

...
44 Commits
Author SHA1 Message Date
github-actions[bot] bcdf5ba26e [CI Skip] release/stable 10.0.2
skip-checks: true
2022-07-10 06:28:02 +00:00
Jaco ae9a04e557 Work-around for Jest + dynamic imports (#1594)
* Work-around for Jest + dynamic imports

* CHANGELOG

* 10.0.2
2022-07-10 09:24:11 +03:00
github-actions[bot] 4b37a82fb3 [CI Skip] bump/beta 10.0.2-1-x
skip-checks: true
2022-07-08 21:22:55 +00:00
Jaco 1b69bb9dfa Bump dev deps (#1593) 2022-07-09 00:19:36 +03:00
github-actions[bot] e8f703f850 [CI Skip] bump/beta 10.0.2-0-x
skip-checks: true
2022-07-08 13:34:11 +00:00
Jaco 3ad4455fe1 Adjust eslint config (#1592) 2022-07-08 16:30:50 +03:00
github-actions[bot] 1f6a263a8e [CI Skip] release/stable 10.0.1
skip-checks: true
2022-07-08 05:31:28 +00:00
Jaco 73073529bb 10.0.1 (#1591) 2022-07-08 08:28:07 +03:00
github-actions[bot] e1bdac1ba5 [CI Skip] bump/beta 9.7.3-17-x
skip-checks: true
2022-07-08 04:47:55 +00:00
Jaco 56c619944c Bump deps (#1590)
* Bump deps

* Rebump
2022-07-08 07:44:35 +03:00
github-actions[bot] 4c60b98b07 [CI Skip] bump/beta 9.7.3-16-x
skip-checks: true
2022-07-07 14:50:24 +00:00
Jaco 2f9f007547 CHANGELOG (#1589) 2022-07-07 17:46:30 +03:00
github-actions[bot] d00184fff7 [CI Skip] bump/beta 9.7.3-15-x
skip-checks: true
2022-07-07 14:33:54 +00:00
Carlo Sala e1e3a1699f feat(networks): add ledger support for Aleph Zero (#1588) 2022-07-07 17:30:29 +03:00
github-actions[bot] 90a1837978 [CI Skip] bump/beta 9.7.3-14-x
skip-checks: true
2022-07-07 07:53:03 +00:00
Jaco c96ad1a34e Align BigInt functions with BN (option handling) (#1587)
* Align BigInt functions with BN (option handling)

* CHANGELOG

* Pass bitLength parameter
2022-07-07 10:49:40 +03:00
github-actions[bot] b1eda9efe9 [CI Skip] bump/beta 9.7.3-13-x
skip-checks: true
2022-07-07 07:31:23 +00:00
kaelnewandfengwenjun 2184ae8511 add ledger support for stafi (#1569)
Co-authored-by: fengwenjun <kael@fengwenjun.com>
2022-07-07 10:27:34 +03:00
github-actions[bot] ce94314992 [CI Skip] bump/beta 9.7.3-12-x
skip-checks: true
2022-07-07 07:18:28 +00:00
Jaco eea3596847 Bump deps (#1586) 2022-07-07 10:14:14 +03:00
github-actions[bot] 37e78f7abd [CI Skip] bump/beta 9.7.3-11-x
skip-checks: true
2022-07-07 05:35:56 +00:00
Jaco 4bb2c83213 Adjust exports (#1585) 2022-07-07 08:31:58 +03:00
github-actions[bot] 3828d941a9 [CI Skip] bump/beta 9.7.3-10-x
skip-checks: true
2022-07-07 04:57:20 +00:00
Jaco c92d5cfb20 Remove deprecated call signatures (#1584) 2022-07-07 07:54:07 +03:00
github-actions[bot] 70d2250b3b [CI Skip] bump/beta 9.7.3-9-x
skip-checks: true
2022-07-06 17:37:27 +00:00
Jakub Pánik a46279876f Add HydraDX parachain to genesis (#1583) 2022-07-06 20:34:05 +03:00
github-actions[bot] 4267c4ac76 [CI Skip] bump/beta 9.7.3-8-x
skip-checks: true
2022-07-06 11:04:00 +00:00
Jaco e09dfcffbe Adjust issue template (#1582) 2022-07-06 14:00:36 +03:00
github-actions[bot] b722291de2 [CI Skip] bump/beta 9.7.3-7-x
skip-checks: true
2022-07-06 09:54:00 +00:00
Jaco 4367bb0f68 Adjust for available ESM-only dependencies (#1581)
* Adjust for available ESM-only dependencies

* Flags for jest (sadly, still required mid-2022)
2022-07-06 12:50:36 +03:00
github-actions[bot] 1d71f67e2a [CI Skip] bump/beta 9.7.3-6-x
skip-checks: true
2022-07-05 21:22:56 +00:00
Jaco 2d4995b16e Additional CI actions (#1580) 2022-07-06 00:19:30 +03:00
github-actions[bot] b96cfd36cf [CI Skip] bump/beta 9.7.3-5-x
skip-checks: true
2022-07-05 07:42:41 +00:00
Jaco 9f53838626 Bump dev deps (#1579) 2022-07-05 10:38:50 +03:00
github-actions[bot] 478dd6ccd9 [CI Skip] bump/beta 9.7.3-4-x
skip-checks: true
2022-07-05 07:04:53 +00:00
Jaco fd313c2e91 Push to deno 2022-07-05 10:01:25 +03:00
github-actions[bot] 66b58ea5f2 [CI Skip] bump/beta 9.7.3-3-x
skip-checks: true
2022-07-05 06:59:07 +00:00
Jaco 66acbe04af Adjust deno exports in x-* (#1578)
* Adjust deno exports in x-*

* Adjust versionDetect
2022-07-05 09:55:57 +03:00
github-actions[bot] 2194cc58d7 [CI Skip] bump/beta 9.7.3-2-x
skip-checks: true
2022-07-05 05:38:54 +00:00
Jaco 768f64aec7 Push to deno repo 2022-07-05 08:35:29 +03:00
github-actions[bot] 2176bedd50 [CI Skip] bump/beta 9.7.3-1-x
skip-checks: true
2022-07-04 09:38:31 +00:00
Jaco 8273eb5441 Switch on TS isolatedModules (#1577) 2022-07-04 12:35:03 +03:00
github-actions[bot] 76af1b8822 [CI Skip] bump/beta 9.7.3-0-x
skip-checks: true
2022-07-04 07:23:50 +00:00
Jaco 80eb70a382 Adjust some usages to not require @types/node (#1576) 2022-07-04 10:20:24 +03:00
68 changed files with 562 additions and 511 deletions
+1 -1
View File
@@ -1 +1 @@
9.7.2
10.0.2
+38 -31
View File
@@ -1,32 +1,39 @@
8
2.6.2
2.12.2
5.2.2
5.2.3
5.4.2
5.4.3
5.4.4
5.5.2
5.6.2
5.6.3
5.9.2
6.0.2
6.0.3
6.0.4
6.0.5
8,2.6.2,2.12.2,5.2.2,5.2.3,5.4.2,5.4.3,5.4.4,5.5.2,5.6.2,5.6.3,5.9.2,6.0.2,6.0.3,6.0.4,6.0.5,7.0.2,7.0.3,7.1.2,7.8.2,7.9.2,8.0.2,8.0.3,8.0.4,8.0.5,8.1.2,8.2.2,8.3.2,8.3.3,9.6.2,9.7.2
7.0.2
7.0.3
7.1.2
7.8.2
7.9.2
8.0.2
8.0.3
8.0.4
8.0.5
8.1.2
8.2.2
8.3.2
8.3.3
9.6.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2.2,5.2.3,5.4.2,5.4.3,5.4.4,5.5.2,5.6.2,5.6.3,5.9.2,6.0.2,6.0.3,6.0.4,6.0.5,7.0.2,7.0.3,7.1.2,7.8.2,7.9.2,8.0.2,8.0.3,8.0.4,8.0.5,8.1.2,8.2.2,8.3.2,8.3.3,9.6.2,9.7.2
8,2.6.2,2.12.2,5.2.2,5.2.3,5.4.2,5.4.3,5.4.4,5.5.2,5.6.2,5.6.3,5.9.2,6.0.2,6.0.3,6.0.4,6.0.5,7.0.2,7.0.3,7.1.2,7.8.2,7.9.2,8.0.2,8.0.3,8.0.4,8.0.5,8.1.2,8.2.2,8.3.2,8.3.3,9.6.2,9.7.2
10.0.2
+2 -1
View File
@@ -6,7 +6,8 @@ const base = require('@polkadot/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [
...base.ignorePatterns
...base.ignorePatterns,
'**/deno/*.ts'
],
parserOptions: {
...base.parserOptions,
+49 -13
View File
@@ -1,50 +1,86 @@
<!--
For general support, howto, coding and bundling questions, please use the Substrate & Polkadot StackExchange at https://substrate.stackexchange.com/ and get other ecosystem developers involved. This issues in this repository are meant for the tracking of feature requests and bug reports.
For general support, howto, coding and bundling questions, please
use the Substrate & Polkadot StackExchange at
While all issues are looked at non-bug and non-features would take quite a bit longer to get to and may yield less than satisfactory responses in this format.
https://substrate.stackexchange.com/
Additionally, please ensure you have done a search on the existing and closed issues before logging a new request. This saves time on all sides.
and get other ecosystem developers involved. This issues in this
repository are meant for the tracking of feature requests and bug
reports.
While all issues are looked at non-bug and non-features would take
quite a bit longer to get to and may yield less than satisfactory
responses in this format.
Additionally, please ensure you have done a search on the existing
and closed issues before logging a new request. This saves time on
all sides.
-->
* **I'm submitting a ...**
<!--- Try and classify your actual report -->
<!---
REQUIRED:
Classify the type of report your are submitting
-->
- [ ] Bug report
- [ ] Feature request
- [ ] Support request (please bear the comments above in mind)
- [ ] Support request
- [ ] Other
* **What is the current behavior and expected behavior?**
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
<!---
REQUIRED:
If you're describing a bug, tell us what should happen. If you're
suggesting a change/improvement, tell us how it should work.
-->
* **What is the motivation for changing the behavior?**
<!--- Not obligatory, but suggest a motivation for the request -->
<!--- or ideas how to implement the addition or change -->
<!---
OPTIONAL:
Suggest a motivation for the request or ideas how to implement the
addition or change
-->
* **Please tell us about your environment:**
<!--- Include as many relevant details about the environment you experienced the issue in -->
<!--- Also snsure that you have tested against the latest stable releases if a bug -->
<!---
REQUIRED:
Include as many relevant details about the environment in which you
experienced the issue. Also ensure that you have tested against the
latest stable releases if you believe this to be a bug
-->
- Version:
- Environment:
- [ ] Node.js
- [ ] Browser
- [ ] Other (limited support for other environments available)
- [ ] Other (limited support for other environments)
- Language:
- [ ] JavaScript
- [ ] TypeScript
- [ ] TypeScript (include tsc --version)
- [ ] Other
+5 -1
View File
@@ -5,7 +5,7 @@ jobs:
pr:
strategy:
matrix:
step: ['lint', 'test', 'build']
step: ['lint', 'test', 'build', 'deno']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
env:
@@ -13,7 +13,11 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: ${{ matrix.step }}
if: always()
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
+2
View File
@@ -9,6 +9,8 @@ coverage/
docs/.vuepress/dist/
node_modules/
tmp/
/import_map.json
/mod.ts
.DS_Store
.env.local
.env.development.local
+27
View File
@@ -1,5 +1,32 @@
# CHANGELOG
## 10.0.2 Jul 10, 2022
Changes:
- Adjust async import in `x-fetch` to be Jest-friendly
## 10.0.1 Jul 8, 2022
- **Breaking change** In this major version version previously deprecated function signatures have been removed. If still using the old forms for either `bnToHex`, `bnToU8a`, `formatBalance`, `hexToBn` or `u8aToBn`, please update and only pass through an options object as the second parameter.
Contributed:
- Ledger support for Stafi (Thanks to https://github.com/kaelnew)
- Ledger support for Aleph Zero (Thanks to https://github.com/carlosala)
- Add genesis for HydraDX parachain (Thanks to https://github.com/jak-pan)
Changes:
- Remove deprecated signatures for `bnToHex`, `bnToU8a`, `formatBalance`, `hexToBn`, `u8aToBn`
- Align option handling of `n*` (BigInt) functions with `bn*` (BN)
- Allow for usage without `@types/node` installed
- Adjust for available ESM-only dependencies
- Upgrade dependencies to latest stable versions
- Upgrade to `@polkadot/wasm-crypto` 6.2.3
## 9.7.2 Jul 4, 2022
Changes:
+4 -3
View File
@@ -1,10 +1,10 @@
1393 Jaco 9.7.2 (#1575)
1412 Jaco Work-around for Jest + dynamic imports (#1594)
9 Antoine Estienne Add eth uri keyring test (#1291)
6 Amaury Martiny Add tests from Rust (#283)
5 Carlo Sala feat(networks): add ledger support for Aleph Zero (#1588)
5 Jakub Pánik Add HydraDX parachain to genesis (#1583)
5 kwingram25 Add BN consts and timeToString (#610)
4 Adam Dossa Update Polymesh Genesis Hash (#1193)
4 Carlo Sala add Composable support for ledger (#1515)
4 Jakub Pánik Add basilisk 🐍 (#1396)
3 Luke Schoen docs: Fix example in readme since we use default imports (#243)
3 pan update bifrost genesis hash (#1521)
2 AndreasGassmann feat(dependencies): remove moment.js (#530)
@@ -30,6 +30,7 @@
1 Jake Naviasky Add evmToAddress and addressToEvm crypto utils. (#705)
1 JesseAbram added check if valid address to docs (#440)
1 joe petrowski Add example for multisig address creation (#590)
1 kaelnew add ledger support for stafi (#1569)
1 Lezek123 logger - wildcard include/exclude with DEBUG env (#932)
1 Mario Neises remove redudant export (#257)
1 Miguel Hervas Add CFG Ledger Support (#1057)
+5 -3
View File
@@ -10,7 +10,8 @@
"url": "https://github.com/polkadot-js/common.git"
},
"sideEffects": false,
"version": "9.7.2",
"type": "module",
"version": "10.0.2",
"workspaces": [
"packages/*"
],
@@ -19,16 +20,17 @@
"build:release": "polkadot-ci-ghact-build",
"build:rollup": "polkadot-exec-rollup --config",
"clean": "polkadot-dev-clean-build",
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
"lint": "polkadot-dev-run-lint",
"networks:crosscheck": "polkadot-dev-run-test packages/networks/src/crosscheck",
"postinstall": "polkadot-dev-yarn-only",
"test": "polkadot-dev-run-test --coverage --runInBand --testPathIgnorePatterns crosscheck --testPathIgnorePatterns toMiniSecretCmp",
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --runInBand --testPathIgnorePatterns crosscheck --testPathIgnorePatterns toMiniSecretCmp",
"test:mnemonicCmp": "polkadot-dev-run-test packages/util-crypto/src/mnemonic/toMiniSecretCmp.spec.ts",
"test:one": "polkadot-dev-run-test --runInBand"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@polkadot/dev": "^0.67.50",
"@polkadot/dev": "^0.67.65",
"@types/jest": "^28.1.4"
},
"resolutions": {
View File
+3 -3
View File
@@ -16,7 +16,7 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
@@ -25,9 +25,9 @@
"@ledgerhq/hw-transport": "^6.27.1",
"@ledgerhq/hw-transport-webhid": "^6.27.1",
"@ledgerhq/hw-transport-webusb": "^6.27.1",
"@polkadot/util": "9.7.2"
"@polkadot/util": "10.0.2"
},
"optionalDependencies": {
"@ledgerhq/hw-transport-node-hid-singleton": "^6.27.1"
"@ledgerhq/hw-transport-node-hid-singleton": "^6.27.2"
}
}
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '10.0.2' };
+4 -4
View File
@@ -19,13 +19,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@ledgerhq/hw-transport": "^6.27.1",
"@polkadot/hw-ledger-transports": "9.7.2",
"@polkadot/util": "9.7.2",
"@zondax/ledger-substrate": "^0.31.0"
"@polkadot/hw-ledger-transports": "10.0.2",
"@polkadot/util": "10.0.2",
"@zondax/ledger-substrate": "^0.32.0"
}
}
+3 -1
View File
@@ -4,11 +4,12 @@
import type Transport from '@ledgerhq/hw-transport';
import type { SubstrateApp } from '@zondax/ledger-substrate';
import { newAcalaApp, newAstarApp, newBifrostApp, newCentrifugeApp, newComposableApp, newDockApp, newEdgewareApp, newEquilibriumApp, newGenshiroApp, newKaruraApp, newKusamaApp, newNodleApp, newParallelApp, newPolkadexApp, newPolkadotApp, newPolymeshApp, newSoraApp, newStatemineApp, newStatemintApp, newXXNetworkApp } from '@zondax/ledger-substrate';
import { newAcalaApp, newAlephZeroApp, newAstarApp, newBifrostApp, newCentrifugeApp, newComposableApp, newDockApp, newEdgewareApp, newEquilibriumApp, newGenshiroApp, newKaruraApp, newKusamaApp, newNodleApp, newParallelApp, newPolkadexApp, newPolkadotApp, newPolymeshApp, newSoraApp, newStafiApp, newStatemineApp, newStatemintApp, newXXNetworkApp } from '@zondax/ledger-substrate';
// These match up with the keys of the knownLedger object in the @polkadot/networks/defaults/ledger.ts
export const ledgerApps: Record<string, (transport: Transport) => SubstrateApp> = {
acala: newAcalaApp,
'aleph-node': newAlephZeroApp,
astar: newAstarApp,
bifrost: newBifrostApp,
centrifuge: newCentrifugeApp,
@@ -25,6 +26,7 @@ export const ledgerApps: Record<string, (transport: Transport) => SubstrateApp>
polkadot: newPolkadotApp,
polymesh: newPolymeshApp,
sora: newSoraApp,
stafi: newStafiApp,
statemine: newStatemineApp,
statemint: newStatemintApp,
xxnetwork: newXXNetworkApp
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '10.0.2' };
+5 -5
View File
@@ -20,15 +20,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/util": "9.7.2",
"@polkadot/util-crypto": "9.7.2"
"@polkadot/util": "10.0.2",
"@polkadot/util-crypto": "10.0.2"
},
"peerDependencies": {
"@polkadot/util": "9.7.2",
"@polkadot/util-crypto": "9.7.2"
"@polkadot/util": "10.0.2",
"@polkadot/util-crypto": "10.0.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '10.0.2' };
+4 -4
View File
@@ -17,15 +17,15 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/util": "9.7.2",
"@polkadot/util": "10.0.2",
"@substrate/ss58-registry": "^1.23.0"
},
"devDependencies": {
"@polkadot/hw-ledger": "9.7.2",
"@polkadot/x-fetch": "9.7.2"
"@polkadot/hw-ledger": "10.0.2",
"@polkadot/x-fetch": "10.0.2"
}
}
@@ -11,6 +11,9 @@ export const knownGenesis: KnownGenesis = {
acala: [
'0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c'
],
'aleph-node': [
'0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e'
],
astar: [
'0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
],
@@ -41,6 +44,7 @@ export const knownGenesis: KnownGenesis = {
'0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243'
],
hydradx: [
'0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d', // HydraDX Parachain
'0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc', // Snakenet Gen3-1
'0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9', // Snakenet Gen3
'0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047', // Snakenet Gen2
+2
View File
@@ -9,6 +9,7 @@ import type { KnownLedger } from '../types';
// NOTE: Any network here needs to have a genesisHash attached in the ./genesis.ts config
export const knownLedger: KnownLedger = {
acala: 0x00000313,
'aleph-node': 0x00000283,
astar: 0x0000032a,
bifrost: 0x00000314,
centrifuge: 0x000002eb,
@@ -25,6 +26,7 @@ export const knownLedger: KnownLedger = {
polkadot: 0x00000162,
polymesh: 0x00000253,
sora: 0x00000269,
stafi: 0x0000038b,
statemine: 0x000001b2, // common-good on Kusama, shares derivation
statemint: 0x00000162, // common-good on Polkadot, shares derivation
xxnetwork: 0x000007a3
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '10.0.2' };
+7 -7
View File
@@ -22,7 +22,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": {
"crypto": false,
"stream": false
@@ -32,11 +32,11 @@
"@babel/runtime": "^7.18.6",
"@noble/hashes": "1.1.2",
"@noble/secp256k1": "1.6.0",
"@polkadot/networks": "9.7.2",
"@polkadot/util": "9.7.2",
"@polkadot/wasm-crypto": "^6.2.2",
"@polkadot/x-bigint": "9.7.2",
"@polkadot/x-randomvalues": "9.7.2",
"@polkadot/networks": "10.0.2",
"@polkadot/util": "10.0.2",
"@polkadot/wasm-crypto": "^6.2.3",
"@polkadot/x-bigint": "10.0.2",
"@polkadot/x-randomvalues": "10.0.2",
"@scure/base": "1.1.1",
"ed2curve": "^0.3.0",
"tweetnacl": "^1.0.3"
@@ -45,6 +45,6 @@
"@types/ed2curve": "^0.2.2"
},
"peerDependencies": {
"@polkadot/util": "9.7.2"
"@polkadot/util": "10.0.2"
}
}
+2
View File
@@ -1,6 +1,8 @@
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
export {};
describe('cryptoWaitReady', (): void => {
it('should return false when it cannot initialize', async (): Promise<void> => {
const old = global.WebAssembly;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '10.0.2' };
+7 -8
View File
@@ -34,19 +34,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-bigint": "9.7.2",
"@polkadot/x-global": "9.7.2",
"@polkadot/x-textdecoder": "9.7.2",
"@polkadot/x-textencoder": "9.7.2",
"@polkadot/x-bigint": "10.0.2",
"@polkadot/x-global": "10.0.2",
"@polkadot/x-textdecoder": "10.0.2",
"@polkadot/x-textencoder": "10.0.2",
"@types/bn.js": "^5.1.0",
"bn.js": "^5.2.1",
"ip-regex": "^4.3.0"
"bn.js": "^5.2.1"
},
"devDependencies": {
"@polkadot/x-randomvalues": "9.7.2"
"@polkadot/x-randomvalues": "10.0.2"
}
}
+2 -9
View File
@@ -4,7 +4,6 @@
import type { BN } from '../bn/bn';
import type { HexString, NumberOptions, ToBigInt, ToBn } from '../types';
import { objectSpread } from '../object/spread';
import { u8aToHex } from '../u8a';
import { nToU8a } from './toU8a';
@@ -15,14 +14,8 @@ const ZERO_STR = '0x00';
* @name nToHex
* @summary Creates a hex value from a bigint object.
*/
export function nToHex <ExtToBn extends ToBn | ToBigInt> (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions): HexString {
export function nToHex <ExtToBn extends ToBn | ToBigInt> (value?: ExtToBn | BN | bigint | number | null, { bitLength, isLe = false, isNegative = false }: NumberOptions = {}): HexString {
return !value
? ZERO_STR
: u8aToHex(
nToU8a(value, objectSpread(
// We spread here, the default for hex values is BE (JSONRPC via substrate)
{ isLe: false, isNegative: false },
options
))
);
: u8aToHex(nToU8a(value, { bitLength, isLe, isNegative }));
}
+9 -15
View File
@@ -6,14 +6,13 @@ import type { NumberOptions, ToBigInt, ToBn } from '../types';
import { BigInt } from '@polkadot/x-bigint';
import { objectSpread } from '../object/spread';
import { _0n, _1n } from './consts';
import { nToBigInt } from './toBigInt';
const DIV = BigInt(256);
const NEG_MASK = BigInt(0xff);
function toU8a (value: bigint, { isLe, isNegative }: NumberOptions): Uint8Array {
function toU8a (value: bigint, isLe: boolean, isNegative: boolean): Uint8Array {
const arr: number[] = [];
if (isNegative) {
@@ -44,34 +43,29 @@ function toU8a (value: bigint, { isLe, isNegative }: NumberOptions): Uint8Array
* @name nToU8a
* @summary Creates a Uint8Array object from a bigint.
*/
export function nToU8a <ExtToBn extends ToBn | ToBigInt> (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions): Uint8Array {
const opts: NumberOptions = objectSpread(
{ bitLength: -1, isLe: true, isNegative: false },
options
);
export function nToU8a <ExtToBn extends ToBn | ToBigInt> (value?: ExtToBn | BN | bigint | number | null, { bitLength = -1, isLe = true, isNegative = false }: NumberOptions = {}): Uint8Array {
const valueBi = nToBigInt(value);
if (valueBi === _0n) {
return opts.bitLength === -1
return bitLength === -1
? new Uint8Array()
: new Uint8Array(Math.ceil((opts.bitLength || 0) / 8));
: new Uint8Array(Math.ceil((bitLength || 0) / 8));
}
const u8a = toU8a(valueBi, opts);
const u8a = toU8a(valueBi, isLe, isNegative);
if (opts.bitLength === -1) {
if (bitLength === -1) {
return u8a;
}
const byteLength = Math.ceil((opts.bitLength || 0) / 8);
const byteLength = Math.ceil((bitLength || 0) / 8);
const output = new Uint8Array(byteLength);
if (opts.isNegative) {
if (isNegative) {
output.fill(0xff);
}
output.set(u8a, opts.isLe ? 0 : byteLength - u8a.length);
output.set(u8a, isLe ? 0 : byteLength - u8a.length);
return output;
}
+1 -15
View File
@@ -18,16 +18,10 @@ describe('bnToHex', (): void => {
it('converts BN values to a prefixed hex representation (bitLength)', (): void => {
expect(
bnToHex(new BN(128), 16)
bnToHex(new BN(128), { bitLength: 16 })
).toBe('0x0080');
});
it('converts BN values to a prefixed hex representation (bitLength + le)', (): void => {
expect(
bnToHex(new BN(128), 16, true)
).toBe('0x8000');
});
it('converts BN values to a prefixed hex representation (LE)', (): void => {
expect(
bnToHex(new BN(128), { bitLength: 16, isLe: true })
@@ -45,12 +39,4 @@ describe('bnToHex', (): void => {
bnToHex(new BN(-1234), { bitLength: 32, isNegative: true })
).toBe('0xfffffb2e');
});
it('handles legacy compatibility', (): void => {
expect(
bnToHex(new BN(1234), 32)
).toBe(
bnToHex(new BN(1234), { bitLength: 32 })
);
});
});
+2 -19
View File
@@ -4,13 +4,10 @@
import type { HexString, NumberOptions, ToBn } from '../types';
import type { BN } from './bn';
import { isNumber } from '../is/number';
import { objectSpread } from '../object/spread';
import { u8aToHex } from '../u8a';
import { bnToU8a } from './toU8a';
const ZERO_STR = '0x00';
const DEFAULT_OPTS: NumberOptions = { bitLength: -1, isLe: false, isNegative: false };
/**
* @name bnToHex
@@ -27,22 +24,8 @@ const DEFAULT_OPTS: NumberOptions = { bitLength: -1, isLe: false, isNegative: fa
* bnToHex(new BN(0x123456)); // => '0x123456'
* ```
*/
function bnToHex <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions): HexString;
/** @deprecated Use bnToHex (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions) */
function bnToHex <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, bitLength?: number, isLe?: boolean): HexString;
/** @deprecated Use bnToHex (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions) */
function bnToHex <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, arg1: number | NumberOptions = DEFAULT_OPTS, arg2 = false): HexString {
export function bnToHex <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, { bitLength = -1, isLe = false, isNegative = false }: NumberOptions = {}): HexString {
return !value
? ZERO_STR
: u8aToHex(
bnToU8a(value, objectSpread(
// We spread here, the default for hex values is BE (JSONRPC via substrate)
{ isLe: false, isNegative: false },
isNumber(arg1)
? { bitLength: arg1, isLe: arg2 }
: arg1
))
);
: u8aToHex(bnToU8a(value, { bitLength, isLe, isNegative }));
}
export { bnToHex };
+5 -13
View File
@@ -10,42 +10,34 @@ const ptest = arrayRange(65536).map((v) => [v]);
describe('bnToU8a', (): void => {
it('converts null values to 0x00', (): void => {
expect(
bnToU8a(null, -1, false)
bnToU8a(null)
).toEqual(new Uint8Array());
});
it('converts null values to 0x00000000 (bitLength)', (): void => {
expect(
bnToU8a(null, 32, false)
bnToU8a(null, { bitLength: 32 })
).toEqual(new Uint8Array([0, 0, 0, 0]));
});
it('converts BN values to a prefixed hex representation', (): void => {
expect(
bnToU8a(new BN(0x123456), -1, false)
bnToU8a(new BN(0x123456), { isLe: false })
).toEqual(new Uint8Array([0x12, 0x34, 0x56]));
});
it('converts BN values to a prefixed hex representation (bitLength)', (): void => {
expect(
bnToU8a(new BN(0x123456), 32, false)
bnToU8a(new BN(0x123456), { bitLength: 32, isLe: false })
).toEqual(new Uint8Array([0x00, 0x12, 0x34, 0x56]));
});
it('converts using little endian (as set)', (): void => {
expect(
bnToU8a(new BN(0x123456), 32, true)
bnToU8a(new BN(0x123456), { bitLength: 32, isLe: true })
).toEqual(new Uint8Array([0x56, 0x34, 0x12, 0x00]));
});
it('handles backwards compatibility', (): void => {
expect(
bnToU8a(new BN(1234), 32, false)
).toEqual(
bnToU8a(new BN(1234), { bitLength: 32, isLe: false })
);
});
describe('signed', (): void => {
it('converts negative numbers (BE)', (): void => {
expect(
+1 -12
View File
@@ -4,7 +4,6 @@
import type { NumberOptions, ToBn } from '../types';
import type { BN } from './bn';
import { isNumber } from '../is/number';
import { bnToBn } from './toBn';
const DEFAULT_OPTS: NumberOptions = { bitLength: -1, isLe: true, isNegative: false };
@@ -23,15 +22,7 @@ const DEFAULT_OPTS: NumberOptions = { bitLength: -1, isLe: true, isNegative: fal
* bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
* ```
*/
function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions): Uint8Array;
/** @deprecated Use bnToU8a(value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions) */
function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, bitLength?: number, isLe?: boolean): Uint8Array;
/** @deprecated Use bnToU8a(value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions) */
function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, arg1: number | NumberOptions = DEFAULT_OPTS, arg2 = true): Uint8Array {
const { bitLength = -1, isLe = true, isNegative = false } = isNumber(arg1)
? { bitLength: arg1, isLe: arg2 }
: arg1;
export function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, { bitLength = -1, isLe = true, isNegative = false } = DEFAULT_OPTS): Uint8Array {
const valueBn = bnToBn(value);
const byteLength = bitLength === -1
? Math.ceil(valueBn.bitLength() / 8)
@@ -52,5 +43,3 @@ function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number
return output;
}
export { bnToU8a };
+19 -25
View File
@@ -33,16 +33,10 @@ describe('formatBalance', (): void => {
it('formats 123,456,789,000 (decimals=15, old style)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true }, 15)
formatBalance(TESTVAL, { decimals: 15, withSi: true })
).toEqual('123.4567 µUnit');
});
it('formats 123,456,789,000 (decimals=36, option)', (): void => {
expect(
formatBalance(TESTVAL, { decimals: 36, withSi: true })
).toEqual('0.1234 yUnit');
});
it('formats 123,456,789,000 (decimals=15, Compact)', (): void => {
const compact = {
something: 'else',
@@ -63,85 +57,85 @@ describe('formatBalance', (): void => {
it('formats 123,456,789,000 (decimals=9)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true }, 9)
formatBalance(TESTVAL, { decimals: 9, withSi: true })
).toEqual('123.4567 Unit');
});
it('formats 123,456,789,000 (decimals=9, no unit)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true, withUnit: false }, 9)
formatBalance(TESTVAL, { decimals: 9, withSi: true, withUnit: false })
).toEqual('123.4567');
});
it('formats 123,456,789,000 (decimals=9, unit given)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true, withUnit: 'FOO' }, 9)
formatBalance(TESTVAL, { decimals: 9, withSi: true, withUnit: 'FOO' })
).toEqual('123.4567 FOO');
});
it('formats 123,456,789,000 (decimals=12, no SI)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: false }, 12)
formatBalance(TESTVAL, { decimals: 12, withSi: false })
).toEqual('123.4567');
});
it('formats 123,456,789,000 (decimals=12, full SI)', (): void => {
expect(
formatBalance(TESTVAL, { withSiFull: true }, 12)
formatBalance(TESTVAL, { decimals: 12, withSiFull: true })
).toEqual('123.4567 milli Unit');
});
it('formats 123,456,789,000 (decimals=12, full SI, no unit)', (): void => {
expect(
formatBalance(TESTVAL, { withSiFull: true, withUnit: false }, 12)
formatBalance(TESTVAL, { decimals: 12, withSiFull: true, withUnit: false })
).toEqual('123.4567 milli');
});
it('formats 123,456,789,000 (decimals=9, full SI)', (): void => {
expect(
formatBalance(TESTVAL, { withSiFull: true }, 9)
formatBalance(TESTVAL, { decimals: 9, withSiFull: true })
).toEqual('123.4567 Unit');
});
it('formats 123,456,789,000 (decimals=6)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true }, 6)
formatBalance(TESTVAL, { decimals: 6, withSi: true })
).toEqual('123.4567 kUnit');
});
it('formats 123,456,789,000 (decimals=6, unit specified)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true, withUnit: 'BAR' }, 6)
formatBalance(TESTVAL, { decimals: 6, withSi: true, withUnit: 'BAR' })
).toEqual('123.4567 kBAR');
});
it('formats 123,456,789,000 (decimals=0, unit specified)', (): void => {
expect(
formatBalance(TESTVAL, { withSi: true, withUnit: 'BAR' }, 0)
formatBalance(TESTVAL, { decimals: 0, withSi: true, withUnit: 'BAR' })
).toEqual('123.4567 BBAR');
});
it('formats 123,456,789,000 * 10 (decimals=12)', (): void => {
expect(
formatBalance(TESTVAL.muln(10), { withSi: true }, 12)
formatBalance(TESTVAL.muln(10), { decimals: 12, withSi: true })
).toEqual('1.2345 Unit');
});
it('formats 123,456,789,000 * 100 (decimals=12)', (): void => {
expect(
formatBalance(TESTVAL.muln(100), { withSi: true }, 12)
formatBalance(TESTVAL.muln(100), { decimals: 12, withSi: true })
).toEqual('12.3456 Unit');
});
it('formats 123,456,789,000 * 1000 (decimals=12)', (): void => {
expect(
formatBalance(TESTVAL.muln(1000), { withSi: true }, 12)
formatBalance(TESTVAL.muln(1000), { decimals: 12, withSi: true })
).toEqual('123.4567 Unit');
});
it('formats -123,456,789,000 (decimals=15)', (): void => {
expect(
formatBalance(new BN('-123456789000'), { withSi: true }, 15)
formatBalance(new BN('-123456789000'), { decimals: 15, withSi: true })
).toEqual('-123.4567 µUnit');
});
});
@@ -149,25 +143,25 @@ describe('formatBalance', (): void => {
describe('Forced formatting', (): void => {
it('formats 123,456,789,000 (decimals=12, forceUnit=base)', (): void => {
expect(
formatBalance(TESTVAL, { forceUnit: '-' }, 12)
formatBalance(TESTVAL, { decimals: 12, forceUnit: '-' })
).toEqual('0.1234 Unit');
});
it('formats 123,456,789,000 (decimals=9, forceUnit=base)', (): void => {
expect(
formatBalance(TESTVAL, { forceUnit: '-' }, 9)
formatBalance(TESTVAL, { decimals: 9, forceUnit: '-' })
).toEqual('123.4567 Unit');
});
it('formats 123,456,789,000 (decimals=7, forceUnit=base)', (): void => {
expect(
formatBalance(TESTVAL, { forceUnit: '-' }, 7)
formatBalance(TESTVAL, { decimals: 7, forceUnit: '-' })
).toEqual('12,345.6789 Unit');
});
it('formats 123,456,789,000 (decimals=15, forceUnit=µ)', (): void => {
expect(
formatBalance(TESTVAL, { forceUnit: 'µ' }, 15)
formatBalance(TESTVAL, { decimals: 15, forceUnit: 'µ' })
).toEqual('123.4567 µUnit');
});
});
+1 -10
View File
@@ -44,10 +44,6 @@ interface Options {
interface BalanceFormatter {
<ExtToBn extends ToBn> (input?: number | string | BN | bigint | ExtToBn, options?: Options): string;
/** @deprecated Use balanceFormat(input?: number | string | BN | bigint | ExtToBn, options?: Options) */
<ExtToBn extends ToBn> (input?: number | string | BN | bigint | ExtToBn, options?: boolean, decimals?: number): string;
/** @deprecated Use balanceFormat(input?: number | string | BN | bigint | ExtToBn, options?: Options) */
<ExtToBn extends ToBn> (input?: number | string | BN | bigint | ExtToBn, options?: Options, decimals?: number): string;
calcSi (text: string, decimals?: number): SiDef;
findSi (type: string): SiDef;
getDefaults (): Defaults;
@@ -89,18 +85,13 @@ function getPrePost (text: string, decimals: number, forceUnit?: string): [SiDef
}
// Formats a string/number with <prefix>.<postfix><type> notation
function _formatBalance <ExtToBn extends ToBn> (input?: number | string | BN | bigint | ExtToBn, options: Options | boolean = true, optDecimals: number = defaultDecimals): string {
function _formatBalance <ExtToBn extends ToBn> (input?: number | string | BN | bigint | ExtToBn, { decimals = defaultDecimals, forceUnit, withSi = true, withSiFull = false, withUnit = true }: Options = {}): string {
let text = bnToBn(input).toString();
if (text.length === 0 || text === '0') {
return '0';
}
// extract options - the boolean case is for backwards-compat
const { decimals = optDecimals, forceUnit = undefined, withSi = true, withSiFull = false, withUnit = true } = isBoolean(options)
? { withSi: options }
: options;
// strip the negative sign so we can work with clean groupings, re-add this in the
// end when we return the result (from here on we work with positive numbers)
let sign = '';
+9
View File
@@ -3,6 +3,15 @@
import { BigInt } from '@polkadot/x-bigint';
// Since we run in very different environments, we have to ensure we have all
// the types used here for detection (some of these may require Node definitions,
// which are not available in Deno/browser)
declare const __dirname: unknown;
declare const Buffer: unknown;
declare const module: unknown;
declare const process: unknown;
declare const require: unknown;
/** true if the environment has proper BigInt support */
export const hasBigInt = typeof BigInt === 'function' && typeof BigInt.asIntN === 'function';
+2 -6
View File
@@ -5,7 +5,6 @@ import type { ToBnOptions } from '../types';
import { BigInt } from '@polkadot/x-bigint';
import { objectSpread } from '../object/spread';
import { u8aToBigInt } from '../u8a/toBigInt';
import { hexToU8a } from './toU8a';
@@ -13,11 +12,8 @@ import { hexToU8a } from './toU8a';
* @name hexToBigInt
* @summary Creates a BigInt instance object from a hex string.
*/
export function hexToBigInt (value?: string | null, options: ToBnOptions = {}): bigint {
export function hexToBigInt (value?: string | null, { isLe = false, isNegative = false }: ToBnOptions = {}): bigint {
return !value || value === '0x'
? BigInt(0)
: u8aToBigInt(
hexToU8a(value),
objectSpread({ isLe: false, isNegative: false }, options)
);
: u8aToBigInt(hexToU8a(value), { isLe, isNegative });
}
-13
View File
@@ -69,17 +69,4 @@ describe('hexToBn', (): void => {
hexToBn('0x0001000000000000', { isLe: true }).toNumber()
).toBe(256);
});
it('handles legacy compatibility', (): void => {
expect(
hexToBn('0x0001000000000000', false).eq(
hexToBn('0x0001000000000000', { isLe: false })
)
).toBe(true);
expect(
hexToBn('0x0001000000000000', true).eq(
hexToBn('0x0001000000000000', { isLe: true })
)
).toBe(true);
});
});
+1 -12
View File
@@ -4,7 +4,6 @@
import type { ToBnOptions } from '../types';
import { BN } from '../bn/bn';
import { isBoolean } from '../is/boolean';
import { hexStripPrefix } from './stripPrefix';
/**
@@ -25,19 +24,11 @@ import { hexStripPrefix } from './stripPrefix';
* hexToBn('0x123480001f'); // => BN(0x123480001f)
* ```
*/
function hexToBn (value?: string | null, options?: ToBnOptions): BN;
/** @deprecated Use hexToBn (value?: string | null, options?: ToBnOptions) */
function hexToBn (value?: string | null, options?: boolean): BN;
/** @deprecated Use hexToBn (value?: string | null, options?: ToBnOptions) */
function hexToBn (value?: string | null, options: ToBnOptions | boolean = {}): BN {
export function hexToBn (value?: string | null, { isLe = false, isNegative = false }: ToBnOptions = {}): BN {
if (!value || value === '0x') {
return new BN(0);
}
// For hex, default to BE
const { isLe = false, isNegative = false } = isBoolean(options)
? { isLe: options }
: options;
const stripped = hexStripPrefix(value);
const bn = new BN(stripped, 16, isLe ? 'le' : 'be');
@@ -47,5 +38,3 @@ function hexToBn (value?: string | null, options: ToBnOptions | boolean = {}): B
? bn.fromTwos(stripped.length * 4)
: bn;
}
export { hexToBn };
+32 -9
View File
@@ -1,9 +1,34 @@
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import ipRegex from 'ip-regex';
// The regex patterns below were copied as-is from the ip-regex package 5.0.0,
// https://github.com/sindresorhus/ip-regex/blob/a2a44dfa7f776528158c2a5ff9d8a1be435ec1b9/index.js#L1
//
// MIT License
// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
//
// Changes made:
// - boundary support option has been dropped
// - only exact matching is used (isIp always passed exact: true)
// - the newest ip-regex is ESM-only, we compile to all platforms
const v4 = '(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}';
const v6s = '[a-fA-F\\d]{1,4}';
const v6 = `
(?:
(?:${v6s}:){7}(?:${v6s}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:${v6s}:){6}(?:${v4}|:${v6s}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:${v6s}:){5}(?::${v4}|(?::${v6s}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:${v6s}:){4}(?:(?::${v6s}){0,1}:${v4}|(?::${v6s}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:${v6s}:){3}(?:(?::${v6s}){0,2}:${v4}|(?::${v6s}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:${v6s}:){2}(?:(?::${v6s}){0,3}:${v4}|(?::${v6s}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:${v6s}:){1}(?:(?::${v6s}){0,4}:${v4}|(?::${v6s}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::${v6s}){0,5}:${v4}|(?::${v6s}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`.replace(/\s*\/\/.*$/gm, '').replace(/\n/g, '').trim();
type IpTypes = 'v4' | 'v6';
const v46Exact = new RegExp(`(?:^${v4}$)|(?:^${v6}$)`);
const v4exact = new RegExp(`^${v4}$`);
const v6exact = new RegExp(`^${v6}$`);
/**
* @name isIp
@@ -22,12 +47,10 @@ type IpTypes = 'v4' | 'v6';
* isIp('1:2:3:4:5:6:7:8', 'v4'); // => false
* ```
*/
export function isIp (value: string, type?: IpTypes): boolean {
if (type === 'v4') {
return ipRegex.v4({ exact: true }).test(value);
} else if (type === 'v6') {
return ipRegex.v6({ exact: true }).test(value);
export function isIp (value: string, type?: 'v4' | 'v6'): boolean {
switch (type) {
case 'v4': return v4exact.test(value);
case 'v6': return v6exact.test(value);
default: return v46Exact.test(value);
}
return ipRegex({ exact: true }).test(value);
}
+2
View File
@@ -13,6 +13,8 @@ import { u8aToHex } from './u8a/toHex';
import { u8aToU8a } from './u8a/toU8a';
import { hasProcess } from './has';
declare const process: { env: Record<string, string> };
type ConsoleType = 'error' | 'log' | 'warn';
type LogType = ConsoleType | 'debug';
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '10.0.2' };
-40
View File
@@ -5,21 +5,6 @@ import { perf } from '../test/performance';
import { u8aToBn } from '.';
describe('u8aToBn', (): void => {
it('supports legacy compatibility', (): void => {
expect(
u8aToBn(
new Uint8Array([0x12, 0x34]),
true
).toString(16)
).toBe('3412');
expect(
u8aToBn(
new Uint8Array([0x12, 0x34]),
false
).toString(16)
).toBe('1234');
});
it('converts little-endian by default', (): void => {
expect(
u8aToBn(
@@ -274,31 +259,6 @@ describe('u8aToBn', (): void => {
).toBe(256);
});
it('handles backward compatibility)', (): void => {
expect(
u8aToBn(
new Uint8Array([0, 1, 0, 0, 0, 0, 0, 0]),
false
).eq(
u8aToBn(
new Uint8Array([0, 1, 0, 0, 0, 0, 0, 0]),
{ isLe: false }
)
)
).toBe(true);
expect(
u8aToBn(
new Uint8Array([0, 1, 0, 0, 0, 0, 0, 0]),
true
).eq(
u8aToBn(
new Uint8Array([0, 1, 0, 0, 0, 0, 0, 0]),
{ isLe: true }
)
)
).toBe(true);
});
perf('u8aToBn (u32)', 1_000_000, [[new Uint8Array([0x68, 0x65, 0x6c, 0x6c])]], u8aToBn);
perf('u8aToBn (i32)', 1_000_000, [[new Uint8Array([0x68, 0x65, 0x6c, 0x6c])]], (v: Uint8Array) => u8aToBn(v, { isNegative: true }));
perf('u8aToBn (u64)', 500_000, [[new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x68, 0x65, 0x6c, 0x6c])]], u8aToBn);
+1 -13
View File
@@ -4,7 +4,6 @@
import type { ToBnOptions } from '../types';
import { BN } from '../bn/bn';
import { isBoolean } from '../is/boolean';
/**
* @name u8aToBn
@@ -24,16 +23,7 @@ import { isBoolean } from '../is/boolean';
* u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
* ```
*/
function u8aToBn (value: Uint8Array, options?: ToBnOptions): BN;
/** @deprecated Use u8aToBn(value: Uint8Array, options?: ToBnOptions) */
function u8aToBn (value: Uint8Array, options?: boolean): BN;
/** @deprecated Use u8aToBn (value?: string | null, options?: ToBnOptions) */
function u8aToBn (value: Uint8Array, options: ToBnOptions | boolean = {}): BN {
// NOTE: This is the same process as followed in the hexToBn conversion
// For Uint8Array, default to LE
const { isLe = true, isNegative = false } = isBoolean(options)
? { isLe: options }
: options;
export function u8aToBn (value: Uint8Array, { isLe = true, isNegative = false }: ToBnOptions = {}): BN {
const count = value.length;
// shortcut for <= u48 values - in this case the manual conversion
@@ -130,5 +120,3 @@ function u8aToBn (value: Uint8Array, options: ToBnOptions | boolean = {}): BN {
? new BN(value, isLe ? 'le' : 'be').fromTwos(value.length * 8)
: new BN(value, isLe ? 'le' : 'be');
}
export { u8aToBn };
+1 -1
View File
@@ -24,7 +24,7 @@ interface PjsChecks extends This {
__polkadotjs: Record<string, VersionPath[]>;
}
type PjsGlobal = (Window & This) & PjsChecks;
type PjsGlobal = This & PjsChecks & Record<string, unknown>;
type FnString = () => string | undefined;
const DEDUPE = 'Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:';
+2 -2
View File
@@ -20,9 +20,9 @@
"./shim.cjs"
],
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2"
"@polkadot/x-global": "10.0.2"
}
}
+3 -3
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2022 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const BigInt = xglobal.BigInt;
const _BigInt = BigInt;
export { _BigInt as BigInt };
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '10.0.2' };
+2 -2
View File
@@ -17,11 +17,11 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/util": "9.7.2",
"@polkadot/util": "10.0.2",
"buffer-es6": "^4.9.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '10.0.2' };
+3 -3
View File
@@ -17,14 +17,14 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2",
"@polkadot/x-global": "10.0.2",
"@types/node-fetch": "^2.6.2",
"node-fetch": "^2.6.7"
"node-fetch": "^3.2.6"
}
}
+5 -1
View File
@@ -1,4 +1,8 @@
// Copyright 2017-2022 @polkadot/x-fetch authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './browser';
export { packageInfo } from './packageInfo';
const _fetch = fetch;
export { _fetch as fetch };
+25 -2
View File
@@ -1,10 +1,33 @@
// Copyright 2017-2022 @polkadot/x-fetch authors & contributors
// SPDX-License-Identifier: Apache-2.0
import nodeFetch from 'node-fetch';
import { extractGlobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
// This is an ESM module, use the async import(...) syntax to pull it
// in. Logically we would like it in nodeFetch(...) itself, however
// while it is all-ok on Node itself, it does create issues in Jest,
// possibly due to the Jest 28 need for --experimental-vm-modules
const importFetch = import('node-fetch').catch(() => null);
// keep track of the resolved import value
let resolvedFetch: typeof fetch | null = null;
async function nodeFetch (...args: Parameters<typeof fetch>): Promise<Response> {
if (resolvedFetch) {
return resolvedFetch(...args);
}
const mod = await importFetch;
if (!mod || !mod.default) {
throw new Error('Unable to import node-fetch in this environment');
}
resolvedFetch = mod.default as unknown as typeof fetch;
return resolvedFetch(...args);
}
export const fetch = extractGlobal('fetch', nodeFetch);
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '10.0.2' };
+1 -1
View File
@@ -17,7 +17,7 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.6"
+13 -6
View File
@@ -3,14 +3,21 @@
export { packageInfo } from './packageInfo';
type GlobalThis = typeof globalThis;
// Ensure that we are able to run this without any @types/node definitions
// and without having lib: ['dom'] in our TypeScript configuration
// (may not be available in all environments, e.g. Deno springs to mind)
declare const global: unknown;
declare const self: unknown;
declare const window: unknown;
type GlobalNames = keyof typeof window;
type GlobalThis = typeof globalThis & Record<string, unknown>;
type GlobalType<T extends keyof typeof window> = typeof window[T];
type GlobalNames = keyof typeof globalThis;
function evaluateThis (fn: (code: string) => unknown): GlobalThis {
return fn('return this') as GlobalThis;
type GlobalType<N extends GlobalNames> = typeof globalThis[N];
function evaluateThis (fn: (code: string) => unknown): unknown {
return fn('return this');
}
export const xglobal = (
@@ -23,7 +30,7 @@ export const xglobal = (
: typeof window !== 'undefined'
? window
: evaluateThis(Function)
);
) as GlobalThis;
export function extractGlobal <N extends GlobalNames, T extends GlobalType<N>> (name: N, fallback: unknown): T {
// Not quite sure why this is here - snuck in with TS 4.7.2 with no real idea
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '10.0.2' };
+3 -3
View File
@@ -17,15 +17,15 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2"
"@polkadot/x-global": "10.0.2"
},
"devDependencies": {
"@types/react-native": "^0.69.1"
"@types/react-native": "^0.69.2"
}
}
+5 -1
View File
@@ -1,4 +1,8 @@
// Copyright 2017-2022 @polkadot/x-randomvalues authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './browser';
export { packageInfo } from './packageInfo';
export function getRandomValues <T extends Uint8Array> (arr: T): T {
return crypto.getRandomValues(arr);
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '10.0.2' };
+2 -2
View File
@@ -17,12 +17,12 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2"
"@polkadot/x-global": "10.0.2"
}
}
+3 -3
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2022 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const TextDecoder = xglobal.TextDecoder;
const _TextDecoder = TextDecoder;
export { _TextDecoder as TextDecoder };
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '10.0.2' };
+2 -2
View File
@@ -17,12 +17,12 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2"
"@polkadot/x-global": "10.0.2"
}
}
+3 -3
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2022 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const TextEncoder = xglobal.TextEncoder;
const _TextEncoder = TextEncoder;
export { _TextEncoder as TextEncoder };
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '10.0.2' };
+2 -2
View File
@@ -17,13 +17,13 @@
},
"sideEffects": false,
"type": "module",
"version": "9.7.2",
"version": "10.0.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@babel/runtime": "^7.18.6",
"@polkadot/x-global": "9.7.2",
"@polkadot/x-global": "10.0.2",
"@types/websocket": "^1.0.5",
"websocket": "^1.0.34"
}
+5 -1
View File
@@ -1,4 +1,8 @@
// Copyright 2017-2022 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './browser';
export { packageInfo } from './packageInfo';
const _WebSocket = WebSocket;
export { _WebSocket as WebSocket };
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '9.7.2' };
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '10.0.2' };
+207 -163
View File
@@ -1806,9 +1806,9 @@ __metadata:
languageName: node
linkType: hard
"@ledgerhq/hw-transport-node-hid-singleton@npm:^6.27.1":
version: 6.27.1
resolution: "@ledgerhq/hw-transport-node-hid-singleton@npm:6.27.1"
"@ledgerhq/hw-transport-node-hid-singleton@npm:^6.27.2":
version: 6.27.2
resolution: "@ledgerhq/hw-transport-node-hid-singleton@npm:6.27.2"
dependencies:
"@ledgerhq/devices": ^6.27.1
"@ledgerhq/errors": ^6.10.0
@@ -1817,8 +1817,8 @@ __metadata:
"@ledgerhq/logs": ^6.10.0
lodash: ^4.17.21
node-hid: 2.1.1
usb-detection: ^4.13.0
checksum: 6763d2fa70915087bd9a32ee7c1e5a6750ed8bb7eec9bffe6e52425823059e2ee17be6275fb057b6df0d66078b1a7b6b186803e5db34ba9444f779e582f6bca9
usb-detection: 4.13.0
checksum: b94d5bbd04f5bf07674c074d6a05da0e88aff6e320837ab5104d220b3448738557d823f7c2eeb8f31722cfcf4c810b812673935144afa69fe8ffd42513465a89
languageName: node
linkType: hard
@@ -2045,9 +2045,9 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.67.50":
version: 0.67.50
resolution: "@polkadot/dev@npm:0.67.50"
"@polkadot/dev@npm:^0.67.65":
version: 0.67.65
resolution: "@polkadot/dev@npm:0.67.65"
dependencies:
"@babel/cli": ^7.18.6
"@babel/core": ^7.18.6
@@ -2072,8 +2072,8 @@ __metadata:
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^13.3.0
"@rushstack/eslint-patch": ^1.1.4
"@typescript-eslint/eslint-plugin": 5.30.4
"@typescript-eslint/parser": 5.30.4
"@typescript-eslint/eslint-plugin": 5.30.5
"@typescript-eslint/parser": 5.30.5
"@vue/component-compiler-utils": ^3.3.0
babel-jest: ^28.1.2
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
@@ -2086,8 +2086,8 @@ __metadata:
eslint-import-resolver-node: ^0.3.6
eslint-plugin-header: ^3.1.1
eslint-plugin-import: ^2.26.0
eslint-plugin-import-newlines: ^1.2.2
eslint-plugin-n: ^15.2.3
eslint-plugin-import-newlines: ^1.2.3
eslint-plugin-n: ^15.2.4
eslint-plugin-promise: ^6.0.0
eslint-plugin-react: ^7.30.1
eslint-plugin-react-hooks: ^4.6.0
@@ -2123,6 +2123,7 @@ __metadata:
polkadot-dev-clean-build: scripts/polkadot-dev-clean-build.mjs
polkadot-dev-contrib: scripts/polkadot-dev-contrib.mjs
polkadot-dev-copy-to: scripts/polkadot-dev-copy-to.mjs
polkadot-dev-deno-map: scripts/polkadot-dev-deno-map.mjs
polkadot-dev-run-lint: scripts/polkadot-dev-run-lint.mjs
polkadot-dev-run-prettier: scripts/polkadot-dev-run-prettier.mjs
polkadot-dev-run-test: scripts/polkadot-dev-run-test.mjs
@@ -2135,35 +2136,35 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: ba1f72f2013c31548f7f2995dc4da3bf219505d16536fa2f212152b3adc57c632007f47e10c849fbaacd3f93db74a49c7b5865c8ee4c92b66567c13b73f6a170
checksum: 918f3b8257bada7cef38c4499573376c1119973cba5c5c673b2877671dceb23f2e7ed8cd2c9a70ee31d90056c43c1db2180abe595cdaf5c95fdecf7a863c1acf
languageName: node
linkType: hard
"@polkadot/hw-ledger-transports@9.7.2, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
"@polkadot/hw-ledger-transports@10.0.2, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
version: 0.0.0-use.local
resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports"
dependencies:
"@babel/runtime": ^7.18.6
"@ledgerhq/hw-transport": ^6.27.1
"@ledgerhq/hw-transport-node-hid-singleton": ^6.27.1
"@ledgerhq/hw-transport-node-hid-singleton": ^6.27.2
"@ledgerhq/hw-transport-webhid": ^6.27.1
"@ledgerhq/hw-transport-webusb": ^6.27.1
"@polkadot/util": 9.7.2
"@polkadot/util": 10.0.2
dependenciesMeta:
"@ledgerhq/hw-transport-node-hid-singleton":
optional: true
languageName: unknown
linkType: soft
"@polkadot/hw-ledger@9.7.2, @polkadot/hw-ledger@workspace:packages/hw-ledger":
"@polkadot/hw-ledger@10.0.2, @polkadot/hw-ledger@workspace:packages/hw-ledger":
version: 0.0.0-use.local
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
dependencies:
"@babel/runtime": ^7.18.6
"@ledgerhq/hw-transport": ^6.27.1
"@polkadot/hw-ledger-transports": 9.7.2
"@polkadot/util": 9.7.2
"@zondax/ledger-substrate": ^0.31.0
"@polkadot/hw-ledger-transports": 10.0.2
"@polkadot/util": 10.0.2
"@zondax/ledger-substrate": ^0.32.0
languageName: unknown
linkType: soft
@@ -2172,147 +2173,146 @@ __metadata:
resolution: "@polkadot/keyring@workspace:packages/keyring"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/util": 9.7.2
"@polkadot/util-crypto": 9.7.2
"@polkadot/util": 10.0.2
"@polkadot/util-crypto": 10.0.2
peerDependencies:
"@polkadot/util": 9.7.2
"@polkadot/util-crypto": 9.7.2
"@polkadot/util": 10.0.2
"@polkadot/util-crypto": 10.0.2
languageName: unknown
linkType: soft
"@polkadot/networks@9.7.2, @polkadot/networks@workspace:packages/networks":
"@polkadot/networks@10.0.2, @polkadot/networks@workspace:packages/networks":
version: 0.0.0-use.local
resolution: "@polkadot/networks@workspace:packages/networks"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/hw-ledger": 9.7.2
"@polkadot/util": 9.7.2
"@polkadot/x-fetch": 9.7.2
"@polkadot/hw-ledger": 10.0.2
"@polkadot/util": 10.0.2
"@polkadot/x-fetch": 10.0.2
"@substrate/ss58-registry": ^1.23.0
languageName: unknown
linkType: soft
"@polkadot/util-crypto@9.7.2, @polkadot/util-crypto@workspace:packages/util-crypto":
"@polkadot/util-crypto@10.0.2, @polkadot/util-crypto@workspace:packages/util-crypto":
version: 0.0.0-use.local
resolution: "@polkadot/util-crypto@workspace:packages/util-crypto"
dependencies:
"@babel/runtime": ^7.18.6
"@noble/hashes": 1.1.2
"@noble/secp256k1": 1.6.0
"@polkadot/networks": 9.7.2
"@polkadot/util": 9.7.2
"@polkadot/wasm-crypto": ^6.2.2
"@polkadot/x-bigint": 9.7.2
"@polkadot/x-randomvalues": 9.7.2
"@polkadot/networks": 10.0.2
"@polkadot/util": 10.0.2
"@polkadot/wasm-crypto": ^6.2.3
"@polkadot/x-bigint": 10.0.2
"@polkadot/x-randomvalues": 10.0.2
"@scure/base": 1.1.1
"@types/ed2curve": ^0.2.2
ed2curve: ^0.3.0
tweetnacl: ^1.0.3
peerDependencies:
"@polkadot/util": 9.7.2
"@polkadot/util": 10.0.2
languageName: unknown
linkType: soft
"@polkadot/util@9.7.2, @polkadot/util@workspace:packages/util":
"@polkadot/util@10.0.2, @polkadot/util@workspace:packages/util":
version: 0.0.0-use.local
resolution: "@polkadot/util@workspace:packages/util"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-bigint": 9.7.2
"@polkadot/x-global": 9.7.2
"@polkadot/x-randomvalues": 9.7.2
"@polkadot/x-textdecoder": 9.7.2
"@polkadot/x-textencoder": 9.7.2
"@polkadot/x-bigint": 10.0.2
"@polkadot/x-global": 10.0.2
"@polkadot/x-randomvalues": 10.0.2
"@polkadot/x-textdecoder": 10.0.2
"@polkadot/x-textencoder": 10.0.2
"@types/bn.js": ^5.1.0
bn.js: ^5.2.1
ip-regex: ^4.3.0
languageName: unknown
linkType: soft
"@polkadot/wasm-bridge@npm:6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-bridge@npm:6.2.2"
"@polkadot/wasm-bridge@npm:6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-bridge@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: ce7c934b4a20099a127f417064ef0690415666f5dab4602c17f39ffe544e154052ef4ca0fc82d9d29acc3516658fc1ce77c2070af0e5622f6bd7e1e32cd7db31
checksum: 878fddf29280569c33d3097b322cf0749f7f034e5200a239d80cd877f09f49c40db8a3e67b3b83eedc93362ad67a1eaa82b672c8f725fa3865a902abfbec3fc6
languageName: node
linkType: hard
"@polkadot/wasm-crypto-asmjs@npm:6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-crypto-asmjs@npm:6.2.2"
"@polkadot/wasm-crypto-asmjs@npm:6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-crypto-asmjs@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
peerDependencies:
"@polkadot/util": "*"
checksum: 0245a21898e4fb7549b0d125911cbba0d4766e2d15d534bc4e60267ba5a332147d53585132e8ce34884581a0b4bc72c85208ce3150372d88e7a14b94a4b969a4
checksum: 6d51ddedf7b25913d54203f172f28dd093d25b5130a75d3d99433257b7533c827056ba99f9d56a530a00febcd5a3d8be5a8ef26d8948f57ddbb8a0456bf819fa
languageName: node
linkType: hard
"@polkadot/wasm-crypto-init@npm:6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-crypto-init@npm:6.2.2"
"@polkadot/wasm-crypto-init@npm:6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-crypto-init@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/wasm-bridge": 6.2.2
"@polkadot/wasm-crypto-asmjs": 6.2.2
"@polkadot/wasm-crypto-wasm": 6.2.2
"@polkadot/wasm-bridge": 6.2.3
"@polkadot/wasm-crypto-asmjs": 6.2.3
"@polkadot/wasm-crypto-wasm": 6.2.3
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: 517a59d3662b485f375bdd6877477ab85b2c181bf91970d4da9a09acb12b9248a3be0f9de8d4fe9883a6e2fa479e4eb034a0c66a6a9be734a5b90010aa94511d
checksum: 21049298513d1e6008f367be271b6343159aecfc35fce68282dd55a27881b57822151da077b0886555cf30abd2889a038a4ede05d05f8cb0cda31f2afc445af4
languageName: node
linkType: hard
"@polkadot/wasm-crypto-wasm@npm:6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-crypto-wasm@npm:6.2.2"
"@polkadot/wasm-crypto-wasm@npm:6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-crypto-wasm@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/wasm-util": 6.2.2
"@polkadot/wasm-util": 6.2.3
peerDependencies:
"@polkadot/util": "*"
checksum: 73a90282777d3f94ae1f08d708598ffc74d95e19bec8fb9a218b742d20e6ee6b05486f59e207e117ec3587b310ebce38738b588956fe0c79c836d4811aaf2283
checksum: 67ccbf19c374f98770180c43cd8ce14304174fbd1ef78afba2268023f897e264de36d7e579f680e1e4a8874692c4418d4f4fa4d6e17ffde91fb219a10712e8a1
languageName: node
linkType: hard
"@polkadot/wasm-crypto@npm:^6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-crypto@npm:6.2.2"
"@polkadot/wasm-crypto@npm:^6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-crypto@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/wasm-bridge": 6.2.2
"@polkadot/wasm-crypto-asmjs": 6.2.2
"@polkadot/wasm-crypto-init": 6.2.2
"@polkadot/wasm-crypto-wasm": 6.2.2
"@polkadot/wasm-util": 6.2.2
"@polkadot/wasm-bridge": 6.2.3
"@polkadot/wasm-crypto-asmjs": 6.2.3
"@polkadot/wasm-crypto-init": 6.2.3
"@polkadot/wasm-crypto-wasm": 6.2.3
"@polkadot/wasm-util": 6.2.3
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: fb1292120a71e2c8395b11b7fe933a4f455a964586bd3570b9f7e4e50f8afdfdae7ba649e1b72f6c810e7e9d8dd318b8cd781a0418f0c62cbe02df95351bd5d7
checksum: f7f119f3bb8fc0223058bb4929f1da32bb517d83b058c1349a934266a07925a47da092c147dc38965d0f2e45c267675199bcbfe0e745ee287f672014c9615af4
languageName: node
linkType: hard
"@polkadot/wasm-util@npm:6.2.2":
version: 6.2.2
resolution: "@polkadot/wasm-util@npm:6.2.2"
"@polkadot/wasm-util@npm:6.2.3":
version: 6.2.3
resolution: "@polkadot/wasm-util@npm:6.2.3"
dependencies:
"@babel/runtime": ^7.18.6
peerDependencies:
"@polkadot/util": "*"
checksum: ccc5dd5b60ec7a6571e6d031f5dc72358dbe04a6aa43c58d6d8789015c5a9ce6d0d956b04f25f35a3d79d3ba9a9d7a5b2e0e14976c9566b182981a2c17c84041
checksum: 41ca92114eb8fa373da8c6620394d4eac083f95f54804e507662728759e235a825de9817c444d1ce9a9f57fa7ef42cc002db0542c7875288a702274865682ee3
languageName: node
linkType: hard
"@polkadot/x-bigint@9.7.2, @polkadot/x-bigint@workspace:packages/x-bigint":
"@polkadot/x-bigint@10.0.2, @polkadot/x-bigint@workspace:packages/x-bigint":
version: 0.0.0-use.local
resolution: "@polkadot/x-bigint@workspace:packages/x-bigint"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@polkadot/x-global": 10.0.2
languageName: unknown
linkType: soft
@@ -2321,23 +2321,23 @@ __metadata:
resolution: "@polkadot/x-bundle@workspace:packages/x-bundle"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/util": 9.7.2
"@polkadot/util": 10.0.2
buffer-es6: ^4.9.3
languageName: unknown
linkType: soft
"@polkadot/x-fetch@9.7.2, @polkadot/x-fetch@workspace:packages/x-fetch":
"@polkadot/x-fetch@10.0.2, @polkadot/x-fetch@workspace:packages/x-fetch":
version: 0.0.0-use.local
resolution: "@polkadot/x-fetch@workspace:packages/x-fetch"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@polkadot/x-global": 10.0.2
"@types/node-fetch": ^2.6.2
node-fetch: ^2.6.7
node-fetch: ^3.2.6
languageName: unknown
linkType: soft
"@polkadot/x-global@9.7.2, @polkadot/x-global@workspace:packages/x-global":
"@polkadot/x-global@10.0.2, @polkadot/x-global@workspace:packages/x-global":
version: 0.0.0-use.local
resolution: "@polkadot/x-global@workspace:packages/x-global"
dependencies:
@@ -2345,31 +2345,31 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/x-randomvalues@9.7.2, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
"@polkadot/x-randomvalues@10.0.2, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
version: 0.0.0-use.local
resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@types/react-native": ^0.69.1
"@polkadot/x-global": 10.0.2
"@types/react-native": ^0.69.2
languageName: unknown
linkType: soft
"@polkadot/x-textdecoder@9.7.2, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
"@polkadot/x-textdecoder@10.0.2, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@polkadot/x-global": 10.0.2
languageName: unknown
linkType: soft
"@polkadot/x-textencoder@9.7.2, @polkadot/x-textencoder@workspace:packages/x-textencoder":
"@polkadot/x-textencoder@10.0.2, @polkadot/x-textencoder@workspace:packages/x-textencoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@polkadot/x-global": 10.0.2
languageName: unknown
linkType: soft
@@ -2378,7 +2378,7 @@ __metadata:
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
dependencies:
"@babel/runtime": ^7.18.6
"@polkadot/x-global": 9.7.2
"@polkadot/x-global": 10.0.2
"@types/websocket": ^1.0.5
websocket: ^1.0.34
languageName: unknown
@@ -2737,12 +2737,12 @@ __metadata:
languageName: node
linkType: hard
"@types/react-native@npm:^0.69.1":
version: 0.69.1
resolution: "@types/react-native@npm:0.69.1"
"@types/react-native@npm:^0.69.2":
version: 0.69.2
resolution: "@types/react-native@npm:0.69.2"
dependencies:
"@types/react": "*"
checksum: 10e4da83ebb8796e9864841977edd11a98b918c3f27804d185c06d0fae8380de43ad42b38e1d12c3b5b151b19c45e84dae7126b4541f66233b89f02a997d1afc
checksum: 210a658415726e15560a9b7ee2392e9ac5d89587aac86b9d4e73367c154e0fb79161e7933cc66b72bf562cd6f42f36d6563bd1ae272da57b6b96a45c25881869
languageName: node
linkType: hard
@@ -2813,13 +2813,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/eslint-plugin@npm:5.30.4"
"@typescript-eslint/eslint-plugin@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/eslint-plugin@npm:5.30.5"
dependencies:
"@typescript-eslint/scope-manager": 5.30.4
"@typescript-eslint/type-utils": 5.30.4
"@typescript-eslint/utils": 5.30.4
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/type-utils": 5.30.5
"@typescript-eslint/utils": 5.30.5
debug: ^4.3.4
functional-red-black-tree: ^1.0.1
ignore: ^5.2.0
@@ -2832,42 +2832,42 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 9b9290448b3009b93dc9bbc263049103f48c006d395351695486f7ab156f24b3f3e9e83a9f68a8cf73afc036c2d1092005446085f171afc9cdcb0b1b475443e3
checksum: cf763fb091dcdfd6c25843251a220b654ca83968b17266e0f343771f489085c6afc4e41fcf2187b4c72c4d12a787070c64b5e5367069460f95a8174573f48905
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/parser@npm:5.30.4"
"@typescript-eslint/parser@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/parser@npm:5.30.5"
dependencies:
"@typescript-eslint/scope-manager": 5.30.4
"@typescript-eslint/types": 5.30.4
"@typescript-eslint/typescript-estree": 5.30.4
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/typescript-estree": 5.30.5
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: e13ffd0cbb691b5b82038a5a1475a7771409398bc90e0430e9b3818174926c5af7c637d5915f7c2949f38201c04bfe57dfc91f4d9052a48ee551faba3b8c7349
checksum: 6c16821e122b891420a538f200f6e576ad1167855a67e87f9a7d3a08c0513fe26006f6411b8ba6f4662a81526bd0339ae37c47dd88fa5943e6f27ff70da9f989
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/scope-manager@npm:5.30.4"
"@typescript-eslint/scope-manager@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/scope-manager@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.4
"@typescript-eslint/visitor-keys": 5.30.4
checksum: 3da442dc113ee821c6b1c4510ee4cfd6f6f34838587785b7c486d262af913dca66229a47ebb9a63ad605f8edbe57a8387be24c817c8091783b57c33b7862cbcc
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/visitor-keys": 5.30.5
checksum: 509bee6d62cca1716e8f4792d9180c189974992ba13d8103ca04423a64006cf184c4b2c606d55c776305458140c798a3a9a414d07a60790b83dd714f56c457b0
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/type-utils@npm:5.30.4"
"@typescript-eslint/type-utils@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/type-utils@npm:5.30.5"
dependencies:
"@typescript-eslint/utils": 5.30.4
"@typescript-eslint/utils": 5.30.5
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
@@ -2875,7 +2875,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 552eb1a5b11787d3b98dc454a80153b05bcb6d58aeb97c861d6b006f3eb6af95d117a3f9a679b41a8b6d58ac0dceaaeafd23ce28d83881a363e51bbc1a088936
checksum: 080cc1231729c34b778395658374e32d034474056f9b777dbc89d20d15eb93d93d0959328ad47c2a6623d40c6552364ababadce439842a944bce001f55b731b3
languageName: node
linkType: hard
@@ -2886,19 +2886,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/types@npm:5.30.4"
checksum: 06181c33551850492ccfd48232f93083c6cf9205d26b26fe6e356b7a4ebb08beffd89ae3b84011da94ffd0e6948422d91d94df7005edeca1c8348117d4776715
"@typescript-eslint/types@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/types@npm:5.30.5"
checksum: c70420618cb875d4e964a20a3fa4cf40cb97a8ad3123e24860e3d829edf3b081c77fa1fe25644700499d27e44aee5783abc7765deee61e2ef59a928db96b2175
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/typescript-estree@npm:5.30.4"
"@typescript-eslint/typescript-estree@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/typescript-estree@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.4
"@typescript-eslint/visitor-keys": 5.30.4
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/visitor-keys": 5.30.5
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
@@ -2907,7 +2907,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 1aaa414993a4e35927e93f929d34a6e07cb8ec46c4ea9a58f018c36ff1fc3027ca5007e6abe922c5869557cd2d7f319e8c57cccd618517781979e669d3b704d0
checksum: 19dce426c826cddd4aadf2fa15be943c6ad7d2038685cc2665749486a5f44a47819aab5d260b54f8a4babf6acf2500e9f62e709d61fce337b12d5468ff285277
languageName: node
linkType: hard
@@ -2929,19 +2929,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/utils@npm:5.30.4"
"@typescript-eslint/utils@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/utils@npm:5.30.5"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.30.4
"@typescript-eslint/types": 5.30.4
"@typescript-eslint/typescript-estree": 5.30.4
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/typescript-estree": 5.30.5
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 0f680d366701c6ca5a4e1fc53247876e6f6acaee498400d32a7cb767e6187d0d75bc4488350cf6dc6e7c373ea023d62e395ea14ba56ad246b458d6853b213782
checksum: 12f68cb34a150d39708f4e09a54964360f29589885cd50f119a2061660011752ec72eff3d90111f0e597575d32aae7250a6e2c730a84963e5e30352759d5f1f4
languageName: node
linkType: hard
@@ -2955,13 +2955,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.30.4":
version: 5.30.4
resolution: "@typescript-eslint/visitor-keys@npm:5.30.4"
"@typescript-eslint/visitor-keys@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/visitor-keys@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.4
"@typescript-eslint/types": 5.30.5
eslint-visitor-keys: ^3.3.0
checksum: ec39680a89b058e8350adc084c2a957e83161e87ac9732c9fef8fd3045ce5004e059b2ddb0c366192806e3998bf3263c8bbb2cc74a4f2ad3313154ed35dd479a
checksum: c0de9ae48378eec2682b860a059518bed213ea29575aad538d8d2f8137875e7279e375a7f23d38c1c183466fdd9cf1ca1db4ed5a1d374968f9460d83e48b2437
languageName: node
linkType: hard
@@ -2985,9 +2985,9 @@ __metadata:
languageName: node
linkType: hard
"@zondax/ledger-substrate@npm:^0.31.0":
version: 0.31.0
resolution: "@zondax/ledger-substrate@npm:0.31.0"
"@zondax/ledger-substrate@npm:^0.32.0":
version: 0.32.0
resolution: "@zondax/ledger-substrate@npm:0.32.0"
dependencies:
"@babel/runtime": ^7.14.8
"@ledgerhq/hw-transport": ^6.2.0
@@ -2997,7 +2997,7 @@ __metadata:
blakejs: ^1.1.1
bs58: ^4.0.1
hash.js: ^1.1.7
checksum: ab4046a594394e2bc52a7f0e6951be80ede145303e24b90a17b42a2447375d225bcb2a9ccd97ecbccfa800b77599c7097c80b8eae87de0c9c4c3d034a22c8e37
checksum: b6442a307d72845f945c8ac2b3cb52882c93a9c4425f523766ccc762a17cf0cdf8ca7bdda9f573393950201241f544d429d601b6fd791ee9fca5a4bb8ab67a2d
languageName: node
linkType: hard
@@ -4320,6 +4320,13 @@ __metadata:
languageName: node
linkType: hard
"data-uri-to-buffer@npm:^4.0.0":
version: 4.0.0
resolution: "data-uri-to-buffer@npm:4.0.0"
checksum: a010653869abe8bb51259432894ac62c52bf79ad761d418d94396f48c346f2ae739c46b254e8bb5987bded8a653d467db1968db3a69bab1d33aa5567baa5cfc7
languageName: node
linkType: hard
"data-urls@npm:^3.0.1":
version: 3.0.2
resolution: "data-urls@npm:3.0.2"
@@ -4991,14 +4998,14 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-import-newlines@npm:^1.2.2":
version: 1.2.2
resolution: "eslint-plugin-import-newlines@npm:1.2.2"
"eslint-plugin-import-newlines@npm:^1.2.3":
version: 1.2.3
resolution: "eslint-plugin-import-newlines@npm:1.2.3"
peerDependencies:
eslint: ">=6.0.0"
bin:
import-linter: lib/index.js
checksum: 3bb35817357aa47e2ec45b82e085605351f8f6050a0766b4f3ccd287ba81c7db72c33ac4c4ccea6cf90d66868ae141692897d6c84e08532d740672daeebcb789
checksum: 0781d83d5aeb41b487919d61a21d822a3c922bbc5504ad36790309d68e4df0a05ea2288da998498b5757f814fb841abcc4872241ed349b65cf63287476255bc2
languageName: node
linkType: hard
@@ -5025,9 +5032,9 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-n@npm:^15.2.3":
version: 15.2.3
resolution: "eslint-plugin-n@npm:15.2.3"
"eslint-plugin-n@npm:^15.2.4":
version: 15.2.4
resolution: "eslint-plugin-n@npm:15.2.4"
dependencies:
builtins: ^5.0.1
eslint-plugin-es: ^4.1.0
@@ -5039,7 +5046,7 @@ __metadata:
semver: ^7.3.7
peerDependencies:
eslint: ">=7.0.0"
checksum: da02bbf3152c49f9a09ab253f70e85f9d62af0f40f3d1882cf8a5fc9b9e07465c7f9632feae002ee97bce0598b408f017a4bb6c6f152b0870bad6f50aa430820
checksum: dd651651ab76120e45707ee968d846e3ffffb42d1035792fdef6d3b0dcfddf3673bc6a09cb2fac8c5f1d081f14f2a67fc52295d5ed1d2edfb5beead93284eaac
languageName: node
linkType: hard
@@ -5443,6 +5450,16 @@ __metadata:
languageName: node
linkType: hard
"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4":
version: 3.1.5
resolution: "fetch-blob@npm:3.1.5"
dependencies:
node-domexception: ^1.0.0
web-streams-polyfill: ^3.0.3
checksum: 6493f21bfe196798343431d20c0284835202728d076dd2cbf502a2846679f9265f3b0c3a7224750ae1a770b925da09e592b05fe7c3a22ca27794a39a0039ab21
languageName: node
linkType: hard
"figures@npm:^3.0.0":
version: 3.2.0
resolution: "figures@npm:3.2.0"
@@ -5649,6 +5666,15 @@ __metadata:
languageName: node
linkType: hard
"formdata-polyfill@npm:^4.0.10":
version: 4.0.10
resolution: "formdata-polyfill@npm:4.0.10"
dependencies:
fetch-blob: ^3.1.2
checksum: 82a34df292afadd82b43d4a740ce387bc08541e0a534358425193017bf9fb3567875dc5f69564984b1da979979b70703aa73dee715a17b6c229752ae736dd9db
languageName: node
linkType: hard
"fs-constants@npm:^1.0.0":
version: 1.0.0
resolution: "fs-constants@npm:1.0.0"
@@ -6462,13 +6488,6 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"ip-regex@npm:^4.3.0":
version: 4.3.0
resolution: "ip-regex@npm:4.3.0"
checksum: 7ff904b891221b1847f3fdf3dbb3e6a8660dc39bc283f79eb7ed88f5338e1a3d1104b779bc83759159be266249c59c2160e779ee39446d79d4ed0890dfd06f08
languageName: node
linkType: hard
"is-arrayish@npm:^0.2.1":
version: 0.2.1
resolution: "is-arrayish@npm:0.2.1"
@@ -8136,7 +8155,14 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7":
"node-domexception@npm:^1.0.0":
version: 1.0.0
resolution: "node-domexception@npm:1.0.0"
checksum: ee1d37dd2a4eb26a8a92cd6b64dfc29caec72bff5e1ed9aba80c294f57a31ba4895a60fd48347cf17dd6e766da0ae87d75657dfd1f384ebfa60462c2283f5c7f
languageName: node
linkType: hard
"node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1":
version: 2.6.7
resolution: "node-fetch@npm:2.6.7"
dependencies:
@@ -8150,6 +8176,17 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"node-fetch@npm:^3.2.6":
version: 3.2.6
resolution: "node-fetch@npm:3.2.6"
dependencies:
data-uri-to-buffer: ^4.0.0
fetch-blob: ^3.1.4
formdata-polyfill: ^4.0.10
checksum: ece307ace3a3ff28638ccb0fa0545bb5c0cfd673a9d06fc314d937a73ae6a55917d5bacd7f080f9a9f1449ca20a5c01b1281d0e616acb20315e5ac315971da46
languageName: node
linkType: hard
"node-gyp-build@npm:^4.2.0":
version: 4.2.3
resolution: "node-gyp-build@npm:4.2.3"
@@ -9401,7 +9438,7 @@ resolve@^2.0.0-next.3:
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@babel/core": ^7.18.6
"@polkadot/dev": ^0.67.50
"@polkadot/dev": ^0.67.65
"@types/jest": ^28.1.4
languageName: unknown
linkType: soft
@@ -10504,7 +10541,7 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"usb-detection@npm:^4.13.0":
"usb-detection@npm:4.13.0":
version: 4.13.0
resolution: "usb-detection@npm:4.13.0"
dependencies:
@@ -10629,6 +10666,13 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"web-streams-polyfill@npm:^3.0.3":
version: 3.2.1
resolution: "web-streams-polyfill@npm:3.2.1"
checksum: b119c78574b6d65935e35098c2afdcd752b84268e18746606af149e3c424e15621b6f1ff0b42b2676dc012fc4f0d313f964b41a4b5031e525faa03997457da02
languageName: node
linkType: hard
"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"