From baad05ff296e6ae8c5cf05032d55a3e89f89acb6 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:36:08 -0700 Subject: [PATCH 01/29] devop: temp setup for opera and edge --- packages/extension/configs/browser-build.js | 6 +++ packages/extension/package.json | 1 + .../src/manifest/manifest-edge-opera.json | 49 +++++++++++++++++++ .../src/scripts/chrome/background.ts | 13 +++++ 4 files changed, 69 insertions(+) create mode 100644 packages/extension/src/manifest/manifest-edge-opera.json diff --git a/packages/extension/configs/browser-build.js b/packages/extension/configs/browser-build.js index fe8a19a3b..d8b696644 100644 --- a/packages/extension/configs/browser-build.js +++ b/packages/extension/configs/browser-build.js @@ -7,6 +7,7 @@ const BROWSER = process.env.BROWSER; const browserNames = { chrome: "chrome", firefox: "firefox", + operaedge: "opera-edge", }; const browserConfigs = { @@ -18,6 +19,10 @@ const browserConfigs = { manifest: "./src/manifest/manifest-firefox.json", background: "./src/scripts/firefox/background.ts", }, + [browserNames.operaedge]: { + manifest: "./src/manifest/manifest-edge-opera.json", + background: "./src/scripts/chrome/background.ts", + }, }; function modifyManifest(buffer) { @@ -63,6 +68,7 @@ const setConfig = (config) => { PACKAGE_VERSION: JSON.stringify(package.version), IS_DEV: process.env.NODE_ENV === "development", IS_FIREFOX: BROWSER === browserNames.firefox, + IS_OPERA_EDGE: BROWSER === browserNames.operaedge, PREFILL_PASSWORD: process.env.NODE_ENV === "development" ? JSON.stringify("test pass") diff --git a/packages/extension/package.json b/packages/extension/package.json index d34e16303..503fc1d3f 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -5,6 +5,7 @@ "scripts": { "zip": "cd dist; zip -r release.zip *;", "build:chrome": "cross-env BROWSER='chrome' vue-cli-service build && yarn build:rollup", + "build:operaedge": "cross-env BROWSER='opera-edge' vue-cli-service build && yarn build:rollup", "build:firefox": "cross-env BROWSER='firefox' vue-cli-service build && yarn build:rollup && node configs/get-system-info.js", "lint": "vue-cli-service lint --fix", "build:rollup": "cross-env minify=on rollup --config configs/rollup.config.contentscript.js && cross-env minify=on rollup --config configs/rollup.config.inject.js", diff --git a/packages/extension/src/manifest/manifest-edge-opera.json b/packages/extension/src/manifest/manifest-edge-opera.json new file mode 100644 index 000000000..a01078f32 --- /dev/null +++ b/packages/extension/src/manifest/manifest-edge-opera.json @@ -0,0 +1,49 @@ +{ + "manifest_version": 3, + "action": { + "default_icon": { + "16": "assets/img/icons/icon16.png", + "32": "assets/img/icons/icon32.png", + "64": "assets/img/icons/icon64.png", + "192": "assets/img/icons/icon192.png" + }, + "default_title": "Enkrypt", + "default_popup": "action.html" + }, + "background": { + "service_worker": "scripts/background.js" + }, + "host_permissions": ["file://*/*", "http://*/*", "https://*/*"], + "content_scripts": [ + { + "matches": ["file://*/*", "http://*/*", "https://*/*"], + "js": ["scripts/contentscript.js"], + "run_at": "document_start", + "all_frames": false + }, + { + "matches": ["*://connect.trezor.io/*/popup.html"], + "js": ["vendor/trezor-content-script.js"], + "run_at": "document_start" + } + ], + "web_accessible_resources": [ + { + "resources": ["scripts/inject.js", "scripts/*.js.map"], + "use_dynamic_url": false, + "matches": ["file://*/*", "http://*/*", "https://*/*"] + } + ], + "minimum_chrome_version": "111", + "content_security_policy": { + "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" + }, + "permissions": [ + "storage", + "unlimitedStorage", + "tabs", + "clipboardRead", + "clipboardWrite", + "scripting" + ] +} diff --git a/packages/extension/src/scripts/chrome/background.ts b/packages/extension/src/scripts/chrome/background.ts index 67fd11291..bd9839aaf 100644 --- a/packages/extension/src/scripts/chrome/background.ts +++ b/packages/extension/src/scripts/chrome/background.ts @@ -37,3 +37,16 @@ Browser.runtime.onInstalled.addListener((object) => { openOnboard(); } }); + +if (process.env.IS_OPERA_EDGE) { + Browser.scripting.registerContentScripts([ + { + id: "inject-script", + js: ["scripts/inject.js"], + persistAcrossSessions: false, + matches: ["http://*/*", "https://*/*"], + runAt: "document_start", + world: "MAIN", + } as any, + ]); +} From 9a98ce762e4499062e0e514d33245343f5e70fa9 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:02:29 -0800 Subject: [PATCH 02/29] devop: minor package updates --- package.json | 4 +- packages/extension-bridge/package.json | 6 +- packages/extension/configs/browser-build.js | 3 + packages/extension/package.json | 38 +- packages/hw-wallets/package.json | 18 +- packages/keyring/package.json | 8 +- packages/name-resolution/package.json | 8 +- packages/request/package.json | 8 +- packages/signers/bitcoin/package.json | 6 +- packages/signers/ethereum/package.json | 8 +- packages/signers/polkadot/package.json | 8 +- packages/storage/package.json | 8 +- packages/swap/package.json | 12 +- packages/types/package.json | 4 +- packages/utils/package.json | 10 +- yarn.lock | 1619 +++++++++++++------ 16 files changed, 1177 insertions(+), 591 deletions(-) diff --git a/package.json b/package.json index 757c7ce4c..0f6c20ad8 100644 --- a/package.json +++ b/package.json @@ -31,12 +31,12 @@ "devDependencies": { "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", - "@swc/core": "^1.3.104", + "@swc/core": "^1.4.2", "concurrently": "^8.2.2", "devmoji": "^2.3.0", "husky": "^8.0.3", "node-notifier": "^10.0.1", - "nodemon": "^3.0.3", + "nodemon": "^3.1.0", "ultra-runner": "^3.10.5" }, "resolutions": { diff --git a/packages/extension-bridge/package.json b/packages/extension-bridge/package.json index 78be5c8b5..e0f2e9665 100644 --- a/packages/extension-bridge/package.json +++ b/packages/extension-bridge/package.json @@ -39,14 +39,14 @@ "webextension-polyfill": "^0.10.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@types/webextension-polyfill": "^0.10.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "bumpp": "^9.3.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", diff --git a/packages/extension/configs/browser-build.js b/packages/extension/configs/browser-build.js index c5f88d8b1..2180cdeb3 100644 --- a/packages/extension/configs/browser-build.js +++ b/packages/extension/configs/browser-build.js @@ -62,6 +62,9 @@ const setConfig = (config) => { }); config.plugin("copy-manifest").use(copyManifest); config.plugin("define").tap((args) => { + Object.assign(args[0], { + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false", + }); const _base = args[0]["process.env"]; args[0]["process.env"] = { ..._base, diff --git a/packages/extension/package.json b/packages/extension/package.json index c03104ba0..2f59500d6 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -30,10 +30,10 @@ "@enkryptcom/utils": "workspace:^", "@ethereumjs/common": "^3.2.0", "@ethereumjs/tx": "^4.2.0", - "@ledgerhq/hw-transport-webusb": "^6.28.1", + "@ledgerhq/hw-transport-webusb": "^6.28.4", "@metamask/eth-sig-util": "^7.0.1", "@rollup/plugin-replace": "^5.0.5", - "@types/chrome": "^0.0.258", + "@types/chrome": "^0.0.262", "@types/events": "^3.0.3", "@types/less": "^3.0.6", "@types/lodash": "^4.14.202", @@ -45,8 +45,8 @@ "bitcoinjs-lib": "^6.1.5", "chai": "^4.4.1", "concurrently": "^8.2.2", - "core-js": "^3.35.0", - "echarts": "^5.4.3", + "core-js": "^3.36.0", + "echarts": "^5.5.0", "ethereumjs-abi": "^0.6.8", "ethereumjs-util": "^7.1.5", "ethereumjs-wallet": "^1.0.2", @@ -60,25 +60,25 @@ "switch-ts": "^1.1.1", "url-parse": "^1.5.10", "uuid": "^9.0.1", - "vue": "^3.4.15", - "vue-echarts": "6.6.8", - "vue-router": "4.2.5", + "vue": "^3.4.21", + "vue-echarts": "6.6.9", + "vue-router": "4.3.0", "vue3-lottie": "^2.7.4", "vuedraggable": "^4.1.0", - "web3-eth": "^1.10.3", - "web3-utils": "^1.10.3", + "web3-eth": "^1.10.4", + "web3-utils": "^1.10.4", "yarn": "^1.22.21", "zxcvbn": "^4.4.2" }, "devDependencies": { "@babel/plugin-transform-class-static-block": "^7.23.4", - "@polkadot/api": "^10.11.2", + "@polkadot/api": "^10.11.3", "@polkadot/extension-inject": "^0.46.6", "@polkadot/keyring": "^12.6.2", - "@polkadot/rpc-provider": "^10.11.2", - "@polkadot/types": "^10.11.2", - "@polkadot/types-known": "^10.11.2", - "@polkadot/ui-shared": "^3.6.4", + "@polkadot/rpc-provider": "^10.11.3", + "@polkadot/types": "^10.11.3", + "@polkadot/types-known": "^10.11.3", + "@polkadot/ui-shared": "^3.6.5", "@polkadot/util": "^12.6.2", "@polkadot/wasm-crypto": "^7.3.2", "@rollup/plugin-commonjs": "^25.0.7", @@ -88,7 +88,7 @@ "@types/ethereumjs-abi": "^0.6.5", "@types/mocha": "^10.0.6", "@types/url-parse": "^1.4.11", - "@types/uuid": "^9.0.7", + "@types/uuid": "^9.0.8", "@types/wif": "^2.0.5", "@types/zxcvbn": "^4.4.4", "@typescript-eslint/eslint-plugin": "^5.62.0", @@ -101,23 +101,23 @@ "buffer": "^6.0.3", "cross-env": "^7.0.3", "crypto-browserify": "^3.12.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-vue": "^8.7.1", "https-browserify": "^1.0.0", "less": "^4.2.0", "less-loader": "^11.1.4", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "path-browserify": "^1.0.1", "prettier": "^2.8.8", "rimraf": "^5.0.5", "rollup": "^3.29.4", "rollup-plugin-uglify": "^6.0.4", - "semver": "^7.5.4", + "semver": "^7.6.0", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", - "systeminformation": "^5.21.22", + "systeminformation": "^5.22.0", "ts-mocha": "^10.0.0", "tsconfig-paths": "^4.2.0", "typescript": "^4.9.5", diff --git a/packages/hw-wallets/package.json b/packages/hw-wallets/package.json index 2be35f1c5..13aa2fd2c 100644 --- a/packages/hw-wallets/package.json +++ b/packages/hw-wallets/package.json @@ -16,19 +16,19 @@ "node": ">=14.15.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "chai": "^4.4.1", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", @@ -48,13 +48,13 @@ "@enkryptcom/types": "workspace:^", "@enkryptcom/utils": "workspace:^", "@ethereumjs/tx": "^4.2.0", - "@ledgerhq/hw-app-eth": "^6.35.2", - "@ledgerhq/hw-transport": "^6.30.1", - "@ledgerhq/hw-transport-webusb": "^6.28.1", + "@ledgerhq/hw-app-eth": "^6.35.6", + "@ledgerhq/hw-transport": "^6.30.4", + "@ledgerhq/hw-transport-webusb": "^6.28.4", "@ledgerhq/live-common": "^31.8.0", - "@polkadot/types": "^10.11.2", + "@polkadot/types": "^10.11.3", "@polkadot/util": "^12.6.2", - "@trezor/connect-web": "^9.1.9", + "@trezor/connect-web": "^9.1.12", "@zondax/ledger-substrate": "^0.41.3", "ethereumjs-util": "^7.1.5", "hdkey": "^2.1.0", diff --git a/packages/keyring/package.json b/packages/keyring/package.json index c0c76e7d6..8711d2d3c 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -28,19 +28,19 @@ "bip39": "^3.1.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "chai": "^4.4.1", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/name-resolution/package.json b/packages/name-resolution/package.json index adaefd85d..f735aafa0 100644 --- a/packages/name-resolution/package.json +++ b/packages/name-resolution/package.json @@ -16,19 +16,19 @@ "node": ">=14.15.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "chai": "^4.4.1", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/request/package.json b/packages/request/package.json index ec6088410..1a25c7ee2 100644 --- a/packages/request/package.json +++ b/packages/request/package.json @@ -26,19 +26,19 @@ "ws": "^8.16.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "chai": "^4.4.1", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/signers/bitcoin/package.json b/packages/signers/bitcoin/package.json index cd22ce33f..1809fb4fd 100644 --- a/packages/signers/bitcoin/package.json +++ b/packages/signers/bitcoin/package.json @@ -27,13 +27,13 @@ }, "devDependencies": { "@enkryptcom/types": "workspace:^", - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/hdkey": "^2.0.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", diff --git a/packages/signers/ethereum/package.json b/packages/signers/ethereum/package.json index 6da9f6a4c..d8e9e276d 100644 --- a/packages/signers/ethereum/package.json +++ b/packages/signers/ethereum/package.json @@ -28,19 +28,19 @@ }, "devDependencies": { "@enkryptcom/types": "workspace:^", - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/hdkey": "^2.0.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/signers/polkadot/package.json b/packages/signers/polkadot/package.json index 4b7a3d1e4..77478819a 100644 --- a/packages/signers/polkadot/package.json +++ b/packages/signers/polkadot/package.json @@ -27,18 +27,18 @@ }, "devDependencies": { "@enkryptcom/types": "workspace:^", - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/storage/package.json b/packages/storage/package.json index 22496a850..e6ab5204d 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -22,18 +22,18 @@ "localforage": "^1.10.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/swap/package.json b/packages/swap/package.json index 0f5ff3e58..5ef97cafc 100644 --- a/packages/swap/package.json +++ b/packages/swap/package.json @@ -27,24 +27,24 @@ "rango-sdk-basic": "^0.1.45", "reconnecting-websocket": "^4.4.0", "uuid": "^9.0.1", - "web3-eth": "^1.10.3", - "web3-utils": "^1.10.3", + "web3-eth": "^1.10.4", + "web3-utils": "^1.10.4", "ws": "^8.16.0" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "chai": "^4.4.1", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/packages/types/package.json b/packages/types/package.json index 373fcf8b9..b05dfda48 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -18,10 +18,10 @@ "node": ">=14.15.0" }, "devDependencies": { - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index d268cea13..6415e800b 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -23,21 +23,21 @@ "bip39": "^3.1.0", "chai": "^4.4.1", "ethereum-cryptography": "^1.2.0", - "web3-utils": "^1.10.3" + "web3-utils": "^1.10.4" }, "devDependencies": { - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.5", + "@types/node": "^20.11.22", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "prettier": "^2.8.8", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", diff --git a/yarn.lock b/yarn.lock index 822496492..b3863831e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -363,7 +363,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.17.9, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.6": +"@babel/parser@npm:^7.17.9, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.22.15": version: 7.23.6 resolution: "@babel/parser@npm:7.23.6" bin: @@ -372,6 +372,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.23.9": + version: 7.24.0 + resolution: "@babel/parser@npm:7.24.0" + bin: + parser: ./bin/babel-parser.js + checksum: 4a6afec49487a212e7a27345b0c090b56905efb62c0b3a1499b0a57a5b3bf43d9d1e99e31b137080eacc24dee659a29699740d0a6289999117c0d8c5a04bd68f + languageName: node + linkType: hard + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.16.7": version: 7.16.7 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.16.7" @@ -2314,14 +2323,14 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/extension-bridge@workspace:packages/extension-bridge" dependencies: - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@types/webextension-polyfill": ^0.10.7 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 bumpp: ^9.3.0 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2357,15 +2366,15 @@ __metadata: "@enkryptcom/utils": "workspace:^" "@ethereumjs/common": ^3.2.0 "@ethereumjs/tx": ^4.2.0 - "@ledgerhq/hw-transport-webusb": ^6.28.1 + "@ledgerhq/hw-transport-webusb": ^6.28.4 "@metamask/eth-sig-util": ^7.0.1 - "@polkadot/api": ^10.11.2 + "@polkadot/api": ^10.11.3 "@polkadot/extension-inject": ^0.46.6 "@polkadot/keyring": ^12.6.2 - "@polkadot/rpc-provider": ^10.11.2 - "@polkadot/types": ^10.11.2 - "@polkadot/types-known": ^10.11.2 - "@polkadot/ui-shared": ^3.6.4 + "@polkadot/rpc-provider": ^10.11.3 + "@polkadot/types": ^10.11.3 + "@polkadot/types-known": ^10.11.3 + "@polkadot/ui-shared": ^3.6.5 "@polkadot/util": ^12.6.2 "@polkadot/wasm-crypto": ^7.3.2 "@rollup/plugin-commonjs": ^25.0.7 @@ -2373,7 +2382,7 @@ __metadata: "@rollup/plugin-node-resolve": ^15.2.3 "@rollup/plugin-replace": ^5.0.5 "@rollup/plugin-typescript": ^11.1.6 - "@types/chrome": ^0.0.258 + "@types/chrome": ^0.0.262 "@types/ethereumjs-abi": ^0.6.5 "@types/events": ^3.0.3 "@types/less": ^3.0.6 @@ -2381,7 +2390,7 @@ __metadata: "@types/mocha": ^10.0.6 "@types/url-parse": ^1.4.11 "@types/utf-8-validate": ^5.0.2 - "@types/uuid": ^9.0.7 + "@types/uuid": ^9.0.8 "@types/wif": ^2.0.5 "@types/zxcvbn": ^4.4.4 "@typescript-eslint/eslint-plugin": ^5.62.0 @@ -2399,11 +2408,11 @@ __metadata: buffer: ^6.0.3 chai: ^4.4.1 concurrently: ^8.2.2 - core-js: ^3.35.0 + core-js: ^3.36.0 cross-env: ^7.0.3 crypto-browserify: ^3.12.0 - echarts: ^5.4.3 - eslint: ^8.56.0 + echarts: ^5.5.0 + eslint: ^8.57.0 eslint-config-prettier: ^8.10.0 eslint-plugin-prettier: ^4.2.1 eslint-plugin-vue: ^8.7.1 @@ -2416,7 +2425,7 @@ __metadata: less-loader: ^11.1.4 lodash: ^4.17.21 memoize-one: ^6.0.0 - mocha: ^10.2.0 + mocha: ^10.3.0 moment: ^2.30.1 nanoevents: ^7.0.1 path-browserify: ^1.0.1 @@ -2426,24 +2435,24 @@ __metadata: rimraf: ^5.0.5 rollup: ^3.29.4 rollup-plugin-uglify: ^6.0.4 - semver: ^7.5.4 + semver: ^7.6.0 stream-browserify: ^3.0.0 stream-http: ^3.2.0 switch-ts: ^1.1.1 - systeminformation: ^5.21.22 + systeminformation: ^5.22.0 ts-mocha: ^10.0.0 tsconfig-paths: ^4.2.0 typescript: ^4.9.5 url: ^0.11.3 url-parse: ^1.5.10 uuid: ^9.0.1 - vue: ^3.4.15 - vue-echarts: 6.6.8 - vue-router: 4.2.5 + vue: ^3.4.21 + vue-echarts: 6.6.9 + vue-router: 4.3.0 vue3-lottie: ^2.7.4 vuedraggable: ^4.1.0 - web3-eth: ^1.10.3 - web3-utils: ^1.10.3 + web3-eth: ^1.10.4 + web3-utils: ^1.10.4 webextension-polyfill: ^0.10.0 yarn: ^1.22.21 zxcvbn: ^4.4.2 @@ -2457,21 +2466,21 @@ __metadata: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" "@ethereumjs/tx": ^4.2.0 - "@ledgerhq/hw-app-eth": ^6.35.2 - "@ledgerhq/hw-transport": ^6.30.1 - "@ledgerhq/hw-transport-webusb": ^6.28.1 + "@ledgerhq/hw-app-eth": ^6.35.6 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/hw-transport-webusb": ^6.28.4 "@ledgerhq/live-common": ^31.8.0 - "@polkadot/types": ^10.11.2 + "@polkadot/types": ^10.11.3 "@polkadot/util": ^12.6.2 - "@trezor/connect-web": ^9.1.9 - "@types/chai": ^4.3.11 + "@trezor/connect-web": ^9.1.12 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 "@zondax/ledger-substrate": ^0.41.3 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2479,7 +2488,7 @@ __metadata: eslint-plugin-module-resolver: ^1.5.0 ethereumjs-util: ^7.1.5 hdkey: ^2.1.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2502,21 +2511,21 @@ __metadata: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" "@polkadot/util": ^12.6.2 - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 assert: ^2.1.0 bip39: ^3.1.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2533,21 +2542,21 @@ __metadata: dependencies: "@ensdomains/address-encoder": ^0.2.22 "@siddomains/sidjs": 0.1.29 - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 "@unstoppabledomains/resolution": ^9.2.2 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 ethers: ^5.7.2 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2563,13 +2572,13 @@ __metadata: resolution: "@enkryptcom/request@workspace:packages/request" dependencies: "@enkryptcom/types": "workspace:^" - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2578,7 +2587,7 @@ __metadata: eventemitter3: ^5.0.1 isomorphic-ws: ^5.0.0 json-rpc-2.0: ^1.7.0 - mocha: ^10.2.0 + mocha: ^10.3.0 node-fetch: ^2.7.0 prettier: ^2.8.8 reconnecting-websocket: ^4.4.0 @@ -2600,15 +2609,15 @@ __metadata: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" "@noble/secp256k1": 1.7.1 - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/hdkey": ^2.0.3 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 bip39: ^3.1.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2634,15 +2643,15 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/hdkey": ^2.0.3 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 bip39: ^3.1.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2651,7 +2660,7 @@ __metadata: ethereum-cryptography: ^1.2.0 ethereumjs-util: ^7.1.5 hdkey: ^2.1.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2674,20 +2683,20 @@ __metadata: "@polkadot/util": ^12.6.2 "@polkadot/util-crypto": ^12.6.2 "@polkadot/wasm-crypto": ^7.3.2 - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 assert: ^2.1.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2704,20 +2713,20 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 localforage: ^1.10.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2734,14 +2743,14 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 bignumber.js: ^9.1.2 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2751,7 +2760,7 @@ __metadata: isomorphic-ws: ^5.0.0 json-rpc-2.0: ^1.7.0 lodash: ^4.17.21 - mocha: ^10.2.0 + mocha: ^10.3.0 node-fetch: ^2.7.0 prettier: ^2.8.8 rango-sdk-basic: ^0.1.45 @@ -2763,8 +2772,8 @@ __metadata: typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 uuid: ^9.0.1 - web3-eth: ^1.10.3 - web3-utils: ^1.10.3 + web3-eth: ^1.10.4 + web3-utils: ^1.10.4 ws: ^8.16.0 languageName: unknown linkType: soft @@ -2773,10 +2782,10 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/types@workspace:packages/types" dependencies: - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 @@ -2798,21 +2807,21 @@ __metadata: "@enkryptcom/types": "workspace:^" "@ethereumjs/util": ^8.1.0 "@polkadot/util-crypto": ^12.6.2 - "@types/chai": ^4.3.11 + "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 - "@types/node": ^20.11.5 + "@types/node": ^20.11.22 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.62.0 bip39: ^3.1.0 chai: ^4.4.1 - eslint: ^8.56.0 + eslint: ^8.57.0 eslint-config-airbnb-base: ^15.0.0 eslint-config-prettier: ^8.10.0 eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 ethereum-cryptography: ^1.2.0 - mocha: ^10.2.0 + mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 ts-node: ^10.9.2 @@ -2820,7 +2829,7 @@ __metadata: tsup: ^6.7.0 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 - web3-utils: ^1.10.3 + web3-utils: ^1.10.4 languageName: unknown linkType: soft @@ -3115,10 +3124,10 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:8.56.0": - version: 8.56.0 - resolution: "@eslint/js@npm:8.56.0" - checksum: 5804130574ef810207bdf321c265437814e7a26f4e6fac9b496de3206afd52f533e09ec002a3be06cd9adcc9da63e727f1883938e663c4e4751c007d5b58e539 +"@eslint/js@npm:8.57.0": + version: 8.57.0 + resolution: "@eslint/js@npm:8.57.0" + checksum: 315dc65b0e9893e2bff139bddace7ea601ad77ed47b4550e73da8c9c2d2766c7a575c3cddf17ef85b8fd6a36ff34f91729d0dcca56e73ca887c10df91a41b0bb languageName: node linkType: hard @@ -3808,14 +3817,14 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.11.13": - version: 0.11.13 - resolution: "@humanwhocodes/config-array@npm:0.11.13" +"@humanwhocodes/config-array@npm:^0.11.14": + version: 0.11.14 + resolution: "@humanwhocodes/config-array@npm:0.11.14" dependencies: - "@humanwhocodes/object-schema": ^2.0.1 - debug: ^4.1.1 + "@humanwhocodes/object-schema": ^2.0.2 + debug: ^4.3.1 minimatch: ^3.0.5 - checksum: f8ea57b0d7ed7f2d64cd3944654976829d9da91c04d9c860e18804729a33f7681f78166ef4c761850b8c324d362f7d53f14c5c44907a6b38b32c703ff85e4805 + checksum: 861ccce9eaea5de19546653bccf75bf09fe878bc39c3aab00aeee2d2a0e654516adad38dd1098aab5e3af0145bbcbf3f309bdf4d964f8dab9dcd5834ae4c02f2 languageName: node linkType: hard @@ -3826,10 +3835,10 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^2.0.1": - version: 2.0.1 - resolution: "@humanwhocodes/object-schema@npm:2.0.1" - checksum: 24929487b1ed48795d2f08346a0116cc5ee4634848bce64161fb947109352c562310fd159fc64dda0e8b853307f5794605191a9547f7341158559ca3c8262a45 +"@humanwhocodes/object-schema@npm:^2.0.2": + version: 2.0.2 + resolution: "@humanwhocodes/object-schema@npm:2.0.2" + checksum: 2fc11503361b5fb4f14714c700c02a3f4c7c93e9acd6b87a29f62c522d90470f364d6161b03d1cc618b979f2ae02aed1106fd29d302695d8927e2fc8165ba8ee languageName: node linkType: hard @@ -4170,6 +4179,17 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/cryptoassets@npm:^11.4.1": + version: 11.4.1 + resolution: "@ledgerhq/cryptoassets@npm:11.4.1" + dependencies: + axios: ^1.6.0 + bs58check: ^2.1.2 + invariant: 2 + checksum: 5efc3712a735c5bd10c9f295b0781263ebc53b742b6949558543c8f47a4594ab71a09a7de9e097adda0916404ccd5fbbe7edd6d13c79d074d4ca0c5c785f3244 + languageName: node + linkType: hard + "@ledgerhq/cryptoassets@npm:^9.13.0": version: 9.13.0 resolution: "@ledgerhq/cryptoassets@npm:9.13.0" @@ -4215,6 +4235,18 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/devices@npm:^8.2.1": + version: 8.2.1 + resolution: "@ledgerhq/devices@npm:8.2.1" + dependencies: + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/logs": ^6.12.0 + rxjs: ^7.8.1 + semver: ^7.3.5 + checksum: 5c7fa3004a4ebd30b0dcb8563642db308478bbec115102e5404dd0affcc99f880d094137e88c1f2cc064f78d65a5e946d5ebd8db89141977e32860885ea23ebe + languageName: node + linkType: hard + "@ledgerhq/domain-service@npm:^1.1.11, @ledgerhq/domain-service@npm:^1.1.16": version: 1.1.16 resolution: "@ledgerhq/domain-service@npm:1.1.16" @@ -4230,6 +4262,21 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/domain-service@npm:^1.1.18": + version: 1.1.18 + resolution: "@ledgerhq/domain-service@npm:1.1.18" + dependencies: + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/types-live": ^6.44.1 + axios: ^1.3.4 + eip55: ^2.1.1 + react: ^18.2.0 + react-dom: ^18.2.0 + checksum: 533ec40c5f145b9da6fd144183a10e149c87bbaf86bdca26ce9a4872768eabd9b2eec7c838464f0eb2404225f33e91121f85dacf1b2c3889d6cfb3d7454068f2 + languageName: node + linkType: hard + "@ledgerhq/errors@npm:^5.11.0, @ledgerhq/errors@npm:^5.34.0, @ledgerhq/errors@npm:^5.50.0": version: 5.50.0 resolution: "@ledgerhq/errors@npm:5.50.0" @@ -4244,6 +4291,13 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/errors@npm:^6.16.2": + version: 6.16.2 + resolution: "@ledgerhq/errors@npm:6.16.2" + checksum: 2dd796c78b8428339c8906cfe2325e62c211f484576835198a9bf4efc8fed38b4ca5d342bfb08aef6c623720753ea3e5ce77e50367f2808ad5610e3ff54cec70 + languageName: node + linkType: hard + "@ledgerhq/evm-tools@npm:^1.0.13, @ledgerhq/evm-tools@npm:^1.0.7": version: 1.0.13 resolution: "@ledgerhq/evm-tools@npm:1.0.13" @@ -4257,6 +4311,19 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/evm-tools@npm:^1.0.16": + version: 1.0.16 + resolution: "@ledgerhq/evm-tools@npm:1.0.16" + dependencies: + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/live-env": ^1.0.1 + axios: ^1.6.5 + crypto-js: 4.2.0 + ethers: 5.7.2 + checksum: fdcf673332d80249560b5abe04823c6f5b144cd1baa93261bdb07d5c1c5e675f40e937e8bddbeaf45b99074a1e3ae58b91ac02c7e6aaf90b1180a721466b1157 + languageName: node + linkType: hard + "@ledgerhq/hw-app-algorand@npm:^6.27.19": version: 6.27.19 resolution: "@ledgerhq/hw-app-algorand@npm:6.27.19" @@ -4302,7 +4369,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-app-eth@npm:^6.34.6, @ledgerhq/hw-app-eth@npm:^6.35.2": +"@ledgerhq/hw-app-eth@npm:^6.34.6": version: 6.35.2 resolution: "@ledgerhq/hw-app-eth@npm:6.35.2" dependencies: @@ -4322,6 +4389,26 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/hw-app-eth@npm:^6.35.6": + version: 6.35.6 + resolution: "@ledgerhq/hw-app-eth@npm:6.35.6" + dependencies: + "@ethersproject/abi": ^5.5.0 + "@ethersproject/rlp": ^5.5.0 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/domain-service": ^1.1.18 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/evm-tools": ^1.0.16 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/hw-transport-mocker": ^6.28.4 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/types-live": ^6.44.1 + axios: ^1.3.4 + bignumber.js: ^9.1.2 + checksum: ce0401c70f6e2cec5711f12822382a8e17c9c28bbe22acc03525e7407e230ec52c72f4fe80fd44ebb7f31ff94ed1b72d6edb39ed1446a09fa8bb50dbbc2b0d8c + languageName: node + linkType: hard + "@ledgerhq/hw-app-eth@npm:~5.11.0": version: 5.11.0 resolution: "@ledgerhq/hw-app-eth@npm:5.11.0" @@ -4433,6 +4520,17 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/hw-transport-mocker@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-transport-mocker@npm:6.28.4" + dependencies: + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/logs": ^6.12.0 + rxjs: ^7.8.1 + checksum: 2531c039cd37010b88f2759f76286863db3dfba56debcc2ce4406edee4f2b9cc2f1c85c599d6714cec0ffcb1ea4f2dec3fe6afd2d47465073ba2c9cfb8e7b387 + languageName: node + linkType: hard + "@ledgerhq/hw-transport-node-speculos-http@npm:^6.27.19": version: 6.27.19 resolution: "@ledgerhq/hw-transport-node-speculos-http@npm:6.27.19" @@ -4470,15 +4568,15 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-transport-webusb@npm:^6.28.1": - version: 6.28.1 - resolution: "@ledgerhq/hw-transport-webusb@npm:6.28.1" +"@ledgerhq/hw-transport-webusb@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-transport-webusb@npm:6.28.4" dependencies: - "@ledgerhq/devices": ^8.2.0 - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/hw-transport": ^6.30.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 "@ledgerhq/logs": ^6.12.0 - checksum: 8cb098941d336aa42e0712ef66b31850f2bd5ede6cf4323f5e2fa5804b73518625b7e56c22cc847ee90da1a07d3caa8a33e61ce48089479d302f57be2b901c47 + checksum: 41e3c71b11c9cc8363e42c11874d00f3b4673a3ea6dde738d8f483ea08a4bfe7c529e5db92e17c6e3fe9d585f22eafd90d8c803320fe2e79de09fb31e998240b languageName: node linkType: hard @@ -4527,6 +4625,18 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/hw-transport@npm:^6.30.4": + version: 6.30.4 + resolution: "@ledgerhq/hw-transport@npm:6.30.4" + dependencies: + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/logs": ^6.12.0 + events: ^3.3.0 + checksum: f4878e0b1ea093c69d2905c94bc9567c1c6694af9cff034634dd9639bd318666f131f2394f67c95d3cfd96b64693e14e4735883136545a19d8df902e3b59bf5e + languageName: node + linkType: hard + "@ledgerhq/hw-transport@npm:~5.11.0": version: 5.11.0 resolution: "@ledgerhq/hw-transport@npm:5.11.0" @@ -4759,6 +4869,16 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/live-env@npm:^1.0.1": + version: 1.0.1 + resolution: "@ledgerhq/live-env@npm:1.0.1" + dependencies: + rxjs: ^7.8.1 + utility-types: ^3.10.0 + checksum: e56058e03e30134a5645f7899f82aa807374e1cca76c8d7a673ecf541b6b865225092eca52a728fcccc9b00c895780a6b48fc6d2e8234fe3909b8e72a59c3dda + languageName: node + linkType: hard + "@ledgerhq/live-network@npm:^1.1.10, @ledgerhq/live-network@npm:^1.1.6": version: 1.1.10 resolution: "@ledgerhq/live-network@npm:1.1.10" @@ -4823,6 +4943,16 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/types-live@npm:^6.44.1": + version: 6.45.0 + resolution: "@ledgerhq/types-live@npm:6.45.0" + dependencies: + bignumber.js: ^9.1.2 + rxjs: ^7.8.1 + checksum: 218a30200a9f19348266e6ab8c77990c73024665df6e1d6acc3d4ee6619908b9eb5f730dabfab8108cc90fcff6339ec9b9a7e5c1bcb52b0139954fd8652a5549 + languageName: node + linkType: hard + "@ledgerhq/wallet-api-core@npm:1.1.0, @ledgerhq/wallet-api-core@npm:^1.1.0": version: 1.1.0 resolution: "@ledgerhq/wallet-api-core@npm:1.1.0" @@ -5084,6 +5214,70 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/client@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/client@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + dependencies: + "@polkadot-api/metadata-builders": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/substrate-bindings": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/substrate-client": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/utils": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + peerDependencies: + rxjs: ">=7.8.0" + checksum: 572a5538013131321722924a8ec4c4a3f18dfe76fc4897d77a65b2aa7e3162c5d11adab30111fd8489ab6952b7bd875f544e863b8cc0e54948233c6d736335e5 + languageName: node + linkType: hard + +"@polkadot-api/json-rpc-provider-proxy@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + checksum: d30789f6171fce9887139b88e832d121489fbe1694aa6919fb1c4a37e6ac39ba1f8e19caa76c0007fd815820f1c1b1de6e12169c6b638c580eb74eb0137b4b34 + languageName: node + linkType: hard + +"@polkadot-api/json-rpc-provider@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/json-rpc-provider@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + checksum: fb028b1d16e2c39e5130f90e340691afcd1c45f08f39f56e3a46aa5a87f2bdfd2f71ad81f348d7fe78aceae483c50be4eb55e572f5fdf273beab5ac7b253a59c + languageName: node + linkType: hard + +"@polkadot-api/metadata-builders@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/metadata-builders@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + dependencies: + "@polkadot-api/substrate-bindings": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/utils": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + checksum: 64705f32b9f7d43af759db28161e244f1ea45d5a4214a2a7592b1a4b3922378f1bfe50ad659defe93f23a63da306e50df9602a757656200cf1e50387b1a11842 + languageName: node + linkType: hard + +"@polkadot-api/substrate-bindings@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/substrate-bindings@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + dependencies: + "@noble/hashes": ^1.3.1 + "@polkadot-api/utils": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@scure/base": ^1.1.1 + scale-ts: ^1.4.3 + checksum: c17caa73feaee67edff6e106453f4ef54fe2e14fc921e1fa5e1bd4e8e3f4af8e01802ce3959df072f5997d843c9ad4916b0b52103fdf58c7bf006911be326585 + languageName: node + linkType: hard + +"@polkadot-api/substrate-client@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/substrate-client@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + checksum: 655272b98490e084b948e2c798e0f7d4ba7d90d33b9f24b4d01dd2a5ef6e7e31bf523dd6de602354a3911e897c55bdc32dc24f3b504ce22f27a8e40063296bb4 + languageName: node + linkType: hard + +"@polkadot-api/utils@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": + version: 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + resolution: "@polkadot-api/utils@npm:0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" + checksum: 48ff709170ee7abad50f784f1123532b6b39725ab709da59fc9ddd859568753456b46c9c42d5aa56cad3d9fa0af27e46ed0650697df840f0ef2c023bd3a512f1 + languageName: node + linkType: hard + "@polkadot/api-augment@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/api-augment@npm:10.11.2" @@ -5099,6 +5293,21 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-augment@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/api-augment@npm:10.11.3" + dependencies: + "@polkadot/api-base": 10.11.3 + "@polkadot/rpc-augment": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/types-augment": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: 659eb85323398a7a4b5a1e90af1ff7aca56c3c6d3960558090fe9e442431e1be099734162ddb1fb67f8c40f5a053f2ba7b86cc9b429867de335b2b12f18bd4c8 + languageName: node + linkType: hard + "@polkadot/api-base@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/api-base@npm:10.11.2" @@ -5112,6 +5321,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-base@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/api-base@npm:10.11.3" + dependencies: + "@polkadot/rpc-core": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/util": ^12.6.2 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: 492cbf1b484501af0b61f617aeb6c276dae88287fcff50206e89a5e6b13ecf12a2ecfe9cd54a651c17a0798dca1abf50ecd70efe38fcf0e693c0a30668f3eff7 + languageName: node + linkType: hard + "@polkadot/api-derive@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/api-derive@npm:10.11.2" @@ -5130,7 +5352,25 @@ __metadata: languageName: node linkType: hard -"@polkadot/api@npm:10.11.2, @polkadot/api@npm:^10.11.1, @polkadot/api@npm:^10.11.2": +"@polkadot/api-derive@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/api-derive@npm:10.11.3" + dependencies: + "@polkadot/api": 10.11.3 + "@polkadot/api-augment": 10.11.3 + "@polkadot/api-base": 10.11.3 + "@polkadot/rpc-core": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/util": ^12.6.2 + "@polkadot/util-crypto": ^12.6.2 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: a2b5be516d6cca250b6d6e2fef57228b9cd06da14d642e6aaf05287ed092c764656e468524ce80243e9a9863df262170a6f91cc60deeb4eba8fe9228e84ac6f8 + languageName: node + linkType: hard + +"@polkadot/api@npm:10.11.2, @polkadot/api@npm:^10.11.1": version: 10.11.2 resolution: "@polkadot/api@npm:10.11.2" dependencies: @@ -5155,6 +5395,31 @@ __metadata: languageName: node linkType: hard +"@polkadot/api@npm:10.11.3, @polkadot/api@npm:^10.11.3": + version: 10.11.3 + resolution: "@polkadot/api@npm:10.11.3" + dependencies: + "@polkadot/api-augment": 10.11.3 + "@polkadot/api-base": 10.11.3 + "@polkadot/api-derive": 10.11.3 + "@polkadot/keyring": ^12.6.2 + "@polkadot/rpc-augment": 10.11.3 + "@polkadot/rpc-core": 10.11.3 + "@polkadot/rpc-provider": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/types-augment": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/types-create": 10.11.3 + "@polkadot/types-known": 10.11.3 + "@polkadot/util": ^12.6.2 + "@polkadot/util-crypto": ^12.6.2 + eventemitter3: ^5.0.1 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: cff1bd5063bdd3e4655485f98697bd17f595168b772b77aeeb6e2a8ab95027974f32d72adbed270e9a328d478c6818a17e455930acec496f1041d2a34d8f4395 + languageName: node + linkType: hard + "@polkadot/extension-inject@npm:^0.46.6": version: 0.46.6 resolution: "@polkadot/extension-inject@npm:0.46.6" @@ -5247,6 +5512,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-augment@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/rpc-augment@npm:10.11.3" + dependencies: + "@polkadot/rpc-core": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: c029de176c764dcb6c6c01508309b7493f5902ef70e76af49fadadd75d0c6fcee08d35c01f75eb2aa6f98aa491437fe3ce2b81deffb1a71b83a3bec39b4b3177 + languageName: node + linkType: hard + "@polkadot/rpc-core@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/rpc-core@npm:10.11.2" @@ -5261,7 +5539,21 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-provider@npm:10.11.2, @polkadot/rpc-provider@npm:^10.11.1, @polkadot/rpc-provider@npm:^10.11.2": +"@polkadot/rpc-core@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/rpc-core@npm:10.11.3" + dependencies: + "@polkadot/rpc-augment": 10.11.3 + "@polkadot/rpc-provider": 10.11.3 + "@polkadot/types": 10.11.3 + "@polkadot/util": ^12.6.2 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: 4c0461c6826ba5a6460a2bf64ffd643acfc51ac9d0dde70e61c29dac2db37f6c9ec0a1748a85c8e6030693d14b469e74d4dd8c4dbfbf47189a8e1f539938e9e2 + languageName: node + linkType: hard + +"@polkadot/rpc-provider@npm:10.11.2, @polkadot/rpc-provider@npm:^10.11.1": version: 10.11.2 resolution: "@polkadot/rpc-provider@npm:10.11.2" dependencies: @@ -5285,6 +5577,30 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-provider@npm:10.11.3, @polkadot/rpc-provider@npm:^10.11.3": + version: 10.11.3 + resolution: "@polkadot/rpc-provider@npm:10.11.3" + dependencies: + "@polkadot/keyring": ^12.6.2 + "@polkadot/types": 10.11.3 + "@polkadot/types-support": 10.11.3 + "@polkadot/util": ^12.6.2 + "@polkadot/util-crypto": ^12.6.2 + "@polkadot/x-fetch": ^12.6.2 + "@polkadot/x-global": ^12.6.2 + "@polkadot/x-ws": ^12.6.2 + "@substrate/connect": 0.8.7 + eventemitter3: ^5.0.1 + mock-socket: ^9.3.1 + nock: ^13.5.0 + tslib: ^2.6.2 + dependenciesMeta: + "@substrate/connect": + optional: true + checksum: cf37a484f0bbf7313f6332222c07293d637bb0d2b23abb565f3fa64249ed8f0685eef2c6d424ce0820e13377310ea000c09e4f301b27f9d98b1363931310334f + languageName: node + linkType: hard + "@polkadot/types-augment@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/types-augment@npm:10.11.2" @@ -5297,6 +5613,18 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-augment@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/types-augment@npm:10.11.3" + dependencies: + "@polkadot/types": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: 78bcb3ca27056526c728b7b885fc6763c7e8cfb8335b5f00afa0948923a96de1deeec14bcc40913855f169c4a9fdaa5be8b810d3ce582a2226fba46156efb616 + languageName: node + linkType: hard + "@polkadot/types-augment@npm:9.8.2": version: 9.8.2 resolution: "@polkadot/types-augment@npm:9.8.2" @@ -5320,6 +5648,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-codec@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/types-codec@npm:10.11.3" + dependencies: + "@polkadot/util": ^12.6.2 + "@polkadot/x-bigint": ^12.6.2 + tslib: ^2.6.2 + checksum: 466de8b6c050cc1478e52bc999d54743818af5079c5f600fbc9608feb782baa558b20b23b664b59b4aac50f394aa3885b29557835979bb828e4bf299b5558243 + languageName: node + linkType: hard + "@polkadot/types-codec@npm:9.8.2": version: 9.8.2 resolution: "@polkadot/types-codec@npm:9.8.2" @@ -5342,6 +5681,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-create@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/types-create@npm:10.11.3" + dependencies: + "@polkadot/types-codec": 10.11.3 + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: ff4830943536c93570c28a20bce50c3c4e6ee23225643ffceb154ecfcdf75fa5d40e5d3dfd9917f2ba6170d1351415d98a5a98c2294cd603a09cea36d3f6271e + languageName: node + linkType: hard + "@polkadot/types-create@npm:9.8.2": version: 9.8.2 resolution: "@polkadot/types-create@npm:9.8.2" @@ -5353,7 +5703,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-known@npm:10.11.2, @polkadot/types-known@npm:^10.11.2": +"@polkadot/types-known@npm:10.11.2": version: 10.11.2 resolution: "@polkadot/types-known@npm:10.11.2" dependencies: @@ -5367,6 +5717,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-known@npm:10.11.3, @polkadot/types-known@npm:^10.11.3": + version: 10.11.3 + resolution: "@polkadot/types-known@npm:10.11.3" + dependencies: + "@polkadot/networks": ^12.6.2 + "@polkadot/types": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/types-create": 10.11.3 + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: 72e6b6087a5614c328742a38f1315d40821ad0ba3bc04a185bcfe035f89fac83399f0713ea848ff41151d2e1eb7f8bcfdd3ca13068f9f97d40420f3f8d76a7d9 + languageName: node + linkType: hard + "@polkadot/types-known@npm:9.8.2": version: 9.8.2 resolution: "@polkadot/types-known@npm:9.8.2" @@ -5391,7 +5755,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:10.11.2, @polkadot/types@npm:^10.11.1, @polkadot/types@npm:^10.11.2": +"@polkadot/types-support@npm:10.11.3": + version: 10.11.3 + resolution: "@polkadot/types-support@npm:10.11.3" + dependencies: + "@polkadot/util": ^12.6.2 + tslib: ^2.6.2 + checksum: 0bcffd02dcee63fda8911a30d0e79daa5a26a5286ee2e40c43ad336549f651d6130116ee688b3bdf83ed57fd5f42a6a72a7341168c19f5aca8c7c2a5d44f5cea + languageName: node + linkType: hard + +"@polkadot/types@npm:10.11.2, @polkadot/types@npm:^10.11.1": version: 10.11.2 resolution: "@polkadot/types@npm:10.11.2" dependencies: @@ -5407,6 +5781,22 @@ __metadata: languageName: node linkType: hard +"@polkadot/types@npm:10.11.3, @polkadot/types@npm:^10.11.3": + version: 10.11.3 + resolution: "@polkadot/types@npm:10.11.3" + dependencies: + "@polkadot/keyring": ^12.6.2 + "@polkadot/types-augment": 10.11.3 + "@polkadot/types-codec": 10.11.3 + "@polkadot/types-create": 10.11.3 + "@polkadot/util": ^12.6.2 + "@polkadot/util-crypto": ^12.6.2 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: 428e10e7a9615c27bb49bb34f9605c73de7bbfc600fc3138eb5dc79cfdefd94880346301f712ce235ecce27fc22e90a112a663ca1aeed87de0f1f63f5819d149 + languageName: node + linkType: hard + "@polkadot/types@npm:9.8.2": version: 9.8.2 resolution: "@polkadot/types@npm:9.8.2" @@ -5423,16 +5813,16 @@ __metadata: languageName: node linkType: hard -"@polkadot/ui-shared@npm:^3.6.4": - version: 3.6.4 - resolution: "@polkadot/ui-shared@npm:3.6.4" +"@polkadot/ui-shared@npm:^3.6.5": + version: 3.6.5 + resolution: "@polkadot/ui-shared@npm:3.6.5" dependencies: colord: ^2.9.3 tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" "@polkadot/util-crypto": "*" - checksum: a29b5f684a14cd231dd8e9aeecc9f958442bd8870c642681db5a8bc6847f8c99962b835a46f40efa33e6a9eb5195fb2605f55e3bada72e2ca3986b63de76fc88 + checksum: 0300afc45d9d9235883774560c787ee09426737e5e2c8892535654c150ae4bd60829056b8cb4cecc124be5c38ff705707524b6c8d7ff44cbdd13495247862b37 languageName: node linkType: hard @@ -6182,6 +6572,13 @@ __metadata: languageName: node linkType: hard +"@sinclair/typebox@npm:^0.31.28": + version: 0.31.28 + resolution: "@sinclair/typebox@npm:0.31.28" + checksum: 0dd8e11bb608a28f8db6aa6166a354453126249e5bbf4442654ba1c520bd10a55d0beb4cb294f4834a7619efa833a870a31902933a46548bfc24d0e0710576d2 + languageName: node + linkType: hard + "@sindresorhus/is@npm:^0.14.0": version: 0.14.0 resolution: "@sindresorhus/is@npm:0.14.0" @@ -6499,6 +6896,20 @@ __metadata: languageName: node linkType: hard +"@substrate/connect-extension-protocol@npm:^2.0.0": + version: 2.0.0 + resolution: "@substrate/connect-extension-protocol@npm:2.0.0" + checksum: a7c6ff3fefc0784f28b1d253514c1d2951684fe3d06392dfd70299fa2184fbe040d2bd6e0f113e30a1920920b649d43668aa4565847778ab3334c7e445e880cf + languageName: node + linkType: hard + +"@substrate/connect-known-chains@npm:^1.0.7": + version: 1.0.9 + resolution: "@substrate/connect-known-chains@npm:1.0.9" + checksum: 58a25df8dd8e7836e7ff932c3834e6cee67b820c0ee4832eb08d3ef25e6523c9560edd6ddecc96cb816fcbbb1ed01a3e0df50d1cf58a4bf9cc820180f21269e8 + languageName: node + linkType: hard + "@substrate/connect@npm:0.7.35": version: 0.7.35 resolution: "@substrate/connect@npm:0.7.35" @@ -6509,6 +6920,35 @@ __metadata: languageName: node linkType: hard +"@substrate/connect@npm:0.8.7": + version: 0.8.7 + resolution: "@substrate/connect@npm:0.8.7" + dependencies: + "@substrate/connect-extension-protocol": ^2.0.0 + "@substrate/connect-known-chains": ^1.0.7 + "@substrate/light-client-extension-helpers": ^0.0.3 + smoldot: 2.0.21 + checksum: 8390d03f463690b63193363024c4c9edafebebe1722acd95d07a8177630d85039d7115cf1c502d1d8254adbea97e5b3cf49ec36841cebefeb0408201e39e8fc5 + languageName: node + linkType: hard + +"@substrate/light-client-extension-helpers@npm:^0.0.3": + version: 0.0.3 + resolution: "@substrate/light-client-extension-helpers@npm:0.0.3" + dependencies: + "@polkadot-api/client": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/json-rpc-provider": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/json-rpc-provider-proxy": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@polkadot-api/substrate-client": 0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0 + "@substrate/connect-extension-protocol": ^2.0.0 + "@substrate/connect-known-chains": ^1.0.7 + rxjs: ^7.8.1 + peerDependencies: + smoldot: 2.x + checksum: a2e4a1df8f76c10c7ef3193cd4c7633beaea59e840afa71b74a5d90bdd8b335f1ec7b847b3c30e84be6e59bd25a8240549860d3016e3851a14aced45eac339a7 + languageName: node + linkType: hard + "@substrate/ss58-registry@npm:^1.38.0, @substrate/ss58-registry@npm:^1.44.0": version: 1.44.0 resolution: "@substrate/ss58-registry@npm:1.44.0" @@ -6516,91 +6956,91 @@ __metadata: languageName: node linkType: hard -"@swc/core-darwin-arm64@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-darwin-arm64@npm:1.3.104" +"@swc/core-darwin-arm64@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-darwin-arm64@npm:1.4.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@swc/core-darwin-x64@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-darwin-x64@npm:1.3.104" +"@swc/core-darwin-x64@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-darwin-x64@npm:1.4.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@swc/core-linux-arm-gnueabihf@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.104" +"@swc/core-linux-arm-gnueabihf@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-linux-arm-gnueabihf@npm:1.4.2" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@swc/core-linux-arm64-gnu@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-linux-arm64-gnu@npm:1.3.104" +"@swc/core-linux-arm64-gnu@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-linux-arm64-gnu@npm:1.4.2" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-arm64-musl@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-linux-arm64-musl@npm:1.3.104" +"@swc/core-linux-arm64-musl@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-linux-arm64-musl@npm:1.4.2" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@swc/core-linux-x64-gnu@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-linux-x64-gnu@npm:1.3.104" +"@swc/core-linux-x64-gnu@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-linux-x64-gnu@npm:1.4.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-x64-musl@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-linux-x64-musl@npm:1.3.104" +"@swc/core-linux-x64-musl@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-linux-x64-musl@npm:1.4.2" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@swc/core-win32-arm64-msvc@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-win32-arm64-msvc@npm:1.3.104" +"@swc/core-win32-arm64-msvc@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-win32-arm64-msvc@npm:1.4.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@swc/core-win32-ia32-msvc@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-win32-ia32-msvc@npm:1.3.104" +"@swc/core-win32-ia32-msvc@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-win32-ia32-msvc@npm:1.4.2" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@swc/core-win32-x64-msvc@npm:1.3.104": - version: 1.3.104 - resolution: "@swc/core-win32-x64-msvc@npm:1.3.104" +"@swc/core-win32-x64-msvc@npm:1.4.2": + version: 1.4.2 + resolution: "@swc/core-win32-x64-msvc@npm:1.4.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@swc/core@npm:^1.3.104": - version: 1.3.104 - resolution: "@swc/core@npm:1.3.104" - dependencies: - "@swc/core-darwin-arm64": 1.3.104 - "@swc/core-darwin-x64": 1.3.104 - "@swc/core-linux-arm-gnueabihf": 1.3.104 - "@swc/core-linux-arm64-gnu": 1.3.104 - "@swc/core-linux-arm64-musl": 1.3.104 - "@swc/core-linux-x64-gnu": 1.3.104 - "@swc/core-linux-x64-musl": 1.3.104 - "@swc/core-win32-arm64-msvc": 1.3.104 - "@swc/core-win32-ia32-msvc": 1.3.104 - "@swc/core-win32-x64-msvc": 1.3.104 - "@swc/counter": ^0.1.1 +"@swc/core@npm:^1.4.2": + version: 1.4.2 + resolution: "@swc/core@npm:1.4.2" + dependencies: + "@swc/core-darwin-arm64": 1.4.2 + "@swc/core-darwin-x64": 1.4.2 + "@swc/core-linux-arm-gnueabihf": 1.4.2 + "@swc/core-linux-arm64-gnu": 1.4.2 + "@swc/core-linux-arm64-musl": 1.4.2 + "@swc/core-linux-x64-gnu": 1.4.2 + "@swc/core-linux-x64-musl": 1.4.2 + "@swc/core-win32-arm64-msvc": 1.4.2 + "@swc/core-win32-ia32-msvc": 1.4.2 + "@swc/core-win32-x64-msvc": 1.4.2 + "@swc/counter": ^0.1.2 "@swc/types": ^0.1.5 peerDependencies: "@swc/helpers": ^0.5.0 @@ -6628,14 +7068,14 @@ __metadata: peerDependenciesMeta: "@swc/helpers": optional: true - checksum: 95fbf1412c8685d311cf2d7efbfa43e082d2d9e84ece48c4d8d96d6c67c5923569bfb26352451eb3e4d98adcb556dcfac65271c0fba77f078bb755fe2f64b295 + checksum: b17afda692b2627d3a82e589f1b29cef31bdee626a2dd997d78312dcbfc6eb701850fbab22e85f02b1261da39f0b0afb6a236c6065f6d0d7478cff939ca5a888 languageName: node linkType: hard -"@swc/counter@npm:^0.1.1": - version: 0.1.2 - resolution: "@swc/counter@npm:0.1.2" - checksum: 8427c594f1f0cf44b83885e9c8fe1e370c9db44ae96e07a37c117a6260ee97797d0709483efbcc244e77bac578690215f45b23254c4cd8a70fb25ddbb50bf33e +"@swc/counter@npm:^0.1.2": + version: 0.1.3 + resolution: "@swc/counter@npm:0.1.3" + checksum: df8f9cfba9904d3d60f511664c70d23bb323b3a0803ec9890f60133954173047ba9bdeabce28cd70ba89ccd3fd6c71c7b0bd58be85f611e1ffbe5d5c18616598 languageName: node linkType: hard @@ -6765,113 +7205,119 @@ __metadata: languageName: node linkType: hard -"@trezor/analytics@npm:1.0.12": - version: 1.0.12 - resolution: "@trezor/analytics@npm:1.0.12" +"@trezor/analytics@npm:1.0.14": + version: 1.0.14 + resolution: "@trezor/analytics@npm:1.0.14" dependencies: - "@trezor/env-utils": 1.0.11 - "@trezor/utils": 9.0.17 + "@trezor/env-utils": 1.0.13 + "@trezor/utils": 9.0.21 peerDependencies: tslib: ^2.6.2 - checksum: 846bc3d4da9e26d5e44dba4500bc774f1495bba66e1a4d65e3eb2f5d3867af7abe3fc1c4ad0aeed515ab20e182aa3e3af13fef6c3b4aa68029c8859b218679a8 + checksum: 526842a66af608c90904b51f7c5a71ab4686eaeafd5ca37b96a922653739a908ff29907dab3a6bce7af65e42675ea14901b8768740cb27e99d9310765f6ea024 languageName: node linkType: hard -"@trezor/blockchain-link-types@npm:1.0.10": - version: 1.0.10 - resolution: "@trezor/blockchain-link-types@npm:1.0.10" - checksum: 03ea3264cec28743eee826af41e71a9e48de438ffe53cc5382768966d553868dcce92b3d332c6c7e13a6ee485278d74b880bdd409e2067d26b3f18b4637c2f8e +"@trezor/blockchain-link-types@npm:1.0.13": + version: 1.0.13 + resolution: "@trezor/blockchain-link-types@npm:1.0.13" + dependencies: + "@solana/web3.js": ^1.87.6 + "@trezor/type-utils": 1.0.4 + "@trezor/utxo-lib": 2.0.6 + socks-proxy-agent: 6.1.1 + checksum: 501c7808075ba8e7c72833f376a5756b3dcc1f9bd95ff4793f2ef8928dad38d58e46c9a9c7abfd5e8e75f6bcfeef566481a8923f1c565e989061903422861c8a languageName: node linkType: hard -"@trezor/blockchain-link-utils@npm:1.0.11": - version: 1.0.11 - resolution: "@trezor/blockchain-link-utils@npm:1.0.11" +"@trezor/blockchain-link-utils@npm:1.0.14": + version: 1.0.14 + resolution: "@trezor/blockchain-link-utils@npm:1.0.14" dependencies: "@mobily/ts-belt": ^3.13.1 "@solana/web3.js": ^1.87.6 - "@trezor/utils": 9.0.17 + "@trezor/utils": 9.0.21 bignumber.js: ^9.1.1 peerDependencies: tslib: ^2.6.2 - checksum: bd5cc9e714588cb06f62a7552788ca8403c2a0e51b013e2b9445d780f0639c45308a89a0f815998a0e24d697b3db32cfb00956b31e572d0fb665251565c06262 + checksum: 7f479d6c5ef612f3e49502edaaff6d25575c2c1fb1d611f84a5ab37165fd316b4d6317eebfd2210ca25b7b0d2b1be76bb33675ef52ec623f87e137187152e49a languageName: node linkType: hard -"@trezor/blockchain-link@npm:2.1.21": - version: 2.1.21 - resolution: "@trezor/blockchain-link@npm:2.1.21" +"@trezor/blockchain-link@npm:2.1.25": + version: 2.1.25 + resolution: "@trezor/blockchain-link@npm:2.1.25" dependencies: "@solana/buffer-layout": ^4.0.1 "@solana/web3.js": ^1.87.6 - "@trezor/blockchain-link-types": 1.0.10 - "@trezor/blockchain-link-utils": 1.0.11 - "@trezor/utils": 9.0.17 - "@trezor/utxo-lib": 2.0.3 + "@trezor/blockchain-link-types": 1.0.13 + "@trezor/blockchain-link-utils": 1.0.14 + "@trezor/utils": 9.0.21 + "@trezor/utxo-lib": 2.0.6 "@types/web": ^0.0.119 bignumber.js: ^9.1.1 events: ^3.3.0 ripple-lib: ^1.10.1 socks-proxy-agent: 6.1.1 - ws: 7.5.9 + ws: ^8.16.0 peerDependencies: tslib: ^2.6.2 - checksum: 28c6874bea756a0359b286998f4a24018f3b7dedfbad552af1e92bce6cfd513badf4cb72b178ebce16c608cb8d23e51d1b2c81399f80c3a8dcd838112dbfceb5 + checksum: 1319833970c5a0f64a7b6f9819d254f4ea984e8d9a13686216c2f5e76008d13ba0f8e9b41539e70369e6f220d35c38b7e16db12718202ec77aa51d60d882be93 languageName: node linkType: hard -"@trezor/connect-analytics@npm:1.0.11": - version: 1.0.11 - resolution: "@trezor/connect-analytics@npm:1.0.11" +"@trezor/connect-analytics@npm:1.0.12": + version: 1.0.12 + resolution: "@trezor/connect-analytics@npm:1.0.12" dependencies: - "@trezor/analytics": 1.0.12 + "@trezor/analytics": 1.0.14 peerDependencies: tslib: ^2.6.2 - checksum: 3cf73a36bdcafbae1627e0a35961abce62e28182e73e1295cf934f22dd15ad226d74ae5069ae7b3816da3ba2f92f237d13340ac0c40b2144386c7cd212e26ced + checksum: 44515d44f9ba205585a3f0772a9859029470f570bbb0ec0958b23e9afa74e60244530f2d363e91b18f2cd1b8cc5e6679f5416ac31944db423f8810e5f6ecf469 languageName: node linkType: hard -"@trezor/connect-common@npm:0.0.25": - version: 0.0.25 - resolution: "@trezor/connect-common@npm:0.0.25" +"@trezor/connect-common@npm:0.0.28": + version: 0.0.28 + resolution: "@trezor/connect-common@npm:0.0.28" dependencies: - "@trezor/env-utils": 1.0.11 - "@trezor/utils": 9.0.17 + "@trezor/env-utils": 1.0.13 + "@trezor/utils": 9.0.21 peerDependencies: tslib: ^2.6.2 - checksum: d67836184f0fb75bc991ba04d50df788582ab381cdd103dbde26387287017937c0a910abb7a2135f58c001f4bf4676dcd8a37fa08d24cd0b4a6470261e60dbf8 + checksum: 7a50e3bfa14f38f415d0b9348bf8e03529187a0950f7a680871d0f83728fc171d5e8a9621ef9613409e5a9010e70d1eb7827212988bf37f273cd2754982d9eb4 languageName: node linkType: hard -"@trezor/connect-web@npm:^9.1.9": - version: 9.1.9 - resolution: "@trezor/connect-web@npm:9.1.9" +"@trezor/connect-web@npm:^9.1.12": + version: 9.1.12 + resolution: "@trezor/connect-web@npm:9.1.12" dependencies: - "@trezor/connect": 9.1.9 - "@trezor/utils": 9.0.17 + "@trezor/connect": 9.1.12 + "@trezor/utils": 9.0.21 events: ^3.3.0 peerDependencies: tslib: ^2.6.2 - checksum: 8f72d0864bbb4540daec560ac8fb94393a378f2608903983f579084795e87cae2cf8e4611aa184029b5db1796089a9bd4928b0a3347262d29802e53cdfd3741a + checksum: 4e90044ae3e45048adb6d0456851c6903891620208deda9d848838dce4b233a5a7e8674bc4303d33a317638a926af5af029db60cbc63825717478ac80abef1a9 languageName: node linkType: hard -"@trezor/connect@npm:9.1.9": - version: 9.1.9 - resolution: "@trezor/connect@npm:9.1.9" +"@trezor/connect@npm:9.1.12": + version: 9.1.12 + resolution: "@trezor/connect@npm:9.1.12" dependencies: "@ethereumjs/common": ^4.1.0 "@ethereumjs/tx": ^5.1.0 "@fivebinaries/coin-selection": 2.2.1 - "@trezor/blockchain-link": 2.1.21 - "@trezor/blockchain-link-types": 1.0.10 - "@trezor/connect-analytics": 1.0.11 - "@trezor/connect-common": 0.0.25 - "@trezor/protobuf": 1.0.5 + "@trezor/blockchain-link": 2.1.25 + "@trezor/blockchain-link-types": 1.0.13 + "@trezor/connect-analytics": 1.0.12 + "@trezor/connect-common": 0.0.28 + "@trezor/protobuf": 1.0.8 "@trezor/protocol": 1.0.5 - "@trezor/transport": 1.1.20 - "@trezor/utils": 9.0.17 - "@trezor/utxo-lib": 2.0.3 + "@trezor/schema-utils": 1.0.1 + "@trezor/transport": 1.1.24 + "@trezor/utils": 9.0.21 + "@trezor/utxo-lib": 2.0.6 bignumber.js: ^9.1.1 blakejs: ^1.2.1 bs58: ^5.0.0 @@ -6880,40 +7326,38 @@ __metadata: events: ^3.3.0 peerDependencies: tslib: ^2.6.2 - checksum: acd40514bec2f17e29afcfbd6dd116e3cdc296df8d87a62898f390d3c71d4a1b52e16687e66200a9035b10be3c3174f45345bdddffb031f92f0bca528b708854 + checksum: bd7d51bea59a06fdf214be25ecfa3f7f636b2ebbfda9c1b2e796a07a22b56a25c6836087e9dc3805eae05d31faadb9982fedfd576b2b6c1f6993fcc27f55a2b7 languageName: node linkType: hard -"@trezor/env-utils@npm:1.0.11": - version: 1.0.11 - resolution: "@trezor/env-utils@npm:1.0.11" +"@trezor/env-utils@npm:1.0.13": + version: 1.0.13 + resolution: "@trezor/env-utils@npm:1.0.13" dependencies: ua-parser-js: ^1.0.37 peerDependencies: - expo-localization: ^14.1.1 - react-native: 0.71.8 - react-native-config: ^1.5.0 + expo-localization: "*" + react-native: "*" tslib: ^2.6.2 peerDependenciesMeta: expo-localization: optional: true react-native: optional: true - react-native-config: - optional: true - checksum: 0671d5d9f13cf621e5619a07e3efe5bc9ecbef4b67ebf6440c03ece623f506cb15bd27dc524a860a84aa6075bcc1516380d6391bc1096410b8ef5243b6915974 + checksum: 8886cd5850ea61db0fb9a7965dff9984b148605c3fa33637e71d27473475edc53d7f565f414dbc9016453ce1c077dce8283e73151d8a580edab8c4afac0f7fd8 languageName: node linkType: hard -"@trezor/protobuf@npm:1.0.5": - version: 1.0.5 - resolution: "@trezor/protobuf@npm:1.0.5" +"@trezor/protobuf@npm:1.0.8": + version: 1.0.8 + resolution: "@trezor/protobuf@npm:1.0.8" dependencies: + "@trezor/schema-utils": 1.0.1 long: ^4.0.0 protobufjs: 7.2.5 peerDependencies: tslib: ^2.6.2 - checksum: fb1e933169b12eee6384b65459db18ac1b74de7c9cf39f37a9b7479110c94b770f84b015dbe16e7860379aed8fe8a33d56a3b3b557255e818983829ce9c8cd72 + checksum: 08e57f589f02c879dc34b1d30ff084de10d79331dc03d99fc144f620ba0542a396d0ff3761642ab83be4db5ccdb37e34fb7976b75bc7572e6866c3c46df9746e languageName: node linkType: hard @@ -6926,13 +7370,23 @@ __metadata: languageName: node linkType: hard -"@trezor/transport@npm:1.1.20": - version: 1.1.20 - resolution: "@trezor/transport@npm:1.1.20" +"@trezor/schema-utils@npm:1.0.1": + version: 1.0.1 + resolution: "@trezor/schema-utils@npm:1.0.1" dependencies: - "@trezor/protobuf": 1.0.5 + "@sinclair/typebox": ^0.31.28 + ts-mixer: ^6.0.3 + checksum: b382049312422fd72de29febbd359feed2f30ac71c6ffbe983acd07fee71cef04fc651a3eff7427e8b14c029a40d24501e651c99b946e274f6352baf59120e17 + languageName: node + linkType: hard + +"@trezor/transport@npm:1.1.24": + version: 1.1.24 + resolution: "@trezor/transport@npm:1.1.24" + dependencies: + "@trezor/protobuf": 1.0.8 "@trezor/protocol": 1.0.5 - "@trezor/utils": 9.0.17 + "@trezor/utils": 9.0.21 cross-fetch: ^4.0.0 json-stable-stringify: ^1.0.2 long: ^4.0.0 @@ -6940,24 +7394,31 @@ __metadata: usb: ^2.11.0 peerDependencies: tslib: ^2.6.2 - checksum: b2674559864cf97963de0836da383061abea863e1888a6a624c294b2ef8137eca250e91bfe48c575fc7e25bd94a9c3f758bd060c93bef471093b1aa2c6d906bf + checksum: 7f818406e9cbabc42c23205ef7b4b5f164ad70f8a562abaa901f7a72288b78a7354e4e860515c82a2055f2a0e37a3cf7b2217d3b4183b901b38b7d90e62b5ccb + languageName: node + linkType: hard + +"@trezor/type-utils@npm:1.0.4": + version: 1.0.4 + resolution: "@trezor/type-utils@npm:1.0.4" + checksum: b73fb3ee4b0382dfe9ab93a7a43b35b236fd2288a4c6384c197dbf41d974dfcae793b56d0343a4ffe2714fd913d9cde6c7976cd4b84a79f1862c2217cd503f85 languageName: node linkType: hard -"@trezor/utils@npm:9.0.17": - version: 9.0.17 - resolution: "@trezor/utils@npm:9.0.17" +"@trezor/utils@npm:9.0.21": + version: 9.0.21 + resolution: "@trezor/utils@npm:9.0.21" peerDependencies: tslib: ^2.6.2 - checksum: c1e044ad97d6b7c78c07951d1ca522bcba85136e5b297012581780a6c80352c13d83a77a7b0e65f514fd08caccbb5ec0ac604cbc54cf5b42bfc9b28ed85c4dcd + checksum: 35f426fefec7ca0dae04f88d301b541c8b73c143cfc0e588061267af5bc05bcfed87e6ba29e4f19e2d76e80ff834c370f9a5b33e6a010f80f5eedcb297c498e6 languageName: node linkType: hard -"@trezor/utxo-lib@npm:2.0.3": - version: 2.0.3 - resolution: "@trezor/utxo-lib@npm:2.0.3" +"@trezor/utxo-lib@npm:2.0.6": + version: 2.0.6 + resolution: "@trezor/utxo-lib@npm:2.0.6" dependencies: - "@trezor/utils": 9.0.17 + "@trezor/utils": 9.0.21 bchaddrjs: ^0.5.2 bech32: ^2.0.0 bip66: ^1.1.5 @@ -6977,7 +7438,7 @@ __metadata: wif: ^4.0.0 peerDependencies: tslib: ^2.6.2 - checksum: fb0048560d552a8c7d04f68de0586e971c0c2ccd3a30670e053a57f867a821ab72870763d6e6fdc36406e5033101f11743a763ad6bb4ad97953c2bd2aef63cfd + checksum: 699230c6cefb51b2693191e69347a16868bb20a5d6ae1d15ddb6a2bc688c8d2731b4d338affaa5c5085e8a3ac7d2fd0e5147c24ed61f0f58d1f056b57c4d1293 languageName: node linkType: hard @@ -7199,20 +7660,27 @@ __metadata: languageName: node linkType: hard -"@types/chai@npm:^4.2.0, @types/chai@npm:^4.3.11": +"@types/chai@npm:^4.2.0": version: 4.3.11 resolution: "@types/chai@npm:4.3.11" checksum: d0c05fe5d02b2e6bbca2bd4866a2ab20a59cf729bc04af0060e7a3277eaf2fb65651b90d4c74b0ebf1d152b4b1d49fa8e44143acef276a2bbaa7785fbe5642d3 languageName: node linkType: hard -"@types/chrome@npm:^0.0.258": - version: 0.0.258 - resolution: "@types/chrome@npm:0.0.258" +"@types/chai@npm:^4.3.12": + version: 4.3.12 + resolution: "@types/chai@npm:4.3.12" + checksum: 64e9354181046bfc78f527bba006f2e58b49efb702a501bdd1faec51e21e4d2248e7fb49843fd3f2189e3bf3680480b94e8a1ab6d097e67183bdeacd6d024ed6 + languageName: node + linkType: hard + +"@types/chrome@npm:^0.0.262": + version: 0.0.262 + resolution: "@types/chrome@npm:0.0.262" dependencies: "@types/filesystem": "*" "@types/har-format": "*" - checksum: 26aca5c46375929fee355f07d1003d8aaf9acc06e4da86d7671cbf5a615d238ac8b633b86d73fb5e009b2b432a3cd6aef8c639aa90d65382c5e7258dbe5e8449 + checksum: 52868e852abe6ed31d0b49e832ce01fb848ddd2cc9db25635f08cc942b94489d28895d76dad4e093dc70b6cb55cd39527a4c4c1c1fc2437fe19ef488493ded67 languageName: node linkType: hard @@ -7514,7 +7982,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0, @types/node@npm:^20.11.5": +"@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0": version: 20.11.5 resolution: "@types/node@npm:20.11.5" dependencies: @@ -7579,6 +8047,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^20.11.22": + version: 20.11.22 + resolution: "@types/node@npm:20.11.22" + dependencies: + undici-types: ~5.26.4 + checksum: ef8fd0b561c3c9810f3c23c990c856619232934e54308c84e79d4e39d44b66668eceb6eca89c64ebcbc78fb514446661ad58b0f8e6b5fa3d9ed9ff0983aac4ef + languageName: node + linkType: hard + "@types/normalize-package-data@npm:^2.4.0": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -7759,10 +8236,10 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^9.0.7": - version: 9.0.7 - resolution: "@types/uuid@npm:9.0.7" - checksum: c7321194aeba9ea173efd1e721403bdf4e7ae6945f8f8cdbc87c791f4b505ccf3dbc4a8883d90b394ef13b7c2dc778045792b05dbb23b3c746f8ea347804d448 +"@types/uuid@npm:^9.0.8": + version: 9.0.8 + resolution: "@types/uuid@npm:9.0.8" + checksum: b8c60b7ba8250356b5088302583d1704a4e1a13558d143c549c408bf8920535602ffc12394ede77f8a8083511b023704bc66d1345792714002bfa261b17c5275 languageName: node linkType: hard @@ -8368,26 +8845,26 @@ __metadata: languageName: node linkType: hard -"@vue/compiler-core@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/compiler-core@npm:3.4.15" +"@vue/compiler-core@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/compiler-core@npm:3.4.21" dependencies: - "@babel/parser": ^7.23.6 - "@vue/shared": 3.4.15 + "@babel/parser": ^7.23.9 + "@vue/shared": 3.4.21 entities: ^4.5.0 estree-walker: ^2.0.2 source-map-js: ^1.0.2 - checksum: 1610f715b8ab6de95aa9f904d484ed275cf39e947d3fbb92a8ff7d7178360b71cfeae2710ef819dbeb738e1f94bf191298449719a2ecc860389338bcdef220f5 + checksum: 0d6b7732bc5ca5b4561526bbe646f9acd09cd70561b6c822d15856347f21a009ebf30f2f85b1b7500f24f7c0333a2af8ee645c389abe52485c1f4724c982b306 languageName: node linkType: hard -"@vue/compiler-dom@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/compiler-dom@npm:3.4.15" +"@vue/compiler-dom@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/compiler-dom@npm:3.4.21" dependencies: - "@vue/compiler-core": 3.4.15 - "@vue/shared": 3.4.15 - checksum: 373968c2c603f4eb9ebbf5f31ca2dc89991c4c1b0cee0213e613ad8b4ee632a33174e92bd91e0f8ff65f55188b46b742b91269a098c1e421d8f8bc919d5adc25 + "@vue/compiler-core": 3.4.21 + "@vue/shared": 3.4.21 + checksum: f53e4f4e0afc954cede91a8cbeb3a4e053531a43a0f5999d1b18da443ca3f1f6fc9344a8741c72c5719a61bb34e18004ac88e16747bcf145ebc8a31188263690 languageName: node linkType: hard @@ -8402,30 +8879,30 @@ __metadata: languageName: node linkType: hard -"@vue/compiler-sfc@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/compiler-sfc@npm:3.4.15" +"@vue/compiler-sfc@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/compiler-sfc@npm:3.4.21" dependencies: - "@babel/parser": ^7.23.6 - "@vue/compiler-core": 3.4.15 - "@vue/compiler-dom": 3.4.15 - "@vue/compiler-ssr": 3.4.15 - "@vue/shared": 3.4.15 + "@babel/parser": ^7.23.9 + "@vue/compiler-core": 3.4.21 + "@vue/compiler-dom": 3.4.21 + "@vue/compiler-ssr": 3.4.21 + "@vue/shared": 3.4.21 estree-walker: ^2.0.2 - magic-string: ^0.30.5 - postcss: ^8.4.33 + magic-string: ^0.30.7 + postcss: ^8.4.35 source-map-js: ^1.0.2 - checksum: 4a707346c32b6deaec47c4bb1fddaaa6ec881e286db59de8922960f52a617ff7bebfcbe19e80c98a0fd91d0f575d962787f77c16ac10a7eaac7d938c48bfb4c7 + checksum: 226dc404be96a2811777825918d971feb42650e262159183548d64a463c4153fab97cdc2647224c609c89dbc0d930c6d9dbe6528ef52a1396b4b22163c20569a languageName: node linkType: hard -"@vue/compiler-ssr@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/compiler-ssr@npm:3.4.15" +"@vue/compiler-ssr@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/compiler-ssr@npm:3.4.21" dependencies: - "@vue/compiler-dom": 3.4.15 - "@vue/shared": 3.4.15 - checksum: 45a12ae2dd2e645db53d43b3c27df1d8fbf0584199d6e5581c96b4566d889376f5da411f8e453e113e3dcae0f2cc80b6f6fb36110f3f42f5cc260e48a99dd37f + "@vue/compiler-dom": 3.4.21 + "@vue/shared": 3.4.21 + checksum: c510bee68b1a5b7f8ae3fe771c10ce9c397f876a234ced9df89e4a8353f3874870857e929cbb37e6d785d355b43f2264dc3a7fd5cb6867dc5b39ddca607ea3ed languageName: node linkType: hard @@ -8456,6 +8933,13 @@ __metadata: languageName: node linkType: hard +"@vue/devtools-api@npm:^6.5.1": + version: 6.6.1 + resolution: "@vue/devtools-api@npm:6.6.1" + checksum: cf12b5ebcc7729725087072289410107b55bb82e0b86b8442e4e85516977110a8a3f4e1dec763be8b567a59173703b4e9c0ac1b0489bb2bb81363af7ea258a27 + languageName: node + linkType: hard + "@vue/eslint-config-typescript@npm:^11.0.3": version: 11.0.3 resolution: "@vue/eslint-config-typescript@npm:11.0.3" @@ -8474,52 +8958,52 @@ __metadata: languageName: node linkType: hard -"@vue/reactivity@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/reactivity@npm:3.4.15" +"@vue/reactivity@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/reactivity@npm:3.4.21" dependencies: - "@vue/shared": 3.4.15 - checksum: e1f8ef7ec3e933b5dd5e3aa3e281c38d1fd2834772016ea5193058d80342704afbed0e7728cf31eb5762c2705785eec98b3d154ae22005691bee5b35125a4d7c + "@vue/shared": 3.4.21 + checksum: 79c7ebe3ec9295cdcb4d762e3a4c0e3eb67d7f12c9deb37baf372c4f48cd5914cdeeba14add433c3149b9c4dd890dc9891ee76e9d13c8ebcd521b5a754a8cc0d languageName: node linkType: hard -"@vue/runtime-core@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/runtime-core@npm:3.4.15" +"@vue/runtime-core@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/runtime-core@npm:3.4.21" dependencies: - "@vue/reactivity": 3.4.15 - "@vue/shared": 3.4.15 - checksum: 6ab6721410ce5379d3a0de8632527be5cae26adda33854bd32117cf395713d41980f47b3774ba4dfbe7242377397d61a5728aa14b6a0fbd9e8f77049ef1ca4a4 + "@vue/reactivity": 3.4.21 + "@vue/shared": 3.4.21 + checksum: 4eb9b5d91fe58bc5b3f38293099d704ba7699a16d4ce68de03fbe5fc703e521ebfe3cefc156ef866d2ce0cbd1c2af1795674b39ab2b764bfedc069aa05233231 languageName: node linkType: hard -"@vue/runtime-dom@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/runtime-dom@npm:3.4.15" +"@vue/runtime-dom@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/runtime-dom@npm:3.4.21" dependencies: - "@vue/runtime-core": 3.4.15 - "@vue/shared": 3.4.15 + "@vue/runtime-core": 3.4.21 + "@vue/shared": 3.4.21 csstype: ^3.1.3 - checksum: 4f2e79d95688dc110629d4879ce6cc9bdaf284a29636c28ea9bc5cb420649eaac7d1a545e11d54516311b0cfdc507a2979aaaf89e9eddd386d41ee36d29db60e + checksum: ebfdaa081fb7f18214a4e3324a7b58cc1bfe9b585cfc9dc5cf2ee480f233f992c32a6a3a3b595040babf26570ca18e748049d9284c42beceac8665e8f4ce5383 languageName: node linkType: hard -"@vue/server-renderer@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/server-renderer@npm:3.4.15" +"@vue/server-renderer@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/server-renderer@npm:3.4.21" dependencies: - "@vue/compiler-ssr": 3.4.15 - "@vue/shared": 3.4.15 + "@vue/compiler-ssr": 3.4.21 + "@vue/shared": 3.4.21 peerDependencies: - vue: 3.4.15 - checksum: de93ccffe7008a12974d6f82024238f7b7b25817aae6846dabdcfb8534a6ce01528f7b13447b2561394112e4b6fd1bd125c3391c0ac9d849c6de167bf44f4e55 + vue: 3.4.21 + checksum: faa3dc48767fc4308ffa031d07a6dbb362f26b0b8893f82747e6d879f046c373978402d1c15ed08267ebc0f090809cd3d554e6a4f582affcefb5239be5d4860c languageName: node linkType: hard -"@vue/shared@npm:3.4.15": - version: 3.4.15 - resolution: "@vue/shared@npm:3.4.15" - checksum: 237db3a880692c69358c46679562cee85d8495090a3c8ed44a4d4daa7c4a61d74e330b9bd1f3cec7362a2ae443f46186be8a86b44bff7604d5bd72ad994b8021 +"@vue/shared@npm:3.4.21": + version: 3.4.21 + resolution: "@vue/shared@npm:3.4.21" + checksum: 5f30a408911f339c647baa88c45c3a2f6d58dbdaf2bd404753690f24b612717bdfe9050401d8ffb02613a9a06dd0b43c8307420cd69fda6e92e6d65bf9bc0c6f languageName: node linkType: hard @@ -9581,6 +10065,17 @@ __metadata: languageName: node linkType: hard +"axios@npm:^1.6.5": + version: 1.6.7 + resolution: "axios@npm:1.6.7" + dependencies: + follow-redirects: ^1.15.4 + form-data: ^4.0.0 + proxy-from-env: ^1.1.0 + checksum: 87d4d429927d09942771f3b3a6c13580c183e31d7be0ee12f09be6d5655304996bb033d85e54be81606f4e89684df43be7bf52d14becb73a12727bf33298a082 + languageName: node + linkType: hard + "b4a@npm:^1.0.1": version: 1.6.4 resolution: "b4a@npm:1.6.4" @@ -11455,7 +11950,14 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.35.0, core-js@npm:^3.8.3": +"core-js@npm:^3.36.0": + version: 3.36.0 + resolution: "core-js@npm:3.36.0" + checksum: 48c807d5055ad0424f52d13583e96ddca2efcdc4e3cd9c479d60f269c8fe225191cd4e26a4593f43f7ef6dba08d161091147ecf8ae0300c15bc648a4f555217b + languageName: node + linkType: hard + +"core-js@npm:^3.8.3": version: 3.35.0 resolution: "core-js@npm:3.35.0" checksum: 25c224aca3df012b98f08f13ccbd8171ef5852acd33fd5e58e106d27f5f0c97de2fdbc520f0b4364d26253caf2deb3e5d265310f57d2a66ae6cc922850e649f0 @@ -12559,13 +13061,13 @@ __metadata: languageName: node linkType: hard -"echarts@npm:^5.4.3": - version: 5.4.3 - resolution: "echarts@npm:5.4.3" +"echarts@npm:^5.5.0": + version: 5.5.0 + resolution: "echarts@npm:5.5.0" dependencies: tslib: 2.3.0 - zrender: 5.4.4 - checksum: f4f69becf1cf8f546f9488ffa3bffaa971dcfbd49f5d635f288cbc8c5177839154bd6c325d6ed72c2b822c89c9bba4947ac73400614fd23c6f2f7ace3c939132 + zrender: 5.5.0 + checksum: 181600d21bc4ad6a877bac419800501345c4103ae49ef05a4db495c8dde91f0a5f7ff02eb94581190c59518526f7931e8410ce3fe5da1e0f1e60cd1aeec04a52 languageName: node linkType: hard @@ -12685,12 +13187,12 @@ __metadata: dependencies: "@commitlint/cli": ^17.8.1 "@commitlint/config-conventional": ^17.8.1 - "@swc/core": ^1.3.104 + "@swc/core": ^1.4.2 concurrently: ^8.2.2 devmoji: ^2.3.0 husky: ^8.0.3 node-notifier: ^10.0.1 - nodemon: ^3.0.3 + nodemon: ^3.1.0 ultra-runner: ^3.10.5 languageName: unknown linkType: soft @@ -13192,15 +13694,15 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.56.0": - version: 8.56.0 - resolution: "eslint@npm:8.56.0" +"eslint@npm:^8.57.0": + version: 8.57.0 + resolution: "eslint@npm:8.57.0" dependencies: "@eslint-community/eslint-utils": ^4.2.0 "@eslint-community/regexpp": ^4.6.1 "@eslint/eslintrc": ^2.1.4 - "@eslint/js": 8.56.0 - "@humanwhocodes/config-array": ^0.11.13 + "@eslint/js": 8.57.0 + "@humanwhocodes/config-array": ^0.11.14 "@humanwhocodes/module-importer": ^1.0.1 "@nodelib/fs.walk": ^1.2.8 "@ungap/structured-clone": ^1.2.0 @@ -13236,7 +13738,7 @@ __metadata: text-table: ^0.2.0 bin: eslint: bin/eslint.js - checksum: 883436d1e809b4a25d9eb03d42f584b84c408dbac28b0019f6ea07b5177940bf3cca86208f749a6a1e0039b63e085ee47aca1236c30721e91f0deef5cc5a5136 + checksum: 3a48d7ff85ab420a8447e9810d8087aea5b1df9ef68c9151732b478de698389ee656fd895635b5f2871c89ee5a2652b3f343d11e9db6f8486880374ebc74a2d9 languageName: node linkType: hard @@ -14091,6 +14593,16 @@ __metadata: languageName: node linkType: hard +"follow-redirects@npm:^1.15.4": + version: 1.15.5 + resolution: "follow-redirects@npm:1.15.5" + peerDependenciesMeta: + debug: + optional: true + checksum: 5ca49b5ce6f44338cbfc3546823357e7a70813cecc9b7b768158a1d32c1e62e7407c944402a918ea8c38ae2e78266312d617dc68783fac502cbb55e1047b34ec + languageName: node + linkType: hard + "for-each@npm:^0.3.3": version: 0.3.3 resolution: "for-each@npm:0.3.3" @@ -14581,6 +15093,19 @@ __metadata: languageName: node linkType: hard +"glob@npm:8.1.0, glob@npm:^8.0.0, glob@npm:^8.0.3": + version: 8.1.0 + resolution: "glob@npm:8.1.0" + dependencies: + fs.realpath: ^1.0.0 + inflight: ^1.0.4 + inherits: 2 + minimatch: ^5.0.1 + once: ^1.3.0 + checksum: 92fbea3221a7d12075f26f0227abac435de868dd0736a17170663783296d0dd8d3d532a5672b4488a439bf5d7fb85cdd07c11185d6cd39184f0385cbdfb86a47 + languageName: node + linkType: hard + "glob@npm:^10.3.7": version: 10.3.10 resolution: "glob@npm:10.3.10" @@ -14596,19 +15121,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:^8.0.0, glob@npm:^8.0.3": - version: 8.1.0 - resolution: "glob@npm:8.1.0" - dependencies: - fs.realpath: ^1.0.0 - inflight: ^1.0.4 - inherits: 2 - minimatch: ^5.0.1 - once: ^1.3.0 - checksum: 92fbea3221a7d12075f26f0227abac435de868dd0736a17170663783296d0dd8d3d532a5672b4488a439bf5d7fb85cdd07c11185d6cd39184f0385cbdfb86a47 - languageName: node - linkType: hard - "global-dirs@npm:^0.1.1": version: 0.1.1 resolution: "global-dirs@npm:0.1.1" @@ -17184,7 +17696,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.3, magic-string@npm:^0.30.5": +"magic-string@npm:^0.30.3": version: 0.30.5 resolution: "magic-string@npm:0.30.5" dependencies: @@ -17193,6 +17705,15 @@ __metadata: languageName: node linkType: hard +"magic-string@npm:^0.30.7": + version: 0.30.7 + resolution: "magic-string@npm:0.30.7" + dependencies: + "@jridgewell/sourcemap-codec": ^1.4.15 + checksum: bdf102e36a44d1728ec61b69d655caba3f66ca58898e292f6debe57dc30896bd37908bfe3464a7464a435831a9e44aa905cebd681e21c2f44bbe4dddf225619f + languageName: node + linkType: hard + "make-dir@npm:^2.1.0": version: 2.1.0 resolution: "make-dir@npm:2.1.0" @@ -17739,9 +18260,9 @@ __metadata: languageName: node linkType: hard -"mocha@npm:^10.2.0": - version: 10.2.0 - resolution: "mocha@npm:10.2.0" +"mocha@npm:^10.3.0": + version: 10.3.0 + resolution: "mocha@npm:10.3.0" dependencies: ansi-colors: 4.1.1 browser-stdout: 1.3.1 @@ -17750,13 +18271,12 @@ __metadata: diff: 5.0.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 - glob: 7.2.0 + glob: 8.1.0 he: 1.2.0 js-yaml: 4.1.0 log-symbols: 4.1.0 minimatch: 5.0.1 ms: 2.1.3 - nanoid: 3.3.3 serialize-javascript: 6.0.0 strip-json-comments: 3.1.1 supports-color: 8.1.1 @@ -17767,7 +18287,7 @@ __metadata: bin: _mocha: bin/_mocha mocha: bin/mocha.js - checksum: 406c45eab122ffd6ea2003c2f108b2bc35ba036225eee78e0c784b6fa2c7f34e2b13f1dbacef55a4fdf523255d76e4f22d1b5aacda2394bd11666febec17c719 + checksum: b5e95b9c270b2c33589e2f19d7ee37ac7577c0d471152d4e2692ebf4bc606a36040da4fbadc1e482b4cf5a0784daac7556bb962ad7b23143086b34a58e43e211 languageName: node linkType: hard @@ -18018,15 +18538,6 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:3.3.3": - version: 3.3.3 - resolution: "nanoid@npm:3.3.3" - bin: - nanoid: bin/nanoid.cjs - checksum: ada019402a07464a694553c61d2dca8a4353645a7d92f2830f0d487fedff403678a0bee5323a46522752b2eab95a0bc3da98b6cccaa7c0c55cd9975130e6d6f0 - languageName: node - linkType: hard - "nanoid@npm:^3.3.7": version: 3.3.7 resolution: "nanoid@npm:3.3.7" @@ -18140,6 +18651,17 @@ __metadata: languageName: node linkType: hard +"nock@npm:^13.5.0": + version: 13.5.4 + resolution: "nock@npm:13.5.4" + dependencies: + debug: ^4.1.0 + json-stringify-safe: ^5.0.1 + propagate: ^2.0.0 + checksum: d31f924e34c87ae985edfb7b5a56e8a4dcfc3a072334ceb6d686326581f93090b3e23492663a64ce61b8df4f365b113231d926bc300bcfe9e5eb309c3e4b8628 + languageName: node + linkType: hard + "node-addon-api@npm:^2.0.0": version: 2.0.2 resolution: "node-addon-api@npm:2.0.2" @@ -18274,9 +18796,9 @@ __metadata: languageName: node linkType: hard -"nodemon@npm:^3.0.3": - version: 3.0.3 - resolution: "nodemon@npm:3.0.3" +"nodemon@npm:^3.1.0": + version: 3.1.0 + resolution: "nodemon@npm:3.1.0" dependencies: chokidar: ^3.5.2 debug: ^4 @@ -18290,7 +18812,7 @@ __metadata: undefsafe: ^2.0.5 bin: nodemon: bin/nodemon.js - checksum: 121ebb6349167d87cefd5767ec453ceb49ec5a8d50146134a54b0e25502c29ad01caaa41460e303b35728439012564782d278b3fef3c615f3c278979c2b7d586 + checksum: 0b721f66ee60d9bf092f6101965bc65769698fa2921d0283d90bbf3f0906aa4f3ac77316682375bd7f09c91679fddb131aa39f9fc839fea57061bbc8e81b60e3 languageName: node linkType: hard @@ -19747,7 +20269,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.2.6, postcss@npm:^8.3.5, postcss@npm:^8.4.14, postcss@npm:^8.4.33, postcss@npm:^8.4.7": +"postcss@npm:^8.2.6, postcss@npm:^8.3.5, postcss@npm:^8.4.14, postcss@npm:^8.4.7": version: 8.4.33 resolution: "postcss@npm:8.4.33" dependencies: @@ -19758,6 +20280,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.4.35": + version: 8.4.35 + resolution: "postcss@npm:8.4.35" + dependencies: + nanoid: ^3.3.7 + picocolors: ^1.0.0 + source-map-js: ^1.0.2 + checksum: cf3c3124d3912a507603f6d9a49b3783f741075e9aa73eb592a6dd9194f9edab9d20a8875d16d137d4f779fe7b6fbd1f5727e39bfd1c3003724980ee4995e1da + languageName: node + linkType: hard + "prando@npm:^6.0.1": version: 6.0.1 resolution: "prando@npm:6.0.1" @@ -21042,6 +21575,13 @@ __metadata: languageName: node linkType: hard +"scale-ts@npm:^1.4.3": + version: 1.6.0 + resolution: "scale-ts@npm:1.6.0" + checksum: 2cd6d3e31ea78621fe2e068eedc3beb6a3cfc338c9033f04ec3e355b4b08e134febad655c54a80272a50737136a27436f9d14d6525b126e621a3b77524111056 + languageName: node + linkType: hard + "scheduler@npm:^0.23.0": version: 0.23.0 resolution: "scheduler@npm:0.23.0" @@ -21244,6 +21784,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.6.0": + version: 7.6.0 + resolution: "semver@npm:7.6.0" + dependencies: + lru-cache: ^6.0.0 + bin: + semver: bin/semver.js + checksum: 7427f05b70786c696640edc29fdd4bc33b2acf3bbe1740b955029044f80575fc664e1a512e4113c3af21e767154a94b4aa214bf6cd6e42a1f6dba5914e0b208c + languageName: node + linkType: hard + "send@npm:0.17.2": version: 0.17.2 resolution: "send@npm:0.17.2" @@ -21581,6 +22132,15 @@ __metadata: languageName: node linkType: hard +"smoldot@npm:2.0.21": + version: 2.0.21 + resolution: "smoldot@npm:2.0.21" + dependencies: + ws: ^8.8.1 + checksum: 464f23dd20e8156ab63dfdccf719da9a9e245b4c1581844c3d76ab64384154f578261810d9f3d1957739577a1bccbf51b6a7467f7862f092c45b47f8e1e7b9a4 + languageName: node + linkType: hard + "smoldot@npm:2.0.7": version: 2.0.7 resolution: "smoldot@npm:2.0.7" @@ -22360,12 +22920,12 @@ __metadata: languageName: node linkType: hard -"systeminformation@npm:^5.21.22": - version: 5.21.22 - resolution: "systeminformation@npm:5.21.22" +"systeminformation@npm:^5.22.0": + version: 5.22.0 + resolution: "systeminformation@npm:5.22.0" bin: systeminformation: lib/cli.js - checksum: 051b3f1abbabc3e0d1448df9a3d39ae705fc73efe1ac477c71106d3ae6d144681d5610fd6a7dfcf563c800b955bae7253b824b780b50cb05cba69f2222f72513 + checksum: 2e1871a0dde3b86202a67a51414cb2a161432ebffa3817fdfc22c5aab6357b54214939280e63c176f0634070270bf8f858c156b23753025929c734c4b2873a7a conditions: (os=darwin | os=linux | os=win32 | os=freebsd | os=openbsd | os=netbsd | os=sunos | os=android) languageName: node linkType: hard @@ -22766,6 +23326,13 @@ __metadata: languageName: node linkType: hard +"ts-mixer@npm:^6.0.3": + version: 6.0.4 + resolution: "ts-mixer@npm:6.0.4" + checksum: 36b1af526befd74345e736e9aa16f5c28876ebcea07784da14d929149fd7e6028cfd2fe9304c8efe8cb91b588443a9cc9e991df58e4c6e602326edbaae2af3ab + languageName: node + linkType: hard + "ts-mocha@npm:^10.0.0": version: 10.0.0 resolution: "ts-mocha@npm:10.0.0" @@ -23719,9 +24286,9 @@ __metadata: languageName: node linkType: hard -"vue-echarts@npm:6.6.8": - version: 6.6.8 - resolution: "vue-echarts@npm:6.6.8" +"vue-echarts@npm:6.6.9": + version: 6.6.9 + resolution: "vue-echarts@npm:6.6.9" dependencies: resize-detector: ^0.3.0 vue-demi: ^0.13.11 @@ -23735,7 +24302,7 @@ __metadata: optional: true "@vue/runtime-core": optional: true - checksum: 9aed10b99e080402e89410a4fbce34a11b361490c81c0cb47018613d8c413ed4cc2eaff66534d770106a5bc15a084872cc18702e8134661866130e6b0f5f03da + checksum: 14698a19fef7998f4dbf5fb20450fb554ee292ae3f6bf0676dafb0e3f70bb06137fcbf9de13d5a0556deba035145d7b9df9ac0a35a14c11644305c77dd794b7d languageName: node linkType: hard @@ -23793,14 +24360,14 @@ __metadata: languageName: node linkType: hard -"vue-router@npm:4.2.5": - version: 4.2.5 - resolution: "vue-router@npm:4.2.5" +"vue-router@npm:4.3.0": + version: 4.3.0 + resolution: "vue-router@npm:4.3.0" dependencies: - "@vue/devtools-api": ^6.5.0 + "@vue/devtools-api": ^6.5.1 peerDependencies: vue: ^3.2.0 - checksum: 2449db4f3a1b3f0ccd16a3788000e47f0e26ca7035b6adf48ebd51d189eb2bad6c39664476cfad9c2ca22988032f5190c99970718495aa2a5c5595d50c8f71b9 + checksum: 0059261d39c8a6f61d3cdf4b74cfcd6a109062e0562f2db5a387cdf4d1b186dfdd2dddcacbf83ce2842d7c3ec9a63d8a6d427c4cec1db61372f4a06048496354 languageName: node linkType: hard @@ -23853,21 +24420,21 @@ __metadata: languageName: node linkType: hard -"vue@npm:^3.4.15": - version: 3.4.15 - resolution: "vue@npm:3.4.15" +"vue@npm:^3.4.21": + version: 3.4.21 + resolution: "vue@npm:3.4.21" dependencies: - "@vue/compiler-dom": 3.4.15 - "@vue/compiler-sfc": 3.4.15 - "@vue/runtime-dom": 3.4.15 - "@vue/server-renderer": 3.4.15 - "@vue/shared": 3.4.15 + "@vue/compiler-dom": 3.4.21 + "@vue/compiler-sfc": 3.4.21 + "@vue/runtime-dom": 3.4.21 + "@vue/server-renderer": 3.4.21 + "@vue/shared": 3.4.21 peerDependencies: typescript: "*" peerDependenciesMeta: typescript: optional: true - checksum: 6e9ff02c9bd46cb47ff2225e7b51b75b00343b7f52076a56c2a90ce15de88c1de1aaa6b176ac39ca324479ee208b7f7e7992f54a353b0ee6b303081ac5ab30b0 + checksum: 3c477982a0a9aadfa512eb625b67f35809f123e98a268ace52e3ee738b23a9b8d9461cfc1f2b314fb098047ab3aab50f8beea657a2d3ebe5aae0e02aa4f903d2 languageName: node linkType: hard @@ -23961,13 +24528,13 @@ __metadata: languageName: node linkType: hard -"web3-core-helpers@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core-helpers@npm:1.10.3" +"web3-core-helpers@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core-helpers@npm:1.10.4" dependencies: - web3-eth-iban: 1.10.3 - web3-utils: 1.10.3 - checksum: cd5a9f54620fa9c67d08bf7955d43f09260c23a9107201cdfc9455ec2cb04ce36d84f8c65529b86dbfcac2449b8a91c33383cb9cc6e70f1e554fd923e551cf16 + web3-eth-iban: 1.10.4 + web3-utils: 1.10.4 + checksum: a43fc382cd37ac1b6738a7a4e351ad113f0531b1022952c039480e48c14fb8c254ca9855236d6a2da3ad1ea918f7d8f07a64f17bc9784f035c9e38242e52b593 languageName: node linkType: hard @@ -24005,16 +24572,16 @@ __metadata: languageName: node linkType: hard -"web3-core-method@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core-method@npm:1.10.3" +"web3-core-method@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core-method@npm:1.10.4" dependencies: "@ethersproject/transactions": ^5.6.2 - web3-core-helpers: 1.10.3 - web3-core-promievent: 1.10.3 - web3-core-subscriptions: 1.10.3 - web3-utils: 1.10.3 - checksum: a1f707b4085605cc50fd8c17f2217f5f0508e4e2cee8112a3cded1b65b82c5027501c418651c80152ac940884209d3609068568bb8d2007ea07ba700f3e60d63 + web3-core-helpers: 1.10.4 + web3-core-promievent: 1.10.4 + web3-core-subscriptions: 1.10.4 + web3-utils: 1.10.4 + checksum: 98971d6568995bcc8cf6721aa587f4664373a502fbc20bd04ebe167d1c719d6e1ed2bdb0488f20e43abd82223ae813d5fa25a8e8da0e1ca60637d7578a09cac1 languageName: node linkType: hard @@ -24055,12 +24622,12 @@ __metadata: languageName: node linkType: hard -"web3-core-promievent@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core-promievent@npm:1.10.3" +"web3-core-promievent@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core-promievent@npm:1.10.4" dependencies: eventemitter3: 4.0.4 - checksum: 5406e3d84a4f02e301ddae7e560be7e83c0f5f87988e1b1efb141697d816bbba8e4ddd0d0160123745a43fa152a5b986135b16901639172490abee4f9e16d106 + checksum: a792c74aa5c91dc63fb493af04628ecfa08b9e6ceea402dfe53f718b019c41d63a0200bf3045dd23ec3c42b8d7474ac96eb4cb4456060becc551c2cacbd02bb1 languageName: node linkType: hard @@ -24095,16 +24662,16 @@ __metadata: languageName: node linkType: hard -"web3-core-requestmanager@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core-requestmanager@npm:1.10.3" +"web3-core-requestmanager@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core-requestmanager@npm:1.10.4" dependencies: util: ^0.12.5 - web3-core-helpers: 1.10.3 - web3-providers-http: 1.10.3 - web3-providers-ipc: 1.10.3 - web3-providers-ws: 1.10.3 - checksum: dfa64971fcdfaea6c0c041e4117f67bdd7af89b33b8f8bf41b51605a2803188705b39847d98a63d8c2899e7d81ec20236c33354b036e1843969fee1984c3aceb + web3-core-helpers: 1.10.4 + web3-providers-http: 1.10.4 + web3-providers-ipc: 1.10.4 + web3-providers-ws: 1.10.4 + checksum: 5f1520b756a3e4d252b96ad360a78b6c24f3825cf2448aee535fe857867f35d2cbbc6b9a8f1c2ffd2eebfdde14a4c82bac28f0760d5f8be6bdd7d37d88e6cd97 languageName: node linkType: hard @@ -24145,13 +24712,13 @@ __metadata: languageName: node linkType: hard -"web3-core-subscriptions@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core-subscriptions@npm:1.10.3" +"web3-core-subscriptions@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core-subscriptions@npm:1.10.4" dependencies: eventemitter3: 4.0.4 - web3-core-helpers: 1.10.3 - checksum: c996f9aa1c2bfad4e0fa91b79393909fcf9550e43e7d2a8e3ff822ca750a528839f52792e6e354d5617c94a5782868e57c5a928ae354a4e52748752bea381958 + web3-core-helpers: 1.10.4 + checksum: f79aedf5d5c14c4e73a0040fe5102905b79169a413c49f3887ade6709584803b648593d6f877524deb482d3b94860de42c54d4b50005298cbc69b7fc3ddf39db languageName: node linkType: hard @@ -24191,18 +24758,18 @@ __metadata: languageName: node linkType: hard -"web3-core@npm:1.10.3": - version: 1.10.3 - resolution: "web3-core@npm:1.10.3" +"web3-core@npm:1.10.4": + version: 1.10.4 + resolution: "web3-core@npm:1.10.4" dependencies: "@types/bn.js": ^5.1.1 "@types/node": ^12.12.6 bignumber.js: ^9.0.0 - web3-core-helpers: 1.10.3 - web3-core-method: 1.10.3 - web3-core-requestmanager: 1.10.3 - web3-utils: 1.10.3 - checksum: aab0ed09ccb38d842d205fda1c5505686e1f91f0ba408d96b49c962c91af2386552329124391a17f43918a18df383c63f521c64a56eff8513071ed48910afb5b + web3-core-helpers: 1.10.4 + web3-core-method: 1.10.4 + web3-core-requestmanager: 1.10.4 + web3-utils: 1.10.4 + checksum: 2f6fae35c15acf68c23f8ff696777cb5a7bf322fc00191e5c4b70850eaf494231d8f096e6dbe8993306d81b28bc65bb38c64afca85e1ddbd1419ee293da64bc0 languageName: node linkType: hard @@ -24246,13 +24813,13 @@ __metadata: languageName: node linkType: hard -"web3-eth-abi@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-abi@npm:1.10.3" +"web3-eth-abi@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-abi@npm:1.10.4" dependencies: "@ethersproject/abi": ^5.6.3 - web3-utils: 1.10.3 - checksum: 2740977211370efd69e78966d10bc69e7977c9204a5a64f4c96c995912ef791912f71333eee4b071727da35209ab0f4587ed08111ad7aa84ca7bb62ed0d1a486 + web3-utils: 1.10.4 + checksum: d7a2781f6d896028c6dfa5c37a412b47c884853769915f42c8006c9390cb44a2105c25dda2d8375990ff2dd4cc3c71112fe857250760f74eaa80464f564600bc languageName: node linkType: hard @@ -24295,9 +24862,9 @@ __metadata: languageName: node linkType: hard -"web3-eth-accounts@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-accounts@npm:1.10.3" +"web3-eth-accounts@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-accounts@npm:1.10.4" dependencies: "@ethereumjs/common": 2.6.5 "@ethereumjs/tx": 3.5.2 @@ -24305,11 +24872,11 @@ __metadata: eth-lib: 0.2.8 scrypt-js: ^3.0.1 uuid: ^9.0.0 - web3-core: 1.10.3 - web3-core-helpers: 1.10.3 - web3-core-method: 1.10.3 - web3-utils: 1.10.3 - checksum: cc1672be7e95d3f6438b4d40a882d9842430b87d057fd70a9ee5cc0fabdb4a9e1c266612ab55849e980df3b61f2d30ee25660334dbbeece50d2655794bb2f1fe + web3-core: 1.10.4 + web3-core-helpers: 1.10.4 + web3-core-method: 1.10.4 + web3-utils: 1.10.4 + checksum: e75e3441b38d51efaf437231f803bb86f02d7434ef1c57d184b9a7fe2c1ab733348908108153b079f54c53fb57c27673210dfd8d9b49e6352e4972ba1d097bd5 languageName: node linkType: hard @@ -24367,19 +24934,19 @@ __metadata: languageName: node linkType: hard -"web3-eth-contract@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-contract@npm:1.10.3" +"web3-eth-contract@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-contract@npm:1.10.4" dependencies: "@types/bn.js": ^5.1.1 - web3-core: 1.10.3 - web3-core-helpers: 1.10.3 - web3-core-method: 1.10.3 - web3-core-promievent: 1.10.3 - web3-core-subscriptions: 1.10.3 - web3-eth-abi: 1.10.3 - web3-utils: 1.10.3 - checksum: 8b12b1579d11bdefeecc063b9f4ca3e286e25549574a6131019f6b0eb9319b6ecf6304e5185a4874ee795da237482b9cc437c91c09db3c14d538537e819b3d0b + web3-core: 1.10.4 + web3-core-helpers: 1.10.4 + web3-core-method: 1.10.4 + web3-core-promievent: 1.10.4 + web3-core-subscriptions: 1.10.4 + web3-eth-abi: 1.10.4 + web3-utils: 1.10.4 + checksum: 421957a5d5242ece3421b69b33b8b1f092fc3e7f2d8959e554b91693e83ecaee1cf04dcc6acb34b3352a7b8e50b9194f159ddbf2493739d94399290cc7a070b5 languageName: node linkType: hard @@ -24432,19 +24999,19 @@ __metadata: languageName: node linkType: hard -"web3-eth-ens@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-ens@npm:1.10.3" +"web3-eth-ens@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-ens@npm:1.10.4" dependencies: content-hash: ^2.5.2 eth-ens-namehash: 2.0.8 - web3-core: 1.10.3 - web3-core-helpers: 1.10.3 - web3-core-promievent: 1.10.3 - web3-eth-abi: 1.10.3 - web3-eth-contract: 1.10.3 - web3-utils: 1.10.3 - checksum: 6b3e8a2e02f6f044efb20e4c47a82c975c2ca70c1fdb34301abdb5cbcffd9e9cd2918c71eb464430743e361fd5c5dff5d265365d9b6803e505f726f0a2f32f14 + web3-core: 1.10.4 + web3-core-helpers: 1.10.4 + web3-core-promievent: 1.10.4 + web3-eth-abi: 1.10.4 + web3-eth-contract: 1.10.4 + web3-utils: 1.10.4 + checksum: b29d2f7f944081df9c3617a56243ad98c7b69e32db803856a2b6d097b3ae914a3c472cc377fc2cc6bba7ced43eeba1c2830cf3ff5a29e0aa63d5a66c257035f5 languageName: node linkType: hard @@ -24491,13 +25058,13 @@ __metadata: languageName: node linkType: hard -"web3-eth-iban@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-iban@npm:1.10.3" +"web3-eth-iban@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-iban@npm:1.10.4" dependencies: bn.js: ^5.2.1 - web3-utils: 1.10.3 - checksum: 0603b45164e55a303215a6aa120eba68a63f7e9e9deffce67fd1d38623ba75696e4b4e0922b733c64a9a72c04f6ad7c90ca287d1d4c32868754fea0cac731917 + web3-utils: 1.10.4 + checksum: a3304a9fc56d003ebc2263a835f8f229e0164b025e718ecb4c64d5a9771f4146951d07f5a51d2bc6f3888f26f838bfb9778ca3cf0621ae5dd25206c3024ed8b6 languageName: node linkType: hard @@ -24535,17 +25102,17 @@ __metadata: languageName: node linkType: hard -"web3-eth-personal@npm:1.10.3": - version: 1.10.3 - resolution: "web3-eth-personal@npm:1.10.3" +"web3-eth-personal@npm:1.10.4": + version: 1.10.4 + resolution: "web3-eth-personal@npm:1.10.4" dependencies: "@types/node": ^12.12.6 - web3-core: 1.10.3 - web3-core-helpers: 1.10.3 - web3-core-method: 1.10.3 - web3-net: 1.10.3 - web3-utils: 1.10.3 - checksum: 970d666deb45d6f2228c399b43114154cb66c43ec66e6065afa267f37dde8b3db217ac4e4a0ff1c7374cc9aa361b04cc3e35c6249bb1e81a417c3eccb9e5bc8e + web3-core: 1.10.4 + web3-core-helpers: 1.10.4 + web3-core-method: 1.10.4 + web3-net: 1.10.4 + web3-utils: 1.10.4 + checksum: cf6f1be5961bf7eb7447bbce2298db762902badf358110468b5fbd36f1833d4583e6fa2562f187f0b08b1291d97081fe929a92023acff521a8ac7c96a6ac26fa languageName: node linkType: hard @@ -24638,23 +25205,23 @@ __metadata: languageName: node linkType: hard -"web3-eth@npm:^1.10.3": - version: 1.10.3 - resolution: "web3-eth@npm:1.10.3" +"web3-eth@npm:^1.10.4": + version: 1.10.4 + resolution: "web3-eth@npm:1.10.4" dependencies: - web3-core: 1.10.3 - web3-core-helpers: 1.10.3 - web3-core-method: 1.10.3 - web3-core-subscriptions: 1.10.3 - web3-eth-abi: 1.10.3 - web3-eth-accounts: 1.10.3 - web3-eth-contract: 1.10.3 - web3-eth-ens: 1.10.3 - web3-eth-iban: 1.10.3 - web3-eth-personal: 1.10.3 - web3-net: 1.10.3 - web3-utils: 1.10.3 - checksum: 2ead7392b0eaf30152743e427fa3e4376683b6ba1a809434a0580bd9a7a37199c1a522f546a781057b48d99771d1b92435fc228d75e1906e3f40bab1fc996fb1 + web3-core: 1.10.4 + web3-core-helpers: 1.10.4 + web3-core-method: 1.10.4 + web3-core-subscriptions: 1.10.4 + web3-eth-abi: 1.10.4 + web3-eth-accounts: 1.10.4 + web3-eth-contract: 1.10.4 + web3-eth-ens: 1.10.4 + web3-eth-iban: 1.10.4 + web3-eth-personal: 1.10.4 + web3-net: 1.10.4 + web3-utils: 1.10.4 + checksum: 6ffb0210d151ea0c98b297bc99ae9895f94792cc188444337a578e143ee729330af98d133461623f85f4b545e47166af999eabd3ed14f5b7d6245c131d3507d9 languageName: node linkType: hard @@ -24669,14 +25236,14 @@ __metadata: languageName: node linkType: hard -"web3-net@npm:1.10.3": - version: 1.10.3 - resolution: "web3-net@npm:1.10.3" +"web3-net@npm:1.10.4": + version: 1.10.4 + resolution: "web3-net@npm:1.10.4" dependencies: - web3-core: 1.10.3 - web3-core-method: 1.10.3 - web3-utils: 1.10.3 - checksum: 35ab560f51d5fa4d241ef514c0d7894b187a76ce7a73b03046281348e0ed2080eb20b8acb263ceb66b4e7874ecd4016833a83c24eae39fd4179cb53674c2b840 + web3-core: 1.10.4 + web3-core-method: 1.10.4 + web3-utils: 1.10.4 + checksum: 7f28f58ed1521bd805d63340994be436812e771e8edaa00aea568fa7ae3374746fb5f5aa6ac67632862a739833dfea6ffa92f4df4bca7c394b2608c603e1eda6 languageName: node linkType: hard @@ -24714,15 +25281,15 @@ __metadata: languageName: node linkType: hard -"web3-providers-http@npm:1.10.3": - version: 1.10.3 - resolution: "web3-providers-http@npm:1.10.3" +"web3-providers-http@npm:1.10.4": + version: 1.10.4 + resolution: "web3-providers-http@npm:1.10.4" dependencies: abortcontroller-polyfill: ^1.7.5 cross-fetch: ^4.0.0 es6-promise: ^4.2.8 - web3-core-helpers: 1.10.3 - checksum: 4b60778d1e7c0ca13aa7b348b9b9140c68851cf346989fc89c53cad5f2ae3c99a54eac78211d47feb513cf108db35df136a85e6a376fefd035a3fe93fbd0035d + web3-core-helpers: 1.10.4 + checksum: a868037ed9914dc70cb01599718f8f60cab35c2219c83b70a46e848f0e83268fc4b3f6e25578f07b614c0dad74a4c32d6b3e250b5be2734c0316212035c94ef1 languageName: node linkType: hard @@ -24756,13 +25323,13 @@ __metadata: languageName: node linkType: hard -"web3-providers-ipc@npm:1.10.3": - version: 1.10.3 - resolution: "web3-providers-ipc@npm:1.10.3" +"web3-providers-ipc@npm:1.10.4": + version: 1.10.4 + resolution: "web3-providers-ipc@npm:1.10.4" dependencies: oboe: 2.1.5 - web3-core-helpers: 1.10.3 - checksum: 54c2c13ab58b6712c54adfa1040bc9f3328843a5d0b649b1a30994dadae219427e72d3ba41e352f254c35858de42e988a3d36ef5e6a1f8e0b1a608e07e8c2591 + web3-core-helpers: 1.10.4 + checksum: bd8b689e884b604678f927080b4634cb4c5e2c83ec55f6add20d2e948e66845da8342f15b0d08fc626d1cbeb1f584b276931f5f195c599149bb0605f915c8bb2 languageName: node linkType: hard @@ -24798,14 +25365,14 @@ __metadata: languageName: node linkType: hard -"web3-providers-ws@npm:1.10.3": - version: 1.10.3 - resolution: "web3-providers-ws@npm:1.10.3" +"web3-providers-ws@npm:1.10.4": + version: 1.10.4 + resolution: "web3-providers-ws@npm:1.10.4" dependencies: eventemitter3: 4.0.4 - web3-core-helpers: 1.10.3 + web3-core-helpers: 1.10.4 websocket: ^1.0.32 - checksum: 2f54abe361c38e6f35968aa6df984f787882f4f7208b1c00136763366f4060dea52c3157edc7cc3e7910626dc98ef453553f60a65f6a2b79ef76c09fc96fa173 + checksum: 989a8fc27727e020b02dd4489704855252a24f65fe41e7b9a468849040589b0b4fb86f6da645ae9ee4c3ae80f5cb1ab4c461e2b8e7a7d306a5f368a63a9e1301 languageName: node linkType: hard @@ -24883,9 +25450,9 @@ __metadata: languageName: node linkType: hard -"web3-utils@npm:1.10.3, web3-utils@npm:^1.0.0-beta.31, web3-utils@npm:^1.10.3": - version: 1.10.3 - resolution: "web3-utils@npm:1.10.3" +"web3-utils@npm:1.10.4, web3-utils@npm:^1.10.4": + version: 1.10.4 + resolution: "web3-utils@npm:1.10.4" dependencies: "@ethereumjs/util": ^8.1.0 bn.js: ^5.2.1 @@ -24895,7 +25462,7 @@ __metadata: number-to-bn: 1.7.0 randombytes: ^2.1.0 utf8: 3.0.0 - checksum: 353226710b2089a8e84f2b97cc765093e3018b850d3a6d60c92fe012829fa15a54ad15d432f1927bc185c6ef5100397a32fd4a896da5f514817c3f53583df134 + checksum: a1535817a4653f1b5cc868aa19305158122379078a41e13642e1ba64803f6f8e5dd2fb8c45c033612b8f52dde42d8008afce85296c0608276fe1513dece66a49 languageName: node linkType: hard @@ -24930,6 +25497,22 @@ __metadata: languageName: node linkType: hard +"web3-utils@npm:^1.0.0-beta.31": + version: 1.10.3 + resolution: "web3-utils@npm:1.10.3" + dependencies: + "@ethereumjs/util": ^8.1.0 + bn.js: ^5.2.1 + ethereum-bloom-filters: ^1.0.6 + ethereum-cryptography: ^2.1.2 + ethjs-unit: 0.1.6 + number-to-bn: 1.7.0 + randombytes: ^2.1.0 + utf8: 3.0.0 + checksum: 353226710b2089a8e84f2b97cc765093e3018b850d3a6d60c92fe012829fa15a54ad15d432f1927bc185c6ef5100397a32fd4a896da5f514817c3f53583df134 + languageName: node + linkType: hard + "web3@npm:1.10.0, web3@npm:^1.0.0-beta.34, web3@npm:^1.7.3": version: 1.10.0 resolution: "web3@npm:1.10.0" @@ -25411,21 +25994,6 @@ __metadata: languageName: node linkType: hard -"ws@npm:7.5.9, ws@npm:^7, ws@npm:^7.2.0, ws@npm:^7.3.1, ws@npm:^7.4.5": - version: 7.5.9 - resolution: "ws@npm:7.5.9" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: c3c100a181b731f40b7f2fddf004aa023f79d64f489706a28bc23ff88e87f6a64b3c6651fbec3a84a53960b75159574d7a7385709847a62ddb7ad6af76f49138 - languageName: node - linkType: hard - "ws@npm:8.5.0": version: 8.5.0 resolution: "ws@npm:8.5.0" @@ -25452,6 +26020,21 @@ __metadata: languageName: node linkType: hard +"ws@npm:^7, ws@npm:^7.2.0, ws@npm:^7.3.1, ws@npm:^7.4.5": + version: 7.5.9 + resolution: "ws@npm:7.5.9" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: c3c100a181b731f40b7f2fddf004aa023f79d64f489706a28bc23ff88e87f6a64b3c6651fbec3a84a53960b75159574d7a7385709847a62ddb7ad6af76f49138 + languageName: node + linkType: hard + "ws@npm:^8.15.1, ws@npm:^8.16.0, ws@npm:^8.4.2, ws@npm:^8.5.0, ws@npm:^8.8.1": version: 8.16.0 resolution: "ws@npm:8.16.0" @@ -25750,12 +26333,12 @@ __metadata: languageName: node linkType: hard -"zrender@npm:5.4.4": - version: 5.4.4 - resolution: "zrender@npm:5.4.4" +"zrender@npm:5.5.0": + version: 5.5.0 + resolution: "zrender@npm:5.5.0" dependencies: tslib: 2.3.0 - checksum: 4b317346af8eca38e62ba029239c3a13e97eac4fa15b3ddadbae23442d8b373f0e937c255dee8080d6bb2fc79c9da54f1106415586ed8942bd8bc684b3890ea9 + checksum: 89e4f9e95b586af66ebf5c0504d5f8da73678e18c5b888124943ca81ecea7cff12f23009d64048df91e4dc670e9c51fa66c357834d9347e367f3b5cc02a24d35 languageName: node linkType: hard From f087b0e9d87733a77a28a44d9ff9bb376b207d3f Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:07:06 -0800 Subject: [PATCH 03/29] devop: remove commitlint --- package.json | 2 - packages/signers/polkadot/package.json | 2 +- yarn.lock | 726 ++++++++++--------------- 3 files changed, 298 insertions(+), 432 deletions(-) diff --git a/package.json b/package.json index 0f6c20ad8..61b5c7caf 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,6 @@ "version:apply": "yarn version apply --all" }, "devDependencies": { - "@commitlint/cli": "^17.8.1", - "@commitlint/config-conventional": "^17.8.1", "@swc/core": "^1.4.2", "concurrently": "^8.2.2", "devmoji": "^2.3.0", diff --git a/packages/signers/polkadot/package.json b/packages/signers/polkadot/package.json index 77478819a..82e7eb665 100644 --- a/packages/signers/polkadot/package.json +++ b/packages/signers/polkadot/package.json @@ -17,7 +17,7 @@ "node": ">=14.15.0" }, "dependencies": { - "@commitlint/cli": "^17.8.1", + "@commitlint/cli": "^19.0.3", "@enkryptcom/utils": "workspace:^", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", diff --git a/yarn.lock b/yarn.lock index b3863831e..c12c0259a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1499,200 +1499,184 @@ __metadata: languageName: node linkType: hard -"@commitlint/cli@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/cli@npm:17.8.1" - dependencies: - "@commitlint/format": ^17.8.1 - "@commitlint/lint": ^17.8.1 - "@commitlint/load": ^17.8.1 - "@commitlint/read": ^17.8.1 - "@commitlint/types": ^17.8.1 - execa: ^5.0.0 - lodash.isfunction: ^3.0.9 - resolve-from: 5.0.0 - resolve-global: 1.0.0 +"@commitlint/cli@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/cli@npm:19.0.3" + dependencies: + "@commitlint/format": ^19.0.3 + "@commitlint/lint": ^19.0.3 + "@commitlint/load": ^19.0.3 + "@commitlint/read": ^19.0.3 + "@commitlint/types": ^19.0.3 + execa: ^8.0.1 yargs: ^17.0.0 bin: commitlint: cli.js - checksum: 293d5868e2f586a9ac5364c40eeb0fe2131ea689312c43d43ababe6f2415c998619c5070cf89e7298125a1d96b9e5912b85f51db75aedbfb189d67554f911dbf - languageName: node - linkType: hard - -"@commitlint/config-conventional@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/config-conventional@npm:17.8.1" - dependencies: - conventional-changelog-conventionalcommits: ^6.1.0 - checksum: ce8ace1a13f3a797ed699ffa13dc46273a27e1dc3ae8a9d01492c0637a8592e4ed24bb32d9a43f8745a8690a52d77ea4a950d039977b0dbcbf834f8cbacf5def + checksum: de2761ba19128247f5ab873b95631d7da0e55eba1b03996481a53eab67568c66ec832cf98c7769cfb5e2d202c8cb9b1dd0f1062892f35dd74a07db14d0e2558b languageName: node linkType: hard -"@commitlint/config-validator@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/config-validator@npm:17.8.1" +"@commitlint/config-validator@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/config-validator@npm:19.0.3" dependencies: - "@commitlint/types": ^17.8.1 + "@commitlint/types": ^19.0.3 ajv: ^8.11.0 - checksum: 487051cc36a82ba50f217dfd26721f4fa26d8c4206ee5cb0debd2793aa950280f3ca5bd1a8738e9c71ca8508b58548918b43169c21219ca4cb67f5dcd1e49d9f + checksum: a1a9678e0994d87fa98f0aee1a877dfaf60640b657589260ec958898d51affabba73d6684edafa1cc979e4e94b51f14fbd9b605eae77c2838ee52bcbcc110bef languageName: node linkType: hard -"@commitlint/ensure@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/ensure@npm:17.8.1" +"@commitlint/ensure@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/ensure@npm:19.0.3" dependencies: - "@commitlint/types": ^17.8.1 + "@commitlint/types": ^19.0.3 lodash.camelcase: ^4.3.0 lodash.kebabcase: ^4.1.1 lodash.snakecase: ^4.1.1 lodash.startcase: ^4.4.0 lodash.upperfirst: ^4.3.1 - checksum: a4a5d3071df0e52dad0293c649c236f070c4fcd3380f11747a6f9b06b036adea281e557d117156e31313fbe18a7d71bf06e05e92776adbde7867190e1735bc43 + checksum: d8fdc4712985f9ccdbd871c9eabb9d2bdde22296b882b42bd32ab52b6679c5d799ff557d20a99cebb0008831fd31a540d771331e6e5e26bbafbb6b88f47148b6 languageName: node linkType: hard -"@commitlint/execute-rule@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/execute-rule@npm:17.8.1" - checksum: 73354b5605931a71f727ee0262a5509277e92f134e2d704d44eafe4da7acb1cd2c7d084dcf8096cc0ac7ce83b023cc0ae8f79b17487b132ccc2e0b3920105a11 +"@commitlint/execute-rule@npm:^19.0.0": + version: 19.0.0 + resolution: "@commitlint/execute-rule@npm:19.0.0" + checksum: 4c5cbf9ab0e2b85b00ceea84e5598b1b3cceaa20a655ee954c45259cca9efc80cf5cf7d9eec04715a100c2da282cbcf6aba960ad53a47178090c0513426ac236 languageName: node linkType: hard -"@commitlint/format@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/format@npm:17.8.1" +"@commitlint/format@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/format@npm:19.0.3" dependencies: - "@commitlint/types": ^17.8.1 - chalk: ^4.1.0 - checksum: 0481e4d49196c942d7723a1abd352c3c884ceb9f434fb4e64bfab71bc264e9b7c643a81069f20d2a035fca70261a472508d73b1a60fe378c60534ca6301408b6 + "@commitlint/types": ^19.0.3 + chalk: ^5.3.0 + checksum: ccd71c669e43272fc7d55aba38b149ebc1fab40364ddb4182d4067210592981d42e51d2295a5c0476a34a7a296f14eaee54cc3aa246e3e5d477ed2ae5917a532 languageName: node linkType: hard -"@commitlint/is-ignored@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/is-ignored@npm:17.8.1" +"@commitlint/is-ignored@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/is-ignored@npm:19.0.3" dependencies: - "@commitlint/types": ^17.8.1 - semver: 7.5.4 - checksum: 26eb2f1a84a774625f3f6fe4fa978c57d81028ee6a6925ab3fb02981ac395f9584ab4a71af59c3f2ac84a06c775e3f52683c033c565d86271a7aa99c2eb6025c + "@commitlint/types": ^19.0.3 + semver: ^7.6.0 + checksum: 1a2fcd1dadb37334ed025a0f2bf07493a69d6c8afa126119f2b13f57f7a406babc99b5e8dbf5a624e810f30e4f7c612b64281b139cf61e7923fb3123a107c1bd languageName: node linkType: hard -"@commitlint/lint@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/lint@npm:17.8.1" +"@commitlint/lint@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/lint@npm:19.0.3" dependencies: - "@commitlint/is-ignored": ^17.8.1 - "@commitlint/parse": ^17.8.1 - "@commitlint/rules": ^17.8.1 - "@commitlint/types": ^17.8.1 - checksum: 025712ad928098b3f94d8dc38566785f6c3eeba799725dbd935c5514141ea77b01e036fed1dbbf60cc954736f706ddbb85339751c43f16f5f3f94170d1decb2a + "@commitlint/is-ignored": ^19.0.3 + "@commitlint/parse": ^19.0.3 + "@commitlint/rules": ^19.0.3 + "@commitlint/types": ^19.0.3 + checksum: 74f8d68ba4cee081b7db4f2ad258c145caec970c1675a52247d803df86a41f632c394c53b2fdcec6c4ffcfa4662d49be0499d45ef2f252a8f922f296b5884777 languageName: node linkType: hard -"@commitlint/load@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/load@npm:17.8.1" +"@commitlint/load@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/load@npm:19.0.3" dependencies: - "@commitlint/config-validator": ^17.8.1 - "@commitlint/execute-rule": ^17.8.1 - "@commitlint/resolve-extends": ^17.8.1 - "@commitlint/types": ^17.8.1 - "@types/node": 20.5.1 - chalk: ^4.1.0 - cosmiconfig: ^8.0.0 - cosmiconfig-typescript-loader: ^4.0.0 + "@commitlint/config-validator": ^19.0.3 + "@commitlint/execute-rule": ^19.0.0 + "@commitlint/resolve-extends": ^19.0.3 + "@commitlint/types": ^19.0.3 + chalk: ^5.3.0 + cosmiconfig: ^8.3.6 + cosmiconfig-typescript-loader: ^5.0.0 lodash.isplainobject: ^4.0.6 lodash.merge: ^4.6.2 lodash.uniq: ^4.5.0 - resolve-from: ^5.0.0 - ts-node: ^10.8.1 - typescript: ^4.6.4 || ^5.2.2 - checksum: 5a9a9f0d4621a4cc61c965c3adc88d04ccac40640b022bb3bbad70ed4435bb0c103647a2e29e37fc3d68021dae041c937bee611fe2e5461bebe997640f4f626b + checksum: 6827337fad156dc6e9daa0e0b55d0b2142cdaa0f9a31e06c048812e0af862334576441346bab89f7acf22c9ef794f1450dc92acc694a748c2234f4071cb0e3c2 languageName: node linkType: hard -"@commitlint/message@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/message@npm:17.8.1" - checksum: ee3ca9bf02828ea322becba47c67f7585aa3fd22b197eab69679961e67e3c7bdf56f6ef41cb3b831b521af7dabd305eb5d7ee053c8294531cc8ca64dbbff82fc +"@commitlint/message@npm:^19.0.0": + version: 19.0.0 + resolution: "@commitlint/message@npm:19.0.0" + checksum: 446ee97c12a4175a8b7a4cbf3754c01d54cd911973c7af9a2eac69277fb891e638ddc3db132f57588883b68eadf59074d388ec1808a205957042f71027244167 languageName: node linkType: hard -"@commitlint/parse@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/parse@npm:17.8.1" +"@commitlint/parse@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/parse@npm:19.0.3" dependencies: - "@commitlint/types": ^17.8.1 - conventional-changelog-angular: ^6.0.0 - conventional-commits-parser: ^4.0.0 - checksum: 5322ae049b43a329761063b6e698714593d84d874147ced6290c8d88a9ebea2ba8c660a5815392a731377ac26fbf6b215bb9b87d84d8b49cb47fa1c62d228b24 + "@commitlint/types": ^19.0.3 + conventional-changelog-angular: ^7.0.0 + conventional-commits-parser: ^5.0.0 + checksum: ddd7a6007d37d7154f6b18bfa06dc26beb109cd4bcabe7e9ca2ff24088325ab2c7b09cc01cceb9d62e6e60affffe3d19e9685fab06d3506d047166d888d25487 languageName: node linkType: hard -"@commitlint/read@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/read@npm:17.8.1" +"@commitlint/read@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/read@npm:19.0.3" dependencies: - "@commitlint/top-level": ^17.8.1 - "@commitlint/types": ^17.8.1 - fs-extra: ^11.0.0 - git-raw-commits: ^2.0.11 - minimist: ^1.2.6 - checksum: 122f1842cb8b87b2c447383095420d077dcae6fbb4f871f8b05fa088f99d95d18a8c6675be2eb3e67bf7ff47a9990764261e3eebc5e474404f14e3379f48df42 + "@commitlint/top-level": ^19.0.0 + "@commitlint/types": ^19.0.3 + git-raw-commits: ^4.0.0 + minimist: ^1.2.8 + checksum: da7cd9f03d805d9679d76af1c79b7313dc7c73cc94fa96d51385d47c5f6720e6c807fb6c6ee973a439ac7a4647c68459e4d9dce6b40fadefb8a52042eb96351c languageName: node linkType: hard -"@commitlint/resolve-extends@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/resolve-extends@npm:17.8.1" +"@commitlint/resolve-extends@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/resolve-extends@npm:19.0.3" dependencies: - "@commitlint/config-validator": ^17.8.1 - "@commitlint/types": ^17.8.1 - import-fresh: ^3.0.0 + "@commitlint/config-validator": ^19.0.3 + "@commitlint/types": ^19.0.3 + global-directory: ^4.0.1 + import-meta-resolve: ^4.0.0 lodash.mergewith: ^4.6.2 resolve-from: ^5.0.0 - resolve-global: ^1.0.0 - checksum: c6fb7d3f263b876ff805396abad27bc514b1a69dcc634903c28782f4f3932eddc37221daa3264a45a5b82d28aa17a57c7bab4830c6efae741cc875f137366608 + checksum: f933018f91ec0bcc1286bba6ea8c85fffedfdb7ef74ea0f3112df76987567f56f3b8d027506205e8159a0a006dc98cba189e3115e3af3e13d854376ddff73439 languageName: node linkType: hard -"@commitlint/rules@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/rules@npm:17.8.1" +"@commitlint/rules@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/rules@npm:19.0.3" dependencies: - "@commitlint/ensure": ^17.8.1 - "@commitlint/message": ^17.8.1 - "@commitlint/to-lines": ^17.8.1 - "@commitlint/types": ^17.8.1 - execa: ^5.0.0 - checksum: b284514a4b8dad6bcbbc91c7548d69d0bbe9fcbdb241c15f5f9da413e8577c19d11190f1d709b38487c49dc874359bd9d0b72ab39f91cce06191e4ddaf8ec84d + "@commitlint/ensure": ^19.0.3 + "@commitlint/message": ^19.0.0 + "@commitlint/to-lines": ^19.0.0 + "@commitlint/types": ^19.0.3 + execa: ^8.0.1 + checksum: 218033d96b0bae7dbea0e46483f8af823c17b492e4b0c4dca93a6312876d051cc88f4272d009e7eb06ff05585ec511aedd703132be17c7248698a4eac909986b languageName: node linkType: hard -"@commitlint/to-lines@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/to-lines@npm:17.8.1" - checksum: ff175c202c89537301f32b6e13ebe6919ac782a6e109cb5f6136566d71555a54f6574caf4d674d3409d32fdea1b4a28518837632ca05c7557d4f18f339574e62 +"@commitlint/to-lines@npm:^19.0.0": + version: 19.0.0 + resolution: "@commitlint/to-lines@npm:19.0.0" + checksum: 5e7d5679aa242cd21be2076a8c8715aa3c9f4c3133f588df08c6b02f56a8a5b1a5d9e402076bd926dd2b61883e4b2c53fd6c9aa3554e3f54cd2296b2566eb1c2 languageName: node linkType: hard -"@commitlint/top-level@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/top-level@npm:17.8.1" +"@commitlint/top-level@npm:^19.0.0": + version: 19.0.0 + resolution: "@commitlint/top-level@npm:19.0.0" dependencies: - find-up: ^5.0.0 - checksum: 25c8a6f4026c705a5ad4d9358eae7558734f549623da1c5f44cba8d6bc495f20d3ad05418febb8dca4f6b63f40bf44763007a14ab7209c435566843be114e7fc + find-up: ^7.0.0 + checksum: 47b0994d03f26caf2812110ead535bd10157beed6b3dff9cbb4eea165de9245673ba7d31829cd54af5855f7b075ebbf812b1f79586248be3932797888efeadf5 languageName: node linkType: hard -"@commitlint/types@npm:^17.8.1": - version: 17.8.1 - resolution: "@commitlint/types@npm:17.8.1" +"@commitlint/types@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/types@npm:19.0.3" dependencies: - chalk: ^4.1.0 - checksum: a4cfa8c417aa0209694b96da04330282e41150caae1e1d0cec596ea34e3ce15afb84b3263abe5b89758ec1f3f71a9de0ee2d593df66db17b283127dd5e7cd6ac + "@types/conventional-commits-parser": ^5.0.0 + chalk: ^5.3.0 + checksum: 44e67f4861f9b137f43a441f8ab255676b7a276c82ca46ba7846ca1057d170af92a87d3e2a1378713dc4e33a68c8af513683cb96dcd29544e48e2c825109ea6f languageName: node linkType: hard @@ -2677,7 +2661,7 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/signer-polkadot@workspace:packages/signers/polkadot" dependencies: - "@commitlint/cli": ^17.8.1 + "@commitlint/cli": ^19.0.3 "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" "@polkadot/util": ^12.6.2 @@ -7703,6 +7687,15 @@ __metadata: languageName: node linkType: hard +"@types/conventional-commits-parser@npm:^5.0.0": + version: 5.0.0 + resolution: "@types/conventional-commits-parser@npm:5.0.0" + dependencies: + "@types/node": "*" + checksum: 88013c53adccaf359a429412c5d835990a88be33218f01f85eb04cf839a7d5bef51dd52b83a3032b00153e9f3ce4a7e84ff10b0a1f833c022c5e999b00eef24c + languageName: node + linkType: hard + "@types/debug@npm:^4.1.5, @types/debug@npm:^4.1.7": version: 4.1.8 resolution: "@types/debug@npm:4.1.8" @@ -8012,13 +8005,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:20.5.1": - version: 20.5.1 - resolution: "@types/node@npm:20.5.1" - checksum: 3dbe611cd67afa987102c8558ee70f848949c5dcfee5f60abc073e55c0d7b048e391bf06bb1e0dc052cb7210ca97136ac496cbaf6e89123c989de6bd125fde82 - languageName: node - linkType: hard - "@types/node@npm:^10.12.18": version: 10.17.60 resolution: "@types/node@npm:10.17.60" @@ -9841,7 +9827,7 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^1.0.0, arrify@npm:^1.0.1": +"arrify@npm:^1.0.0": version: 1.0.1 resolution: "arrify@npm:1.0.1" checksum: 745075dd4a4624ff0225c331dacb99be501a515d39bcb7c84d24660314a6ec28e68131b137e6f7e16318170842ce97538cd298fc4cd6b2cc798e0b957f2747e7 @@ -11114,17 +11100,6 @@ __metadata: languageName: node linkType: hard -"camelcase-keys@npm:^6.2.2": - version: 6.2.2 - resolution: "camelcase-keys@npm:6.2.2" - dependencies: - camelcase: ^5.3.1 - map-obj: ^4.0.0 - quick-lru: ^4.0.1 - checksum: 43c9af1adf840471e54c68ab3e5fe8a62719a6b7dbf4e2e86886b7b0ff96112c945736342b837bd2529ec9d1c7d1934e5653318478d98e0cf22c475c04658e2a - languageName: node - linkType: hard - "camelcase@npm:^3.0.0": version: 3.0.0 resolution: "camelcase@npm:3.0.0" @@ -11139,7 +11114,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^5.0.0, camelcase@npm:^5.3.1": +"camelcase@npm:^5.0.0": version: 5.3.1 resolution: "camelcase@npm:5.3.1" checksum: e6effce26b9404e3c0f301498184f243811c30dfe6d0b9051863bd8e4034d09c8c2923794f280d6827e5aa055f6c434115ff97864a16a963366fb35fd673024b @@ -11267,6 +11242,13 @@ __metadata: languageName: node linkType: hard +"chalk@npm:^5.3.0": + version: 5.3.0 + resolution: "chalk@npm:5.3.0" + checksum: 623922e077b7d1e9dedaea6f8b9e9352921f8ae3afe739132e0e00c275971bdd331268183b2628cf4ab1727c45ea1f28d7e24ac23ce1db1eb653c414ca8a5a80 + languageName: node + linkType: hard + "change-case@npm:3.0.2": version: 3.0.2 resolution: "change-case@npm:3.0.2" @@ -11853,35 +11835,26 @@ __metadata: languageName: node linkType: hard -"conventional-changelog-angular@npm:^6.0.0": - version: 6.0.0 - resolution: "conventional-changelog-angular@npm:6.0.0" - dependencies: - compare-func: ^2.0.0 - checksum: ddc59ead53a45b817d83208200967f5340866782b8362d5e2e34105fdfa3d3a31585ebbdec7750bdb9de53da869f847e8ca96634a9801f51e27ecf4e7ffe2bad - languageName: node - linkType: hard - -"conventional-changelog-conventionalcommits@npm:^6.1.0": - version: 6.1.0 - resolution: "conventional-changelog-conventionalcommits@npm:6.1.0" +"conventional-changelog-angular@npm:^7.0.0": + version: 7.0.0 + resolution: "conventional-changelog-angular@npm:7.0.0" dependencies: compare-func: ^2.0.0 - checksum: 4383a35cdf72f5964e194a1146e7f78276e301f73bd993b71627bb93586b6470d411b9613507ceb37e0fed0b023199c95e941541fa47172b4e6a7916fc3a53ff + checksum: 2478962ad7ce42878449ba3568347d704f22c5c9af1cd36916b5600734bd7f82c09712a338c649195c44e907f1b0372ce52d6cb51df643f495c89af05ad4bc48 languageName: node linkType: hard -"conventional-commits-parser@npm:^4.0.0": - version: 4.0.0 - resolution: "conventional-commits-parser@npm:4.0.0" +"conventional-commits-parser@npm:^5.0.0": + version: 5.0.0 + resolution: "conventional-commits-parser@npm:5.0.0" dependencies: JSONStream: ^1.3.5 - is-text-path: ^1.0.1 - meow: ^8.1.2 - split2: ^3.2.2 + is-text-path: ^2.0.0 + meow: ^12.0.1 + split2: ^4.0.0 bin: - conventional-commits-parser: cli.js - checksum: 12d95b5ba8e0710a6d3cd2e01f01dd7818fdf0bb2b33f4b75444e2c9aee49598776b0706a528ed49e83aec5f1896c32cbc7f8e6589f61a15187293707448f928 + conventional-commits-parser: cli.mjs + checksum: bb92a0bfe41802330d2d14ddb0f912fd65dd355f1aa294e708f4891aac95c580919a70580b9f26563c24c3335baaed2ce003104394a8fa5ba61eeb3889e45df0 languageName: node linkType: hard @@ -11988,15 +11961,16 @@ __metadata: languageName: node linkType: hard -"cosmiconfig-typescript-loader@npm:^4.0.0": - version: 4.4.0 - resolution: "cosmiconfig-typescript-loader@npm:4.4.0" +"cosmiconfig-typescript-loader@npm:^5.0.0": + version: 5.0.0 + resolution: "cosmiconfig-typescript-loader@npm:5.0.0" + dependencies: + jiti: ^1.19.1 peerDependencies: "@types/node": "*" - cosmiconfig: ">=7" - ts-node: ">=10" + cosmiconfig: ">=8.2" typescript: ">=4" - checksum: d6ba546de333f9440226ab2384a7b5355d8d2e278a9ca9d838664181bc27719764af10c69eec6f07189e63121e6d654235c374bd7dc455ac8dfdef3aad6657fd + checksum: 7b614313f2cc2ecbe17270de570a511aa7c974bf14a749d7ed4f4d0f4a9ed02ee7ae87d710e294204abb00bb6bb0cca53795208bb1435815d143b43c6626ec74 languageName: node linkType: hard @@ -12026,15 +12000,20 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:^8.0.0": - version: 8.0.0 - resolution: "cosmiconfig@npm:8.0.0" +"cosmiconfig@npm:^8.3.6": + version: 8.3.6 + resolution: "cosmiconfig@npm:8.3.6" dependencies: - import-fresh: ^3.2.1 + import-fresh: ^3.3.0 js-yaml: ^4.1.0 - parse-json: ^5.0.0 + parse-json: ^5.2.0 path-type: ^4.0.0 - checksum: ff4cdf89ac1ae52e7520816622c21a9e04380d04b82d653f5139ec581aa4f7f29e096d46770bc76c4a63c225367e88a1dfa233ea791669a35101f5f9b972c7d1 + peerDependencies: + typescript: ">=4.9.5" + peerDependenciesMeta: + typescript: + optional: true + checksum: dc339ebea427898c9e03bf01b56ba7afbac07fc7d2a2d5a15d6e9c14de98275a9565da949375aee1809591c152c0a3877bb86dbeaf74d5bd5aaa79955ad9e7a0 languageName: node linkType: hard @@ -12466,10 +12445,10 @@ __metadata: languageName: node linkType: hard -"dargs@npm:^7.0.0": - version: 7.0.0 - resolution: "dargs@npm:7.0.0" - checksum: b8f1e3cba59c42e1f13a114ad4848c3fc1cf7470f633ee9e9f1043762429bc97d91ae31b826fb135eefde203a3fdb20deb0c0a0222ac29d937b8046085d668d1 +"dargs@npm:^8.0.0": + version: 8.1.0 + resolution: "dargs@npm:8.1.0" + checksum: 33f1b8f5f08e72c8a28355a87c0e1a9b6a0fec99252ecd9cf4735e65dd5f2e19747c860251ed5747b38e7204c7915fd7a7146aee5aaef5882c69169aae8b1d09 languageName: node linkType: hard @@ -12554,17 +12533,7 @@ __metadata: languageName: node linkType: hard -"decamelize-keys@npm:^1.1.0": - version: 1.1.0 - resolution: "decamelize-keys@npm:1.1.0" - dependencies: - decamelize: ^1.1.0 - map-obj: ^1.0.0 - checksum: 8bc5d32e035a072f5dffc1f1f3d26ca7ab1fb44a9cade34c97ab6cd1e62c81a87e718101e96de07d78cecda20a3fdb955df958e46671ccad01bb8dcf0de2e298 - languageName: node - linkType: hard - -"decamelize@npm:^1.1.0, decamelize@npm:^1.1.1": +"decamelize@npm:^1.1.1": version: 1.2.0 resolution: "decamelize@npm:1.2.0" checksum: ad8c51a7e7e0720c70ec2eeb1163b66da03e7616d7b98c9ef43cce2416395e84c1e9548dd94f5f6ffecfee9f8b94251fc57121a8b021f2ff2469b2bae247b8aa @@ -13185,8 +13154,6 @@ __metadata: version: 0.0.0-use.local resolution: "enkrypt@workspace:." dependencies: - "@commitlint/cli": ^17.8.1 - "@commitlint/config-conventional": ^17.8.1 "@swc/core": ^1.4.2 concurrently: ^8.2.2 devmoji: ^2.3.0 @@ -14550,6 +14517,17 @@ __metadata: languageName: node linkType: hard +"find-up@npm:^7.0.0": + version: 7.0.0 + resolution: "find-up@npm:7.0.0" + dependencies: + locate-path: ^7.2.0 + path-exists: ^5.0.0 + unicorn-magic: ^0.1.0 + checksum: e1c63860f9c04355ab2aa19f4be51c1a6e14a7d8cfbd8090e2be6da2a36a76995907cb45337a4b582b19b164388f71d6ab118869dc7bffb2093f2c089ecb95ee + languageName: node + linkType: hard + "flat-cache@npm:^3.0.4": version: 3.0.4 resolution: "flat-cache@npm:3.0.4" @@ -14757,17 +14735,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^11.0.0": - version: 11.1.0 - resolution: "fs-extra@npm:11.1.0" - dependencies: - graceful-fs: ^4.2.0 - jsonfile: ^6.0.1 - universalify: ^2.0.0 - checksum: 5ca476103fa1f5ff4a9b3c4f331548f8a3c1881edaae323a4415d3153b5dc11dc6a981c8d1dd93eec8367ceee27b53f8bd27eecbbf66ffcdd04927510c171e7f - languageName: node - linkType: hard - "fs-extra@npm:^4.0.2": version: 4.0.3 resolution: "fs-extra@npm:4.0.3" @@ -15025,18 +14992,16 @@ __metadata: languageName: node linkType: hard -"git-raw-commits@npm:^2.0.11": - version: 2.0.11 - resolution: "git-raw-commits@npm:2.0.11" +"git-raw-commits@npm:^4.0.0": + version: 4.0.0 + resolution: "git-raw-commits@npm:4.0.0" dependencies: - dargs: ^7.0.0 - lodash: ^4.17.15 - meow: ^8.0.0 - split2: ^3.0.0 - through2: ^4.0.0 + dargs: ^8.0.0 + meow: ^12.0.1 + split2: ^4.0.0 bin: - git-raw-commits: cli.js - checksum: c178af43633684106179793b6e3473e1d2bb50bb41d04e2e285ea4eef342ca4090fee6bc8a737552fde879d22346c90de5c49f18c719a0f38d4c934f258a0f79 + git-raw-commits: cli.mjs + checksum: 95546f4afcb33cf00ff638f7fec55ad61d4d927447737900e1f6fcbbdbb341b3f150908424cc62acb6d9faaea6f1e8f55d0697b899f0589af9d2733afb20abfb languageName: node linkType: hard @@ -15121,12 +15086,12 @@ __metadata: languageName: node linkType: hard -"global-dirs@npm:^0.1.1": - version: 0.1.1 - resolution: "global-dirs@npm:0.1.1" +"global-directory@npm:^4.0.1": + version: 4.0.1 + resolution: "global-directory@npm:4.0.1" dependencies: - ini: ^1.3.4 - checksum: 10624f5a8ddb8634c22804c6b24f93fb591c3639a6bc78e3584e01a238fc6f7b7965824184e57d63f6df36980b6c191484ad7bc6c35a1599b8f1d64be64c2a4a + ini: 4.1.1 + checksum: 5b4df24438a4e5f21e43fbdd9e54f5e12bb48dce01a0a83b415d8052ce91be2d3a97e0c8f98a535e69649b2190036155e9f0f7d3c62f9318f31bdc3fd4f235f5 languageName: node linkType: hard @@ -15318,13 +15283,6 @@ __metadata: languageName: node linkType: hard -"hard-rejection@npm:^2.1.0": - version: 2.1.0 - resolution: "hard-rejection@npm:2.1.0" - checksum: 7baaf80a0c7fff4ca79687b4060113f1529589852152fa935e6787a2bc96211e784ad4588fb3048136ff8ffc9dfcf3ae385314a5b24db32de20bea0d1597f9dc - languageName: node - linkType: hard - "has-bigints@npm:^1.0.1, has-bigints@npm:^1.0.2": version: 1.0.2 resolution: "has-bigints@npm:1.0.2" @@ -15551,15 +15509,6 @@ __metadata: languageName: node linkType: hard -"hosted-git-info@npm:^4.0.1": - version: 4.1.0 - resolution: "hosted-git-info@npm:4.1.0" - dependencies: - lru-cache: ^6.0.0 - checksum: c3f87b3c2f7eb8c2748c8f49c0c2517c9a95f35d26f4bf54b2a8cba05d2e668f3753548b6ea366b18ec8dadb4e12066e19fa382a01496b0ffa0497eb23cbe461 - languageName: node - linkType: hard - "hpack.js@npm:^2.1.6": version: 2.1.6 resolution: "hpack.js@npm:2.1.6" @@ -15898,7 +15847,7 @@ __metadata: languageName: node linkType: hard -"import-fresh@npm:^3.0.0, import-fresh@npm:^3.1.0, import-fresh@npm:^3.2.1": +"import-fresh@npm:^3.1.0, import-fresh@npm:^3.2.1, import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" dependencies: @@ -15908,6 +15857,13 @@ __metadata: languageName: node linkType: hard +"import-meta-resolve@npm:^4.0.0": + version: 4.0.0 + resolution: "import-meta-resolve@npm:4.0.0" + checksum: 51c50115fd38e9ba21736f8d7543a58446b92d2cb5f38c9b5ec72426afeb2fb790f82051560a0f16323f44dd73d8d37c07eab5f8dc4635bcdb401daa36727b1a + languageName: node + linkType: hard + "imurmurhash@npm:^0.1.4": version: 0.1.4 resolution: "imurmurhash@npm:0.1.4" @@ -15953,10 +15909,10 @@ __metadata: languageName: node linkType: hard -"ini@npm:^1.3.4": - version: 1.3.8 - resolution: "ini@npm:1.3.8" - checksum: dfd98b0ca3a4fc1e323e38a6c8eb8936e31a97a918d3b377649ea15bdb15d481207a0dda1021efbd86b464cae29a0d33c1d7dcaf6c5672bee17fa849bc50a1b3 +"ini@npm:4.1.1": + version: 4.1.1 + resolution: "ini@npm:4.1.1" + checksum: 0e5909554074fbc31824fa5415b0f604de4a665514c96a897a77bf77353a7ad4743927321270e9d0610a9d510ccd1f3cd77422f7cc80d8f4542dbce75476fb6d languageName: node linkType: hard @@ -16128,7 +16084,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1, is-core-module@npm:^2.5.0": +"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1": version: 2.13.1 resolution: "is-core-module@npm:2.13.1" dependencies: @@ -16421,12 +16377,12 @@ __metadata: languageName: node linkType: hard -"is-text-path@npm:^1.0.1": - version: 1.0.1 - resolution: "is-text-path@npm:1.0.1" +"is-text-path@npm:^2.0.0": + version: 2.0.0 + resolution: "is-text-path@npm:2.0.0" dependencies: - text-extensions: ^1.0.0 - checksum: fb5d78752c22b3f73a7c9540768f765ffcfa38c9e421e2b9af869565307fa1ae5e3d3a2ba016a43549742856846566d327da406e94a5846ec838a288b1704fd2 + text-extensions: ^2.0.0 + checksum: 3a8725fc7c0d4c7741a97993bc2fecc09a0963660394d3ee76145274366c98ad57c6791d20d4ef829835f573b1137265051c05ecd65fbe72f69bb9ab9e3babbd languageName: node linkType: hard @@ -16675,7 +16631,7 @@ __metadata: languageName: node linkType: hard -"jiti@npm:^1.21.0": +"jiti@npm:^1.19.1, jiti@npm:^1.21.0": version: 1.21.0 resolution: "jiti@npm:1.21.0" bin: @@ -17123,7 +17079,7 @@ __metadata: languageName: node linkType: hard -"kind-of@npm:^6.0.2, kind-of@npm:^6.0.3": +"kind-of@npm:^6.0.2": version: 6.0.3 resolution: "kind-of@npm:6.0.3" checksum: 3ab01e7b1d440b22fe4c31f23d8d38b4d9b91d9f291df683476576493d5dfd2e03848a8b05813dd0c3f0e835bc63f433007ddeceb71f05cb25c45ae1b19c6d3b @@ -17387,6 +17343,15 @@ __metadata: languageName: node linkType: hard +"locate-path@npm:^7.2.0": + version: 7.2.0 + resolution: "locate-path@npm:7.2.0" + dependencies: + p-locate: ^6.0.0 + checksum: c1b653bdf29beaecb3d307dfb7c44d98a2a98a02ebe353c9ad055d1ac45d6ed4e1142563d222df9b9efebc2bcb7d4c792b507fad9e7150a04c29530b7db570f8 + languageName: node + linkType: hard + "lodash-es@npm:4.17.20": version: 4.17.20 resolution: "lodash-es@npm:4.17.20" @@ -17436,13 +17401,6 @@ __metadata: languageName: node linkType: hard -"lodash.isfunction@npm:^3.0.9": - version: 3.0.9 - resolution: "lodash.isfunction@npm:3.0.9" - checksum: 99e54c34b1e8a9ba75c034deb39cedbd2aca7af685815e67a2a8ec4f73ec9748cda6ebee5a07d7de4b938e90d421fd280e9c385cc190f903ac217ac8aff30314 - languageName: node - linkType: hard - "lodash.isplainobject@npm:^4.0.6": version: 4.0.6 resolution: "lodash.isplainobject@npm:4.0.6" @@ -17764,14 +17722,7 @@ __metadata: languageName: node linkType: hard -"map-obj@npm:^1.0.0": - version: 1.0.1 - resolution: "map-obj@npm:1.0.1" - checksum: 9949e7baec2a336e63b8d4dc71018c117c3ce6e39d2451ccbfd3b8350c547c4f6af331a4cbe1c83193d7c6b786082b6256bde843db90cb7da2a21e8fcc28afed - languageName: node - linkType: hard - -"map-obj@npm:^4.0.0, map-obj@npm:^4.1.0": +"map-obj@npm:^4.1.0": version: 4.3.0 resolution: "map-obj@npm:4.3.0" checksum: fbc554934d1a27a1910e842bc87b177b1a556609dd803747c85ece420692380827c6ae94a95cce4407c054fa0964be3bf8226f7f2cb2e9eeee432c7c1985684e @@ -17837,22 +17788,10 @@ __metadata: languageName: node linkType: hard -"meow@npm:^8.0.0, meow@npm:^8.1.2": - version: 8.1.2 - resolution: "meow@npm:8.1.2" - dependencies: - "@types/minimist": ^1.2.0 - camelcase-keys: ^6.2.2 - decamelize-keys: ^1.1.0 - hard-rejection: ^2.1.0 - minimist-options: 4.1.0 - normalize-package-data: ^3.0.0 - read-pkg-up: ^7.0.1 - redent: ^3.0.0 - trim-newlines: ^3.0.0 - type-fest: ^0.18.0 - yargs-parser: ^20.2.3 - checksum: bc23bf1b4423ef6a821dff9734406bce4b91ea257e7f10a8b7f896f45b59649f07adc0926e2917eacd8cf1df9e4cd89c77623cf63dfd0f8bf54de07a32ee5a85 +"meow@npm:^12.0.1": + version: 12.1.1 + resolution: "meow@npm:12.1.1" + checksum: a6f3be85fbe53430ef53ab933dd790c39216eb4dbaabdbef593aa59efb40ecaa417897000175476bc33eed09e4cbce01df7ba53ba91e9a4bd84ec07024cb8914 languageName: node linkType: hard @@ -18014,13 +17953,6 @@ __metadata: languageName: node linkType: hard -"min-indent@npm:^1.0.0": - version: 1.0.1 - resolution: "min-indent@npm:1.0.1" - checksum: bfc6dd03c5eaf623a4963ebd94d087f6f4bbbfd8c41329a7f09706b0cb66969c4ddd336abeb587bc44bc6f08e13bf90f0b374f9d71f9f01e04adc2cd6f083ef1 - languageName: node - linkType: hard - "mini-css-extract-plugin@npm:^2.5.3": version: 2.6.0 resolution: "mini-css-extract-plugin@npm:2.6.0" @@ -18091,17 +18023,6 @@ __metadata: languageName: node linkType: hard -"minimist-options@npm:4.1.0": - version: 4.1.0 - resolution: "minimist-options@npm:4.1.0" - dependencies: - arrify: ^1.0.1 - is-plain-obj: ^1.1.0 - kind-of: ^6.0.3 - checksum: 8c040b3068811e79de1140ca2b708d3e203c8003eb9a414c1ab3cd467fc5f17c9ca02a5aef23bedc51a7f8bfbe77f87e9a7e31ec81fba304cda675b019496f4e - languageName: node - linkType: hard - "minimist@npm:^1.2.0, minimist@npm:^1.2.5, minimist@npm:^1.2.6": version: 1.2.6 resolution: "minimist@npm:1.2.6" @@ -18109,6 +18030,13 @@ __metadata: languageName: node linkType: hard +"minimist@npm:^1.2.8": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 75a6d645fb122dad29c06a7597bddea977258957ed88d7a6df59b5cd3fe4a527e253e9bbf2e783e4b73657f9098b96a5fe96ab8a113655d4109108577ecf85b0 + languageName: node + linkType: hard + "minipass-collect@npm:^1.0.2": version: 1.0.2 resolution: "minipass-collect@npm:1.0.2" @@ -18864,18 +18792,6 @@ __metadata: languageName: node linkType: hard -"normalize-package-data@npm:^3.0.0": - version: 3.0.3 - resolution: "normalize-package-data@npm:3.0.3" - dependencies: - hosted-git-info: ^4.0.1 - is-core-module: ^2.5.0 - semver: ^7.3.4 - validate-npm-package-license: ^3.0.1 - checksum: bbcee00339e7c26fdbc760f9b66d429258e2ceca41a5df41f5df06cc7652de8d82e8679ff188ca095cad8eff2b6118d7d866af2b68400f74602fbcbce39c160a - languageName: node - linkType: hard - "normalize-path@npm:^1.0.0": version: 1.0.0 resolution: "normalize-path@npm:1.0.0" @@ -19323,6 +19239,15 @@ __metadata: languageName: node linkType: hard +"p-limit@npm:^4.0.0": + version: 4.0.0 + resolution: "p-limit@npm:4.0.0" + dependencies: + yocto-queue: ^1.0.0 + checksum: 01d9d70695187788f984226e16c903475ec6a947ee7b21948d6f597bed788e3112cc7ec2e171c1d37125057a5f45f3da21d8653e04a3a793589e12e9e80e756b + languageName: node + linkType: hard + "p-locate@npm:^4.1.0": version: 4.1.0 resolution: "p-locate@npm:4.1.0" @@ -19341,6 +19266,15 @@ __metadata: languageName: node linkType: hard +"p-locate@npm:^6.0.0": + version: 6.0.0 + resolution: "p-locate@npm:6.0.0" + dependencies: + p-limit: ^4.0.0 + checksum: 2bfe5234efa5e7a4e74b30a5479a193fdd9236f8f6b4d2f3f69e3d286d9a7d7ab0c118a2a50142efcf4e41625def635bd9332d6cbf9cc65d85eb0718c579ab38 + languageName: node + linkType: hard + "p-map@npm:^4.0.0": version: 4.0.0 resolution: "p-map@npm:4.0.0" @@ -19447,7 +19381,7 @@ __metadata: languageName: node linkType: hard -"parse-json@npm:^5.0.0": +"parse-json@npm:^5.0.0, parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" dependencies: @@ -19567,6 +19501,13 @@ __metadata: languageName: node linkType: hard +"path-exists@npm:^5.0.0": + version: 5.0.0 + resolution: "path-exists@npm:5.0.0" + checksum: 8ca842868cab09423994596eb2c5ec2a971c17d1a3cb36dbf060592c730c725cd524b9067d7d2a1e031fef9ba7bd2ac6dc5ec9fb92aa693265f7be3987045254 + languageName: node + linkType: hard + "path-is-absolute@npm:^1.0.0": version: 1.0.1 resolution: "path-is-absolute@npm:1.0.1" @@ -20727,13 +20668,6 @@ __metadata: languageName: node linkType: hard -"quick-lru@npm:^4.0.1": - version: 4.0.1 - resolution: "quick-lru@npm:4.0.1" - checksum: bea46e1abfaa07023e047d3cf1716a06172c4947886c053ede5c50321893711577cb6119360f810cc3ffcd70c4d7db4069c3cee876b358ceff8596e062bd1154 - languageName: node - linkType: hard - "quick-lru@npm:^5.1.1": version: 5.1.1 resolution: "quick-lru@npm:5.1.1" @@ -20906,17 +20840,6 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:3, readable-stream@npm:^3.0.0, readable-stream@npm:^3.0.6, readable-stream@npm:^3.4.0, readable-stream@npm:^3.5.0, readable-stream@npm:^3.6.0": - version: 3.6.0 - resolution: "readable-stream@npm:3.6.0" - dependencies: - inherits: ^2.0.3 - string_decoder: ^1.1.1 - util-deprecate: ^1.0.1 - checksum: d4ea81502d3799439bb955a3a5d1d808592cf3133350ed352aeaa499647858b27b1c4013984900238b0873ec8d0d8defce72469fb7a83e61d53f5ad61cb80dc8 - languageName: node - linkType: hard - "readable-stream@npm:^2.0.1": version: 2.3.7 resolution: "readable-stream@npm:2.3.7" @@ -20932,6 +20855,17 @@ __metadata: languageName: node linkType: hard +"readable-stream@npm:^3.0.6, readable-stream@npm:^3.4.0, readable-stream@npm:^3.5.0, readable-stream@npm:^3.6.0": + version: 3.6.0 + resolution: "readable-stream@npm:3.6.0" + dependencies: + inherits: ^2.0.3 + string_decoder: ^1.1.1 + util-deprecate: ^1.0.1 + checksum: d4ea81502d3799439bb955a3a5d1d808592cf3133350ed352aeaa499647858b27b1c4013984900238b0873ec8d0d8defce72469fb7a83e61d53f5ad61cb80dc8 + languageName: node + linkType: hard + "readable-stream@npm:^4.0.0": version: 4.4.2 resolution: "readable-stream@npm:4.4.2" @@ -20975,16 +20909,6 @@ __metadata: languageName: node linkType: hard -"redent@npm:^3.0.0": - version: 3.0.0 - resolution: "redent@npm:3.0.0" - dependencies: - indent-string: ^4.0.0 - strip-indent: ^3.0.0 - checksum: fa1ef20404a2d399235e83cc80bd55a956642e37dd197b4b612ba7327bf87fa32745aeb4a1634b2bab25467164ab4ed9c15be2c307923dd08b0fe7c52431ae6b - languageName: node - linkType: hard - "redux@npm:^4.1.2": version: 4.2.1 resolution: "redux@npm:4.2.1" @@ -21173,13 +21097,6 @@ __metadata: languageName: node linkType: hard -"resolve-from@npm:5.0.0, resolve-from@npm:^5.0.0": - version: 5.0.0 - resolution: "resolve-from@npm:5.0.0" - checksum: 4ceeb9113e1b1372d0cd969f3468fa042daa1dd9527b1b6bb88acb6ab55d8b9cd65dbf18819f9f9ddf0db804990901dcdaade80a215e7b2c23daae38e64f5bdf - languageName: node - linkType: hard - "resolve-from@npm:^4.0.0": version: 4.0.0 resolution: "resolve-from@npm:4.0.0" @@ -21187,12 +21104,10 @@ __metadata: languageName: node linkType: hard -"resolve-global@npm:1.0.0, resolve-global@npm:^1.0.0": - version: 1.0.0 - resolution: "resolve-global@npm:1.0.0" - dependencies: - global-dirs: ^0.1.1 - checksum: c4e11d33e84bde7516b824503ffbe4b6cce863d5ce485680fd3db997b7c64da1df98321b1fd0703b58be8bc9bc83bc96bd83043f96194386b45eb47229efb6b6 +"resolve-from@npm:^5.0.0": + version: 5.0.0 + resolution: "resolve-from@npm:5.0.0" + checksum: 4ceeb9113e1b1372d0cd969f3468fa042daa1dd9527b1b6bb88acb6ab55d8b9cd65dbf18819f9f9ddf0db804990901dcdaade80a215e7b2c23daae38e64f5bdf languageName: node linkType: hard @@ -21764,23 +21679,23 @@ __metadata: languageName: node linkType: hard -"semver@npm:7.5.4, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4": - version: 7.5.4 - resolution: "semver@npm:7.5.4" - dependencies: - lru-cache: ^6.0.0 +"semver@npm:^6.0.0, semver@npm:^6.1.1, semver@npm:^6.1.2, semver@npm:^6.3.0, semver@npm:^6.3.1": + version: 6.3.1 + resolution: "semver@npm:6.3.1" bin: semver: bin/semver.js - checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3 + checksum: ae47d06de28836adb9d3e25f22a92943477371292d9b665fb023fae278d345d508ca1958232af086d85e0155aee22e313e100971898bbb8d5d89b8b1d4054ca2 languageName: node linkType: hard -"semver@npm:^6.0.0, semver@npm:^6.1.1, semver@npm:^6.1.2, semver@npm:^6.3.0, semver@npm:^6.3.1": - version: 6.3.1 - resolution: "semver@npm:6.3.1" +"semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4": + version: 7.5.4 + resolution: "semver@npm:7.5.4" + dependencies: + lru-cache: ^6.0.0 bin: semver: bin/semver.js - checksum: ae47d06de28836adb9d3e25f22a92943477371292d9b665fb023fae278d345d508ca1958232af086d85e0155aee22e313e100971898bbb8d5d89b8b1d4054ca2 + checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3 languageName: node linkType: hard @@ -22364,15 +22279,6 @@ __metadata: languageName: node linkType: hard -"split2@npm:^3.0.0, split2@npm:^3.2.2": - version: 3.2.2 - resolution: "split2@npm:3.2.2" - dependencies: - readable-stream: ^3.0.0 - checksum: 8127ddbedd0faf31f232c0e9192fede469913aa8982aa380752e0463b2e31c2359ef6962eb2d24c125bac59eeec76873678d723b1c7ff696216a1cd071e3994a - languageName: node - linkType: hard - "split2@npm:^4.0.0": version: 4.2.0 resolution: "split2@npm:4.2.0" @@ -22732,15 +22638,6 @@ __metadata: languageName: node linkType: hard -"strip-indent@npm:^3.0.0": - version: 3.0.0 - resolution: "strip-indent@npm:3.0.0" - dependencies: - min-indent: ^1.0.0 - checksum: 18f045d57d9d0d90cd16f72b2313d6364fd2cb4bf85b9f593523ad431c8720011a4d5f08b6591c9d580f446e78855c5334a30fb91aa1560f5d9f95ed1b4a0530 - languageName: node - linkType: hard - "strip-json-comments@npm:3.1.1, strip-json-comments@npm:^3.1.1": version: 3.1.1 resolution: "strip-json-comments@npm:3.1.1" @@ -23023,10 +22920,10 @@ __metadata: languageName: node linkType: hard -"text-extensions@npm:^1.0.0": - version: 1.9.0 - resolution: "text-extensions@npm:1.9.0" - checksum: 56a9962c1b62d39b2bcb369b7558ca85c1b55e554b38dfd725edcc0a1babe5815782a60c17ff6b839093b163dfebb92b804208aaaea616ec7571c8059ae0cf44 +"text-extensions@npm:^2.0.0": + version: 2.4.0 + resolution: "text-extensions@npm:2.4.0" + checksum: 9bdbc9959e004ccc86a6ec076d6c5bb6765978263e9d0d5febb640d7675c09919ea912f3fe9d50b68c3c7c43cc865610a7cb24954343abb31f74c205fbae4e45 languageName: node linkType: hard @@ -23086,15 +22983,6 @@ __metadata: languageName: node linkType: hard -"through2@npm:^4.0.0": - version: 4.0.2 - resolution: "through2@npm:4.0.2" - dependencies: - readable-stream: 3 - checksum: ac7430bd54ccb7920fd094b1c7ff3e1ad6edd94202e5528331253e5fde0cc56ceaa690e8df9895de2e073148c52dfbe6c4db74cacae812477a35660090960cc0 - languageName: node - linkType: hard - "through@npm:>=2.2.7 <3": version: 2.3.8 resolution: "through@npm:2.3.8" @@ -23262,13 +23150,6 @@ __metadata: languageName: node linkType: hard -"trim-newlines@npm:^3.0.0": - version: 3.0.1 - resolution: "trim-newlines@npm:3.0.1" - checksum: b530f3fadf78e570cf3c761fb74fef655beff6b0f84b29209bac6c9622db75ad1417f4a7b5d54c96605dcd72734ad44526fef9f396807b90839449eb543c6206 - languageName: node - linkType: hard - "triple-beam@npm:^1.3.0": version: 1.4.1 resolution: "triple-beam@npm:1.4.1" @@ -23385,7 +23266,7 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^10.8.1, ts-node@npm:^10.8.2, ts-node@npm:^10.9.2": +"ts-node@npm:^10.8.2, ts-node@npm:^10.9.2": version: 10.9.2 resolution: "ts-node@npm:10.9.2" dependencies: @@ -23581,13 +23462,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.18.0": - version: 0.18.1 - resolution: "type-fest@npm:0.18.1" - checksum: e96dcee18abe50ec82dab6cbc4751b3a82046da54c52e3b2d035b3c519732c0b3dd7a2fa9df24efd1a38d953d8d4813c50985f215f1957ee5e4f26b0fe0da395 - languageName: node - linkType: hard - "type-fest@npm:^0.20.2": version: 0.20.2 resolution: "type-fest@npm:0.20.2" @@ -23731,16 +23605,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^4.6.4 || ^5.2.2": - version: 5.2.2 - resolution: "typescript@npm:5.2.2" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c - languageName: node - linkType: hard - "typescript@npm:^4.9.5": version: 4.9.5 resolution: "typescript@npm:4.9.5" @@ -23751,16 +23615,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@^4.6.4 || ^5.2.2#~builtin": - version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca - languageName: node - linkType: hard - "typescript@patch:typescript@^4.9.5#~builtin": version: 4.9.5 resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587" @@ -23914,6 +23768,13 @@ __metadata: languageName: node linkType: hard +"unicorn-magic@npm:^0.1.0": + version: 0.1.0 + resolution: "unicorn-magic@npm:0.1.0" + checksum: 48c5882ca3378f380318c0b4eb1d73b7e3c5b728859b060276e0a490051d4180966beeb48962d850fd0c6816543bcdfc28629dcd030bb62a286a2ae2acb5acb6 + languageName: node + linkType: hard + "unique-filename@npm:^1.1.1": version: 1.1.1 resolution: "unique-filename@npm:1.1.1" @@ -26205,7 +26066,7 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:^20.2.2, yargs-parser@npm:^20.2.3": +"yargs-parser@npm:^20.2.2": version: 20.2.9 resolution: "yargs-parser@npm:20.2.9" checksum: 8bb69015f2b0ff9e17b2c8e6bfe224ab463dd00ca211eece72a4cd8a906224d2703fb8a326d36fdd0e68701e201b2a60ed7cf81ce0fd9b3799f9fe7745977ae3 @@ -26314,6 +26175,13 @@ __metadata: languageName: node linkType: hard +"yocto-queue@npm:^1.0.0": + version: 1.0.0 + resolution: "yocto-queue@npm:1.0.0" + checksum: 2cac84540f65c64ccc1683c267edce396b26b1e931aa429660aefac8fbe0188167b7aee815a3c22fa59a28a58d898d1a2b1825048f834d8d629f4c2a5d443801 + languageName: node + linkType: hard + "yorkie@npm:^2.0.0": version: 2.0.0 resolution: "yorkie@npm:2.0.0" From e7548cf81c9272b45f20e32de592ec6a55ff81d7 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:10:40 -0800 Subject: [PATCH 04/29] devop: switch to commitlint --- .husky/commit-msg | 1 + .husky/prepare-commit-msg | 4 --- commitlint.config.js | 1 + devmoji.config.js | 40 --------------------------- package.json | 3 +- yarn.lock | 58 +++++++++++++++++++-------------------- 6 files changed, 33 insertions(+), 74 deletions(-) create mode 100644 .husky/commit-msg delete mode 100755 .husky/prepare-commit-msg create mode 100644 commitlint.config.js delete mode 100644 devmoji.config.js diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 000000000..2785bc1d2 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +yarn commitlint --edit $1 diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg deleted file mode 100755 index f13d9ef4d..000000000 --- a/.husky/prepare-commit-msg +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -yarn devmoji -e --lint diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 000000000..fa584fb6d --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +export default { extends: ["@commitlint/config-conventional"] }; diff --git a/devmoji.config.js b/devmoji.config.js deleted file mode 100644 index b47e2eb31..000000000 --- a/devmoji.config.js +++ /dev/null @@ -1,40 +0,0 @@ -module.exports = { - types: [ - "build", - "ui", - "feature", - "ci", - "devop", - "chore", - "docs", - "feat", - "fix", - "refactor", - "revert", - "style", - "lint", - "test", - "translation", - "sentry", - "release", - ], - devmoji: [ - { code: "ui", gitmoji: "art" }, - { code: "feature", gitmoji: "sparkles" }, - { code: "devop", gitmoji: "wrench" }, - { code: "revert", gitmoji: "rewind" }, - { code: "lint", gitmoji: "card_file_box" }, - { code: "translations", gitmoji: "globe_with_meridians" }, - { code: "build", gitmoji: "green_heart" }, - { code: "ci", gitmoji: "green_heart" }, - { code: "chore", gitmoji: "construction_worker" }, - { code: "docs", gitmoji: "page_facing_up" }, - { code: "feat", gitmoji: "sparkles" }, - { code: "fix", gitmoji: "bug" }, - { code: "refactor", gitmoji: "recycle" }, - { code: "style", gitmoji: "art" }, - { code: "test", gitmoji: "white_check_mark" }, - { code: "translation", gitmoji: "globe_with_meridians" }, - { code: "sentry", gitmoji: "fire" }, - ], -}; diff --git a/package.json b/package.json index 61b5c7caf..35c52bf72 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,10 @@ "version:apply": "yarn version apply --all" }, "devDependencies": { + "@commitlint/cli": "^19.0.3", + "@commitlint/config-conventional": "^19.0.3", "@swc/core": "^1.4.2", "concurrently": "^8.2.2", - "devmoji": "^2.3.0", "husky": "^8.0.3", "node-notifier": "^10.0.1", "nodemon": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index c12c0259a..89072ecca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1516,6 +1516,16 @@ __metadata: languageName: node linkType: hard +"@commitlint/config-conventional@npm:^19.0.3": + version: 19.0.3 + resolution: "@commitlint/config-conventional@npm:19.0.3" + dependencies: + "@commitlint/types": ^19.0.3 + conventional-changelog-conventionalcommits: ^7.0.2 + checksum: 35fc2f8aba87196bf3a50f4d2c851ae462a5f993f0b2ea9baacd381d7db58dce07291874fa32b059ee6b88058acd44410ec7cf1b97519d9b2068f2cb532d0ed4 + languageName: node + linkType: hard + "@commitlint/config-validator@npm:^19.0.3": version: 19.0.3 resolution: "@commitlint/config-validator@npm:19.0.3" @@ -11232,7 +11242,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.1, chalk@npm:^4.1.2": +"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" dependencies: @@ -11658,13 +11668,6 @@ __metadata: languageName: node linkType: hard -"commander@npm:7.2.0, commander@npm:^7.2.0": - version: 7.2.0 - resolution: "commander@npm:7.2.0" - checksum: 53501cbeee61d5157546c0bef0fedb6cdfc763a882136284bed9a07225f09a14b82d2a84e7637edfd1a679fb35ed9502fd58ef1d091e6287f60d790147f68ddc - languageName: node - linkType: hard - "commander@npm:^2.15.0, commander@npm:^2.20.0, commander@npm:^2.20.3": version: 2.20.3 resolution: "commander@npm:2.20.3" @@ -11679,6 +11682,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^7.2.0": + version: 7.2.0 + resolution: "commander@npm:7.2.0" + checksum: 53501cbeee61d5157546c0bef0fedb6cdfc763a882136284bed9a07225f09a14b82d2a84e7637edfd1a679fb35ed9502fd58ef1d091e6287f60d790147f68ddc + languageName: node + linkType: hard + "commander@npm:^8.3.0": version: 8.3.0 resolution: "commander@npm:8.3.0" @@ -11844,6 +11854,15 @@ __metadata: languageName: node linkType: hard +"conventional-changelog-conventionalcommits@npm:^7.0.2": + version: 7.0.2 + resolution: "conventional-changelog-conventionalcommits@npm:7.0.2" + dependencies: + compare-func: ^2.0.0 + checksum: e17ac5970ae09d6e9b0c3a7edaed075b836c0c09c34c514589cbe06554f46ed525067fa8150a8467cc03b1cf9af2073e7ecf48790d4f5ea399921b1cbe313711 + languageName: node + linkType: hard + "conventional-commits-parser@npm:^5.0.0": version: 5.0.0 resolution: "conventional-commits-parser@npm:5.0.0" @@ -12763,19 +12782,6 @@ __metadata: languageName: node linkType: hard -"devmoji@npm:^2.3.0": - version: 2.3.0 - resolution: "devmoji@npm:2.3.0" - dependencies: - chalk: ^4.1.1 - commander: 7.2.0 - ts-interface-checker: 1.0.0 - bin: - devmoji: bin/devmoji.js - checksum: 8b13866422085ac6834ffcd66fc342bb56b3128d0909647c00b475d29e11be83e6035f7ffcfeca3bcfec7299a0d3e3b3b84265993885d1aff33e3fc5467f2687 - languageName: node - linkType: hard - "diff-sequences@npm:^27.5.1": version: 27.5.1 resolution: "diff-sequences@npm:27.5.1" @@ -13154,9 +13160,10 @@ __metadata: version: 0.0.0-use.local resolution: "enkrypt@workspace:." dependencies: + "@commitlint/cli": ^19.0.3 + "@commitlint/config-conventional": ^19.0.3 "@swc/core": ^1.4.2 concurrently: ^8.2.2 - devmoji: ^2.3.0 husky: ^8.0.3 node-notifier: ^10.0.1 nodemon: ^3.1.0 @@ -23178,13 +23185,6 @@ __metadata: languageName: node linkType: hard -"ts-interface-checker@npm:1.0.0": - version: 1.0.0 - resolution: "ts-interface-checker@npm:1.0.0" - checksum: 3cf0b6037f3ccd6f6df1c963ce4dcff4ab540129b24d4f662b4df82abdd287276b2795824221b4bc1ae68244f03f37de90458f256e94e9de572d00ddaa023ff7 - languageName: node - linkType: hard - "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" From 9232c0d147c22fb559626e0407b81f2b67927ec4 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:13:59 -0800 Subject: [PATCH 05/29] devop: commitlint --- commitlint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index fa584fb6d..5073c20db 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1 @@ -export default { extends: ["@commitlint/config-conventional"] }; +module.exports = { extends: ["@commitlint/config-conventional"] }; From 6434f3fd7caea8e4eeed2d39fa01e1a5d6d2ee24 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:17:24 -0800 Subject: [PATCH 06/29] devop: commitlint --- .husky/commit-msg | 0 commitlint.config.js | 25 ++++++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) mode change 100644 => 100755 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100644 new mode 100755 diff --git a/commitlint.config.js b/commitlint.config.js index 5073c20db..c60de72ce 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,24 @@ -module.exports = { extends: ["@commitlint/config-conventional"] }; +module.exports = { + extends: ["@commitlint/config-conventional"], + rules: { + "type-enum": [ + 2, + "always", + [ + "devop", + "build", + "chore", + "ci", + "docs", + "feat", + "fix", + "perf", + "refactor", + "revert", + "style", + "test", + "button", + ], + ], + }, +}; From c39281fa71fe037d1eba700987f9a91986a90db4 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:22:18 -0800 Subject: [PATCH 07/29] devop: update @ensdomains/address-encoder --- packages/name-resolution/package.json | 2 +- packages/name-resolution/src/ens/index.ts | 4 ++-- yarn.lock | 15 +++++++++++++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/name-resolution/package.json b/packages/name-resolution/package.json index f735aafa0..4acc6c9c3 100644 --- a/packages/name-resolution/package.json +++ b/packages/name-resolution/package.json @@ -45,7 +45,7 @@ "author": "kvhnuke", "license": "MIT", "dependencies": { - "@ensdomains/address-encoder": "^0.2.22", + "@ensdomains/address-encoder": "^1.1.0", "@siddomains/sidjs": "0.1.29", "@unstoppabledomains/resolution": "^9.2.2", "ethers": "^5.7.2" diff --git a/packages/name-resolution/src/ens/index.ts b/packages/name-resolution/src/ens/index.ts index 78e0b567f..66189969f 100644 --- a/packages/name-resolution/src/ens/index.ts +++ b/packages/name-resolution/src/ens/index.ts @@ -1,5 +1,5 @@ import { ethers } from "ethers"; -import { formatsByName } from "@ensdomains/address-encoder"; +import { coinNameToTypeMap } from "@ensdomains/address-encoder"; import { BaseResolver, CoinType } from "../types"; import { ENSOptions } from "./types"; import { getTLD } from "../utils"; @@ -33,7 +33,7 @@ class ENSResolver implements BaseResolver { const resolver = await this.ENSProvider.getResolver(name); if (resolver) { return resolver - .getAddress(formatsByName[coin].coinType) + .getAddress(coinNameToTypeMap[coin.toLowerCase()]) .then((address) => { if (address) return address; return null; diff --git a/yarn.lock b/yarn.lock index 89072ecca..8a906a8cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2534,7 +2534,7 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/name-resolution@workspace:packages/name-resolution" dependencies: - "@ensdomains/address-encoder": ^0.2.22 + "@ensdomains/address-encoder": ^1.1.0 "@siddomains/sidjs": 0.1.29 "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 @@ -2861,6 +2861,17 @@ __metadata: languageName: node linkType: hard +"@ensdomains/address-encoder@npm:^1.1.0": + version: 1.1.0 + resolution: "@ensdomains/address-encoder@npm:1.1.0" + dependencies: + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + "@scure/base": ^1.1.5 + checksum: 5697cc78c7c79eb49a22353123db43d8c5521fd24ef8f0c630151e2ea0788589950b90c1d904f848a4ee6c6f17bd326ff0137a901095f74517f7c11853da38ec + languageName: node + linkType: hard + "@ensdomains/buffer@npm:^0.0.13": version: 0.0.13 resolution: "@ensdomains/buffer@npm:0.0.13" @@ -5076,7 +5087,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1": +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1": version: 1.3.3 resolution: "@noble/hashes@npm:1.3.3" checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b From b82bdf666b5eef78fb2c095f96e0a60cc3ae4a2c Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:34:51 -0800 Subject: [PATCH 08/29] devop: update @ethereumjs/common/tx --- packages/extension/package.json | 4 +- .../ethereum/libs/transaction/index.ts | 9 +- .../src/providers/ethereum/ui/libs/signer.ts | 23 +++-- .../verify-transaction/index.vue | 11 +-- .../src/providers/ethereum/ui/types.ts | 5 +- .../views/swap/libs/send-transactions.ts | 8 +- packages/hw-wallets/package.json | 2 +- .../hw-wallets/src/ledger/ethereum/index.ts | 9 +- packages/hw-wallets/src/trezor/index.ts | 5 +- packages/hw-wallets/src/types.ts | 2 +- packages/utils/package.json | 2 +- packages/utils/src/index.ts | 6 +- yarn.lock | 97 +++++++++++++++++-- 13 files changed, 126 insertions(+), 57 deletions(-) diff --git a/packages/extension/package.json b/packages/extension/package.json index 2f59500d6..9a485bad3 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -28,8 +28,8 @@ "@enkryptcom/swap": "workspace:^", "@enkryptcom/types": "workspace:^", "@enkryptcom/utils": "workspace:^", - "@ethereumjs/common": "^3.2.0", - "@ethereumjs/tx": "^4.2.0", + "@ethereumjs/common": "^4.2.0", + "@ethereumjs/tx": "^5.2.1", "@ledgerhq/hw-transport-webusb": "^6.28.4", "@metamask/eth-sig-util": "^7.0.1", "@rollup/plugin-replace": "^5.0.5", diff --git a/packages/extension/src/providers/ethereum/libs/transaction/index.ts b/packages/extension/src/providers/ethereum/libs/transaction/index.ts index a0a9d586f..dbd88a293 100644 --- a/packages/extension/src/providers/ethereum/libs/transaction/index.ts +++ b/packages/extension/src/providers/ethereum/libs/transaction/index.ts @@ -17,10 +17,7 @@ import { getPriorityFeeBasedOnType, } from "./gas-utils"; import { Hardfork, Common } from "@ethereumjs/common"; -import { - FeeMarketEIP1559Transaction, - Transaction as LegacyTransaction, -} from "@ethereumjs/tx"; +import { FeeMarketEIP1559Transaction, LegacyTransaction } from "@ethereumjs/tx"; class Transaction { tx: EthereumTransaction; @@ -178,9 +175,9 @@ class Transaction { ); } } - async getMessageToSign(options: TransactionOptions): Promise { + async getMessageToSign(options: TransactionOptions): Promise { const tx = await this.getFinalizedTransaction(options); - return tx.getMessageToSign(true); + return tx.getHashedMessageToSign(); } async getGasCosts(): Promise { const { gasLimit, gasPrice, baseFeePerGas, formattedFeeHistory } = diff --git a/packages/extension/src/providers/ethereum/ui/libs/signer.ts b/packages/extension/src/providers/ethereum/ui/libs/signer.ts index df981278a..ab3ff2ec6 100644 --- a/packages/extension/src/providers/ethereum/ui/libs/signer.ts +++ b/packages/extension/src/providers/ethereum/ui/libs/signer.ts @@ -3,8 +3,9 @@ import { FeeMarketEIP1559Transaction } from "@ethereumjs/tx"; import { SignerTransactionOptions, SignerMessageOptions } from "../types"; import HWwallet from "@enkryptcom/hw-wallets"; import { HWwalletType } from "@enkryptcom/types"; -import { bufferToHex, fromRpcSig, hashPersonalMessage } from "ethereumjs-util"; +import { fromRpcSig, hashPersonalMessage } from "ethereumjs-util"; import { getCustomError } from "@/libs/error"; +import { bufferToHex } from "@enkryptcom/utils"; import sendUsingInternalMessengers from "@/libs/messenger/internal-messenger"; const TransactionSigner = ( options: SignerTransactionOptions @@ -25,9 +26,12 @@ const TransactionSigner = ( }) .then((rpcsig: string) => { const rpcSig = fromRpcSig(rpcsig); - const signedTx = ( - payload as FeeMarketEIP1559Transaction - )._processSignature(BigInt(rpcSig.v), rpcSig.r, rpcSig.s); + const signedTx = (payload as FeeMarketEIP1559Transaction).addSignature( + BigInt(rpcSig.v), + rpcSig.r, + rpcSig.s, + true + ); return signedTx; }) .catch((e) => { @@ -36,7 +40,7 @@ const TransactionSigner = ( }); }); } else { - const msgHash = bufferToHex(payload.getMessageToSign(true)); + const msgHash = bufferToHex(payload.getHashedMessageToSign()); return sendUsingInternalMessengers({ method: InternalMethods.sign, params: [msgHash, account], @@ -45,9 +49,12 @@ const TransactionSigner = ( return Promise.reject(res); } else { const rpcSig = fromRpcSig(JSON.parse(res.result as string) || "0x"); - const signedTx = ( - payload as FeeMarketEIP1559Transaction - )._processSignature(BigInt(rpcSig.v), rpcSig.r, rpcSig.s); + const signedTx = (payload as FeeMarketEIP1559Transaction).addSignature( + BigInt(rpcSig.v), + rpcSig.r, + rpcSig.s, + true + ); return signedTx; } }); diff --git a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue index 41d7ebec1..eace9cdfe 100644 --- a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue @@ -105,7 +105,7 @@ import broadcastTx from "@/providers/ethereum/libs/tx-broadcaster"; import { BaseNetwork } from "@/types/base-network"; import { bigIntToHex } from "@ethereumjs/util"; import { toBN } from "web3-utils"; -import { toBase } from "@enkryptcom/utils"; +import { bufferToHex, toBase } from "@enkryptcom/utils"; const KeyRing = new PublicKeyRing(); const route = useRoute(); @@ -203,16 +203,11 @@ const sendAction = async () => { payload: finalizedTx, }) .then((signedTx) => { - broadcastTx( - "0x" + signedTx.serialize().toString("hex"), - network.value.name - ) + broadcastTx(bufferToHex(signedTx.serialize()), network.value.name) .then(onHash) .catch(() => { web3 - .sendSignedTransaction( - "0x" + signedTx.serialize().toString("hex") - ) + .sendSignedTransaction(bufferToHex(signedTx.serialize())) .on("transactionHash", onHash) .on("error", (error: any) => { txActivity.status = ActivityStatus.failed; diff --git a/packages/extension/src/providers/ethereum/ui/types.ts b/packages/extension/src/providers/ethereum/ui/types.ts index faaf8abeb..baa0f0e30 100644 --- a/packages/extension/src/providers/ethereum/ui/types.ts +++ b/packages/extension/src/providers/ethereum/ui/types.ts @@ -1,10 +1,7 @@ import { BaseNetwork } from "@/types/base-network"; import { ToTokenData } from "@/ui/action/types/token"; import { EnkryptAccount } from "@enkryptcom/types"; -import { - FeeMarketEIP1559Transaction, - Transaction as LegacyTransaction, -} from "@ethereumjs/tx"; +import { FeeMarketEIP1559Transaction, LegacyTransaction } from "@ethereumjs/tx"; import { GasPriceTypes } from "@/providers/common/types"; import { GasFeeInfo } from "@/providers/common/types"; import { NFTItemWithCollectionName } from "@/types/nft"; diff --git a/packages/extension/src/ui/action/views/swap/libs/send-transactions.ts b/packages/extension/src/ui/action/views/swap/libs/send-transactions.ts index 2440c0f94..d2858a2de 100644 --- a/packages/extension/src/ui/action/views/swap/libs/send-transactions.ts +++ b/packages/extension/src/ui/action/views/swap/libs/send-transactions.ts @@ -23,7 +23,7 @@ import { import { SubstrateNetwork } from "@/providers/polkadot/types/substrate-network"; import { toBN } from "web3-utils"; import type Transaction from "@/providers/ethereum/libs/transaction"; -import { bigIntToHex, toBase } from "@enkryptcom/utils"; +import { bigIntToHex, bufferToHex, toBase } from "@enkryptcom/utils"; import broadcastTx from "@/providers/ethereum/libs/tx-broadcaster"; import { BitcoinNetwork } from "@/providers/bitcoin/types/bitcoin-network"; import { getBitcoinGasVals } from "./bitcoin-gasvals"; @@ -213,15 +213,13 @@ export const executeSwap = async ( } }; broadcastTx( - `0x${signedTx.serialize().toString("hex")}`, + bufferToHex(signedTx.serialize()), options.network.name ) .then(onHash) .catch(() => { web3 - .sendSignedTransaction( - `0x${signedTx.serialize().toString("hex")}` - ) + .sendSignedTransaction(bufferToHex(signedTx.serialize())) .on("transactionHash", onHash) .catch(reject); }); diff --git a/packages/hw-wallets/package.json b/packages/hw-wallets/package.json index 13aa2fd2c..f2163e91c 100644 --- a/packages/hw-wallets/package.json +++ b/packages/hw-wallets/package.json @@ -47,7 +47,7 @@ "dependencies": { "@enkryptcom/types": "workspace:^", "@enkryptcom/utils": "workspace:^", - "@ethereumjs/tx": "^4.2.0", + "@ethereumjs/tx": "^5.2.1", "@ledgerhq/hw-app-eth": "^6.35.6", "@ledgerhq/hw-transport": "^6.30.4", "@ledgerhq/hw-transport-webusb": "^6.28.4", diff --git a/packages/hw-wallets/src/ledger/ethereum/index.ts b/packages/hw-wallets/src/ledger/ethereum/index.ts index cd922fae3..41b787073 100644 --- a/packages/hw-wallets/src/ledger/ethereum/index.ts +++ b/packages/hw-wallets/src/ledger/ethereum/index.ts @@ -4,10 +4,7 @@ import ledgerService from "@ledgerhq/hw-app-eth/lib/services/ledger"; import { HWwalletCapabilities, NetworkNames } from "@enkryptcom/types"; import EthApp from "@ledgerhq/hw-app-eth"; import { toRpcSig, publicToAddress, rlp } from "ethereumjs-util"; -import { - Transaction as LegacyTransaction, - FeeMarketEIP1559Transaction, -} from "@ethereumjs/tx"; +import { LegacyTransaction, FeeMarketEIP1559Transaction } from "@ethereumjs/tx"; import HDKey from "hdkey"; import { bigIntToHex, bufferToHex, hexToBuffer } from "@enkryptcom/utils"; import { @@ -111,10 +108,10 @@ class LedgerEthereum implements HWWalletProvider { let msgToSign: string; if ((options.transaction as LegacyTransaction).gasPrice) { tx = options.transaction as LegacyTransaction; - msgToSign = rlp.encode(tx.getMessageToSign(false)).toString("hex"); + msgToSign = rlp.encode(tx.getMessageToSign()).toString("hex"); } else { tx = options.transaction as FeeMarketEIP1559Transaction; - msgToSign = tx.getMessageToSign(false).toString("hex"); + msgToSign = bufferToHex(tx.getMessageToSign(), true); } const resolution = await ledgerService.resolveTransaction( msgToSign, diff --git a/packages/hw-wallets/src/trezor/index.ts b/packages/hw-wallets/src/trezor/index.ts index 3555c06b3..b1626335b 100644 --- a/packages/hw-wallets/src/trezor/index.ts +++ b/packages/hw-wallets/src/trezor/index.ts @@ -3,10 +3,7 @@ import { HWwalletCapabilities, NetworkNames } from "@enkryptcom/types"; import HDKey from "hdkey"; import { bigIntToHex, bufferToHex, hexToBuffer } from "@enkryptcom/utils"; import { publicToAddress, toRpcSig } from "ethereumjs-util"; -import { - FeeMarketEIP1559Transaction, - Transaction as LegacyTransaction, -} from "@ethereumjs/tx"; +import { FeeMarketEIP1559Transaction, LegacyTransaction } from "@ethereumjs/tx"; import { AddressResponse, getAddressRequest, diff --git a/packages/hw-wallets/src/types.ts b/packages/hw-wallets/src/types.ts index 77294fc53..597c03122 100644 --- a/packages/hw-wallets/src/types.ts +++ b/packages/hw-wallets/src/types.ts @@ -1,7 +1,7 @@ import { NetworkNames, HWwalletType } from "@enkryptcom/types"; import type { FeeMarketEIP1559Transaction, - Transaction as LegacyTransaction, + LegacyTransaction, } from "@ethereumjs/tx"; import type { ExtrinsicPayload } from "@polkadot/types/interfaces"; diff --git a/packages/utils/package.json b/packages/utils/package.json index 6415e800b..a35252bae 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@enkryptcom/types": "workspace:^", - "@ethereumjs/util": "^8.1.0", + "@ethereumjs/util": "^9.0.2", "@polkadot/util-crypto": "^12.6.2", "bip39": "^3.1.0", "chai": "^4.4.1", diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index e912df36a..6890e660d 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,12 +1,11 @@ import { stripHexPrefix, - bytesToHex, hexToBytes, keccak256, utf8ToHex, numberToHex, } from "web3-utils"; -import { bigIntToBuffer, bigIntToHex } from "@ethereumjs/util"; +import { bigIntToBytes, bigIntToHex } from "@ethereumjs/util"; import { encodeAddress as polkadotEncodeAddress } from "@polkadot/util-crypto"; import { encrypt, decrypt } from "./encrypt"; import MemoryStorage from "./memory-storage"; @@ -29,7 +28,6 @@ export { utf8ToHex, bufferToHex, hexToBuffer, - bytesToHex, hexToBytes, encrypt, decrypt, @@ -37,7 +35,7 @@ export { keccak256, polkadotEncodeAddress, numberToHex, - bigIntToBuffer, + bigIntToBytes, bigIntToHex, fromBase, toBase, diff --git a/yarn.lock b/yarn.lock index 8a906a8cc..fd2a112ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2358,8 +2358,8 @@ __metadata: "@enkryptcom/swap": "workspace:^" "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" - "@ethereumjs/common": ^3.2.0 - "@ethereumjs/tx": ^4.2.0 + "@ethereumjs/common": ^4.2.0 + "@ethereumjs/tx": ^5.2.1 "@ledgerhq/hw-transport-webusb": ^6.28.4 "@metamask/eth-sig-util": ^7.0.1 "@polkadot/api": ^10.11.3 @@ -2459,7 +2459,7 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" - "@ethereumjs/tx": ^4.2.0 + "@ethereumjs/tx": ^5.2.1 "@ledgerhq/hw-app-eth": ^6.35.6 "@ledgerhq/hw-transport": ^6.30.4 "@ledgerhq/hw-transport-webusb": ^6.28.4 @@ -2799,7 +2799,7 @@ __metadata: resolution: "@enkryptcom/utils@workspace:packages/utils" dependencies: "@enkryptcom/types": "workspace:^" - "@ethereumjs/util": ^8.1.0 + "@ethereumjs/util": ^9.0.2 "@polkadot/util-crypto": ^12.6.2 "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 @@ -3176,6 +3176,15 @@ __metadata: languageName: node linkType: hard +"@ethereumjs/common@npm:^4.2.0": + version: 4.2.0 + resolution: "@ethereumjs/common@npm:4.2.0" + dependencies: + "@ethereumjs/util": ^9.0.2 + checksum: ef97c688d2e9618bb1328d32f5f2f1a9e73b7b896ba5ca83d474d25f1b1b7411276c3448f594639af99fc9b07c8f840be21cbd04e3052324ce81f5014820d392 + languageName: node + linkType: hard + "@ethereumjs/rlp@npm:^4.0.1": version: 4.0.1 resolution: "@ethereumjs/rlp@npm:4.0.1" @@ -3194,6 +3203,15 @@ __metadata: languageName: node linkType: hard +"@ethereumjs/rlp@npm:^5.0.2": + version: 5.0.2 + resolution: "@ethereumjs/rlp@npm:5.0.2" + bin: + rlp: bin/rlp.cjs + checksum: b569061ddb1f4cf56a82f7a677c735ba37f9e94e2bbaf567404beb9e2da7aa1f595e72fc12a17c61f7aec67fd5448443efe542967c685a2fe0ffc435793dcbab + languageName: node + linkType: hard + "@ethereumjs/tx@npm:3.3.2": version: 3.3.2 resolution: "@ethereumjs/tx@npm:3.3.2" @@ -3243,6 +3261,23 @@ __metadata: languageName: node linkType: hard +"@ethereumjs/tx@npm:^5.2.1": + version: 5.2.1 + resolution: "@ethereumjs/tx@npm:5.2.1" + dependencies: + "@ethereumjs/common": ^4.2.0 + "@ethereumjs/rlp": ^5.0.2 + "@ethereumjs/util": ^9.0.2 + ethereum-cryptography: ^2.1.3 + peerDependencies: + c-kzg: ^2.1.2 + peerDependenciesMeta: + c-kzg: + optional: true + checksum: 851aafd64d094f6773c407c604697c3683ae9470dd79c427a3fda933bd9dbc247ca65f443bf0297aa546536fed8abf97d29a8a8d433bb2297529fd618e9ba81d + languageName: node + linkType: hard + "@ethereumjs/util@npm:^8.1.0": version: 8.1.0 resolution: "@ethereumjs/util@npm:8.1.0" @@ -3269,6 +3304,21 @@ __metadata: languageName: node linkType: hard +"@ethereumjs/util@npm:^9.0.2": + version: 9.0.2 + resolution: "@ethereumjs/util@npm:9.0.2" + dependencies: + "@ethereumjs/rlp": ^5.0.2 + ethereum-cryptography: ^2.1.3 + peerDependencies: + c-kzg: ^2.1.2 + peerDependenciesMeta: + c-kzg: + optional: true + checksum: cfac8c92beafc3ad1e7d7bce59027cde1f3cfd32623dea57c2295afbc1e33549799d39f92bdcf3cb7a8626b4620b0ba90af945534773fc9480c59def0e25e07d + languageName: node + linkType: hard + "@ethersproject/abi@npm:5.0.7": version: 5.0.7 resolution: "@ethersproject/abi@npm:5.0.7" @@ -5050,7 +5100,7 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:^1.0.0, @noble/curves@npm:^1.2.0, @noble/curves@npm:^1.3.0": +"@noble/curves@npm:1.3.0, @noble/curves@npm:^1.0.0, @noble/curves@npm:^1.2.0, @noble/curves@npm:^1.3.0, @noble/curves@npm:~1.3.0": version: 1.3.0 resolution: "@noble/curves@npm:1.3.0" dependencies: @@ -5087,7 +5137,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1": +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1, @noble/hashes@npm:~1.3.2": version: 1.3.3 resolution: "@noble/hashes@npm:1.3.3" checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b @@ -6452,7 +6502,7 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0": +"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0, @scure/base@npm:~1.1.4": version: 1.1.5 resolution: "@scure/base@npm:1.1.5" checksum: 9e9ee6088cb3aa0fb91f5a48497d26682c7829df3019b1251d088d166d7a8c0f941c68aaa8e7b96bbad20c71eb210397cb1099062cde3e29d4bad6b975c18519 @@ -6481,6 +6531,17 @@ __metadata: languageName: node linkType: hard +"@scure/bip32@npm:1.3.3": + version: 1.3.3 + resolution: "@scure/bip32@npm:1.3.3" + dependencies: + "@noble/curves": ~1.3.0 + "@noble/hashes": ~1.3.2 + "@scure/base": ~1.1.4 + checksum: f939ca733972622fcc1e61d4fdf170a0ad294b24ddb7ed7cdd4c467e1ef283b970154cb101cf5f1a7b64cf5337e917ad31135911dfc36b1d76625320167df2fa + languageName: node + linkType: hard + "@scure/bip39@npm:1.1.1": version: 1.1.1 resolution: "@scure/bip39@npm:1.1.1" @@ -6501,6 +6562,16 @@ __metadata: languageName: node linkType: hard +"@scure/bip39@npm:1.2.2": + version: 1.2.2 + resolution: "@scure/bip39@npm:1.2.2" + dependencies: + "@noble/hashes": ~1.3.2 + "@scure/base": ~1.1.4 + checksum: cb99505e6d2deef8e55e81df8c563ce8dbfdf1595596dc912bceadcf366c91b05a98130e928ecb090df74efdb20150b64acc4be55bc42768cab4d39a2833d234 + languageName: node + linkType: hard + "@siddomains/address-encoder@npm:^0.0.4": version: 0.0.4 resolution: "@siddomains/address-encoder@npm:0.0.4" @@ -13903,6 +13974,18 @@ __metadata: languageName: node linkType: hard +"ethereum-cryptography@npm:^2.1.3": + version: 2.1.3 + resolution: "ethereum-cryptography@npm:2.1.3" + dependencies: + "@noble/curves": 1.3.0 + "@noble/hashes": 1.3.3 + "@scure/bip32": 1.3.3 + "@scure/bip39": 1.2.2 + checksum: 7f9c14f868a588641179cace3eb86c332c4743290865db699870710253cabc4dc74bd4bce5e7bc6db667482e032e94d6f79521219eb6be5dc422059d279a27b7 + languageName: node + linkType: hard + "ethereum-ens-network-map@npm:^1.0.2": version: 1.0.2 resolution: "ethereum-ens-network-map@npm:1.0.2" From 355c8d9e607290acdb985741063d360b6c437da6 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:36:53 -0800 Subject: [PATCH 09/29] devop: update @ledger/common --- packages/hw-wallets/package.json | 2 +- packages/name-resolution/package.json | 2 +- yarn.lock | 2019 +++++++++++++------------ 3 files changed, 1089 insertions(+), 934 deletions(-) diff --git a/packages/hw-wallets/package.json b/packages/hw-wallets/package.json index f2163e91c..0a4068507 100644 --- a/packages/hw-wallets/package.json +++ b/packages/hw-wallets/package.json @@ -51,7 +51,7 @@ "@ledgerhq/hw-app-eth": "^6.35.6", "@ledgerhq/hw-transport": "^6.30.4", "@ledgerhq/hw-transport-webusb": "^6.28.4", - "@ledgerhq/live-common": "^31.8.0", + "@ledgerhq/live-common": "^33.6.1", "@polkadot/types": "^10.11.3", "@polkadot/util": "^12.6.2", "@trezor/connect-web": "^9.1.12", diff --git a/packages/name-resolution/package.json b/packages/name-resolution/package.json index 4acc6c9c3..7e0909914 100644 --- a/packages/name-resolution/package.json +++ b/packages/name-resolution/package.json @@ -45,7 +45,7 @@ "author": "kvhnuke", "license": "MIT", "dependencies": { - "@ensdomains/address-encoder": "^1.1.0", + "@ensdomains/address-encoder": "^1.1.1", "@siddomains/sidjs": "0.1.29", "@unstoppabledomains/resolution": "^9.2.2", "ethers": "^5.7.2" diff --git a/yarn.lock b/yarn.lock index fd2a112ad..06820dd66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1291,7 +1291,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.10.4, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.8, @babel/runtime@npm:^7.15.4, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.20.1, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.20.6, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.23.8, @babel/runtime@npm:^7.4.4, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": +"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.10.4, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.8, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.23.8, @babel/runtime@npm:^7.4.4, @babel/runtime@npm:^7.8.4": version: 7.23.8 resolution: "@babel/runtime@npm:7.23.8" dependencies: @@ -2225,29 +2225,29 @@ __metadata: languageName: node linkType: hard -"@dfinity/agent@npm:^0.15.6": - version: 0.15.7 - resolution: "@dfinity/agent@npm:0.15.7" +"@dfinity/agent@npm:^0.21.0": + version: 0.21.4 + resolution: "@dfinity/agent@npm:0.21.4" dependencies: + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.1 base64-arraybuffer: ^0.2.0 - bignumber.js: ^9.0.0 borc: ^2.1.1 - js-sha256: 0.9.0 + buffer: ^6.0.3 simple-cbor: ^0.4.1 - ts-node: ^10.8.2 peerDependencies: - "@dfinity/candid": ^0.15.7 - "@dfinity/principal": ^0.15.7 - checksum: 0950629f7e630a13b3932a8666cda458741c2240e07bdf7361620c905a2cd925f0d8b37cf2ff0690277c536be63205fa03c890127c7d4ab8de6811963d4a42aa + "@dfinity/candid": ^0.21.4 + "@dfinity/principal": ^0.21.4 + checksum: d8fd8bc5178415ba671e0b7dbe0b95855ca6c54ceced74ee95d7fd22ccb6fe5da72c686ed2affc63f094a4e86c5a911e9fe6ef93d9b1bd88c36ee153835171a4 languageName: node linkType: hard -"@dfinity/candid@npm:^0.15.6": - version: 0.15.7 - resolution: "@dfinity/candid@npm:0.15.7" - dependencies: - ts-node: ^10.8.2 - checksum: a704d1ef9597579bb6028f97f2657b99e743736dbad9ae6b904507e8e5155fd9447f60a45f0d7d8c331b79d65301b6e5b7fa9373ba70838d41e6d9b7bbdb37dc +"@dfinity/candid@npm:^0.21.0": + version: 0.21.4 + resolution: "@dfinity/candid@npm:0.21.4" + peerDependencies: + "@dfinity/principal": ^0.21.4 + checksum: b78eb829595f80049b7373fc3af982cc5dec3547d8e20b4119bb4948d749dfc2aa41587f491ce09ed7b017d4f07367d6c194c48923834270abeb96398b321dcc languageName: node linkType: hard @@ -2463,7 +2463,7 @@ __metadata: "@ledgerhq/hw-app-eth": ^6.35.6 "@ledgerhq/hw-transport": ^6.30.4 "@ledgerhq/hw-transport-webusb": ^6.28.4 - "@ledgerhq/live-common": ^31.8.0 + "@ledgerhq/live-common": ^33.6.1 "@polkadot/types": ^10.11.3 "@polkadot/util": ^12.6.2 "@trezor/connect-web": ^9.1.12 @@ -2534,7 +2534,7 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/name-resolution@workspace:packages/name-resolution" dependencies: - "@ensdomains/address-encoder": ^1.1.0 + "@ensdomains/address-encoder": ^1.1.1 "@siddomains/sidjs": 0.1.29 "@types/chai": ^4.3.12 "@types/mocha": ^10.0.6 @@ -2861,14 +2861,14 @@ __metadata: languageName: node linkType: hard -"@ensdomains/address-encoder@npm:^1.1.0": - version: 1.1.0 - resolution: "@ensdomains/address-encoder@npm:1.1.0" +"@ensdomains/address-encoder@npm:^1.1.1": + version: 1.1.1 + resolution: "@ensdomains/address-encoder@npm:1.1.1" dependencies: "@noble/curves": ^1.2.0 "@noble/hashes": ^1.3.2 "@scure/base": ^1.1.5 - checksum: 5697cc78c7c79eb49a22353123db43d8c5521fd24ef8f0c630151e2ea0788589950b90c1d904f848a4ee6c6f17bd326ff0137a901095f74517f7c11853da38ec + checksum: 2676370e2b8d6b58afe0dc84216efaf13ffeb7d1114ba34792630f5e1cfb864fdee976188aaa82087b3aa8a624dc926158e09cfb9b41f1c322dddb70285babfd languageName: node linkType: hard @@ -3146,7 +3146,7 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/common@npm:2.6.5, @ethereumjs/common@npm:^2.3.0, @ethereumjs/common@npm:^2.4.0, @ethereumjs/common@npm:^2.5.0, @ethereumjs/common@npm:^2.6.2, @ethereumjs/common@npm:^2.6.4": +"@ethereumjs/common@npm:2.6.5, @ethereumjs/common@npm:^2.3.0, @ethereumjs/common@npm:^2.4.0, @ethereumjs/common@npm:^2.5.0, @ethereumjs/common@npm:^2.6.4": version: 2.6.5 resolution: "@ethereumjs/common@npm:2.6.5" dependencies: @@ -3222,7 +3222,7 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/tx@npm:3.5.2, @ethereumjs/tx@npm:^3.2.1, @ethereumjs/tx@npm:^3.5.0": +"@ethereumjs/tx@npm:3.5.2, @ethereumjs/tx@npm:^3.2.1": version: 3.5.2 resolution: "@ethereumjs/tx@npm:3.5.2" dependencies: @@ -3413,7 +3413,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/bignumber@npm:5.7.0, @ethersproject/bignumber@npm:^5.0.7, @ethersproject/bignumber@npm:^5.7.0": +"@ethersproject/bignumber@npm:5.7.0, @ethersproject/bignumber@npm:^5.0.7, @ethersproject/bignumber@npm:^5.0.8, @ethersproject/bignumber@npm:^5.7.0": version: 5.7.0 resolution: "@ethersproject/bignumber@npm:5.7.0" dependencies: @@ -3424,7 +3424,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/bytes@npm:5.7.0, @ethersproject/bytes@npm:^5.0.4, @ethersproject/bytes@npm:^5.7.0": +"@ethersproject/bytes@npm:5.7.0, @ethersproject/bytes@npm:^5.0.4, @ethersproject/bytes@npm:^5.0.5, @ethersproject/bytes@npm:^5.7.0": version: 5.7.0 resolution: "@ethersproject/bytes@npm:5.7.0" dependencies: @@ -3433,7 +3433,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/constants@npm:5.7.0, @ethersproject/constants@npm:^5.0.4, @ethersproject/constants@npm:^5.7.0": +"@ethersproject/constants@npm:5.7.0, @ethersproject/constants@npm:^5.0.4, @ethersproject/constants@npm:^5.0.5, @ethersproject/constants@npm:^5.7.0": version: 5.7.0 resolution: "@ethersproject/constants@npm:5.7.0" dependencies: @@ -4085,18 +4085,18 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/coin-algorand@npm:^0.3.2": - version: 0.3.4 - resolution: "@ledgerhq/coin-algorand@npm:0.3.4" +"@ledgerhq/coin-algorand@npm:^0.3.11": + version: 0.3.11 + resolution: "@ledgerhq/coin-algorand@npm:0.3.11" dependencies: - "@ledgerhq/coin-framework": ^0.8.0 - "@ledgerhq/cryptoassets": ^11.0.1 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/live-env": ^0.6.0 - "@ledgerhq/live-promise": ^0.0.1 - "@ledgerhq/types-cryptoassets": ^7.6.0 - "@ledgerhq/types-live": ^6.41.1 + "@ledgerhq/coin-framework": ^0.11.2 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/live-promise": ^0.0.3 + "@ledgerhq/types-cryptoassets": ^7.9.0 + "@ledgerhq/types-live": ^6.44.1 algo-msgpack-with-bigint: ^2.1.1 algosdk: 1.13.1 bignumber.js: ^9.1.2 @@ -4104,55 +4104,52 @@ __metadata: invariant: ^2.2.2 lodash: ^4.17.21 prando: ^6.0.1 - rxjs: ^6.6.7 - checksum: 562eebac5a832365beb2d1a56c70d7aa523f5cfa121c5301483c0509cf0124ddb3f4b121f9d46cddaaeb4fe514de3f3a1afbeb536ef5fa8b69a76cd013f9ae35 + rxjs: ^7.8.1 + checksum: 9f34bf46f2fec2ce98b9d1ecbc99fcf531fc5135c4e1b80f50bd44d0e3fff78696d12aa1401da115a19854fa3c099a6274bcd7185f50b2dbf78a0c2a3a659e0b languageName: node linkType: hard -"@ledgerhq/coin-evm@npm:^0.6.2": - version: 0.6.2 - resolution: "@ledgerhq/coin-evm@npm:0.6.2" +"@ledgerhq/coin-evm@npm:^0.12.3": + version: 0.12.3 + resolution: "@ledgerhq/coin-evm@npm:0.12.3" dependencies: "@ethersproject/shims": ^5.7.0 - "@ledgerhq/coin-framework": ^0.5.4 - "@ledgerhq/cryptoassets": ^9.13.0 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/domain-service": ^1.1.11 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/evm-tools": ^1.0.7 - "@ledgerhq/hw-app-eth": ^6.34.6 - "@ledgerhq/live-env": ^0.5.0 - "@ledgerhq/live-network": ^1.1.6 - "@ledgerhq/live-promise": ^0.0.1 - "@ledgerhq/logs": ^6.10.1 - "@ledgerhq/types-cryptoassets": ^7.5.0 - "@ledgerhq/types-live": ^6.40.0 + "@ledgerhq/coin-framework": ^0.11.2 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/domain-service": ^1.1.18 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/evm-tools": ^1.0.16 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/live-network": ^1.1.13 + "@ledgerhq/live-promise": ^0.0.3 + "@ledgerhq/logs": ^6.12.0 axios: 0.26.1 - bignumber.js: ^9.1.1 + bignumber.js: ^9.1.2 eip55: ^2.1.1 ethers: 5.7.2 expect: ^27.4.6 + imurmurhash: ^0.1.4 invariant: ^2.2.2 lodash: ^4.17.21 react-native-get-random-values: ^1.8.0 - rxjs: ^6.6.7 - checksum: f41c845633ad0e39315303a36b3d61f8e03c15685fe9bd813737dc0fe67f556a399f71b0f8db52707a799185655e5c818dc5bb5514bf156c0d91184a5d0de6b1 + rxjs: ^7.8.1 + checksum: 55d4b6d0acf1c178037e5ba7d7b3b772eeb56059809f061155f32bf5c560e544b7f14dd09052a88fcbd3c2342c3721b36b13251331ab59d3fe109ee8b3f4fa95 languageName: node linkType: hard -"@ledgerhq/coin-framework@npm:^0.5.4": - version: 0.5.4 - resolution: "@ledgerhq/coin-framework@npm:0.5.4" +"@ledgerhq/coin-framework@npm:0.11.2, @ledgerhq/coin-framework@npm:^0.11.2": + version: 0.11.2 + resolution: "@ledgerhq/coin-framework@npm:0.11.2" dependencies: - "@ledgerhq/compressjs": "github:LedgerHQ/compressjs#d9e8e4d994923e0ea76a32b97289bcccfe71b82e" - "@ledgerhq/cryptoassets": ^9.13.0 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/live-env": ^0.5.0 - "@ledgerhq/logs": ^6.10.1 - "@ledgerhq/types-cryptoassets": ^7.5.0 - "@ledgerhq/types-live": ^6.40.0 - bignumber.js: ^9.1.1 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/types-cryptoassets": ^7.9.0 + "@ledgerhq/types-live": ^6.44.1 + bignumber.js: ^9.1.2 eip55: ^2.1.0 expect: ^27.4.6 invariant: ^2.2.2 @@ -4160,59 +4157,55 @@ __metadata: lru-cache: ^7.14.1 numeral: ^2.0.6 prando: ^6.0.1 - rxjs: ^6.6.7 - checksum: eaddeae3dadf2947fb50ca69fc71f20e63629a1070f68e48a5c0a1aecc95ad6c425ef8ed37d1db0cfe0532ee719e32819be961a8c23682a0191e29bfab146ede + rxjs: ^7.8.1 + checksum: 2fd2da886bea154c5d744b18460b6bb3234ed05c441ff546c679af2461b8a86df1be8372827d00b263f8ccafad9e723c94bd25708b611f89def321fa3fbd6f0d languageName: node linkType: hard -"@ledgerhq/coin-framework@npm:^0.8.0": - version: 0.8.0 - resolution: "@ledgerhq/coin-framework@npm:0.8.0" +"@ledgerhq/coin-near@npm:^0.3.10": + version: 0.3.10 + resolution: "@ledgerhq/coin-near@npm:0.3.10" dependencies: - "@ledgerhq/compressjs": "github:LedgerHQ/compressjs#d9e8e4d994923e0ea76a32b97289bcccfe71b82e" - "@ledgerhq/cryptoassets": ^11.0.1 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/live-env": ^0.6.0 - "@ledgerhq/logs": ^6.10.1 - "@ledgerhq/types-cryptoassets": ^7.6.0 - "@ledgerhq/types-live": ^6.41.1 + "@ledgerhq/coin-framework": ^0.11.2 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/live-network": ^1.1.13 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/types-cryptoassets": ^7.9.0 + "@ledgerhq/types-live": ^6.44.1 bignumber.js: ^9.1.2 - eip55: ^2.1.0 expect: ^27.4.6 invariant: ^2.2.2 lodash: ^4.17.21 - lru-cache: ^7.14.1 - numeral: ^2.0.6 - prando: ^6.0.1 - rxjs: ^6.6.7 - checksum: c44f774363165b025c5901cbb7d04844edfc11d821dd37db5509b7b6257ca67b01191527156089b81435540e9a922a88cd54ac116154832f54a4767363040506 + near-api-js: ^3.0.2 + rxjs: ^7.8.1 + checksum: f7dbd1364caf4a1713d4b0dfa3dd25ed55677ed4211c875aaae3aa3c656564b5a943b1674db49b9b02b3e6895e78fa6e894144fa6e5649b028f6e7d327269d11 languageName: node linkType: hard -"@ledgerhq/coin-polkadot@npm:^0.4.2": - version: 0.4.4 - resolution: "@ledgerhq/coin-polkadot@npm:0.4.4" +"@ledgerhq/coin-polkadot@npm:^0.5.4": + version: 0.5.4 + resolution: "@ledgerhq/coin-polkadot@npm:0.5.4" dependencies: - "@ledgerhq/coin-framework": ^0.8.0 - "@ledgerhq/cryptoassets": ^11.0.1 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/live-app-sdk": ^0.8.1 - "@ledgerhq/live-env": ^0.6.0 - "@ledgerhq/logs": ^6.10.1 - "@ledgerhq/types-cryptoassets": ^7.6.0 - "@ledgerhq/types-live": ^6.41.1 - "@polkadot/types": 9.8.2 - "@polkadot/types-known": 9.8.2 - "@polkadot/util": 10.3.1 - "@polkadot/util-crypto": 10.3.1 + "@ledgerhq/coin-framework": ^0.11.2 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/types-cryptoassets": ^7.9.0 + "@ledgerhq/types-live": ^6.44.1 + "@polkadot/types": 10.9.1 + "@polkadot/types-known": 10.9.1 + "@polkadot/util": 12.5.1 + "@polkadot/util-crypto": 12.5.1 bignumber.js: ^9.1.2 expect: ^27.4.6 invariant: ^2.2.2 lodash: ^4.17.21 - rxjs: ^6.6.7 - checksum: eab9c1975183ed4cf7ad2864178c7e4b596ff046fe9347e630bf285c4cdb482cc9dc4982b06e17a7de6d4d386b8d8a99aa7b9328e00ba42c9562b0b5fbe77a10 + rxjs: ^7.8.1 + checksum: a18d3bca46aa30842bed305b4009e277f3d1bcb04280bd349d8898a9e189595e8f329a7a4931ff05e5142ff2e092c3a475926475ced136e7e786c5f3bb6246a7 languageName: node linkType: hard @@ -4223,18 +4216,22 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/cryptoassets@npm:^11.0.1, @ledgerhq/cryptoassets@npm:^11.3.1": - version: 11.3.1 - resolution: "@ledgerhq/cryptoassets@npm:11.3.1" - dependencies: - axios: ^1.6.0 - bs58check: ^2.1.2 - invariant: 2 - checksum: 0b180e46a9b3e725ea7ea34d0295c9c042d178c0c4854f59e025353a0d6a5d40557d50d4a77283db085f72db7383f21d0ce678325d10c9800814b92c01fb8347 +"@ledgerhq/crypto-icons-ui@npm:^1.0.2": + version: 1.1.0 + resolution: "@ledgerhq/crypto-icons-ui@npm:1.1.0" + peerDependencies: + "@types/react": "*" + react: "*" + styled-components: "*" + styled-system: "*" + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 99a392adefddd61b4de1e7ca5aa22ea53cd3c4d74db639a24d1fdee05a84c0f11066dc7a8c7a79d6e088ce24767e17e5d37fe3fab916fdcc78f9650b9a6f5b4f languageName: node linkType: hard -"@ledgerhq/cryptoassets@npm:^11.4.1": +"@ledgerhq/cryptoassets@npm:11.4.1, @ledgerhq/cryptoassets@npm:^11.4.1": version: 11.4.1 resolution: "@ledgerhq/cryptoassets@npm:11.4.1" dependencies: @@ -4245,15 +4242,6 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/cryptoassets@npm:^9.13.0": - version: 9.13.0 - resolution: "@ledgerhq/cryptoassets@npm:9.13.0" - dependencies: - invariant: 2 - checksum: 49d33c2ca912b152ebdc9d0caa95a56f70d6e495313af32da6793287577c066b9f36a59e1efea3618756cf94423f1b03fee7d7aece460817badeca9559016251 - languageName: node - linkType: hard - "@ledgerhq/devices@npm:^5.11.0, @ledgerhq/devices@npm:^5.51.1": version: 5.51.1 resolution: "@ledgerhq/devices@npm:5.51.1" @@ -4278,7 +4266,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/devices@npm:^8.0.0, @ledgerhq/devices@npm:^8.0.7, @ledgerhq/devices@npm:^8.2.0": +"@ledgerhq/devices@npm:^8.0.0, @ledgerhq/devices@npm:^8.2.0": version: 8.2.0 resolution: "@ledgerhq/devices@npm:8.2.0" dependencies: @@ -4302,21 +4290,6 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/domain-service@npm:^1.1.11, @ledgerhq/domain-service@npm:^1.1.16": - version: 1.1.16 - resolution: "@ledgerhq/domain-service@npm:1.1.16" - dependencies: - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/logs": ^6.12.0 - "@ledgerhq/types-live": ^6.43.1 - axios: ^1.3.4 - eip55: ^2.1.1 - react: ^18.2.0 - react-dom: ^18.2.0 - checksum: b6b121114bdc3537b0a253c0069a9226c4df86e0bf1c9cc42239b2f6e3e6dd39aa009f63862bf88cb12f7d6ca8511210e6c0cb921007d57143958ac7e07f5308 - languageName: node - linkType: hard - "@ledgerhq/domain-service@npm:^1.1.18": version: 1.1.18 resolution: "@ledgerhq/domain-service@npm:1.1.18" @@ -4339,7 +4312,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/errors@npm:^6.10.0, @ledgerhq/errors@npm:^6.12.3, @ledgerhq/errors@npm:^6.12.6, @ledgerhq/errors@npm:^6.14.0, @ledgerhq/errors@npm:^6.16.1": +"@ledgerhq/errors@npm:^6.10.0, @ledgerhq/errors@npm:^6.12.3, @ledgerhq/errors@npm:^6.14.0, @ledgerhq/errors@npm:^6.16.1": version: 6.16.1 resolution: "@ledgerhq/errors@npm:6.16.1" checksum: 6bbcedee7103d8aa878a7e84e4824796e1505ef32013e1e98679827a72696d01da897adb95a996ad30fa120bf126b98d68107870001b950a55bf9af4372f42af @@ -4353,19 +4326,6 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/evm-tools@npm:^1.0.13, @ledgerhq/evm-tools@npm:^1.0.7": - version: 1.0.13 - resolution: "@ledgerhq/evm-tools@npm:1.0.13" - dependencies: - "@ledgerhq/cryptoassets": ^11.3.1 - "@ledgerhq/live-env": ^0.8.0 - "@ledgerhq/live-network": ^1.1.10 - crypto-js: 4.2.0 - ethers: 5.7.2 - checksum: c65610071d6b936876d74f5ac953bf348714c75f98c7890179cc71b08621e959ab88ae6bd9bd31afb75501fb1a24e783143fa1a0cc1e8a1bd8363d0513f9c95f - languageName: node - linkType: hard - "@ledgerhq/evm-tools@npm:^1.0.16": version: 1.0.16 resolution: "@ledgerhq/evm-tools@npm:1.0.16" @@ -4379,26 +4339,26 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-app-algorand@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-algorand@npm:6.27.19" +"@ledgerhq/hw-app-algorand@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-algorand@npm:6.28.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 bip32-path: ^0.4.2 hi-base32: ^0.5.1 js-sha512: ^0.8.0 tweetnacl: ^1.0.3 - checksum: ae7bfb7dee944acefc69ff3eacac0a019961386770f8e929d6140637d9d54447dd51aed23eb18ef5740a94221c3b9792e367bc668702507f916a5c7bc94e76a2 + checksum: f31549b2c73cef8a58d5863f8fba2b945289e25ee075815e3ccd6a0bc0cd55d3d0a0797567c960b784b9a54d76a0e100e246be35230bed452b984260c35e4c8e languageName: node linkType: hard -"@ledgerhq/hw-app-btc@npm:^10.0.8": - version: 10.0.8 - resolution: "@ledgerhq/hw-app-btc@npm:10.0.8" +"@ledgerhq/hw-app-btc@npm:^10.2.2": + version: 10.2.2 + resolution: "@ledgerhq/hw-app-btc@npm:10.2.2" dependencies: - "@ledgerhq/hw-transport": ^6.28.8 - "@ledgerhq/logs": ^6.10.1 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/logs": ^6.12.0 bip32-path: ^0.4.2 bitcoinjs-lib: ^5.2.0 bs58: ^4.0.1 @@ -4409,38 +4369,18 @@ __metadata: sha.js: 2 tiny-secp256k1: 1.1.6 varuint-bitcoin: 1.1.2 - checksum: e4ba9e1add1db21dada63f5d69ced5fe634c68e18d7f053007a089074ad167b8c5bca6b1822d82516929844114b362617f2a2d1a852bb22ed8b4a2ae6a763ff1 + checksum: 8c6db610d877d7759897753db0b0d19ba6ff88bf40ea3d332ca2780247e7c930d70101e2f6cf63b5bf79bbc8a36f24e1a64c97cb7ec7ca2729429ec91c8df811 languageName: node linkType: hard -"@ledgerhq/hw-app-cosmos@npm:^6.28.5": - version: 6.28.5 - resolution: "@ledgerhq/hw-app-cosmos@npm:6.28.5" +"@ledgerhq/hw-app-cosmos@npm:^6.29.4": + version: 6.29.4 + resolution: "@ledgerhq/hw-app-cosmos@npm:6.29.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 bip32-path: ^0.4.2 - checksum: aa0a675fe43e3b9c28987e6eaefe1737ba809c637ccc7c3ce99ad8fba1cf8a34a2a38b09225d16ec0615a88b4494e1f9896c2bcbf83070dc03ff38ea7fefd1e6 - languageName: node - linkType: hard - -"@ledgerhq/hw-app-eth@npm:^6.34.6": - version: 6.35.2 - resolution: "@ledgerhq/hw-app-eth@npm:6.35.2" - dependencies: - "@ethersproject/abi": ^5.5.0 - "@ethersproject/rlp": ^5.5.0 - "@ledgerhq/cryptoassets": ^11.3.1 - "@ledgerhq/domain-service": ^1.1.16 - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/evm-tools": ^1.0.13 - "@ledgerhq/hw-transport": ^6.30.1 - "@ledgerhq/hw-transport-mocker": ^6.28.1 - "@ledgerhq/logs": ^6.12.0 - "@ledgerhq/types-live": ^6.43.1 - axios: ^1.3.4 - bignumber.js: ^9.1.2 - checksum: 29012cba29f25f02ed1b4b01cb6d4b6ef759db6c12f00fad087d76c0b234d44ee75755ec816219feb33bd710cccc2f173ba384066296de160b7516dc36272493 + checksum: 31139ce718486046554636330128f2872c8604c55df181db8f9916fd722c6e3b02fa8f52134483487033f10271414f792ad037bd60990f0e45ab994c75836d3c languageName: node linkType: hard @@ -4474,104 +4414,104 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-app-exchange@npm:^0.2.3": - version: 0.2.3 - resolution: "@ledgerhq/hw-app-exchange@npm:0.2.3" +"@ledgerhq/hw-app-exchange@npm:^0.4.5": + version: 0.4.5 + resolution: "@ledgerhq/hw-app-exchange@npm:0.4.5" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - bignumber.js: ^9.1.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 + bignumber.js: ^9.1.2 invariant: ^2.2.2 - checksum: 09bd94f81630a7c495f96a044692631b3dc79e0af9fa9ea4af582e9afd3d80974ff6ad37f44df484297f9be6c946a3e2416b94a0ded9464addc00e2b64628178 + checksum: 2e6e28c925737d839adb8abf8e01bac60b36803e13e1dcdd7c171de4dc088accaeaf33a8afc3da087ae2c225246f19be0c50fd23b7ed24a5d4378f68a2999be6 languageName: node linkType: hard -"@ledgerhq/hw-app-near@npm:^6.27.14": - version: 6.27.14 - resolution: "@ledgerhq/hw-app-near@npm:6.27.14" +"@ledgerhq/hw-app-near@npm:^6.28.5": + version: 6.28.5 + resolution: "@ledgerhq/hw-app-near@npm:6.28.5" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - near-api-js: ^0.44.2 - checksum: 6c2ed961e3825c4ede5fdf7c057a84ea3754f3e1dd8629cceceaac0484458c9fcfdc38a96fe0f270910172a928e6d8693c4018d340187e30dbfb7bb16f159e9b + "@ledgerhq/hw-transport": ^6.30.4 + near-api-js: ^3.0.2 + checksum: 8db6e10a840f6995e88b9fc13b83285496fd2588ad453066b4c6baee81dd51be7a6012fa1878dcadcb132f3fbfb2395f85ee44e4adb9efdc84e4a5f5abf57ff8 languageName: node linkType: hard -"@ledgerhq/hw-app-polkadot@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-polkadot@npm:6.27.19" +"@ledgerhq/hw-app-polkadot@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-polkadot@npm:6.28.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 bip32-path: ^0.4.2 - checksum: ccc128a2ba1fc56d1982d0242b1cab017c8acc089d756ddd425c7688ce0867bbdebff155be391e68e08a6a3a1a69c503d68eb1a6440b66b694e3a3af5693bd80 + checksum: ba6e7502e053f3e1b250da512a1abe0b7818840a235088db7df296f2133d8624da64228ef9994089d2e6561ea1fb9e5dedf471e8def38929fb2a9e9332720f93 languageName: node linkType: hard -"@ledgerhq/hw-app-solana@npm:^7.0.13": - version: 7.0.13 - resolution: "@ledgerhq/hw-app-solana@npm:7.0.13" +"@ledgerhq/hw-app-solana@npm:^7.1.4": + version: 7.1.4 + resolution: "@ledgerhq/hw-app-solana@npm:7.1.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - "@ledgerhq/logs": ^6.10.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 bip32-path: ^0.4.2 - checksum: 79ed44206d85c2332c92118ef97963bea02316209d3c02bfba806ca3a0a63f7269f9d925db5890cdaf8b54bb2baa4a8f60dd187a7e28ed7386bf210a30b88d78 + checksum: b1e60f44634b558a74d405f3e5c972985792728ab3ad272d4913d18d840f257f0af4a2dfb186c22ae07823c816a11ea766099a5d939b6232539112d4ba804997 languageName: node linkType: hard -"@ledgerhq/hw-app-str@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-str@npm:6.27.19" +"@ledgerhq/hw-app-str@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-str@npm:6.28.4" dependencies: - "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/hw-transport": ^6.30.4 base32.js: ^0.1.0 sha.js: ^2.3.6 tweetnacl: ^1.0.3 - checksum: e4ed865b76131d6c2ba11c868989cb7394426ec6c3ef88a2992056eb94f75949aa4ba4f5399563c8d18c444b8a68423c266ba13265f82809086f35aedd2ccaec + checksum: c5e484d5379a8fd74c596dc95b6b3ecb9e3868d7df4d4a001fb2ddea18775dd2de826d2dc2ecca2e15afe9fe2de7d5890f6cba5db39c24290a4aac6257903360 languageName: node linkType: hard -"@ledgerhq/hw-app-tezos@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-tezos@npm:6.27.19" +"@ledgerhq/hw-app-tezos@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-tezos@npm:6.28.4" dependencies: - "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/hw-transport": ^6.30.4 blake2b: ^2.1.4 bs58check: ^2.1.2 invariant: ^2.2.4 - checksum: e90a5b99742245c27241e134edc954d7166114bc11f17491e43e485afb7ce674a76e9af2cac60e4949bfaf4c753ad515a0ca453bdb66d5c61f25c5e5fd3f920e + checksum: e334c54acf27203e93400b72030f8c62eb66066dc7b67d27a090d999a9d5fff316beeb945f3b022c8d7480ef2003799afaf40560a3bae529099508fc279a7ffb languageName: node linkType: hard -"@ledgerhq/hw-app-trx@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-trx@npm:6.27.19" +"@ledgerhq/hw-app-trx@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-trx@npm:6.28.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - checksum: 215694c7a756e373e18d4560a4389eea4df520a53ffcef97df6ecef6dd031890f74770c8a67fdf4640518b8942cb22ac98e483b863102014dffcc3e6705b12ad + "@ledgerhq/hw-transport": ^6.30.4 + checksum: 36ed5ff49a667a0c0d256f2ce1898fd2ef15e3b858ed30e94dbbd43da849b447a26ec615b03155b891edf14b6ae0a713fc6553b3bfe7fa7d9c58d3c653f2f53b languageName: node linkType: hard -"@ledgerhq/hw-app-xrp@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-app-xrp@npm:6.27.19" +"@ledgerhq/hw-app-vet@npm:^0.1.5": + version: 0.1.5 + resolution: "@ledgerhq/hw-app-vet@npm:0.1.5" dependencies: - "@ledgerhq/hw-transport": ^6.28.8 - bip32-path: 0.4.2 - checksum: 40577c72d18f74779f524a4b9fb9b6c0e671f0cb5af4e2e162894bf5862e4670f40944a28034a5be7ceac66c6d64cf6cc919604ec5fa8633ea2f631c21cffa0a + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/hw-transport-mocker": ^6.28.4 + "@ledgerhq/logs": ^6.12.0 + thor-devkit: ^2.0.6 + checksum: 856190052868375425670b215b66b5b47c8c148f8147504d30959b1208f56e98a867ff6f2716b9b45c378352793346edee0d40d9d5be4365db3499f704677753 languageName: node linkType: hard -"@ledgerhq/hw-transport-mocker@npm:^6.27.19, @ledgerhq/hw-transport-mocker@npm:^6.28.1": - version: 6.28.1 - resolution: "@ledgerhq/hw-transport-mocker@npm:6.28.1" +"@ledgerhq/hw-app-xrp@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-app-xrp@npm:6.28.4" dependencies: - "@ledgerhq/hw-transport": ^6.30.1 - "@ledgerhq/logs": ^6.12.0 - rxjs: ^7.8.1 - checksum: b67ff5abd0ab84d1b8fdb96f4e0825ce0c46b9c009c388208096e776c5b1f7a83e6287492c2b131d7e61dd82527b366ff98ce19b9538976941e6f9ae71ff38bf + "@ledgerhq/hw-transport": ^6.30.4 + bip32-path: 0.4.2 + checksum: f440b13f3ff9cf5164967bb91e759c62cce532af1b59d8a7ec89c5358105119c4f396e963b86fd1c24aa7d9170b47218f308f0bb6bc495ff730c3e4bba39f62c languageName: node linkType: hard @@ -4586,28 +4526,28 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-transport-node-speculos-http@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-transport-node-speculos-http@npm:6.27.19" +"@ledgerhq/hw-transport-node-speculos-http@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-transport-node-speculos-http@npm:6.28.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - "@ledgerhq/logs": ^6.10.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/logs": ^6.12.0 axios: ^0.26.1 - rxjs: 6 - checksum: e768dbe3b88e25553da63c723b656a5832f64791a375e9d5761adbd48dc0e76ce12ea5554c237de22cb9ace4a69bc593390cd54e316f123708f4fda7e97589bd + rxjs: ^7.8.1 + checksum: 0cf51ccca67cd8f37296ca40a46a2cb47e2dcd491a0e8a593117c0ad885fc639033349db3247b81f2d23bbafd42b8420b35ba9eb19788788a2223ae6dca34183 languageName: node linkType: hard -"@ledgerhq/hw-transport-node-speculos@npm:^6.27.19": - version: 6.27.19 - resolution: "@ledgerhq/hw-transport-node-speculos@npm:6.27.19" +"@ledgerhq/hw-transport-node-speculos@npm:^6.28.4": + version: 6.28.4 + resolution: "@ledgerhq/hw-transport-node-speculos@npm:6.28.4" dependencies: - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/hw-transport": ^6.28.8 - "@ledgerhq/logs": ^6.10.1 - rxjs: 6 - checksum: 287e32e215d86dac6d41fc3be09036951c7b65da322cdbae34dd79dd2841ae60db49851214b0e196f364cefe76e41f20b9ff93c3049ce7ff02130b8290b8e182 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/logs": ^6.12.0 + rxjs: ^7.8.1 + checksum: 5cbae0196904204d7eb7f5f3ee1d269519b2fd56d637c82671c331387f8ef87c3c98df2b93f754a521486e1657b6eba13bfd23874435f12430c351da3febe59b languageName: node linkType: hard @@ -4668,7 +4608,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:^6.20.0, @ledgerhq/hw-transport@npm:^6.27.1, @ledgerhq/hw-transport@npm:^6.28.1, @ledgerhq/hw-transport@npm:^6.28.8, @ledgerhq/hw-transport@npm:^6.30.1": +"@ledgerhq/hw-transport@npm:^6.20.0, @ledgerhq/hw-transport@npm:^6.27.1, @ledgerhq/hw-transport@npm:^6.28.1, @ledgerhq/hw-transport@npm:^6.28.8": version: 6.30.1 resolution: "@ledgerhq/hw-transport@npm:6.30.1" dependencies: @@ -4680,7 +4620,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:^6.30.4": +"@ledgerhq/hw-transport@npm:^6.28.2, @ledgerhq/hw-transport@npm:^6.30.4": version: 6.30.4 resolution: "@ledgerhq/hw-transport@npm:6.30.4" dependencies: @@ -4713,9 +4653,9 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/live-common@npm:^31.8.0": - version: 31.8.0 - resolution: "@ledgerhq/live-common@npm:31.8.0" +"@ledgerhq/live-common@npm:^33.6.1": + version: 33.6.1 + resolution: "@ledgerhq/live-common@npm:33.6.1" dependencies: "@cardano-foundation/ledgerjs-hw-app-cardano": ^5.1.0 "@celo/connect": ^3.0.1 @@ -4727,59 +4667,59 @@ __metadata: "@cosmjs/crypto": ^0.31.0 "@cosmjs/stargate": ^0.26.5 "@crypto-org-chain/chain-jslib": 1.1.2 - "@dfinity/agent": ^0.15.6 - "@dfinity/candid": ^0.15.6 + "@dfinity/agent": ^0.21.0 + "@dfinity/candid": ^0.21.0 "@dfinity/principal": ^0.15.6 "@elrondnetwork/erdjs": 11.0.0 "@elrondnetwork/erdjs-network-providers": ^1.1.2 - "@ethereumjs/common": ^2.6.2 - "@ethereumjs/tx": ^3.5.0 - "@ethersproject/bignumber": ^5.7.0 - "@ethersproject/bytes": ^5.7.0 - "@ethersproject/keccak256": ^5.7.0 - "@ethersproject/logger": ^5.7.0 - "@ethersproject/properties": ^5.7.0 - "@ethersproject/strings": ^5.7.0 "@hashgraph/sdk": ^2.10.1 "@keplr-wallet/cosmos": ^0.9.16 "@keplr-wallet/proto-types": ^0.10.4 - "@ledgerhq/coin-algorand": ^0.3.2 - "@ledgerhq/coin-evm": ^0.6.2 - "@ledgerhq/coin-framework": ^0.5.4 - "@ledgerhq/coin-polkadot": ^0.4.2 + "@ledgerhq/coin-algorand": ^0.3.11 + "@ledgerhq/coin-evm": ^0.12.3 + "@ledgerhq/coin-framework": ^0.11.2 + "@ledgerhq/coin-near": ^0.3.10 + "@ledgerhq/coin-polkadot": ^0.5.4 "@ledgerhq/compressjs": "github:LedgerHQ/compressjs#d9e8e4d994923e0ea76a32b97289bcccfe71b82e" - "@ledgerhq/cryptoassets": ^9.13.0 - "@ledgerhq/devices": ^8.0.7 - "@ledgerhq/domain-service": ^1.1.11 - "@ledgerhq/errors": ^6.14.0 - "@ledgerhq/evm-tools": ^1.0.7 - "@ledgerhq/hw-app-algorand": ^6.27.19 - "@ledgerhq/hw-app-btc": ^10.0.8 - "@ledgerhq/hw-app-cosmos": ^6.28.5 - "@ledgerhq/hw-app-eth": ^6.34.6 - "@ledgerhq/hw-app-exchange": ^0.2.3 - "@ledgerhq/hw-app-near": ^6.27.14 - "@ledgerhq/hw-app-polkadot": ^6.27.19 - "@ledgerhq/hw-app-solana": ^7.0.13 - "@ledgerhq/hw-app-str": ^6.27.19 - "@ledgerhq/hw-app-tezos": ^6.27.19 - "@ledgerhq/hw-app-trx": ^6.27.19 - "@ledgerhq/hw-app-xrp": ^6.27.19 - "@ledgerhq/hw-transport": ^6.28.8 - "@ledgerhq/hw-transport-mocker": ^6.27.19 - "@ledgerhq/hw-transport-node-speculos": ^6.27.19 - "@ledgerhq/hw-transport-node-speculos-http": ^6.27.19 + "@ledgerhq/crypto-icons-ui": ^1.0.2 + "@ledgerhq/cryptoassets": ^11.4.1 + "@ledgerhq/devices": ^8.2.1 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/hw-app-algorand": ^6.28.4 + "@ledgerhq/hw-app-btc": ^10.2.2 + "@ledgerhq/hw-app-cosmos": ^6.29.4 + "@ledgerhq/hw-app-eth": ^6.35.6 + "@ledgerhq/hw-app-exchange": ^0.4.5 + "@ledgerhq/hw-app-near": ^6.28.5 + "@ledgerhq/hw-app-polkadot": ^6.28.4 + "@ledgerhq/hw-app-solana": ^7.1.4 + "@ledgerhq/hw-app-str": ^6.28.4 + "@ledgerhq/hw-app-tezos": ^6.28.4 + "@ledgerhq/hw-app-trx": ^6.28.4 + "@ledgerhq/hw-app-vet": ^0.1.5 + "@ledgerhq/hw-app-xrp": ^6.28.4 + "@ledgerhq/hw-transport": ^6.30.4 + "@ledgerhq/hw-transport-mocker": ^6.28.4 + "@ledgerhq/hw-transport-node-speculos": ^6.28.4 + "@ledgerhq/hw-transport-node-speculos-http": ^6.28.4 "@ledgerhq/live-app-sdk": ^0.8.1 - "@ledgerhq/live-env": ^0.5.0 - "@ledgerhq/live-network": ^1.1.6 - "@ledgerhq/live-promise": ^0.0.1 - "@ledgerhq/logs": ^6.10.1 - "@ledgerhq/wallet-api-core": ^1.1.0 - "@ledgerhq/wallet-api-server": ^1.1.2 + "@ledgerhq/live-config": ^2.0.0 + "@ledgerhq/live-countervalues": ^0.1.2 + "@ledgerhq/live-countervalues-react": ^0.1.2 + "@ledgerhq/live-env": ^1.0.1 + "@ledgerhq/live-hooks": 0.1.0 + "@ledgerhq/live-network": ^1.1.13 + "@ledgerhq/live-nft": ^0.2.1 + "@ledgerhq/live-promise": ^0.0.3 + "@ledgerhq/logs": ^6.12.0 + "@ledgerhq/wallet-api-client": ^1.5.2 + "@ledgerhq/wallet-api-core": ^1.6.2 + "@ledgerhq/wallet-api-exchange-module": ^0.3.0 + "@ledgerhq/wallet-api-server": ^1.5.2 "@solana/spl-token": ^0.3.7 "@solana/web3.js": 1.77.3 - "@stacks/network": 1.2.2 - "@stacks/transactions": 1.3.5 + "@stacks/network": 6.10.0 + "@stacks/transactions": 6.11.0 "@stricahq/bip32ed25519": ^1.0.3 "@stricahq/typhonjs": ^1.2.6 "@taquito/ledger-signer": ^13.0.1 @@ -4793,74 +4733,59 @@ __metadata: "@xstate/react": ^1.6.3 "@zondax/cbor": v8.1.0-zondax-no-bigint "@zondax/izari-filecoin": ^1.2.0 + "@zondax/ledger-casper": ^2.6.1 "@zondax/ledger-cosmos-js": ^3.0.3 "@zondax/ledger-filecoin": ^0.11.2 "@zondax/ledger-icp": ^0.7.0 "@zondax/ledger-stacks": ^1.0.2 async: ^3.2.3 axios: 0.26.1 - axios-retry: ^3.2.4 bchaddrjs: ^0.5.2 bech32: ^1.1.3 big-integer: ^1.6.51 - bignumber.js: ^9.1.1 + bignumber.js: ^9.1.2 bip32: ^2.0.6 bip32-path: ^0.4.2 bip39: ^3.0.4 bitcoinjs-lib: ^5.2.0 blake-hash: ^2.0.0 blake2b: ^2.1.4 - bn.js: ^5.2.1 + blakejs: ^1.2.1 bs58: ^4.0.1 bs58check: ^2.1.2 - buffer: ^6.0.3 c32check: 1.1.3 cashaddrjs: ^0.4.4 + casper-js-sdk: ^2.15.2 coininfo: ^5.1.0 cosmjs-types: 0.2.1 - crc: ^4.2.0 create-hmac: ^1.1.7 - crypto-js: ^4.1.1 date-fns: ^2.23.0 eip55: ^2.1.1 - eth-sig-util: 3.0.1 - ethereumjs-abi: ^0.6.8 - ethereumjs-util: ^7.1.4 - ethers: ^5.6.9 - events: ^3.3.0 expect: ^27.4.6 fuse.js: ^6.6.2 - generic-pool: ^3.8.2 invariant: ^2.2.2 isomorphic-ws: ^4.0.1 json-rpc-2.0: ^0.2.19 - jwt-decode: ^3.1.2 lodash: ^4.17.21 minimatch: ^5.1.0 - near-api-js: ^0.44.2 - numeral: ^2.0.6 object-hash: ^2.2.0 pako: ^2.0.4 performance-now: ^2.1.0 prando: ^6.0.1 qs: ^6.10.1 - redux: ^4.1.2 reselect: ^4.1.5 ripemd160: ^2.0.2 ripple-binary-codec: ^1.3.0 ripple-bs58check: ^2.0.2 rlp: ^3.0.0 - rxjs: 6 - rxjs-compat: ^6.6.7 - rxjs7: "npm:rxjs@7.8.1" + rxjs: ^7.8.1 secp256k1: ^4.0.3 semver: ^7.3.5 sha.js: ^2.4.11 simple-cbor: ^0.4.1 - source-map-support: ^0.5.21 - stellar-sdk: ^10.1.1 + stellar-sdk: ^10.4.1 superstruct: 0.14.2 - tiny-secp256k1: ^1.1.6 + thor-devkit: ^2.0.6 triple-beam: ^1.3.0 tronweb: ^5.2.0 utility-types: ^3.10.0 @@ -4868,7 +4793,6 @@ __metadata: winston: ^3.4.0 xstate: ^4.30.2 peerDependencies: - "@types/react": "*" react: ">=16" react-dom: ">=16" react-native: ">=0.65.1" @@ -4876,8 +4800,6 @@ __metadata: react-redux: ^7.2.9 redux-actions: 2.6.5 peerDependenciesMeta: - "@types/react": - optional: true react: optional: true react-dom: @@ -4890,41 +4812,53 @@ __metadata: optional: true redux-actions: optional: true - checksum: c2c2685e101d9a04021d88e9f156f5a3a25bc1a3a518ea96bf457b8f0bae79cc100498cbfdf40ee9cc4b5e1a7ca03b245f6544d0b38033ce26d96061e97896c5 + checksum: a46cd8284b9080af4a2c62a6ec91992df2019416941d58965842262ec6d0021f43ca9a4acb7c919dd42816c580bb9f1acf8ac2df1173077eeb78f63ee306b910 languageName: node linkType: hard -"@ledgerhq/live-env@npm:^0.5.0": - version: 0.5.0 - resolution: "@ledgerhq/live-env@npm:0.5.0" +"@ledgerhq/live-config@npm:^2.0.0": + version: 2.0.0 + resolution: "@ledgerhq/live-config@npm:2.0.0" dependencies: - rxjs: ^6.6.7 - utility-types: ^3.10.0 - checksum: 05ceafc7e5ed3744254d83d51ce36de78dc2217c4af3a3285a61a978fa715b0d61e971bd237a1ba0810802d01843ff4208e1754cb89cba68a04a8c2c63b0b52a + lodash: ^4.17.21 + checksum: 21f1f58262ce04224256acc4f0989b30dde4210599296b29ec4a226fda3c8e7da348f3aeba2530a3562d0ea8e37dd63f3de88ac95fca061fa35490a0ec78bb72 languageName: node linkType: hard -"@ledgerhq/live-env@npm:^0.6.0": - version: 0.6.0 - resolution: "@ledgerhq/live-env@npm:0.6.0" +"@ledgerhq/live-countervalues-react@npm:^0.1.2": + version: 0.1.2 + resolution: "@ledgerhq/live-countervalues-react@npm:0.1.2" dependencies: - rxjs: ^6.6.7 - utility-types: ^3.10.0 - checksum: 1833d07a42e9bd22aa889ae507544bcaefd1a8423d73feaa252ffb0039b9fbf7ca788547923b517e5b843c1aa21665f4f517aaa84ab062e7f267594494bb6a8f + "@ledgerhq/coin-framework": 0.11.2 + "@ledgerhq/cryptoassets": 11.4.1 + "@ledgerhq/live-countervalues": 0.1.2 + "@ledgerhq/live-hooks": 0.1.0 + "@ledgerhq/types-cryptoassets": 7.9.0 + "@ledgerhq/types-live": 6.44.1 + bignumber.js: 9 + peerDependencies: + react: ">=16" + checksum: c4464214a30e0e770db9ba747a337d7634c99ec76c510efcbea4cb8e776d241e76660347d7d976f12531b3bf2fe6ab820fb932773ed5c8a3792582c9b52cf39b languageName: node linkType: hard -"@ledgerhq/live-env@npm:^0.8.0": - version: 0.8.0 - resolution: "@ledgerhq/live-env@npm:0.8.0" +"@ledgerhq/live-countervalues@npm:0.1.2, @ledgerhq/live-countervalues@npm:^0.1.2": + version: 0.1.2 + resolution: "@ledgerhq/live-countervalues@npm:0.1.2" dependencies: - rxjs: ^7.8.1 - utility-types: ^3.10.0 - checksum: 74fb04fedddf255407ca56b8634ada59151e5c4cca5b383d8d9d7eeac47c69ad65a27c043faecbbc0255c15ae1a484a7d2a96e8952a183c3099c40779266d434 + "@ledgerhq/coin-framework": 0.11.2 + "@ledgerhq/cryptoassets": 11.4.1 + "@ledgerhq/live-env": 1.0.1 + "@ledgerhq/live-network": 1.1.13 + "@ledgerhq/live-promise": 0.0.3 + "@ledgerhq/logs": 6.12.0 + "@ledgerhq/types-cryptoassets": 7.9.0 + "@ledgerhq/types-live": 6.44.1 + checksum: 449c954bacc96e2a868c2ec6be2cd61ba50420f298c1f01e2929ab17e9cd0acd83f73004f826cbb5ae21631efcabf57570da19a8668d3d30602370d0fbf62e6e languageName: node linkType: hard -"@ledgerhq/live-env@npm:^1.0.1": +"@ledgerhq/live-env@npm:1.0.1, @ledgerhq/live-env@npm:^1.0.1": version: 1.0.1 resolution: "@ledgerhq/live-env@npm:1.0.1" dependencies: @@ -4934,31 +4868,46 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/live-network@npm:^1.1.10, @ledgerhq/live-network@npm:^1.1.6": - version: 1.1.10 - resolution: "@ledgerhq/live-network@npm:1.1.10" +"@ledgerhq/live-hooks@npm:0.1.0": + version: 0.1.0 + resolution: "@ledgerhq/live-hooks@npm:0.1.0" + peerDependencies: + react: ">=16" + checksum: 7c08cc7be0b49e0da35df5c1f319e3c974e4a21041c5320275a820696cc865caec290c8fcca1ff7f7c08e66ddb25fa6cdabd216a3e89855514022cb54b0bfdd0 + languageName: node + linkType: hard + +"@ledgerhq/live-network@npm:1.1.13, @ledgerhq/live-network@npm:^1.1.13": + version: 1.1.13 + resolution: "@ledgerhq/live-network@npm:1.1.13" dependencies: - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/live-env": ^0.8.0 + "@ledgerhq/errors": ^6.16.2 + "@ledgerhq/live-env": ^1.0.1 "@ledgerhq/live-promise": ^0.0.3 "@ledgerhq/logs": ^6.12.0 axios: 0.26.1 invariant: ^2.2.2 lru-cache: ^7.14.1 - checksum: fa003e546469394bf783d9d2418c21dbb6d7be5efc8c518e55effacfcf1d43513a46cbe36cd83e03f2e6ec5bab16783586b00371760691b253b8db2603baec57 + checksum: 4105b3fc7416ee0ddafcd996cdc0e6d0eb6f38a4f51f147f381a5780f903b4ed6564658d036df9cf5ac210b45680cc72a49ef6728d235efcf889a907a8798725 languageName: node linkType: hard -"@ledgerhq/live-promise@npm:^0.0.1": - version: 0.0.1 - resolution: "@ledgerhq/live-promise@npm:0.0.1" +"@ledgerhq/live-nft@npm:^0.2.1": + version: 0.2.1 + resolution: "@ledgerhq/live-nft@npm:0.2.1" dependencies: - "@ledgerhq/logs": ^6.10.1 - checksum: 7bfbab505d45646b57e2b35468a6226bcdbbaca37a89685d92f9b38726d1da236fa9db24863060ded9160caacb52b67c127bd5ddcc05c629e13f8f90a9e09473 + "@ledgerhq/coin-framework": 0.11.2 + "@ledgerhq/cryptoassets": 11.4.1 + "@ledgerhq/live-env": 1.0.1 + "@ledgerhq/live-network": 1.1.13 + "@ledgerhq/types-cryptoassets": 7.9.0 + "@ledgerhq/types-live": 6.44.1 + bignumber.js: 9 + checksum: 2303247265927ede3b4350d0f9784c5c360f96eef5549d564ccbf9480bc4f024b434a8729ce4a708a89cac35e9e04730f651bf5af8eeb5e816dc95467490b3cf languageName: node linkType: hard -"@ledgerhq/live-promise@npm:^0.0.3": +"@ledgerhq/live-promise@npm:0.0.3, @ledgerhq/live-promise@npm:^0.0.3": version: 0.0.3 resolution: "@ledgerhq/live-promise@npm:0.0.3" dependencies: @@ -4967,6 +4916,13 @@ __metadata: languageName: node linkType: hard +"@ledgerhq/logs@npm:6.12.0, @ledgerhq/logs@npm:^6.10.0, @ledgerhq/logs@npm:^6.12.0": + version: 6.12.0 + resolution: "@ledgerhq/logs@npm:6.12.0" + checksum: 53fb9ceaf26b2a9fd6e7639b19119f4fef2f814d465fdd910e69c9486dce78137a1790e24f019a03bfabc87e19b2e6683f4da93a7fd203a61117a709fdf6484c + languageName: node + linkType: hard + "@ledgerhq/logs@npm:^5.30.0, @ledgerhq/logs@npm:^5.50.0": version: 5.50.0 resolution: "@ledgerhq/logs@npm:5.50.0" @@ -4974,27 +4930,27 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/logs@npm:^6.10.0, @ledgerhq/logs@npm:^6.10.1, @ledgerhq/logs@npm:^6.12.0": - version: 6.12.0 - resolution: "@ledgerhq/logs@npm:6.12.0" - checksum: 53fb9ceaf26b2a9fd6e7639b19119f4fef2f814d465fdd910e69c9486dce78137a1790e24f019a03bfabc87e19b2e6683f4da93a7fd203a61117a709fdf6484c +"@ledgerhq/types-cryptoassets@npm:7.9.0": + version: 7.9.0 + resolution: "@ledgerhq/types-cryptoassets@npm:7.9.0" + checksum: 744195eb036a496a27b267075143f8e29ae0469e5247cc724cc541b2a30f4518ca25dd3528539385f0d034a130d9b2c85d6e4762bbb496aec015067458ba50e2 languageName: node linkType: hard -"@ledgerhq/types-cryptoassets@npm:^7.5.0, @ledgerhq/types-cryptoassets@npm:^7.6.0": - version: 7.6.0 - resolution: "@ledgerhq/types-cryptoassets@npm:7.6.0" - checksum: a55b0bfaf6b5178259f79a0fd893b251ab57b7c31c64f84ec451976dcd4ca0a7b0f8f442429e4692018cce395116bdb55edefc312069fd1a43cd3f06f319b300 +"@ledgerhq/types-cryptoassets@npm:^7.9.0": + version: 7.10.0 + resolution: "@ledgerhq/types-cryptoassets@npm:7.10.0" + checksum: ab058698bba3738f5b656dc8c067b94a773da829f4e67f59d7049ce28b63ddca26b15aeec2c01b8e09999e13121eaa054ab51a960cf9c18b620584ca834bb914 languageName: node linkType: hard -"@ledgerhq/types-live@npm:^6.40.0, @ledgerhq/types-live@npm:^6.41.1, @ledgerhq/types-live@npm:^6.43.1": - version: 6.43.1 - resolution: "@ledgerhq/types-live@npm:6.43.1" +"@ledgerhq/types-live@npm:6.44.1": + version: 6.44.1 + resolution: "@ledgerhq/types-live@npm:6.44.1" dependencies: bignumber.js: ^9.1.2 rxjs: ^7.8.1 - checksum: 0f3f6e624f909ca659c3ebf2e23b5292a7cfc26fef961a3c0ef54297a54b24314bfcb87705aa7239bdc66b5a1ae53384ea5bc9cf849a8c412557d4c146f19e6c + checksum: 47efe369fa1aac0b4d546ec494e651cb78f2c926331c6566d27c3ee113e41941adbe135a20b6ca1b2c0ae8a165d9f5bf3b50a711a945f8ae084256d79ebe8fa0 languageName: node linkType: hard @@ -5008,32 +4964,53 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/wallet-api-core@npm:1.1.0, @ledgerhq/wallet-api-core@npm:^1.1.0": - version: 1.1.0 - resolution: "@ledgerhq/wallet-api-core@npm:1.1.0" +"@ledgerhq/wallet-api-client@npm:^1.5.2": + version: 1.5.5 + resolution: "@ledgerhq/wallet-api-client@npm:1.5.5" dependencies: - "@ledgerhq/errors": ^6.12.6 - bignumber.js: ^9.1.1 + "@ledgerhq/hw-transport": ^6.28.8 + "@ledgerhq/wallet-api-core": 1.7.2 + bignumber.js: ^9.1.2 + checksum: db7c5e4e09d637071ef6899c874cc1799c5269e4a1eb5576f83d0293659e60ccc59f8ccca113003cfcec793f761dccc89cc3002dff52f983d8b910fd88536a62 + languageName: node + linkType: hard + +"@ledgerhq/wallet-api-core@npm:1.7.2, @ledgerhq/wallet-api-core@npm:^1.6.2": + version: 1.7.2 + resolution: "@ledgerhq/wallet-api-core@npm:1.7.2" + dependencies: + "@ledgerhq/errors": ^6.14.0 + bignumber.js: ^9.1.2 uuid: ^9.0.0 - zod: ^3.21.4 - checksum: eeb2a62cc1719ea6b8fad3255d10d7ae6a480166b6478872a249f3207cdd004e9f1f975f9e3dc59fbdc8097898269619e67901a8068440defd32b74908b28c28 + zod: ^3.22.2 + checksum: 3899b0876d2e854901581f756d56b934a96936a74ccb99cc6a911591877fdc421b48429d4ce3017b3d2f7b117d92687d294d6bfd4357fa39d16934588fc7b60e languageName: node linkType: hard -"@ledgerhq/wallet-api-server@npm:^1.1.2": - version: 1.1.2 - resolution: "@ledgerhq/wallet-api-server@npm:1.1.2" +"@ledgerhq/wallet-api-exchange-module@npm:^0.3.0": + version: 0.3.0 + resolution: "@ledgerhq/wallet-api-exchange-module@npm:0.3.0" dependencies: - "@ledgerhq/wallet-api-core": 1.1.0 - bignumber.js: ^9.1.1 - picomatch: ^2.3.1 + "@ledgerhq/wallet-api-client": ^1.5.2 + "@ledgerhq/wallet-api-core": ^1.6.2 + checksum: fd24498eb0af52b3f1a8295e98cf7f37d89225fc1e65a94c5edac0e653e94d66c2ff38968234ddc40fb30fd25de00ee842c63b7e35a42426d95ba738d302845a + languageName: node + linkType: hard + +"@ledgerhq/wallet-api-server@npm:^1.5.2": + version: 1.5.6 + resolution: "@ledgerhq/wallet-api-server@npm:1.5.6" + dependencies: + "@ledgerhq/wallet-api-core": 1.7.2 + bignumber.js: ^9.1.2 + picomatch: ^4.0.1 peerDependencies: react: ^17.x || ^18.x rxjs: ^7.x peerDependenciesMeta: react: optional: true - checksum: 11fa4cc87a4149633f16fdfb804c2c5ce257b8c5c388dfb44ca1a0b6d16a6436e725004629ebf4912fafdffd4e75557f58853a8ec08c6fa6cd635e2a40986602 + checksum: 59aa10b5f6ecdfaf96da4754b9916f868383b8cd56dfcef5203e1b3e305a668908408d7bff67132f5062211ff268f0ffb9b31ecda5e9b5a5e09f8656dab59468 languageName: node linkType: hard @@ -5091,6 +5068,154 @@ __metadata: languageName: node linkType: hard +"@near-js/accounts@npm:1.0.3": + version: 1.0.3 + resolution: "@near-js/accounts@npm:1.0.3" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/providers": 0.1.0 + "@near-js/signers": 0.1.1 + "@near-js/transactions": 1.1.1 + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + ajv: 8.11.2 + ajv-formats: 2.1.1 + bn.js: 5.2.1 + borsh: 1.0.0 + depd: 2.0.0 + lru_map: 0.4.1 + near-abi: 0.1.1 + checksum: 53230d3869fcf8c891a6570460d1b9c132c31414657cc1a60f836a9c3b15118d1733a03a47b3059e3b6a58561a215b14bc3921d7458678d0e39996c5b81df492 + languageName: node + linkType: hard + +"@near-js/crypto@npm:1.2.1": + version: 1.2.1 + resolution: "@near-js/crypto@npm:1.2.1" + dependencies: + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + "@noble/curves": 1.2.0 + bn.js: 5.2.1 + borsh: 1.0.0 + randombytes: 2.1.0 + checksum: cc43a07abd79eb1d792c12a795a5cef5385e8bcb37500d7b0d8ad85f1ce217c0aeab161fd2f706d7d02e4214b85b064dec46a01c1b83119d3a8f6128fcfc8e44 + languageName: node + linkType: hard + +"@near-js/keystores-browser@npm:0.0.9": + version: 0.0.9 + resolution: "@near-js/keystores-browser@npm:0.0.9" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/keystores": 0.0.9 + checksum: 954d42938c10fe69baa8399e94c63dbb4cf601cb39b1c52315d3b6649cda7c86194591f4159cae20a48c44a3a3f89672c3030483605e88d0f5bcdbc108de8158 + languageName: node + linkType: hard + +"@near-js/keystores-node@npm:0.0.9": + version: 0.0.9 + resolution: "@near-js/keystores-node@npm:0.0.9" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/keystores": 0.0.9 + checksum: 03e8b1e011f9ee92c773d52827e03db005634edb3fa3bbe5b19b6bae9b86ea685e9897ca068eb7d7e046a869441512ff71c0e991e06f24a3aaeaa9d0cd73b565 + languageName: node + linkType: hard + +"@near-js/keystores@npm:0.0.9": + version: 0.0.9 + resolution: "@near-js/keystores@npm:0.0.9" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/types": 0.0.4 + checksum: 3c86b790424360344a93e8a75554311c3f30fec70cb1401d13932de40818298cc72c6f3b646e180b12e06548ddcc35cc63a9699e988c13e812914579d9458e09 + languageName: node + linkType: hard + +"@near-js/providers@npm:0.1.0": + version: 0.1.0 + resolution: "@near-js/providers@npm:0.1.0" + dependencies: + "@near-js/transactions": 1.1.1 + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + bn.js: 5.2.1 + borsh: 1.0.0 + http-errors: 1.7.2 + node-fetch: 2.6.7 + dependenciesMeta: + node-fetch: + optional: true + checksum: a79325cc3f53479a57ef5ed8d5cba2e3981ed9bb2445e2a236351c1155fae7755a715b12d5f759080837b73fc15e489f7d8a58250af8fe41393ae9b251f26fec + languageName: node + linkType: hard + +"@near-js/signers@npm:0.1.1": + version: 0.1.1 + resolution: "@near-js/signers@npm:0.1.1" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/keystores": 0.0.9 + "@noble/hashes": 1.3.3 + checksum: cf0d401363d195ee54c52f8329c527b86ddd26a7c2ee0047046fed5584514f51ec66a0a36031384c50707e0cf9113ad4d4dba7d137e847ca6041ab5d8a7cb0ba + languageName: node + linkType: hard + +"@near-js/transactions@npm:1.1.1": + version: 1.1.1 + resolution: "@near-js/transactions@npm:1.1.1" + dependencies: + "@near-js/crypto": 1.2.1 + "@near-js/signers": 0.1.1 + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + "@noble/hashes": 1.3.3 + bn.js: 5.2.1 + borsh: 1.0.0 + checksum: 662101dc4da08439e1dc86c1a4a745a5f73084c5ffaa943a5178fdda466c8f1376e8430fd9af133a78aae5a197f1f5ac48fc8a747ee0de060bf5ea733eda31de + languageName: node + linkType: hard + +"@near-js/types@npm:0.0.4": + version: 0.0.4 + resolution: "@near-js/types@npm:0.0.4" + dependencies: + bn.js: 5.2.1 + checksum: 2c84e0aad6352aac59a8455d52556ec6c6c61f12c3f10d20150d17c5cc2ca24bbba4ff22890447fb2d8289b09bf6c5084312927f3ff35637d17decd2fc5b3374 + languageName: node + linkType: hard + +"@near-js/utils@npm:0.1.0": + version: 0.1.0 + resolution: "@near-js/utils@npm:0.1.0" + dependencies: + "@near-js/types": 0.0.4 + bn.js: 5.2.1 + bs58: 4.0.0 + depd: 2.0.0 + mustache: 4.0.0 + checksum: 05d42834163582f5084b707c53830fba06d5b0b8b032b3053f9daedeeea46bb8a7363edc6231027ec93ddb6045d7891b16b6554ea0754b737b8c835b4111d4f5 + languageName: node + linkType: hard + +"@near-js/wallet-account@npm:1.1.0": + version: 1.1.0 + resolution: "@near-js/wallet-account@npm:1.1.0" + dependencies: + "@near-js/accounts": 1.0.3 + "@near-js/crypto": 1.2.1 + "@near-js/keystores": 0.0.9 + "@near-js/signers": 0.1.1 + "@near-js/transactions": 1.1.1 + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + bn.js: 5.2.1 + borsh: 1.0.0 + checksum: e8ee9b21458b814d0edd1e334124ebab42b338d5faaa58d48b6f855efa2eccfabb085fa39861918f872ca95a7425735f557c8b7f2d546ca2a24016ed1b7b7948 + languageName: node + linkType: hard + "@noble/curves@npm:1.1.0, @noble/curves@npm:~1.1.0": version: 1.1.0 resolution: "@noble/curves@npm:1.1.0" @@ -5100,7 +5225,16 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:1.3.0, @noble/curves@npm:^1.0.0, @noble/curves@npm:^1.2.0, @noble/curves@npm:^1.3.0, @noble/curves@npm:~1.3.0": +"@noble/curves@npm:1.2.0": + version: 1.2.0 + resolution: "@noble/curves@npm:1.2.0" + dependencies: + "@noble/hashes": 1.3.2 + checksum: bb798d7a66d8e43789e93bc3c2ddff91a1e19fdb79a99b86cd98f1e5eff0ee2024a2672902c2576ef3577b6f282f3b5c778bebd55761ddbb30e36bf275e83dd0 + languageName: node + linkType: hard + +"@noble/curves@npm:1.3.0, @noble/curves@npm:^1.0.0, @noble/curves@npm:^1.1.0, @noble/curves@npm:^1.2.0, @noble/curves@npm:^1.3.0, @noble/curves@npm:~1.3.0": version: 1.3.0 resolution: "@noble/curves@npm:1.3.0" dependencies: @@ -5109,6 +5243,13 @@ __metadata: languageName: node linkType: hard +"@noble/ed25519@npm:^1.7.3": + version: 1.7.3 + resolution: "@noble/ed25519@npm:1.7.3" + checksum: 45169927d51de513e47bbeebff3a603433c4ac7579e1b8c5034c380a0afedbe85e6959be3d69584a7a5ed6828d638f8f28879003b9bb2fb5f22d8aa2d88fd5fe + languageName: node + linkType: hard + "@noble/hashes@npm:1.1.2": version: 1.1.2 resolution: "@noble/hashes@npm:1.1.2" @@ -5137,7 +5278,14 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1, @noble/hashes@npm:~1.3.2": +"@noble/hashes@npm:1.3.2": + version: 1.3.2 + resolution: "@noble/hashes@npm:1.3.2" + checksum: fe23536b436539d13f90e4b9be843cc63b1b17666a07634a2b1259dded6f490be3d050249e6af98076ea8f2ea0d56f578773c2197f2aa0eeaa5fba5bc18ba474 + languageName: node + linkType: hard + +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.2, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1, @noble/hashes@npm:~1.3.2": version: 1.3.3 resolution: "@noble/hashes@npm:1.3.3" checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b @@ -5248,6 +5396,18 @@ __metadata: languageName: node linkType: hard +"@open-rpc/client-js@npm:^1.8.1": + version: 1.8.1 + resolution: "@open-rpc/client-js@npm:1.8.1" + dependencies: + isomorphic-fetch: ^3.0.0 + isomorphic-ws: ^5.0.0 + strict-event-emitter-types: ^2.0.0 + ws: ^7.0.0 + checksum: c51923cad10ac3ebbccc1bd4acfe7be4110a1f05787ac47db65aee9da5934c0f1d904b0cef26f10c6d86c76d79c385d52331aa431aec7c1e203f4e354e874847 + languageName: node + linkType: hard + "@openzeppelin/contracts@npm:^4.1.0": version: 4.9.2 resolution: "@openzeppelin/contracts@npm:4.9.2" @@ -5493,21 +5653,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/keyring@npm:^10.1.12": - version: 10.4.2 - resolution: "@polkadot/keyring@npm:10.4.2" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/util": 10.4.2 - "@polkadot/util-crypto": 10.4.2 - peerDependencies: - "@polkadot/util": 10.4.2 - "@polkadot/util-crypto": 10.4.2 - checksum: cb6a54d197e4ed2fddcb1eca5f243ce89bfb94cfd48fdc44b4c9482014b0fbccf7cb9729e6b9b58cef3b4cdcbd807be2db5ac6277e923d864ec3f878596b1515 - languageName: node - linkType: hard - -"@polkadot/keyring@npm:^12.6.2": +"@polkadot/keyring@npm:^12.3.1, @polkadot/keyring@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/keyring@npm:12.6.2" dependencies: @@ -5521,29 +5667,18 @@ __metadata: languageName: node linkType: hard -"@polkadot/networks@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/networks@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/util": 10.3.1 - "@substrate/ss58-registry": ^1.38.0 - checksum: 224aba286ba5171a586c25a31f8770c13162fc911f801f447a90e0aa9ec17cbb7788d1bec3d7882dccb903984b16436fbc02dc92a7b017a6837f58fd02406d7e - languageName: node - linkType: hard - -"@polkadot/networks@npm:10.4.2, @polkadot/networks@npm:^10.1.12": - version: 10.4.2 - resolution: "@polkadot/networks@npm:10.4.2" +"@polkadot/networks@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/networks@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/util": 10.4.2 - "@substrate/ss58-registry": ^1.38.0 - checksum: 860a51fd1753f6ad426a60b86fe7f0d4f25c2ebdb329511cc4cf5561f082382be0c8160d0bffe1c93e32095c1438a0714d8b39d80a701bbf9a8d393a0d7f5f99 + "@polkadot/util": 12.5.1 + "@substrate/ss58-registry": ^1.43.0 + tslib: ^2.6.2 + checksum: f8c64684f6806365c1aded6ebca52432050cc8caacd067faf339b2f37497b63b13cebb689f7b0f9c62a890566383cf1931552da82815cc52baa2166fb1772a43 languageName: node linkType: hard -"@polkadot/networks@npm:12.6.2, @polkadot/networks@npm:^12.6.2": +"@polkadot/networks@npm:12.6.2, @polkadot/networks@npm:^12.3.1, @polkadot/networks@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/networks@npm:12.6.2" dependencies: @@ -5680,15 +5815,15 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-augment@npm:9.8.2": - version: 9.8.2 - resolution: "@polkadot/types-augment@npm:9.8.2" +"@polkadot/types-augment@npm:10.9.1": + version: 10.9.1 + resolution: "@polkadot/types-augment@npm:10.9.1" dependencies: - "@babel/runtime": ^7.20.1 - "@polkadot/types": 9.8.2 - "@polkadot/types-codec": 9.8.2 - "@polkadot/util": ^10.1.12 - checksum: fb2e397873598f5c18b81181847c4d1fd315208d9f75107b08ad72c9939e71233734d88bce93fd9b776b9f7e6bedc318cf176ddaf948500142c8d4473061515d + "@polkadot/types": 10.9.1 + "@polkadot/types-codec": 10.9.1 + "@polkadot/util": ^12.3.1 + tslib: ^2.5.3 + checksum: d643f83ab0a9498267037d95b878fa4e3b0087882195c3bd609038e8c934a092d9c82f7164ac97989305805aabe0d9186736c50a372498c81c22b3d7f4cfcccb languageName: node linkType: hard @@ -5714,14 +5849,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-codec@npm:9.8.2": - version: 9.8.2 - resolution: "@polkadot/types-codec@npm:9.8.2" +"@polkadot/types-codec@npm:10.9.1": + version: 10.9.1 + resolution: "@polkadot/types-codec@npm:10.9.1" dependencies: - "@babel/runtime": ^7.20.1 - "@polkadot/util": ^10.1.12 - "@polkadot/x-bigint": ^10.1.12 - checksum: ad16f69fb3374a6c2df0485e520739f31f158c0796f729825ee693d05ab41568d17c323c58dacd5b607974dbe5328ae6f44b5a97e48d493de89303d7b53cdf1e + "@polkadot/util": ^12.3.1 + "@polkadot/x-bigint": ^12.3.1 + tslib: ^2.5.3 + checksum: ac11b770fa4328f55daf6dd78fc8fc4d6906fb0d4b2bf92eaece58332c74f2b178d598a310a6dd068c72856acefddf5f7d23cac56991fa12f61d6853fb73d582 languageName: node linkType: hard @@ -5747,14 +5882,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-create@npm:9.8.2": - version: 9.8.2 - resolution: "@polkadot/types-create@npm:9.8.2" +"@polkadot/types-create@npm:10.9.1": + version: 10.9.1 + resolution: "@polkadot/types-create@npm:10.9.1" dependencies: - "@babel/runtime": ^7.20.1 - "@polkadot/types-codec": 9.8.2 - "@polkadot/util": ^10.1.12 - checksum: 2596004a429da33ed27ba99635dec9046732de726b98fccef1074cb3105c01ef7fd3ee3720cb366a34c83885241d7369ccde7824fb34f98a8a0ca9bcb4c29994 + "@polkadot/types-codec": 10.9.1 + "@polkadot/util": ^12.3.1 + tslib: ^2.5.3 + checksum: 43f8fbd70a7891d6b49f1edb00b4a918c21924f2c1e44eb81ef7c9327e1fcc7eac65dbc2a9d0e3ba49079fdddda5498115e47f5fd99ec2a91f79c7f305bf553a languageName: node linkType: hard @@ -5786,17 +5921,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-known@npm:9.8.2": - version: 9.8.2 - resolution: "@polkadot/types-known@npm:9.8.2" +"@polkadot/types-known@npm:10.9.1": + version: 10.9.1 + resolution: "@polkadot/types-known@npm:10.9.1" dependencies: - "@babel/runtime": ^7.20.1 - "@polkadot/networks": ^10.1.12 - "@polkadot/types": 9.8.2 - "@polkadot/types-codec": 9.8.2 - "@polkadot/types-create": 9.8.2 - "@polkadot/util": ^10.1.12 - checksum: 9fd74d0c741f5f9c84869d62654de36fce62bea9a608ac4bfa9cfd9f2f01d2617ea8c8a36dfb24d46eb88c728f16aa4f8c2d6535df7316f2867b1e921148e208 + "@polkadot/networks": ^12.3.1 + "@polkadot/types": 10.9.1 + "@polkadot/types-codec": 10.9.1 + "@polkadot/types-create": 10.9.1 + "@polkadot/util": ^12.3.1 + tslib: ^2.5.3 + checksum: 8a3dd0dead1759112b9011c5ff47bf9fa0f5a00d0d5cba841d724494a9434a2f565fad8ab654ae8cc3949a10c28f3966034bfc23e493b7cc373d3532de508953 languageName: node linkType: hard @@ -5852,19 +5987,19 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:9.8.2": - version: 9.8.2 - resolution: "@polkadot/types@npm:9.8.2" +"@polkadot/types@npm:10.9.1": + version: 10.9.1 + resolution: "@polkadot/types@npm:10.9.1" dependencies: - "@babel/runtime": ^7.20.1 - "@polkadot/keyring": ^10.1.12 - "@polkadot/types-augment": 9.8.2 - "@polkadot/types-codec": 9.8.2 - "@polkadot/types-create": 9.8.2 - "@polkadot/util": ^10.1.12 - "@polkadot/util-crypto": ^10.1.12 - rxjs: ^7.5.7 - checksum: 985d585949988a0ccd96f8c83e584a5c00146328fc4f0117215aef49b26560092e834b69ef0abb18b2284ab1ada45e5619526581d3e93e7139d6017588286831 + "@polkadot/keyring": ^12.3.1 + "@polkadot/types-augment": 10.9.1 + "@polkadot/types-codec": 10.9.1 + "@polkadot/types-create": 10.9.1 + "@polkadot/util": ^12.3.1 + "@polkadot/util-crypto": ^12.3.1 + rxjs: ^7.8.1 + tslib: ^2.5.3 + checksum: c9b0873b52f33c5d7913bc1e474c67d797411ac592c10af987dfecfee7480aeda02b9fc100ff506bc8af704a7fc239162a8ec7eec580e2e7a62ac7f7b95f3900 languageName: node linkType: hard @@ -5881,49 +6016,27 @@ __metadata: languageName: node linkType: hard -"@polkadot/util-crypto@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/util-crypto@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@noble/hashes": 1.1.5 - "@noble/secp256k1": 1.7.1 - "@polkadot/networks": 10.3.1 - "@polkadot/util": 10.3.1 - "@polkadot/wasm-crypto": ^6.4.1 - "@polkadot/x-bigint": 10.3.1 - "@polkadot/x-randomvalues": 10.3.1 - "@scure/base": 1.1.1 - ed2curve: ^0.3.0 - tweetnacl: ^1.0.3 - peerDependencies: - "@polkadot/util": 10.3.1 - checksum: b8769fc27c19af93dd963007c39decd0c914399fa2f7cfa4e97eef6dad3ff5c6ece6a429424e5d3c46cda48383b0ca3b59383887b344e53fee983b9e0f0571b3 - languageName: node - linkType: hard - -"@polkadot/util-crypto@npm:10.4.2, @polkadot/util-crypto@npm:^10.1.12": - version: 10.4.2 - resolution: "@polkadot/util-crypto@npm:10.4.2" +"@polkadot/util-crypto@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/util-crypto@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@noble/hashes": 1.2.0 - "@noble/secp256k1": 1.7.1 - "@polkadot/networks": 10.4.2 - "@polkadot/util": 10.4.2 - "@polkadot/wasm-crypto": ^6.4.1 - "@polkadot/x-bigint": 10.4.2 - "@polkadot/x-randomvalues": 10.4.2 - "@scure/base": 1.1.1 - ed2curve: ^0.3.0 - tweetnacl: ^1.0.3 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + "@polkadot/networks": 12.5.1 + "@polkadot/util": 12.5.1 + "@polkadot/wasm-crypto": ^7.2.2 + "@polkadot/wasm-util": ^7.2.2 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-randomvalues": 12.5.1 + "@scure/base": ^1.1.3 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 10.4.2 - checksum: 40278578521a514990a6fddfb909eea593c156f4378d79e64aa42a193493e99d3d5ed8f05090f5ecac905f504b398006415ba46f7da5b5fb73d2615110f4cde5 + "@polkadot/util": 12.5.1 + checksum: 4efb5ca6e48f7457d8dcfa02ac9f581ce23a90ba9e72c8f6fd7649296e92dcb3dfa3d2bdd0b5ed68b81bf15e32aabef34f60d47851249d8859dba7ebeb63501f languageName: node linkType: hard -"@polkadot/util-crypto@npm:12.6.2, @polkadot/util-crypto@npm:^12.6.1, @polkadot/util-crypto@npm:^12.6.2": +"@polkadot/util-crypto@npm:12.6.2, @polkadot/util-crypto@npm:^12.3.1, @polkadot/util-crypto@npm:^12.6.1, @polkadot/util-crypto@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/util-crypto@npm:12.6.2" dependencies: @@ -5943,37 +6056,22 @@ __metadata: languageName: node linkType: hard -"@polkadot/util@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/util@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-bigint": 10.3.1 - "@polkadot/x-global": 10.3.1 - "@polkadot/x-textdecoder": 10.3.1 - "@polkadot/x-textencoder": 10.3.1 - "@types/bn.js": ^5.1.1 - bn.js: ^5.2.1 - checksum: 3a277965c8c7562dbc69783b016f822b489fa332ceb62fb35a2992f17c09b9dc3f1021bb9c8fb489fcf96a1217dde5cd0556cc0ef50c186848d43bcf2c26ec8d - languageName: node - linkType: hard - -"@polkadot/util@npm:10.4.2, @polkadot/util@npm:^10.1.12": - version: 10.4.2 - resolution: "@polkadot/util@npm:10.4.2" +"@polkadot/util@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/util@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-bigint": 10.4.2 - "@polkadot/x-global": 10.4.2 - "@polkadot/x-textdecoder": 10.4.2 - "@polkadot/x-textencoder": 10.4.2 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-global": 12.5.1 + "@polkadot/x-textdecoder": 12.5.1 + "@polkadot/x-textencoder": 12.5.1 "@types/bn.js": ^5.1.1 bn.js: ^5.2.1 - checksum: a4cca5206e802d58e18819f93892823ea4f267a7c8577332af47f1f38eecf46096498a00e815361118994462017929c888377429e452cda3d2d0947260795a58 + tslib: ^2.6.2 + checksum: 955d41c01cb3c7da72c4f5f8faed13e1af1fa9603a3a1dd9f282eb69b5ebbffb889e76c595d1252ff5f9665cb3c55f1a96f908b020dc79356f92b2d5ce1aa81e languageName: node linkType: hard -"@polkadot/util@npm:12.6.2, @polkadot/util@npm:^12.6.1, @polkadot/util@npm:^12.6.2": +"@polkadot/util@npm:12.6.2, @polkadot/util@npm:^12.3.1, @polkadot/util@npm:^12.6.1, @polkadot/util@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/util@npm:12.6.2" dependencies: @@ -5988,18 +6086,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-bridge@npm:6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-bridge@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 02d9cd1b5c2f6d0261004229751137ef829b38c12e0e844548ef356f9b65dc9a82ec4dcad32f4a156e3c8666b21ef4a8e0c2e5e0e1c51a51a2d7d00373f6f65e - languageName: node - linkType: hard - "@polkadot/wasm-bridge@npm:7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-bridge@npm:7.3.2" @@ -6013,17 +6099,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto-asmjs@npm:6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-crypto-asmjs@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - peerDependencies: - "@polkadot/util": "*" - checksum: 6c2bba5014c373dfc18ec82bb7779141bfaea7d90e3e198fee0bc8ba3078238fee9bf1bb7138a3cbb8b5ad01ade603c44ce838e17940a610fbeec6341a17a0f3 - languageName: node - linkType: hard - "@polkadot/wasm-crypto-asmjs@npm:7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-crypto-asmjs@npm:7.3.2" @@ -6035,21 +6110,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto-init@npm:6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-crypto-init@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - "@polkadot/wasm-bridge": 6.4.1 - "@polkadot/wasm-crypto-asmjs": 6.4.1 - "@polkadot/wasm-crypto-wasm": 6.4.1 - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: e1d30cae9588607cbbe35f539df2cb3fca6b69d65ab7907ca24183931953de0e8d7e61be4af7c30a05295a16a1a9255256a6420a049ddf38c155400f91187956 - languageName: node - linkType: hard - "@polkadot/wasm-crypto-init@npm:7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-crypto-init@npm:7.3.2" @@ -6066,18 +6126,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-crypto-wasm@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - "@polkadot/wasm-util": 6.4.1 - peerDependencies: - "@polkadot/util": "*" - checksum: 21c72028d2e4333b54fb212980e3dc51827ffaf90364df1932205162859eab9b1be3a7767e1c3c5e8cfcf6ad2bc8cb9dafd3be59ada250b77679fa7ade67c646 - languageName: node - linkType: hard - "@polkadot/wasm-crypto-wasm@npm:7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-crypto-wasm@npm:7.3.2" @@ -6090,24 +6138,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-crypto@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - "@polkadot/wasm-bridge": 6.4.1 - "@polkadot/wasm-crypto-asmjs": 6.4.1 - "@polkadot/wasm-crypto-init": 6.4.1 - "@polkadot/wasm-crypto-wasm": 6.4.1 - "@polkadot/wasm-util": 6.4.1 - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 2892834aa2357e5974257810be625b0f08a35a3ba1def4a87e4989636dc7a43691357fdbfbeab4595eb47cd90177dba3c0ce95e593219db7c488fdf450d86357 - languageName: node - linkType: hard - -"@polkadot/wasm-crypto@npm:^7.3.2": +"@polkadot/wasm-crypto@npm:^7.2.2, @polkadot/wasm-crypto@npm:^7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-crypto@npm:7.3.2" dependencies: @@ -6124,18 +6155,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-util@npm:6.4.1": - version: 6.4.1 - resolution: "@polkadot/wasm-util@npm:6.4.1" - dependencies: - "@babel/runtime": ^7.20.6 - peerDependencies: - "@polkadot/util": "*" - checksum: 6d5ef0aa9af7ca9fe23149793bd1fa9f864b41695b49ab5ae5c23b3ac761c310edf382fe0d0a0d812dc07b10a2d0b056de5750947867a94ab87ab51e176d94b3 - languageName: node - linkType: hard - -"@polkadot/wasm-util@npm:7.3.2, @polkadot/wasm-util@npm:^7.3.2": +"@polkadot/wasm-util@npm:7.3.2, @polkadot/wasm-util@npm:^7.2.2, @polkadot/wasm-util@npm:^7.3.2": version: 7.3.2 resolution: "@polkadot/wasm-util@npm:7.3.2" dependencies: @@ -6146,27 +6166,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-bigint@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/x-bigint@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.3.1 - checksum: 0a07ed6ded7889ae66725bb0f0bb6d441882d1daeebdbf9865606e8991c3bb357cc8d5b07737996b0332137ec0f036c15e1bee955f3ec6f2bdd06bf2b6e1e5ef - languageName: node - linkType: hard - -"@polkadot/x-bigint@npm:10.4.2, @polkadot/x-bigint@npm:^10.1.12": - version: 10.4.2 - resolution: "@polkadot/x-bigint@npm:10.4.2" +"@polkadot/x-bigint@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-bigint@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.4.2 - checksum: f35731ccd63de78e31b3fb2679841e4edd1756e27555af0bb6d724ee32d4ea4773d736c23d5155204f4e5fab35e1255c50c7a18d86fa689fbcc03ee7b4ffa524 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 295d00b17860196c43ac4957ffb052ca68bb4319990876238e3f0925ca6ca9106810204136315491116a11a277d8a1e1fae65cc43a168505ee5a69a27404d2e0 languageName: node linkType: hard -"@polkadot/x-bigint@npm:12.6.2, @polkadot/x-bigint@npm:^12.6.2": +"@polkadot/x-bigint@npm:12.6.2, @polkadot/x-bigint@npm:^12.3.1, @polkadot/x-bigint@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/x-bigint@npm:12.6.2" dependencies: @@ -6187,21 +6197,12 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-global@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/x-global@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - checksum: db31833892a92be380c628785aaffc94f0f7757638d0e0a9590cd453cca3d7d112f8e89f6881706103352841f5c659cda33b1cf7a414d215cb15426deef6ef93 - languageName: node - linkType: hard - -"@polkadot/x-global@npm:10.4.2": - version: 10.4.2 - resolution: "@polkadot/x-global@npm:10.4.2" +"@polkadot/x-global@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-global@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - checksum: e046bb7a30b9516d46501e2be0086159ce3fe44eb35020aab44d2dc5ac158e699d35f216a62fe4b78e84fc9101add3c1a3aa74945f37afa7175b4a49c5aeb58e + tslib: ^2.6.2 + checksum: d45e3d6096674b7495992c6e45cf1a284db545c16107ba9adae241d6aefe13c27adfaf93d58a3079e6a6b63acb221eb3181c7f55dc34124b24b542154724c506 languageName: node linkType: hard @@ -6214,23 +6215,16 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/x-randomvalues@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.3.1 - checksum: f28f93b0f8ba18ae203304390af2f0f6277966697341f1d941ea8180b0fdb57616507d6724961e18ac188301f50c3e33db6c3e3f0bbced8b09a131a910ea5096 - languageName: node - linkType: hard - -"@polkadot/x-randomvalues@npm:10.4.2": - version: 10.4.2 - resolution: "@polkadot/x-randomvalues@npm:10.4.2" +"@polkadot/x-randomvalues@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-randomvalues@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.4.2 - checksum: 45f250278550814d5a1d0ef4b096a3e398095ad449c6bc0cd22dd9f404ce4effed29bdd5398869411b632020d421b003a6c907fa5816b44b0b06034d1b839258 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.5.1 + "@polkadot/wasm-util": "*" + checksum: 52ee4b4206a98cac9e97e3d194db01fb4a540046672784442926478eaa2b2a74cebae59d10432671f544d72df5d623aedf57c301bcf447a4c72688ec3cb82fd5 languageName: node linkType: hard @@ -6247,23 +6241,13 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/x-textdecoder@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.3.1 - checksum: 282030952499a499e8dac4516892165fdf6f015e022f9bf4f8c2de47cebbbee5a86494aedfaf5ba4b39c16a8ea583bc1e27c49dbd77b78fc5f0e6d25a28d8148 - languageName: node - linkType: hard - -"@polkadot/x-textdecoder@npm:10.4.2": - version: 10.4.2 - resolution: "@polkadot/x-textdecoder@npm:10.4.2" +"@polkadot/x-textdecoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textdecoder@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.4.2 - checksum: 2981190e233b0687bc3eab7832e089eca2a0a994b8374329e76365d54bbd6c1b11842eda2bc2bb682142a3d4ce572e76c01c273146baf4dfdc7a82ed267ef543 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 202a9e216e9b89cc74012fa3f6c96eeb368dc3e6fa3c943f28c37c20941a6c678506cbc136946e9ff100123aa43846eab7765af074de94dfdd23f4ce2242c794 languageName: node linkType: hard @@ -6277,23 +6261,13 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textencoder@npm:10.3.1": - version: 10.3.1 - resolution: "@polkadot/x-textencoder@npm:10.3.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.3.1 - checksum: 7a3ffc4f46c029948b2c1b22dfb113257888d7f82147df78e27c85838155cef7b859b95cbde4df1c2612fe78c7a01b3eca325200e763060458229443227d8046 - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:10.4.2": - version: 10.4.2 - resolution: "@polkadot/x-textencoder@npm:10.4.2" +"@polkadot/x-textencoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textencoder@npm:12.5.1" dependencies: - "@babel/runtime": ^7.20.13 - "@polkadot/x-global": 10.4.2 - checksum: 8f748d2842b53537b38868b8f2118e5e9a89e3033412605bd98f91f386820f43bac30517e0c83714fbe6498a8495d0301610999e4ebeeb9dd214d6602459f214 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 7a8d99d203cbd9537e55405d737667ae8cd9ad40a9e3de52f2ef7580a23d27ebf7f7c52da4e0eca6ca34dc97aae33a97bab36afb54aaa7714f54a31931f94113 languageName: node linkType: hard @@ -6495,13 +6469,6 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:1.1.1": - version: 1.1.1 - resolution: "@scure/base@npm:1.1.1" - checksum: b4fc810b492693e7e8d0107313ac74c3646970c198bbe26d7332820886fa4f09441991023ec9aa3a2a51246b74409ab5ebae2e8ef148bbc253da79ac49130309 - languageName: node - linkType: hard - "@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0, @scure/base@npm:~1.1.4": version: 1.1.5 resolution: "@scure/base@npm:1.1.5" @@ -6531,7 +6498,7 @@ __metadata: languageName: node linkType: hard -"@scure/bip32@npm:1.3.3": +"@scure/bip32@npm:1.3.3, @scure/bip32@npm:^1.1.5": version: 1.3.3 resolution: "@scure/bip32@npm:1.3.3" dependencies: @@ -6562,7 +6529,7 @@ __metadata: languageName: node linkType: hard -"@scure/bip39@npm:1.2.2": +"@scure/bip39@npm:1.2.2, @scure/bip39@npm:^1.2.0": version: 1.2.2 resolution: "@scure/bip39@npm:1.2.2" dependencies: @@ -6843,15 +6810,6 @@ __metadata: languageName: node linkType: hard -"@stacks/common@npm:^1.2.2": - version: 1.2.2 - resolution: "@stacks/common@npm:1.2.2" - dependencies: - cross-fetch: ^3.0.6 - checksum: b26028fdce181a57f1f2e3f9b5424dace889722e663fb66d425299c88f1659b76be193ec913d31385ec0756cd7a3da45810fecb7db278c9f3c42d6efd99915e4 - languageName: node - linkType: hard - "@stacks/common@npm:^4.3.5": version: 4.3.5 resolution: "@stacks/common@npm:4.3.5" @@ -6863,12 +6821,23 @@ __metadata: languageName: node linkType: hard -"@stacks/network@npm:1.2.2, @stacks/network@npm:^1.2.2": - version: 1.2.2 - resolution: "@stacks/network@npm:1.2.2" +"@stacks/common@npm:^6.10.0": + version: 6.10.0 + resolution: "@stacks/common@npm:6.10.0" + dependencies: + "@types/bn.js": ^5.1.0 + "@types/node": ^18.0.4 + checksum: fc83a26b1f3857b7e19eaf5e0db67584a47ca5432a50958b4dacbcc4e9850249cb088b4d448f636a45f772a3407c064fa6982dbc63a39479bf1270ba76b97780 + languageName: node + linkType: hard + +"@stacks/network@npm:6.10.0": + version: 6.10.0 + resolution: "@stacks/network@npm:6.10.0" dependencies: - "@stacks/common": ^1.2.2 - checksum: 00ea239749dd23d8a091342aabc14b65b226d2a2654f93dcfd44728e8cca3dc3f29efc3f95851456143c601f005421dbfc9c7cedfaeca3de1eb2a0fec0834bc0 + "@stacks/common": ^6.10.0 + cross-fetch: ^3.1.5 + checksum: 960fa88a66fad36c3502d86db603dd429e9f004a8e35cf02daf10adf6cac553c2f97c3aa70113c0b0639b8be602b851a243e4aa37f8a145c75543467a580cd28 languageName: node linkType: hard @@ -6882,27 +6851,27 @@ __metadata: languageName: node linkType: hard -"@stacks/transactions@npm:1.3.5": - version: 1.3.5 - resolution: "@stacks/transactions@npm:1.3.5" +"@stacks/network@npm:^6.10.0": + version: 6.11.3 + resolution: "@stacks/network@npm:6.11.3" dependencies: - "@stacks/common": ^1.2.2 - "@stacks/network": ^1.2.2 - "@types/bn.js": ^4.11.6 - "@types/elliptic": ^6.4.12 - "@types/randombytes": ^2.0.0 - "@types/sha.js": ^2.4.0 - bn.js: ^4.11.9 - c32check: ^1.1.1 - cross-fetch: ^3.0.5 - elliptic: ^6.5.3 - lodash: ^4.17.20 - lodash-es: 4.17.20 - randombytes: ^2.1.0 - ripemd160-min: ^0.0.6 - sha.js: ^2.4.11 - smart-buffer: ^4.1.0 - checksum: d477961b2cec8beeebcd45f56874b35e3d4dfa1bcfd253e8dc4449ab3d055ce24f81904d44095a51110b92a008ea75193e135279c1cd0df460254401ca12b878 + "@stacks/common": ^6.10.0 + cross-fetch: ^3.1.5 + checksum: a17b9ad41fc36bd55c5acd141594c8dfe9d1399d198fb81ae757fd7248b941793923e9589cd254af489dd5cb810eba9a16110fcc8170edfcbfc51ef965d5b725 + languageName: node + linkType: hard + +"@stacks/transactions@npm:6.11.0": + version: 6.11.0 + resolution: "@stacks/transactions@npm:6.11.0" + dependencies: + "@noble/hashes": 1.1.5 + "@noble/secp256k1": 1.7.1 + "@stacks/common": ^6.10.0 + "@stacks/network": ^6.10.0 + c32check: ^2.0.0 + lodash.clonedeep: ^4.5.0 + checksum: 4a4b34ab7eb37adcd368cfed133f4395fca32fa4bac3ab82dcf32834df64db3442d11641d51993bf7ff432fba656586a02983e8adb254c354047afb35ab8f944 languageName: node linkType: hard @@ -7025,7 +6994,14 @@ __metadata: languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.38.0, @substrate/ss58-registry@npm:^1.44.0": +"@substrate/ss58-registry@npm:^1.43.0": + version: 1.46.0 + resolution: "@substrate/ss58-registry@npm:1.46.0" + checksum: 10e9bfd8d509abf78759d3e62cc41de515fc832dc2eab503071dda4cf0fb71c9d52247d0c32f93af6f8c4463add50d7f7f3483b52cbf43de621ac255226efb5f + languageName: node + linkType: hard + +"@substrate/ss58-registry@npm:^1.44.0": version: 1.44.0 resolution: "@substrate/ss58-registry@npm:1.44.0" checksum: 130fafc337a60bf22b1c01b8bd4fdbc2606a00483961bd173224478adb358a17b865d287cf99a2a32cb430d23d3a7969fce0457e8302dc48a98e1f666c7f6e40 @@ -7687,7 +7663,7 @@ __metadata: languageName: node linkType: hard -"@types/bn.js@npm:^4.11.3, @types/bn.js@npm:^4.11.5, @types/bn.js@npm:^4.11.6": +"@types/bn.js@npm:^4.11.3, @types/bn.js@npm:^4.11.5": version: 4.11.6 resolution: "@types/bn.js@npm:4.11.6" dependencies: @@ -7797,7 +7773,7 @@ __metadata: languageName: node linkType: hard -"@types/elliptic@npm:^6.4.12, @types/elliptic@npm:^6.4.9": +"@types/elliptic@npm:^6.4.9": version: 6.4.14 resolution: "@types/elliptic@npm:6.4.14" dependencies: @@ -7993,6 +7969,13 @@ __metadata: languageName: node linkType: hard +"@types/json-schema@npm:^7.0.11": + version: 7.0.15 + resolution: "@types/json-schema@npm:7.0.15" + checksum: 97ed0cb44d4070aecea772b7b2e2ed971e10c81ec87dd4ecc160322ffa55ff330dace1793489540e3e318d90942064bb697cc0f8989391797792d919737b3b98 + languageName: node + linkType: hard + "@types/json5@npm:^0.0.29": version: 0.0.29 resolution: "@types/json5@npm:0.0.29" @@ -8018,6 +8001,15 @@ __metadata: languageName: node linkType: hard +"@types/ledgerhq__hw-transport@npm:^4.21.4": + version: 4.21.8 + resolution: "@types/ledgerhq__hw-transport@npm:4.21.8" + dependencies: + "@types/node": "*" + checksum: 382c9005ebc07ad76adeee7345fa686ea1c9b678bcaad836bb605373424f66d141ed2ae57cd9b65f6d876efd0b6dba00ee9b6c5f69ff0640efdea4a871e16ac7 + languageName: node + linkType: hard + "@types/less@npm:^3.0.6": version: 3.0.6 resolution: "@types/less@npm:3.0.6" @@ -8097,7 +8089,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^10.12.18": +"@types/node@npm:^10.12.18, @types/node@npm:^10.3.2": version: 10.17.60 resolution: "@types/node@npm:10.17.60" checksum: 2cdb3a77d071ba8513e5e8306fa64bf50e3c3302390feeaeff1fd325dd25c8441369715dfc8e3701011a72fed5958c7dfa94eb9239a81b3c286caa4d97db6eef @@ -8370,7 +8362,16 @@ __metadata: resolution: "@types/ws@npm:7.4.7" dependencies: "@types/node": "*" - checksum: b4c9b8ad209620c9b21e78314ce4ff07515c0cadab9af101c1651e7bfb992d7fd933bd8b9c99d110738fd6db523ed15f82f29f50b45510288da72e964dedb1a3 + checksum: b4c9b8ad209620c9b21e78314ce4ff07515c0cadab9af101c1651e7bfb992d7fd933bd8b9c99d110738fd6db523ed15f82f29f50b45510288da72e964dedb1a3 + languageName: node + linkType: hard + +"@types/ws@npm:^8.2.2": + version: 8.5.10 + resolution: "@types/ws@npm:8.5.10" + dependencies: + "@types/node": "*" + checksum: 3ec416ea2be24042ebd677932a462cf16d2080393d8d7d0b1b3f5d6eaa4a7387aaf0eefb99193c0bfd29444857cf2e0c3ac89899e130550dc6c14ada8a46d25e languageName: node linkType: hard @@ -8560,6 +8561,24 @@ __metadata: languageName: node linkType: hard +"@vechain/ethers@npm:^4.0.27-5": + version: 4.0.27-5 + resolution: "@vechain/ethers@npm:4.0.27-5" + dependencies: + "@types/node": ^10.3.2 + aes-js: 3.0.0 + bn.js: ^4.4.0 + elliptic: 6.5.4 + hash.js: 1.1.3 + js-sha3: 0.5.7 + scrypt-js: 2.0.4 + setimmediate: 1.0.4 + uuid: 2.0.1 + xmlhttprequest: 1.8.0 + checksum: 896737360e8e34febc89a84c2c87170ba6af593b059c6f751175f6719661c4bd84960b1323677d056ee024633e8ddd6a72683b38346958bedd7ae8614f8f52c6 + languageName: node + linkType: hard + "@vue/babel-helper-vue-jsx-merge-props@npm:^1.2.1": version: 1.2.1 resolution: "@vue/babel-helper-vue-jsx-merge-props@npm:1.2.1" @@ -9354,6 +9373,17 @@ __metadata: languageName: node linkType: hard +"@zondax/ledger-casper@npm:^2.6.1": + version: 2.6.1 + resolution: "@zondax/ledger-casper@npm:2.6.1" + dependencies: + "@babel/runtime": ^7.21.0 + "@ledgerhq/hw-transport": ^6.28.2 + "@types/ledgerhq__hw-transport": ^4.21.4 + checksum: e6cdca0c522c2dbd63b9571db314db767747fc8eafffd59ffbe818da35e1c3b473236a5c83c71ae22347bfb0536f5d1e936a14aec1ddf555751aa3a7b14fd8f6 + languageName: node + linkType: hard + "@zondax/ledger-cosmos-js@npm:^3.0.3": version: 3.0.3 resolution: "@zondax/ledger-cosmos-js@npm:3.0.3" @@ -9577,7 +9607,7 @@ __metadata: languageName: node linkType: hard -"ajv-formats@npm:^2.1.1": +"ajv-formats@npm:2.1.1, ajv-formats@npm:^2.1.1": version: 2.1.1 resolution: "ajv-formats@npm:2.1.1" dependencies: @@ -9611,6 +9641,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:8.11.2": + version: 8.11.2 + resolution: "ajv@npm:8.11.2" + dependencies: + fast-deep-equal: ^3.1.1 + json-schema-traverse: ^1.0.0 + require-from-string: ^2.0.2 + uri-js: ^4.2.2 + checksum: 53435bf79ee7d1eabba8085962dba4c08d08593334b304db7772887f0b7beebc1b3d957432f7437ed4b60e53b5d966a57b439869890209c50fed610459999e3e + languageName: node + linkType: hard + "ajv@npm:^6.10.0, ajv@npm:^6.12.2, ajv@npm:^6.12.3, ajv@npm:^6.12.4, ajv@npm:^6.12.5": version: 6.12.6 resolution: "ajv@npm:6.12.6" @@ -9926,7 +9968,7 @@ __metadata: languageName: node linkType: hard -"asn1.js@npm:^5.2.0": +"asn1.js@npm:^5.0.1, asn1.js@npm:^5.2.0": version: 5.4.1 resolution: "asn1.js@npm:5.4.1" dependencies: @@ -10068,16 +10110,6 @@ __metadata: languageName: node linkType: hard -"axios-retry@npm:^3.2.4": - version: 3.7.0 - resolution: "axios-retry@npm:3.7.0" - dependencies: - "@babel/runtime": ^7.15.4 - is-retry-allowed: ^2.2.0 - checksum: ef34b50a86b5cd65ce2bf933aaed422ffb1a17b8fe11a53e444437fb42be400b48271d1ff9fd23a051627b7f3b33bebdeb1d66556aae04d5d6bfbe57fecdfb64 - languageName: node - linkType: hard - "axios@npm:0.21.1": version: 0.21.1 resolution: "axios@npm:0.21.1" @@ -10235,6 +10267,15 @@ __metadata: languageName: node linkType: hard +"base-x@npm:^2.0.1": + version: 2.0.6 + resolution: "base-x@npm:2.0.6" + dependencies: + safe-buffer: ^5.0.1 + checksum: 622357405a8ce44e39bfcd3266278279f8a21e06850303e422260fd7a776720c2e7cbb70e7804bef310f852fa604016b624e10b442da465e312d32ba908d753d + languageName: node + linkType: hard + "base-x@npm:^3.0.2, base-x@npm:^3.0.5, base-x@npm:^3.0.8, base-x@npm:^3.0.9": version: 3.0.9 resolution: "base-x@npm:3.0.9" @@ -10366,6 +10407,13 @@ __metadata: languageName: node linkType: hard +"bignumber.js@npm:9, bignumber.js@npm:^9.0.0, bignumber.js@npm:^9.0.1, bignumber.js@npm:^9.0.2, bignumber.js@npm:^9.1.1, bignumber.js@npm:^9.1.2": + version: 9.1.2 + resolution: "bignumber.js@npm:9.1.2" + checksum: 582c03af77ec9cb0ebd682a373ee6c66475db94a4325f92299621d544aa4bd45cb45fd60001610e94aef8ae98a0905fa538241d9638d4422d57abbeeac6fadaf + languageName: node + linkType: hard + "bignumber.js@npm:9.0.1": version: 9.0.1 resolution: "bignumber.js@npm:9.0.1" @@ -10387,13 +10435,6 @@ __metadata: languageName: node linkType: hard -"bignumber.js@npm:^9.0.0, bignumber.js@npm:^9.0.1, bignumber.js@npm:^9.0.2, bignumber.js@npm:^9.1.1, bignumber.js@npm:^9.1.2": - version: 9.1.2 - resolution: "bignumber.js@npm:9.1.2" - checksum: 582c03af77ec9cb0ebd682a373ee6c66475db94a4325f92299621d544aa4bd45cb45fd60001610e94aef8ae98a0905fa538241d9638d4422d57abbeeac6fadaf - languageName: node - linkType: hard - "binary-extensions@npm:^2.0.0": version: 2.2.0 resolution: "binary-extensions@npm:2.2.0" @@ -10615,7 +10656,7 @@ __metadata: languageName: node linkType: hard -"blakejs@npm:^1.1.0, blakejs@npm:^1.1.1, blakejs@npm:^1.2.1": +"blakejs@npm:^1.1.0, blakejs@npm:^1.1.1, blakejs@npm:^1.1.2, blakejs@npm:^1.2.1": version: 1.2.1 resolution: "blakejs@npm:1.2.1" checksum: d699ba116cfa21d0b01d12014a03e484dd76d483133e6dc9eb415aa70a119f08beb3bcefb8c71840106a00b542cba77383f8be60cd1f0d4589cb8afb922eefbe @@ -10636,10 +10677,10 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:5.2.0": - version: 5.2.0 - resolution: "bn.js@npm:5.2.0" - checksum: 6117170393200f68b35a061ecbf55d01dd989302e7b3c798a3012354fa638d124f0b2f79e63f77be5556be80322a09c40339eda6413ba7468524c0b6d4b4cb7a +"bn.js@npm:5.2.1, bn.js@npm:^5.0.0, bn.js@npm:^5.1.1, bn.js@npm:^5.1.2, bn.js@npm:^5.1.3, bn.js@npm:^5.2.0, bn.js@npm:^5.2.1": + version: 5.2.1 + resolution: "bn.js@npm:5.2.1" + checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 languageName: node linkType: hard @@ -10650,13 +10691,6 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.0.0, bn.js@npm:^5.1.1, bn.js@npm:^5.1.2, bn.js@npm:^5.1.3, bn.js@npm:^5.2.0, bn.js@npm:^5.2.1": - version: 5.2.1 - resolution: "bn.js@npm:5.2.1" - checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 - languageName: node - linkType: hard - "body-parser@npm:1.19.2": version: 1.19.2 resolution: "body-parser@npm:1.19.2" @@ -10729,14 +10763,10 @@ __metadata: languageName: node linkType: hard -"borsh@npm:^0.6.0": - version: 0.6.0 - resolution: "borsh@npm:0.6.0" - dependencies: - bn.js: ^5.2.0 - bs58: ^4.0.0 - text-encoding-utf-8: ^1.0.2 - checksum: 633986769e931dd9d156c0d52a315cd3bb0546c24df84e28fa04859cccbebd9107f1621bd594d4a63ba23c7cda2931a8d97e54952ee766a097d3c2434f80b009 +"borsh@npm:1.0.0": + version: 1.0.0 + resolution: "borsh@npm:1.0.0" + checksum: fbb2101a30e94537a330b6158d513c497d760f4ddfc457e1431120a201f06eb05b7879100581e95deff07aad974cabc394da708a0be322ad26697177eadd123b languageName: node linkType: hard @@ -10872,6 +10902,15 @@ __metadata: languageName: node linkType: hard +"bs58@npm:4.0.0": + version: 4.0.0 + resolution: "bs58@npm:4.0.0" + dependencies: + base-x: ^2.0.1 + checksum: af0f18e05d7612617453b5bb5f3913f5c1b804fbda9176c9008f38df6eb3556a4abdba5367fff692cbec19c5cd7c59bfe7d70885bccf8d6ea5a277b3230025d2 + languageName: node + linkType: hard + "bs58@npm:^4.0.0, bs58@npm:^4.0.1": version: 4.0.1 resolution: "bs58@npm:4.0.1" @@ -11066,7 +11105,7 @@ __metadata: languageName: node linkType: hard -"c32check@npm:1.1.3, c32check@npm:^1.1.1, c32check@npm:^1.1.3": +"c32check@npm:1.1.3, c32check@npm:^1.1.3": version: 1.1.3 resolution: "c32check@npm:1.1.3" dependencies: @@ -11077,6 +11116,16 @@ __metadata: languageName: node linkType: hard +"c32check@npm:^2.0.0": + version: 2.0.0 + resolution: "c32check@npm:2.0.0" + dependencies: + "@noble/hashes": ^1.1.2 + base-x: ^4.0.0 + checksum: af555f5d5cb14780936ea2f055d0013f57046200483c53b992e64ce8b2ef7041f66cd81e873b2a2f5bb5e863033a9f4c3877e254e8d6db9a9a55cd9d1c61d9b2 + languageName: node + linkType: hard + "cac@npm:^6.7.12, cac@npm:^6.7.14": version: 6.7.14 resolution: "cac@npm:6.7.14" @@ -11239,13 +11288,6 @@ __metadata: languageName: node linkType: hard -"capability@npm:^0.2.5": - version: 0.2.5 - resolution: "capability@npm:0.2.5" - checksum: 59ce65958dc0f2e76e7007fe8d5a0a85801b950bb957779c11948776f0e7a1290b9638bfd2da92b4b8bebd7584f92a8c38d4e6613659c9637783a6993026b08b - languageName: node - linkType: hard - "case-sensitive-paths-webpack-plugin@npm:^2.3.0": version: 2.4.0 resolution: "case-sensitive-paths-webpack-plugin@npm:2.4.0" @@ -11269,6 +11311,34 @@ __metadata: languageName: node linkType: hard +"casper-js-sdk@npm:^2.15.2": + version: 2.15.4 + resolution: "casper-js-sdk@npm:2.15.4" + dependencies: + "@ethersproject/bignumber": ^5.0.8 + "@ethersproject/bytes": ^5.0.5 + "@ethersproject/constants": ^5.0.5 + "@noble/curves": ^1.1.0 + "@noble/ed25519": ^1.7.3 + "@noble/hashes": ^1.2.0 + "@noble/secp256k1": ^1.7.1 + "@open-rpc/client-js": ^1.8.1 + "@scure/bip32": ^1.1.5 + "@scure/bip39": ^1.2.0 + "@types/ws": ^8.2.2 + eventsource: ^2.0.2 + glob: ^7.1.6 + humanize-duration: ^3.24.0 + key-encoder: ^2.0.3 + lodash: ^4.17.21 + node-fetch: 2.6.13 + reflect-metadata: ^0.1.13 + ts-results: "npm:@casperlabs/ts-results@^3.3.4" + typedjson: ^1.6.0-rc2 + checksum: 6f76fe5dfaad5d58751df042d0768bf4b130a1ddae85297e0e09292d5f44c68c8b0a5f8cd80b500c2b585f5cfc36721996eadce6ad84b79a4f03339fb8c92d2a + languageName: node + linkType: hard + "cbor@npm:^5.2.0": version: 5.2.0 resolution: "cbor@npm:5.2.0" @@ -12156,7 +12226,7 @@ __metadata: languageName: node linkType: hard -"crc@npm:^4.2.0, crc@npm:^4.3.2": +"crc@npm:^4.3.2": version: 4.3.2 resolution: "crc@npm:4.3.2" peerDependencies: @@ -12233,7 +12303,7 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:^3.0.5, cross-fetch@npm:^3.0.6, cross-fetch@npm:^3.1.4, cross-fetch@npm:^3.1.5": +"cross-fetch@npm:^3.0.6, cross-fetch@npm:^3.1.4, cross-fetch@npm:^3.1.5": version: 3.1.8 resolution: "cross-fetch@npm:3.1.8" dependencies: @@ -12805,7 +12875,7 @@ __metadata: languageName: node linkType: hard -"depd@npm:2.0.0, depd@npm:^2.0.0": +"depd@npm:2.0.0": version: 2.0.0 resolution: "depd@npm:2.0.0" checksum: abbe19c768c97ee2eed6282d8ce3031126662252c58d711f646921c9623f9052e3e1906443066beec1095832f534e57c523b7333f8e7e0d93051ab6baef5ab3a @@ -13128,15 +13198,6 @@ __metadata: languageName: node linkType: hard -"ed2curve@npm:^0.3.0": - version: 0.3.0 - resolution: "ed2curve@npm:0.3.0" - dependencies: - tweetnacl: 1.x.x - checksum: 6dfbe2310aa5a47372c9dd2fd920be140c8d52aea5793d716a3e3865d2ceaeaf639a7653e5492dfe3b4910eaf65c09a1d5132580afe2fdca18a75ebb428a52f2 - languageName: node - linkType: hard - "ee-first@npm:1.1.1": version: 1.1.1 resolution: "ee-first@npm:1.1.1" @@ -13301,17 +13362,6 @@ __metadata: languageName: node linkType: hard -"error-polyfill@npm:^0.1.3": - version: 0.1.3 - resolution: "error-polyfill@npm:0.1.3" - dependencies: - capability: ^0.2.5 - o3: ^1.0.3 - u3: ^0.1.1 - checksum: 1aee485841310e1f4d10cde0a5c8ac840311c94914bb1aed8fd71826be84dd5dba3d4ab937f39c0b970edb3d0a76cfb5d001ec979db6c68858b5f75c1f504c52 - languageName: node - linkType: hard - "error-stack-parser@npm:^2.0.6": version: 2.0.7 resolution: "error-stack-parser@npm:2.0.7" @@ -13906,18 +13956,6 @@ __metadata: languageName: node linkType: hard -"eth-sig-util@npm:3.0.1": - version: 3.0.1 - resolution: "eth-sig-util@npm:3.0.1" - dependencies: - ethereumjs-abi: ^0.6.8 - ethereumjs-util: ^5.1.1 - tweetnacl: ^1.0.3 - tweetnacl-util: ^0.15.0 - checksum: 614bf7011b30f78c3532f53e3f80919fe5502b0fa7a3656e6e7dae56d26bc9f559c5b6480c2bcc66d63cd9f72b489732df3b7f1daa0ac9a1fe3b6878347ab4c6 - languageName: node - linkType: hard - "ethereum-bloom-filters@npm:^1.0.6": version: 1.0.10 resolution: "ethereum-bloom-filters@npm:1.0.10" @@ -14034,7 +14072,7 @@ __metadata: languageName: node linkType: hard -"ethereumjs-util@npm:^5.1.1, ethereumjs-util@npm:^5.2.0": +"ethereumjs-util@npm:^5.2.0": version: 5.2.1 resolution: "ethereumjs-util@npm:5.2.1" dependencies: @@ -14093,7 +14131,7 @@ __metadata: languageName: node linkType: hard -"ethers@npm:5.7.2, ethers@npm:^5.0.13, ethers@npm:^5.6.9, ethers@npm:^5.7.2": +"ethers@npm:5.7.2, ethers@npm:^5.0.13, ethers@npm:^5.7.2": version: 5.7.2 resolution: "ethers@npm:5.7.2" dependencies: @@ -14239,6 +14277,13 @@ __metadata: languageName: node linkType: hard +"eventsource@npm:^2.0.2": + version: 2.0.2 + resolution: "eventsource@npm:2.0.2" + checksum: c0072d972753e10c705d9b2285b559184bf29d011bc208973dde9c8b6b8b7b6fdad4ef0846cecb249f7b1585e860fdf324cbd2ac854a76bc53649e797496e99a + languageName: node + linkType: hard + "evp_bytestokey@npm:^1.0.0, evp_bytestokey@npm:^1.0.3": version: 1.0.3 resolution: "evp_bytestokey@npm:1.0.3" @@ -14970,13 +15015,6 @@ __metadata: languageName: node linkType: hard -"generic-pool@npm:^3.8.2": - version: 3.9.0 - resolution: "generic-pool@npm:3.9.0" - checksum: 3d89e9b2018d2e3bbf44fec78c76b2b7d56d6a484237aa9daf6ff6eedb14b0899dadd703b5d810219baab2eb28e5128fb18b29e91e602deb2eccac14492d8ca8 - languageName: node - linkType: hard - "gensync@npm:^1.0.0-beta.2": version: 1.0.0-beta.2 resolution: "gensync@npm:1.0.0-beta.2" @@ -15713,7 +15751,20 @@ __metadata: languageName: node linkType: hard -"http-errors@npm:1.8.1, http-errors@npm:^1.7.2": +"http-errors@npm:1.7.2": + version: 1.7.2 + resolution: "http-errors@npm:1.7.2" + dependencies: + depd: ~1.1.2 + inherits: 2.0.3 + setprototypeof: 1.1.1 + statuses: ">= 1.5.0 < 2" + toidentifier: 1.0.0 + checksum: 5534b0ae08e77f5a45a2380f500e781f6580c4ff75b816cb1f09f99a290b57e78a518be6d866db1b48cca6b052c09da2c75fc91fb16a2fe3da3c44d9acbb9972 + languageName: node + linkType: hard + +"http-errors@npm:1.8.1": version: 1.8.1 resolution: "http-errors@npm:1.8.1" dependencies: @@ -15857,6 +15908,13 @@ __metadata: languageName: node linkType: hard +"humanize-duration@npm:^3.24.0": + version: 3.31.0 + resolution: "humanize-duration@npm:3.31.0" + checksum: a21b1c80d43580c28fef07213846f74703c467270d41b774faeb4df6041b1da65effc554346fe6f0a70c4096b011d75f2ba6c2fd254b5a3c93231d85910533fe + languageName: node + linkType: hard + "humanize-ms@npm:^1.2.1": version: 1.2.1 resolution: "humanize-ms@npm:1.2.1" @@ -16423,13 +16481,6 @@ __metadata: languageName: node linkType: hard -"is-retry-allowed@npm:^2.2.0": - version: 2.2.0 - resolution: "is-retry-allowed@npm:2.2.0" - checksum: 3d1103a9290b5d03626756a41054844633eac78bc5d3e3a95b13afeae94fa3cfbcf7f0b5520d83f75f48a25ce7b142fdbac4217dc4b0630f3ea55e866ec3a029 - languageName: node - linkType: hard - "is-shared-array-buffer@npm:^1.0.2": version: 1.0.2 resolution: "is-shared-array-buffer@npm:1.0.2" @@ -16586,6 +16637,16 @@ __metadata: languageName: node linkType: hard +"isomorphic-fetch@npm:^3.0.0": + version: 3.0.0 + resolution: "isomorphic-fetch@npm:3.0.0" + dependencies: + node-fetch: ^2.6.1 + whatwg-fetch: ^3.4.1 + checksum: e5ab79a56ce5af6ddd21265f59312ad9a4bc5a72cebc98b54797b42cb30441d5c5f8d17c5cd84a99e18101c8af6f90c081ecb8d12fd79e332be1778d58486d75 + languageName: node + linkType: hard + "isomorphic-ws@npm:^4.0.1": version: 4.0.1 resolution: "isomorphic-ws@npm:4.0.1" @@ -16840,7 +16901,7 @@ __metadata: languageName: node linkType: hard -"js-sha256@npm:0.9.0, js-sha256@npm:^0.9.0": +"js-sha256@npm:^0.9.0": version: 0.9.0 resolution: "js-sha256@npm:0.9.0" checksum: ffad54b3373f81581e245866abfda50a62c483803a28176dd5c28fd2d313e0bdf830e77dac7ff8afd193c53031618920f3d98daf21cbbe80082753ab639c0365 @@ -17131,13 +17192,6 @@ __metadata: languageName: node linkType: hard -"jwt-decode@npm:^3.1.2": - version: 3.1.2 - resolution: "jwt-decode@npm:3.1.2" - checksum: 20a4b072d44ce3479f42d0d2c8d3dabeb353081ba4982e40b83a779f2459a70be26441be6c160bfc8c3c6eadf9f6380a036fbb06ac5406b5674e35d8c4205eeb - languageName: node - linkType: hard - "keccak@npm:3.0.2": version: 3.0.2 resolution: "keccak@npm:3.0.2" @@ -17162,6 +17216,18 @@ __metadata: languageName: node linkType: hard +"key-encoder@npm:^2.0.3": + version: 2.0.3 + resolution: "key-encoder@npm:2.0.3" + dependencies: + "@types/elliptic": ^6.4.9 + asn1.js: ^5.0.1 + bn.js: ^4.11.8 + elliptic: ^6.4.1 + checksum: da0b297965224c814a72d6a0850c9d05a43f85515a6a9047b24379c91eb1a510ee6d373c76b985f99ac189f0ea7ac17d223df00718d7201220c83347b7e58f58 + languageName: node + linkType: hard + "keyv@npm:^3.0.0": version: 3.1.0 resolution: "keyv@npm:3.1.0" @@ -17453,13 +17519,6 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:4.17.20": - version: 4.17.20 - resolution: "lodash-es@npm:4.17.20" - checksum: 209a749a5c50feaf50db16bcd99c41a945568bc2efe07c16b250add982bdfaf57d2e4930d6556a1220ec9c52578ba9fcf533a351704e09a6fe29d137d440d3fb - languageName: node - linkType: hard - "lodash-es@npm:^4.17.21": version: 4.17.21 resolution: "lodash-es@npm:4.17.21" @@ -17755,6 +17814,13 @@ __metadata: languageName: node linkType: hard +"lru_map@npm:0.4.1": + version: 0.4.1 + resolution: "lru_map@npm:0.4.1" + checksum: a3eb277ca7e673c7d6e78578193cc7c67a7410978c260f9b49418aa2053c7cb025d98326d3e74817119cb4ef5f114e2e05da58b7badfbde4a7b4d566c5f294e5 + languageName: node + linkType: hard + "magic-string@npm:^0.30.3": version: 0.30.5 resolution: "magic-string@npm:0.30.5" @@ -18494,12 +18560,12 @@ __metadata: languageName: node linkType: hard -"mustache@npm:^4.0.0": - version: 4.2.0 - resolution: "mustache@npm:4.2.0" +"mustache@npm:4.0.0": + version: 4.0.0 + resolution: "mustache@npm:4.0.0" bin: - mustache: bin/mustache - checksum: 928fcb63e3aa44a562bfe9b59ba202cccbe40a46da50be6f0dd831b495be1dd7e38ca4657f0ecab2c1a89dc7bccba0885eab7ee7c1b215830da765758c7e0506 + mustache: ./bin/mustache + checksum: dcb2bf2d2a611a21f5e467ffe95dd6aa9e178bdc1d893251a5ac2b1c8f19912e48feed1bb392bba030056d23a68c009f3f80631dff81183a28e75045ef63d975 languageName: node linkType: hard @@ -18590,22 +18656,40 @@ __metadata: languageName: node linkType: hard -"near-api-js@npm:^0.44.2": - version: 0.44.2 - resolution: "near-api-js@npm:0.44.2" +"near-abi@npm:0.1.1": + version: 0.1.1 + resolution: "near-abi@npm:0.1.1" dependencies: - bn.js: 5.2.0 - borsh: ^0.6.0 - bs58: ^4.0.0 - depd: ^2.0.0 - error-polyfill: ^0.1.3 - http-errors: ^1.7.2 - js-sha256: ^0.9.0 - mustache: ^4.0.0 - node-fetch: ^2.6.1 - text-encoding-utf-8: ^1.0.2 - tweetnacl: ^1.0.1 - checksum: d63625ab83d695d23a9126997355909fe141204c431a4818733050e1fcda11e5508dc70ff2e8fd55c1b2842908babd42fcf0ed4f3dc8c3fdb23ae422c497996d + "@types/json-schema": ^7.0.11 + checksum: 25b01b50b9a820250ad3ccf88164af242e1bbb895f1d14836b66d518fb3c016a66929959c1e3dda8ec2e2a8def23fc15843b8343a3b245da93727d86f8282425 + languageName: node + linkType: hard + +"near-api-js@npm:^3.0.2": + version: 3.0.3 + resolution: "near-api-js@npm:3.0.3" + dependencies: + "@near-js/accounts": 1.0.3 + "@near-js/crypto": 1.2.1 + "@near-js/keystores": 0.0.9 + "@near-js/keystores-browser": 0.0.9 + "@near-js/keystores-node": 0.0.9 + "@near-js/providers": 0.1.0 + "@near-js/signers": 0.1.1 + "@near-js/transactions": 1.1.1 + "@near-js/types": 0.0.4 + "@near-js/utils": 0.1.0 + "@near-js/wallet-account": 1.1.0 + "@noble/curves": 1.2.0 + ajv: 8.11.2 + ajv-formats: 2.1.1 + bn.js: 5.2.1 + borsh: 1.0.0 + depd: 2.0.0 + http-errors: 1.7.2 + near-abi: 0.1.1 + node-fetch: 2.6.7 + checksum: 332b64bdbb5cc86ce19edae8eb16504cf29a9145950e07169bd97d10ae576f2960b04bb223ae6021be472468fe497c44b5e16d377f0322de97ac93c4c694eb31 languageName: node linkType: hard @@ -18741,6 +18825,34 @@ __metadata: languageName: node linkType: hard +"node-fetch@npm:2.6.13": + version: 2.6.13 + resolution: "node-fetch@npm:2.6.13" + dependencies: + whatwg-url: ^5.0.0 + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + checksum: 055845ae5b4796c78c7053564745345025cf959563b3568b43c385f67d311779e6b00e5fef6ed1b79f86ba4048e4b4b722e1aa948305521b9353eb7e788912c9 + languageName: node + linkType: hard + +"node-fetch@npm:2.6.7": + version: 2.6.7 + resolution: "node-fetch@npm:2.6.7" + dependencies: + whatwg-url: ^5.0.0 + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + checksum: 8d816ffd1ee22cab8301c7756ef04f3437f18dace86a1dae22cf81db8ef29c0bf6655f3215cb0cdb22b420b6fe141e64b26905e7f33f9377a7fa59135ea3e10b + languageName: node + linkType: hard + "node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.12, node-fetch@npm:^2.6.7, node-fetch@npm:^2.7.0": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" @@ -19014,15 +19126,6 @@ __metadata: languageName: node linkType: hard -"o3@npm:^1.0.3": - version: 1.0.3 - resolution: "o3@npm:1.0.3" - dependencies: - capability: ^0.2.5 - checksum: 3b4d0686c94ac21b3c8bd66fb2c93a4daef7b8f52a20b04595754f8dc4102550de9a7b1cdffa3db2191d47a4ae70ca568f21d9f3ba29bb15c3f004dbf636c33c - languageName: node - linkType: hard - "oauth-sign@npm:~0.9.0": version: 0.9.0 resolution: "oauth-sign@npm:0.9.0" @@ -19741,6 +19844,13 @@ __metadata: languageName: node linkType: hard +"picomatch@npm:^4.0.1": + version: 4.0.1 + resolution: "picomatch@npm:4.0.1" + checksum: f135d38bb7d190186907714cf2f3abe043de9c66b1c5e5687ae7ae63fd9693a51634aa3662ac1dcd79e1209e02edcaa0740c4f3edda2ffed03f1a0bee38d8f67 + languageName: node + linkType: hard + "pid-cwd@npm:^1.2.0": version: 1.2.0 resolution: "pid-cwd@npm:1.2.0" @@ -21010,12 +21120,10 @@ __metadata: languageName: node linkType: hard -"redux@npm:^4.1.2": - version: 4.2.1 - resolution: "redux@npm:4.2.1" - dependencies: - "@babel/runtime": ^7.9.2 - checksum: f63b9060c3a1d930ae775252bb6e579b42415aee7a23c4114e21a0b4ba7ec12f0ec76936c00f546893f06e139819f0e2855e0d55ebfce34ca9c026241a6950dd +"reflect-metadata@npm:^0.1.13": + version: 0.1.14 + resolution: "reflect-metadata@npm:0.1.14" + checksum: 155ad339319cec3c2d9d84719f730f8b6a6cd2a074733ec29dbae6c89d48a2914c7d07a2350212594f3aae160fa4da4f903e6512f27ceaf968443a7c692bcad0 languageName: node linkType: hard @@ -21508,14 +21616,16 @@ __metadata: languageName: node linkType: hard -"rxjs-compat@npm:^6.6.7": +"rxjs@npm:6, rxjs@npm:^6.6.3": version: 6.6.7 - resolution: "rxjs-compat@npm:6.6.7" - checksum: a47339680d8da5ad8d00693ff75653deff99206ca9a12fc21c48d5dc88b972d0aed2dbcdf34b8f7ae52fe8817931f70a0e25a053ea75eb24802f2daf6c8a47b7 + resolution: "rxjs@npm:6.6.7" + dependencies: + tslib: ^1.9.0 + checksum: bc334edef1bb8bbf56590b0b25734ba0deaf8825b703256a93714308ea36dff8a11d25533671adf8e104e5e8f256aa6fdfe39b2e248cdbd7a5f90c260acbbd1b languageName: node linkType: hard -"rxjs7@npm:rxjs@7.8.1, rxjs@npm:^7.5.7, rxjs@npm:^7.8.1": +"rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -21524,15 +21634,6 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:6, rxjs@npm:^6.6.3, rxjs@npm:^6.6.7": - version: 6.6.7 - resolution: "rxjs@npm:6.6.7" - dependencies: - tslib: ^1.9.0 - checksum: bc334edef1bb8bbf56590b0b25734ba0deaf8825b703256a93714308ea36dff8a11d25533671adf8e104e5e8f256aa6fdfe39b2e248cdbd7a5f90c260acbbd1b - languageName: node - linkType: hard - "safe-array-concat@npm:^1.0.1": version: 1.0.1 resolution: "safe-array-concat@npm:1.0.1" @@ -21958,6 +22059,13 @@ __metadata: languageName: node linkType: hard +"setprototypeof@npm:1.1.1": + version: 1.1.1 + resolution: "setprototypeof@npm:1.1.1" + checksum: a8bee29c1c64c245d460ce53f7460af8cbd0aceac68d66e5215153992cc8b3a7a123416353e0c642060e85cc5fd4241c92d1190eec97eda0dcb97436e8fcca3b + languageName: node + linkType: hard + "setprototypeof@npm:1.2.0": version: 1.2.0 resolution: "setprototypeof@npm:1.2.0" @@ -22265,7 +22373,7 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.19, source-map-support@npm:^0.5.21, source-map-support@npm:^0.5.6, source-map-support@npm:~0.5.20": +"source-map-support@npm:^0.5.19, source-map-support@npm:^0.5.6, source-map-support@npm:~0.5.20": version: 0.5.21 resolution: "source-map-support@npm:0.5.21" dependencies: @@ -22496,7 +22604,7 @@ __metadata: languageName: node linkType: hard -"stellar-sdk@npm:^10.1.1": +"stellar-sdk@npm:^10.4.1": version: 10.4.1 resolution: "stellar-sdk@npm:10.4.1" dependencies: @@ -22542,6 +22650,13 @@ __metadata: languageName: node linkType: hard +"strict-event-emitter-types@npm:^2.0.0": + version: 2.0.0 + resolution: "strict-event-emitter-types@npm:2.0.0" + checksum: 91ef62364cad9ece9ab9984e806b1c6d947d0617437a25605fff0cbfae59ac6a8d641257a168c1d5f2909809a467c714f027fdccb70b6155d68eac0dc1535299 + languageName: node + linkType: hard + "strict-uri-encode@npm:^1.0.0": version: 1.1.0 resolution: "strict-uri-encode@npm:1.1.0" @@ -23060,6 +23175,21 @@ __metadata: languageName: node linkType: hard +"thor-devkit@npm:^2.0.6": + version: 2.0.9 + resolution: "thor-devkit@npm:2.0.9" + dependencies: + "@vechain/ethers": ^4.0.27-5 + bignumber.js: ^7.2.1 + blakejs: ^1.1.2 + elliptic: 6.5.4 + fast-json-stable-stringify: ^2.1.0 + js-sha3: 0.5.7 + rlp: ^2.0.0 + checksum: 88fb41a8c66b4334c292742b0e737af519ee7d94054b3a82e489d3ef79584263571b299bb6b9d777c37581f4d3b76862c22ce87f5684fd39e71d8da0d9e91405 + languageName: node + linkType: hard + "thread-loader@npm:^3.0.0": version: 3.0.4 resolution: "thread-loader@npm:3.0.4" @@ -23184,6 +23314,13 @@ __metadata: languageName: node linkType: hard +"toidentifier@npm:1.0.0": + version: 1.0.0 + resolution: "toidentifier@npm:1.0.0" + checksum: 199e6bfca1531d49b3506cff02353d53ec987c9ee10ee272ca6484ed97f1fc10fb77c6c009079ca16d5c5be4a10378178c3cacdb41ce9ec954c3297c74c6053e + languageName: node + linkType: hard + "toidentifier@npm:1.0.1": version: 1.0.1 resolution: "toidentifier@npm:1.0.1" @@ -23398,6 +23535,15 @@ __metadata: languageName: node linkType: hard +"ts-results@npm:@casperlabs/ts-results@^3.3.4": + version: 3.3.5 + resolution: "@casperlabs/ts-results@npm:3.3.5" + dependencies: + tslib: ^2.4.1 + checksum: d243ffa6c5134161770c320bd49a93006ce87ae136ec9329ae4a9171009673db1b100ef3ece17a4682928a04260b63479795627d61f26ba2a88dc8517270fa41 + languageName: node + linkType: hard + "tsconfig-paths@npm:^3.15.0, tsconfig-paths@npm:^3.5.0": version: 3.15.0 resolution: "tsconfig-paths@npm:3.15.0" @@ -23449,7 +23595,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2": +"tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.4.1, tslib@npm:^2.5.3, tslib@npm:^2.6.1, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad @@ -23512,20 +23658,13 @@ __metadata: languageName: node linkType: hard -"tweetnacl-util@npm:^0.15.0, tweetnacl-util@npm:^0.15.1": +"tweetnacl-util@npm:^0.15.1": version: 0.15.1 resolution: "tweetnacl-util@npm:0.15.1" checksum: ae6aa8a52cdd21a95103a4cc10657d6a2040b36c7a6da7b9d3ab811c6750a2d5db77e8c36969e75fdee11f511aa2b91c552496c6e8e989b6e490e54aca2864fc languageName: node linkType: hard -"tweetnacl@npm:1.x.x, tweetnacl@npm:^1.0.1, tweetnacl@npm:^1.0.3": - version: 1.0.3 - resolution: "tweetnacl@npm:1.0.3" - checksum: e4a57cac188f0c53f24c7a33279e223618a2bfb5fea426231991652a13247bea06b081fd745d71291fcae0f4428d29beba1b984b1f1ce6f66b06a6d1ab90645c - languageName: node - linkType: hard - "tweetnacl@npm:^0.14.3, tweetnacl@npm:~0.14.0": version: 0.14.5 resolution: "tweetnacl@npm:0.14.5" @@ -23533,6 +23672,13 @@ __metadata: languageName: node linkType: hard +"tweetnacl@npm:^1.0.3": + version: 1.0.3 + resolution: "tweetnacl@npm:1.0.3" + checksum: e4a57cac188f0c53f24c7a33279e223618a2bfb5fea426231991652a13247bea06b081fd745d71291fcae0f4428d29beba1b984b1f1ce6f66b06a6d1ab90645c + languageName: node + linkType: hard + "type-check@npm:^0.4.0, type-check@npm:~0.4.0": version: 0.4.0 resolution: "type-check@npm:0.4.0" @@ -23685,6 +23831,15 @@ __metadata: languageName: node linkType: hard +"typedjson@npm:^1.6.0-rc2": + version: 1.8.0 + resolution: "typedjson@npm:1.8.0" + dependencies: + tslib: ^2.0.1 + checksum: e8d2b9f09080438e00940af2461d8c34294bd3f885716bb2a33937cc2149d19540863b74689ac5720ab484aa4c529209711e9af0d1fd1ffc73949d26168beb38 + languageName: node + linkType: hard + "typeforce@npm:^1.11.3, typeforce@npm:^1.11.5, typeforce@npm:^1.18.0": version: 1.18.0 resolution: "typeforce@npm:1.18.0" @@ -23726,13 +23881,6 @@ __metadata: languageName: node linkType: hard -"u3@npm:^0.1.1": - version: 0.1.1 - resolution: "u3@npm:0.1.1" - checksum: d55f396c607b0a2340d6165526b5143a29b369e7e0397b04f79633db77cd668f2da713feb7adb4f93a588e82a388ff995d9a2b16123d0cb02fe394fd2f26b529 - languageName: node - linkType: hard - "ua-parser-js@npm:^1.0.37": version: 1.0.37 resolution: "ua-parser-js@npm:1.0.37" @@ -25715,6 +25863,13 @@ __metadata: languageName: node linkType: hard +"whatwg-fetch@npm:^3.4.1": + version: 3.6.20 + resolution: "whatwg-fetch@npm:3.6.20" + checksum: c58851ea2c4efe5c2235f13450f426824cf0253c1d45da28f45900290ae602a20aff2ab43346f16ec58917d5562e159cd691efa368354b2e82918c2146a519c5 + languageName: node + linkType: hard + "whatwg-fetch@npm:^3.6.2": version: 3.6.2 resolution: "whatwg-fetch@npm:3.6.2" @@ -25975,7 +26130,7 @@ __metadata: languageName: node linkType: hard -"ws@npm:^7, ws@npm:^7.2.0, ws@npm:^7.3.1, ws@npm:^7.4.5": +"ws@npm:^7, ws@npm:^7.0.0, ws@npm:^7.2.0, ws@npm:^7.3.1, ws@npm:^7.4.5": version: 7.5.9 resolution: "ws@npm:7.5.9" peerDependencies: @@ -26288,10 +26443,10 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.21.4": - version: 3.22.2 - resolution: "zod@npm:3.22.2" - checksum: 231e2180c8eabb56e88680d80baff5cf6cbe6d64df3c44c50ebe52f73081ecd0229b1c7215b9552537f537a36d9e36afac2737ddd86dc14e3519bdbc777e82b9 +"zod@npm:^3.22.2": + version: 3.22.4 + resolution: "zod@npm:3.22.4" + checksum: 80bfd7f8039b24fddeb0718a2ec7c02aa9856e4838d6aa4864335a047b6b37a3273b191ef335bf0b2002e5c514ef261ffcda5a589fb084a48c336ffc4cdbab7f languageName: node linkType: hard From 5a0766c56946ef99f093178930731c2fb9ebb6ab Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:00:30 -0800 Subject: [PATCH 10/29] devop: update js-ethereum-cryptography --- packages/signers/ethereum/package.json | 1 - packages/utils/package.json | 2 +- yarn.lock | 45 ++------------------------ 3 files changed, 3 insertions(+), 45 deletions(-) diff --git a/packages/signers/ethereum/package.json b/packages/signers/ethereum/package.json index d8e9e276d..44ee925f4 100644 --- a/packages/signers/ethereum/package.json +++ b/packages/signers/ethereum/package.json @@ -20,7 +20,6 @@ "@enkryptcom/utils": "workspace:^", "bip39": "^3.1.0", "chai": "^4.4.1", - "ethereum-cryptography": "^1.2.0", "ethereumjs-util": "^7.1.5", "hdkey": "^2.1.0", "tweetnacl": "^1.0.3", diff --git a/packages/utils/package.json b/packages/utils/package.json index a35252bae..9f9f8a8fd 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -22,7 +22,7 @@ "@polkadot/util-crypto": "^12.6.2", "bip39": "^3.1.0", "chai": "^4.4.1", - "ethereum-cryptography": "^1.2.0", + "ethereum-cryptography": "^2.1.3", "web3-utils": "^1.10.4" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 06820dd66..dcb017534 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2651,7 +2651,6 @@ __metadata: eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - ethereum-cryptography: ^1.2.0 ethereumjs-util: ^7.1.5 hdkey: ^2.1.0 mocha: ^10.3.0 @@ -2814,7 +2813,7 @@ __metadata: eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - ethereum-cryptography: ^1.2.0 + ethereum-cryptography: ^2.1.3 mocha: ^10.3.0 prettier: ^2.8.8 ts-mocha: ^10.0.0 @@ -5264,13 +5263,6 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.2.0, @noble/hashes@npm:~1.2.0": - version: 1.2.0 - resolution: "@noble/hashes@npm:1.2.0" - checksum: 8ca080ce557b8f40fb2f78d3aedffd95825a415ac8e13d7ffe3643f8626a8c2d99a3e5975b555027ac24316d8b3c02a35b8358567c0c23af681e6573602aa434 - languageName: node - linkType: hard - "@noble/hashes@npm:1.3.1": version: 1.3.1 resolution: "@noble/hashes@npm:1.3.1" @@ -5292,7 +5284,7 @@ __metadata: languageName: node linkType: hard -"@noble/secp256k1@npm:1.7.1, @noble/secp256k1@npm:^1.5.5, @noble/secp256k1@npm:^1.7.1, @noble/secp256k1@npm:~1.7.0": +"@noble/secp256k1@npm:1.7.1, @noble/secp256k1@npm:^1.5.5, @noble/secp256k1@npm:^1.7.1": version: 1.7.1 resolution: "@noble/secp256k1@npm:1.7.1" checksum: d2301f1f7690368d8409a3152450458f27e54df47e3f917292de3de82c298770890c2de7c967d237eff9c95b70af485389a9695f73eb05a43e2bd562d18b18cb @@ -6476,17 +6468,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip32@npm:1.1.5": - version: 1.1.5 - resolution: "@scure/bip32@npm:1.1.5" - dependencies: - "@noble/hashes": ~1.2.0 - "@noble/secp256k1": ~1.7.0 - "@scure/base": ~1.1.0 - checksum: b08494ab0d2b1efee7226d1b5100db5157ebea22a78bb87126982a76a186cb3048413e8be0ba2622d00d048a20acbba527af730de86c132a77de616eb9907a3b - languageName: node - linkType: hard - "@scure/bip32@npm:1.3.1": version: 1.3.1 resolution: "@scure/bip32@npm:1.3.1" @@ -6509,16 +6490,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip39@npm:1.1.1": - version: 1.1.1 - resolution: "@scure/bip39@npm:1.1.1" - dependencies: - "@noble/hashes": ~1.2.0 - "@scure/base": ~1.1.0 - checksum: fbb594c50696fa9c14e891d872f382e50a3f919b6c96c55ef2fb10c7102c546dafb8f099a62bd114c12a00525b595dcf7381846f383f0ddcedeaa6e210747d2f - languageName: node - linkType: hard - "@scure/bip39@npm:1.2.1": version: 1.2.1 resolution: "@scure/bip39@npm:1.2.1" @@ -13988,18 +13959,6 @@ __metadata: languageName: node linkType: hard -"ethereum-cryptography@npm:^1.2.0": - version: 1.2.0 - resolution: "ethereum-cryptography@npm:1.2.0" - dependencies: - "@noble/hashes": 1.2.0 - "@noble/secp256k1": 1.7.1 - "@scure/bip32": 1.1.5 - "@scure/bip39": 1.1.1 - checksum: 97e8e8253cb9f5a9271bd0201c37609c451c890eb85883b9c564f14743c3d7c673287406c93bf5604307593ee298ad9a03983388b85c11ca61461b9fc1a4f2c7 - languageName: node - linkType: hard - "ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2": version: 2.1.2 resolution: "ethereum-cryptography@npm:2.1.2" From 3f58113eb934fb0d0ed6a34985a5eceaa7506307 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:03:10 -0800 Subject: [PATCH 11/29] devop: update utils --- package.json | 2 +- packages/extension-bridge/package.json | 2 +- packages/hw-wallets/package.json | 2 +- packages/keyring/package.json | 2 +- packages/name-resolution/package.json | 2 +- packages/request/package.json | 2 +- packages/signers/bitcoin/package.json | 4 +- packages/signers/ethereum/package.json | 2 +- packages/signers/polkadot/package.json | 2 +- packages/storage/package.json | 2 +- packages/swap/package.json | 2 +- packages/types/package.json | 2 +- packages/utils/package.json | 2 +- yarn.lock | 437 +++++++++++++++++-------- 14 files changed, 323 insertions(+), 142 deletions(-) diff --git a/package.json b/package.json index 35c52bf72..19c756fbf 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@commitlint/config-conventional": "^19.0.3", "@swc/core": "^1.4.2", "concurrently": "^8.2.2", - "husky": "^8.0.3", + "husky": "^9.0.11", "node-notifier": "^10.0.1", "nodemon": "^3.1.0", "ultra-runner": "^3.10.5" diff --git a/packages/extension-bridge/package.json b/packages/extension-bridge/package.json index e0f2e9665..9d55dc9fa 100644 --- a/packages/extension-bridge/package.json +++ b/packages/extension-bridge/package.json @@ -55,7 +55,7 @@ "prettier": "^2.8.8", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "type-fest": "^2.19.0", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" diff --git a/packages/hw-wallets/package.json b/packages/hw-wallets/package.json index 0a4068507..403ae0735 100644 --- a/packages/hw-wallets/package.json +++ b/packages/hw-wallets/package.json @@ -33,7 +33,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/keyring/package.json b/packages/keyring/package.json index 8711d2d3c..6238acdd1 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -45,7 +45,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/name-resolution/package.json b/packages/name-resolution/package.json index 7e0909914..93d2f2fbb 100644 --- a/packages/name-resolution/package.json +++ b/packages/name-resolution/package.json @@ -33,7 +33,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/request/package.json b/packages/request/package.json index 1a25c7ee2..f177e8770 100644 --- a/packages/request/package.json +++ b/packages/request/package.json @@ -43,7 +43,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/signers/bitcoin/package.json b/packages/signers/bitcoin/package.json index 1809fb4fd..34eafe2f1 100644 --- a/packages/signers/bitcoin/package.json +++ b/packages/signers/bitcoin/package.json @@ -43,8 +43,8 @@ "prettier": "^2.8.8", "ts-mocha": "^9.0.2", "ts-node": "^10.9.2", - "tsconfig-paths": "^3.15.0", - "tsup": "^6.7.0", + "tsconfig-paths": "^4.2.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/signers/ethereum/package.json b/packages/signers/ethereum/package.json index 44ee925f4..1de1d97a5 100644 --- a/packages/signers/ethereum/package.json +++ b/packages/signers/ethereum/package.json @@ -44,7 +44,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/signers/polkadot/package.json b/packages/signers/polkadot/package.json index 82e7eb665..cdfb26eca 100644 --- a/packages/signers/polkadot/package.json +++ b/packages/signers/polkadot/package.json @@ -43,7 +43,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/storage/package.json b/packages/storage/package.json index e6ab5204d..0fd84bf84 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -38,7 +38,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/swap/package.json b/packages/swap/package.json index 5ef97cafc..a0990eb2d 100644 --- a/packages/swap/package.json +++ b/packages/swap/package.json @@ -49,7 +49,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/types/package.json b/packages/types/package.json index b05dfda48..504056456 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -30,7 +30,7 @@ "prettier": "^2.8.8", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 9f9f8a8fd..44fba79ca 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -42,7 +42,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", - "tsup": "^6.7.0", + "tsup": "^8.0.2", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" }, diff --git a/yarn.lock b/yarn.lock index dcb017534..83ef4bc25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2336,7 +2336,7 @@ __metadata: tiny-uid: ^1.1.2 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 type-fest: ^2.19.0 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 @@ -2487,7 +2487,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 webextension-polyfill: ^0.10.0 @@ -2524,7 +2524,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 languageName: unknown @@ -2555,7 +2555,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 languageName: unknown @@ -2588,7 +2588,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 uuid: ^9.0.1 @@ -2622,8 +2622,8 @@ __metadata: prettier: ^2.8.8 ts-mocha: ^9.0.2 ts-node: ^10.9.2 - tsconfig-paths: ^3.15.0 - tsup: ^6.7.0 + tsconfig-paths: ^4.2.0 + tsup: ^8.0.2 tweetnacl: ^1.0.3 tweetnacl-util: ^0.15.1 typescript: ^4.9.5 @@ -2658,7 +2658,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 tweetnacl: ^1.0.3 tweetnacl-util: ^0.15.1 typescript: ^4.9.5 @@ -2694,7 +2694,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 languageName: unknown @@ -2724,7 +2724,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 languageName: unknown @@ -2761,7 +2761,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 uuid: ^9.0.1 @@ -2787,7 +2787,7 @@ __metadata: prettier: ^2.8.8 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 languageName: unknown @@ -2819,7 +2819,7 @@ __metadata: ts-mocha: ^10.0.0 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 - tsup: ^6.7.0 + tsup: ^8.0.2 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 web3-utils: ^1.10.4 @@ -2939,156 +2939,163 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/android-arm64@npm:0.17.6" +"@esbuild/aix-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/aix-ppc64@npm:0.19.12" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/android-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm64@npm:0.19.12" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/android-arm@npm:0.17.6" +"@esbuild/android-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm@npm:0.19.12" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/android-x64@npm:0.17.6" +"@esbuild/android-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-x64@npm:0.19.12" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/darwin-arm64@npm:0.17.6" +"@esbuild/darwin-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-arm64@npm:0.19.12" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/darwin-x64@npm:0.17.6" +"@esbuild/darwin-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-x64@npm:0.19.12" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/freebsd-arm64@npm:0.17.6" +"@esbuild/freebsd-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-arm64@npm:0.19.12" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/freebsd-x64@npm:0.17.6" +"@esbuild/freebsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-x64@npm:0.19.12" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-arm64@npm:0.17.6" +"@esbuild/linux-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm64@npm:0.19.12" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-arm@npm:0.17.6" +"@esbuild/linux-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm@npm:0.19.12" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-ia32@npm:0.17.6" +"@esbuild/linux-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ia32@npm:0.19.12" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-loong64@npm:0.17.6" +"@esbuild/linux-loong64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-loong64@npm:0.19.12" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-mips64el@npm:0.17.6" +"@esbuild/linux-mips64el@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-mips64el@npm:0.19.12" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-ppc64@npm:0.17.6" +"@esbuild/linux-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ppc64@npm:0.19.12" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-riscv64@npm:0.17.6" +"@esbuild/linux-riscv64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-riscv64@npm:0.19.12" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-s390x@npm:0.17.6" +"@esbuild/linux-s390x@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-s390x@npm:0.19.12" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/linux-x64@npm:0.17.6" +"@esbuild/linux-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-x64@npm:0.19.12" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/netbsd-x64@npm:0.17.6" +"@esbuild/netbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/netbsd-x64@npm:0.19.12" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/openbsd-x64@npm:0.17.6" +"@esbuild/openbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/openbsd-x64@npm:0.19.12" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/sunos-x64@npm:0.17.6" +"@esbuild/sunos-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/sunos-x64@npm:0.19.12" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/win32-arm64@npm:0.17.6" +"@esbuild/win32-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-arm64@npm:0.19.12" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/win32-ia32@npm:0.17.6" +"@esbuild/win32-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-ia32@npm:0.19.12" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.17.6": - version: 0.17.6 - resolution: "@esbuild/win32-x64@npm:0.17.6" +"@esbuild/win32-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-x64@npm:0.19.12" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -6461,6 +6468,97 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.12.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@rollup/rollup-android-arm64@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-android-arm64@npm:4.12.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-arm64@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.12.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-darwin-x64@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.12.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-gnueabihf@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.12.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-gnu@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.12.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm64-musl@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.12.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-gnu@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.12.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-gnu@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.12.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-musl@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.12.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-win32-arm64-msvc@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.12.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-win32-ia32-msvc@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.12.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@rollup/rollup-win32-x64-msvc@npm:4.12.0": + version: 4.12.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.12.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0, @scure/base@npm:~1.1.4": version: 1.1.5 resolution: "@scure/base@npm:1.1.5" @@ -7790,6 +7888,13 @@ __metadata: languageName: node linkType: hard +"@types/estree@npm:1.0.5": + version: 1.0.5 + resolution: "@types/estree@npm:1.0.5" + checksum: dd8b5bed28e6213b7acd0fb665a84e693554d850b0df423ac8076cc3ad5823a6bc26b0251d080bdc545af83179ede51dd3f6fa78cad2c46ed1f29624ddf3e41a + languageName: node + linkType: hard + "@types/estree@npm:^0.0.51": version: 0.0.51 resolution: "@types/estree@npm:0.0.51" @@ -13278,7 +13383,7 @@ __metadata: "@commitlint/config-conventional": ^19.0.3 "@swc/core": ^1.4.2 concurrently: ^8.2.2 - husky: ^8.0.3 + husky: ^9.0.11 node-notifier: ^10.0.1 nodemon: ^3.1.0 ultra-runner: ^3.10.5 @@ -13475,33 +13580,36 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.17.6": - version: 0.17.6 - resolution: "esbuild@npm:0.17.6" - dependencies: - "@esbuild/android-arm": 0.17.6 - "@esbuild/android-arm64": 0.17.6 - "@esbuild/android-x64": 0.17.6 - "@esbuild/darwin-arm64": 0.17.6 - "@esbuild/darwin-x64": 0.17.6 - "@esbuild/freebsd-arm64": 0.17.6 - "@esbuild/freebsd-x64": 0.17.6 - "@esbuild/linux-arm": 0.17.6 - "@esbuild/linux-arm64": 0.17.6 - "@esbuild/linux-ia32": 0.17.6 - "@esbuild/linux-loong64": 0.17.6 - "@esbuild/linux-mips64el": 0.17.6 - "@esbuild/linux-ppc64": 0.17.6 - "@esbuild/linux-riscv64": 0.17.6 - "@esbuild/linux-s390x": 0.17.6 - "@esbuild/linux-x64": 0.17.6 - "@esbuild/netbsd-x64": 0.17.6 - "@esbuild/openbsd-x64": 0.17.6 - "@esbuild/sunos-x64": 0.17.6 - "@esbuild/win32-arm64": 0.17.6 - "@esbuild/win32-ia32": 0.17.6 - "@esbuild/win32-x64": 0.17.6 +"esbuild@npm:^0.19.2": + version: 0.19.12 + resolution: "esbuild@npm:0.19.12" + dependencies: + "@esbuild/aix-ppc64": 0.19.12 + "@esbuild/android-arm": 0.19.12 + "@esbuild/android-arm64": 0.19.12 + "@esbuild/android-x64": 0.19.12 + "@esbuild/darwin-arm64": 0.19.12 + "@esbuild/darwin-x64": 0.19.12 + "@esbuild/freebsd-arm64": 0.19.12 + "@esbuild/freebsd-x64": 0.19.12 + "@esbuild/linux-arm": 0.19.12 + "@esbuild/linux-arm64": 0.19.12 + "@esbuild/linux-ia32": 0.19.12 + "@esbuild/linux-loong64": 0.19.12 + "@esbuild/linux-mips64el": 0.19.12 + "@esbuild/linux-ppc64": 0.19.12 + "@esbuild/linux-riscv64": 0.19.12 + "@esbuild/linux-s390x": 0.19.12 + "@esbuild/linux-x64": 0.19.12 + "@esbuild/netbsd-x64": 0.19.12 + "@esbuild/openbsd-x64": 0.19.12 + "@esbuild/sunos-x64": 0.19.12 + "@esbuild/win32-arm64": 0.19.12 + "@esbuild/win32-ia32": 0.19.12 + "@esbuild/win32-x64": 0.19.12 dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true "@esbuild/android-arm": optional: true "@esbuild/android-arm64": @@ -13548,7 +13656,7 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: 13c4c3bcaa7ff291810d2c8294a1eb997b4672c60a9285b32d8eafcbc552e4468e06efe9d1a15067f5cbd41adcb12ddb4362618845e2e916e437f281c9aa80ab + checksum: 2936e29107b43e65a775b78b7bc66ddd7d76febd73840ac7e825fb22b65029422ff51038a08d19b05154f543584bd3afe7d1ef1c63900429475b17fbe61cb61f languageName: node linkType: hard @@ -15883,12 +15991,12 @@ __metadata: languageName: node linkType: hard -"husky@npm:^8.0.3": - version: 8.0.3 - resolution: "husky@npm:8.0.3" +"husky@npm:^9.0.11": + version: 9.0.11 + resolution: "husky@npm:9.0.11" bin: - husky: lib/bin.js - checksum: 837bc7e4413e58c1f2946d38fb050f5d7324c6f16b0fd66411ffce5703b294bd21429e8ba58711cd331951ee86ed529c5be4f76805959ff668a337dbfa82a1b0 + husky: bin.mjs + checksum: 1aebc3334dc7ac6288ff5e1fb72cfb447cfa474e72cf7ba692e8c5698c573ab725c28c6a5088c9f8e6aca5f47d40fa7261beffbc07a4d307ca21656dc4571f07 languageName: node linkType: hard @@ -17379,13 +17487,20 @@ __metadata: languageName: node linkType: hard -"lilconfig@npm:^2.0.3, lilconfig@npm:^2.0.5": +"lilconfig@npm:^2.0.3": version: 2.0.5 resolution: "lilconfig@npm:2.0.5" checksum: f7bb9e42656f06930ad04e583026f087508ae408d3526b8b54895e934eb2a966b7aafae569656f2c79a29fe6d779b3ec44ba577e80814734c8655d6f71cdf2d1 languageName: node linkType: hard +"lilconfig@npm:^3.0.0": + version: 3.1.1 + resolution: "lilconfig@npm:3.1.1" + checksum: dc8a4f4afde3f0fac6bd36163cc4777a577a90759b8ef1d0d766b19ccf121f723aa79924f32af5b954f3965268215e046d0f237c41c76e5ef01d4e6d1208a15e + languageName: node + linkType: hard + "lines-and-columns@npm:^1.1.6": version: 1.2.4 resolution: "lines-and-columns@npm:1.2.4" @@ -20046,12 +20161,12 @@ __metadata: languageName: node linkType: hard -"postcss-load-config@npm:^3.0.1": - version: 3.1.4 - resolution: "postcss-load-config@npm:3.1.4" +"postcss-load-config@npm:^4.0.1": + version: 4.0.2 + resolution: "postcss-load-config@npm:4.0.2" dependencies: - lilconfig: ^2.0.5 - yaml: ^1.10.2 + lilconfig: ^3.0.0 + yaml: ^2.3.4 peerDependencies: postcss: ">=8.0.9" ts-node: ">=9.0.0" @@ -20060,7 +20175,7 @@ __metadata: optional: true ts-node: optional: true - checksum: 1c589504c2d90b1568aecae8238ab993c17dba2c44f848a8f13619ba556d26a1c09644d5e6361b5784e721e94af37b604992f9f3dc0483e687a0cc1cc5029a34 + checksum: 7c27dd3801db4eae207a5116fed2db6b1ebb780b40c3dd62a3e57e087093a8e6a14ee17ada729fee903152d6ef4826c6339eb135bee6208e0f3140d7e8090185 languageName: node linkType: hard @@ -21533,7 +21648,7 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.2.5, rollup@npm:^3.29.4": +"rollup@npm:^3.29.4": version: 3.29.4 resolution: "rollup@npm:3.29.4" dependencies: @@ -21547,6 +21662,60 @@ __metadata: languageName: node linkType: hard +"rollup@npm:^4.0.2": + version: 4.12.0 + resolution: "rollup@npm:4.12.0" + dependencies: + "@rollup/rollup-android-arm-eabi": 4.12.0 + "@rollup/rollup-android-arm64": 4.12.0 + "@rollup/rollup-darwin-arm64": 4.12.0 + "@rollup/rollup-darwin-x64": 4.12.0 + "@rollup/rollup-linux-arm-gnueabihf": 4.12.0 + "@rollup/rollup-linux-arm64-gnu": 4.12.0 + "@rollup/rollup-linux-arm64-musl": 4.12.0 + "@rollup/rollup-linux-riscv64-gnu": 4.12.0 + "@rollup/rollup-linux-x64-gnu": 4.12.0 + "@rollup/rollup-linux-x64-musl": 4.12.0 + "@rollup/rollup-win32-arm64-msvc": 4.12.0 + "@rollup/rollup-win32-ia32-msvc": 4.12.0 + "@rollup/rollup-win32-x64-msvc": 4.12.0 + "@types/estree": 1.0.5 + fsevents: ~2.3.2 + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: a7398f072cf50804e9bdaf363792d0b7801800640434e7867c10b4e2e7be421ca2dc614ae0fc7392044eaf77d5c3a66f76a6fa2246bef97a7bc55926a8d60982 + languageName: node + linkType: hard + "rpc-websockets@npm:^7.5.1": version: 7.6.0 resolution: "rpc-websockets@npm:7.6.0" @@ -23561,29 +23730,32 @@ __metadata: languageName: node linkType: hard -"tsup@npm:^6.7.0": - version: 6.7.0 - resolution: "tsup@npm:6.7.0" +"tsup@npm:^8.0.2": + version: 8.0.2 + resolution: "tsup@npm:8.0.2" dependencies: bundle-require: ^4.0.0 cac: ^6.7.12 chokidar: ^3.5.1 debug: ^4.3.1 - esbuild: ^0.17.6 + esbuild: ^0.19.2 execa: ^5.0.0 globby: ^11.0.3 joycon: ^3.0.1 - postcss-load-config: ^3.0.1 + postcss-load-config: ^4.0.1 resolve-from: ^5.0.0 - rollup: ^3.2.5 + rollup: ^4.0.2 source-map: 0.8.0-beta.0 sucrase: ^3.20.3 tree-kill: ^1.2.2 peerDependencies: + "@microsoft/api-extractor": ^7.36.0 "@swc/core": ^1 postcss: ^8.4.12 - typescript: ">=4.1.0" + typescript: ">=4.5.0" peerDependenciesMeta: + "@microsoft/api-extractor": + optional: true "@swc/core": optional: true postcss: @@ -23593,7 +23765,7 @@ __metadata: bin: tsup: dist/cli-default.js tsup-node: dist/cli-node.js - checksum: 91ff179f0b9828a6880b6decaa8603fd7af0311f46a38d3a93647a2497298750d676810aeff533a335443a01a7b340dbba7c76523bcd7a87d7b05b7677742901 + checksum: ebd0c662efdc2a04e80251aa11832d3def9cf3bf120c579975af6d50183fa0397d07d5bcee0688258a91c154a3c5db72ee4c5dca367b58552d225bc8a89d67d0 languageName: node linkType: hard @@ -26244,6 +26416,15 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^2.3.4": + version: 2.4.0 + resolution: "yaml@npm:2.4.0" + bin: + yaml: bin.mjs + checksum: 3c25ebae34ee702af772ebbd1855a980b1487cd21d6220d952592edb4f7d89322aafd14753d99924ba7076eb4c5b3d809c64bb532402b01af280f7af674277f1 + languageName: node + linkType: hard + "yamljs@npm:^0.3.0": version: 0.3.0 resolution: "yamljs@npm:0.3.0" From ee92473d5d399a8f609f71c5355c0e1574e9f62f Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:04:20 -0800 Subject: [PATCH 12/29] devop: husky --- .husky/commit-msg | 1 - 1 file changed, 1 deletion(-) delete mode 100755 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100755 index 2785bc1d2..000000000 --- a/.husky/commit-msg +++ /dev/null @@ -1 +0,0 @@ -yarn commitlint --edit $1 From 6773bcd96789670cfc2ddf1cccd2c7e9adef911d Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:08:12 -0800 Subject: [PATCH 13/29] devop: prep husky --- .husky/commit-msg | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 000000000..2785bc1d2 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +yarn commitlint --edit $1 diff --git a/package.json b/package.json index 19c756fbf..c66df8a00 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "upgrade": "yarn upgrade-interactive", "version:bump:patch": "yarn workspaces foreach -pv --exclude @enkryptcom/extension exec 'yarn version --immediate patch'", "publish": "yarn workspaces foreach -pv --exclude @enkryptcom/extension exec 'yarn npm publish --access public --otp 474911'", - "version:apply": "yarn version apply --all" + "version:apply": "yarn version apply --all", + "prepare": "husky" }, "devDependencies": { "@commitlint/cli": "^19.0.3", From 95bee657a829609ad8bfcd465a7f7ad281a26e7e Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:36:42 -0800 Subject: [PATCH 14/29] devop: update vuedraggable and lottie --- packages/extension/package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/extension/package.json b/packages/extension/package.json index 9a485bad3..aa24fc716 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -63,7 +63,7 @@ "vue": "^3.4.21", "vue-echarts": "6.6.9", "vue-router": "4.3.0", - "vue3-lottie": "^2.7.4", + "vue3-lottie": "^3.2.0", "vuedraggable": "^4.1.0", "web3-eth": "^1.10.4", "web3-utils": "^1.10.4", diff --git a/yarn.lock b/yarn.lock index 83ef4bc25..b2acefd7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2443,7 +2443,7 @@ __metadata: vue: ^3.4.21 vue-echarts: 6.6.9 vue-router: 4.3.0 - vue3-lottie: ^2.7.4 + vue3-lottie: ^3.2.0 vuedraggable: ^4.1.0 web3-eth: ^1.10.4 web3-utils: ^1.10.4 @@ -24632,15 +24632,15 @@ __metadata: languageName: node linkType: hard -"vue3-lottie@npm:^2.7.4": - version: 2.7.4 - resolution: "vue3-lottie@npm:2.7.4" +"vue3-lottie@npm:^3.2.0": + version: 3.2.0 + resolution: "vue3-lottie@npm:3.2.0" dependencies: lodash-es: ^4.17.21 lottie-web: 5.12.2 peerDependencies: vue: ^3.2 - checksum: db74118b5c7f49a12b3c35d31c10b54ca8977e56b8f96a88323f451fb78619fbfcbb2fe8cb1e0f51c6919f1839f906597fae287f6d15a2518b89a2c42f286330 + checksum: 9fa94a64606532d7c8113bb93c2b19840e87c4aa5c572df2a438f06bf3046a8cd1294f49033e401afb6e436fd3a20073d32c3eea885724c8f109d9afe2ffe44c languageName: node linkType: hard From 35b649b0b81fada666262729791113677aa436f4 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:24:47 -0800 Subject: [PATCH 15/29] devop: switch to @ethereumjs/utils --- packages/extension/package.json | 3 ++- .../bitcoin/libs/bip322-message-sign.ts | 5 +++-- .../bitcoin/libs/sign-message-utils.ts | 4 ++-- .../bitcoin/ui/btc-verify-transaction.vue | 3 +-- .../src/providers/bitcoin/ui/libs/signer.ts | 3 +-- .../src/providers/common/types/index.ts | 4 ++++ .../ethereum/libs/transaction/gas-utils.ts | 21 +++++++++---------- .../ethereum/libs/transaction/types.ts | 2 +- .../ethereum/methods/personal_ecRecover.ts | 6 +++--- .../ethereum/methods/wallet_watchAsset.ts | 2 +- .../src/providers/ethereum/networks/rsk.ts | 2 +- .../tests/ethereum.data.decode.mocha.ts | 4 ++-- .../providers/ethereum/types/erc20-token.ts | 4 ++-- .../providers/ethereum/types/evm-network.ts | 9 ++++---- .../ethereum/ui/eth-verify-transaction.vue | 18 +++++++++------- .../src/providers/ethereum/ui/libs/signer.ts | 4 ++-- .../networks/acala/libs/assetinfo-orml.ts | 4 ++-- .../networks/bifrost/libs/assetinfo-orml.ts | 4 ++-- .../polkadot/types/substrate-network.ts | 6 +++--- .../src/providers/polkadot/ui/libs/signer.ts | 2 +- .../src/scripts/chrome/hot-reload.ts | 5 +++-- packages/extension/src/types/base-network.ts | 6 +++--- packages/extension/src/types/base-token.ts | 6 +++--- .../src/ui/action/views/swap/types.ts | 7 +++---- packages/hw-wallets/package.json | 3 ++- .../hw-wallets/src/ledger/ethereum/index.ts | 11 +++++----- packages/hw-wallets/src/trezor/index.ts | 6 +++--- packages/signers/ethereum/package.json | 2 +- packages/signers/ethereum/src/index.ts | 4 ++-- .../signers/ethereum/tests/encrypt.test.ts | 1 + packages/signers/ethereum/tests/sign.test.ts | 2 +- yarn.lock | 8 ++++--- 32 files changed, 91 insertions(+), 80 deletions(-) diff --git a/packages/extension/package.json b/packages/extension/package.json index aa24fc716..b442306d8 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -30,6 +30,7 @@ "@enkryptcom/utils": "workspace:^", "@ethereumjs/common": "^4.2.0", "@ethereumjs/tx": "^5.2.1", + "@ethereumjs/util": "^9.0.2", "@ledgerhq/hw-transport-webusb": "^6.28.4", "@metamask/eth-sig-util": "^7.0.1", "@rollup/plugin-replace": "^5.0.5", @@ -47,8 +48,8 @@ "concurrently": "^8.2.2", "core-js": "^3.36.0", "echarts": "^5.5.0", + "ethereum-cryptography": "^2.1.3", "ethereumjs-abi": "^0.6.8", - "ethereumjs-util": "^7.1.5", "ethereumjs-wallet": "^1.0.2", "eventemitter3": "^5.0.1", "lodash": "^4.17.21", diff --git a/packages/extension/src/providers/bitcoin/libs/bip322-message-sign.ts b/packages/extension/src/providers/bitcoin/libs/bip322-message-sign.ts index f8deb7431..c9d1dc783 100644 --- a/packages/extension/src/providers/bitcoin/libs/bip322-message-sign.ts +++ b/packages/extension/src/providers/bitcoin/libs/bip322-message-sign.ts @@ -5,8 +5,9 @@ import { BitcoinNetwork, PaymentType } from "../types/bitcoin-network"; import { address as BTCAddress, Transaction, Psbt } from "bitcoinjs-lib"; -import { sha256 } from "ethereumjs-util"; +import { sha256 } from "ethereum-cryptography/sha256"; import { PSBTSigner } from "../ui/libs/signer"; +import { bufferToHex } from "@enkryptcom/utils"; const bip0322_hash = (message: string) => { const tag = "BIP0322-signed-message"; @@ -14,7 +15,7 @@ const bip0322_hash = (message: string) => { const result = sha256( Buffer.concat([tagHash, tagHash, Buffer.from(message)]) ); - return result.toString("hex"); + return bufferToHex(result, true); }; const MAX_SAFE_INTEGER = 9007199254740991; diff --git a/packages/extension/src/providers/bitcoin/libs/sign-message-utils.ts b/packages/extension/src/providers/bitcoin/libs/sign-message-utils.ts index 1f2a86ee4..465a40a39 100644 --- a/packages/extension/src/providers/bitcoin/libs/sign-message-utils.ts +++ b/packages/extension/src/providers/bitcoin/libs/sign-message-utils.ts @@ -1,4 +1,4 @@ -import { sha256 } from "ethereumjs-util"; +import { sha256 } from "ethereum-cryptography/sha256"; const MAGIC_BYTES = Buffer.from("Bitcoin Signed Message:\n"); @@ -28,7 +28,7 @@ export const magicHash = (messageBuffer: Buffer) => { const prefix1 = varintBufNum(MAGIC_BYTES.length); const prefix2 = varintBufNum(messageBuffer.length); const buf = Buffer.concat([prefix1, MAGIC_BYTES, prefix2, messageBuffer]); - return sha256(sha256(buf)); + return Buffer.from(sha256(sha256(buf))); }; export const toCompact = ( diff --git a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue index e06e5e0d6..5ea9e0382 100644 --- a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue +++ b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue @@ -126,7 +126,7 @@ import { getError } from "@/libs/error"; import { ErrorCodes } from "@/providers/ethereum/types"; import { WindowPromiseHandler } from "@/libs/window-promise"; import { DEFAULT_BTC_NETWORK, getNetworkByName } from "@/libs/utils/networks"; -import { fromBase, hexToBuffer } from "@enkryptcom/utils"; +import { fromBase, hexToBuffer, bufferToHex } from "@enkryptcom/utils"; import { ProviderRequestOptions } from "@/types/provider"; import { GasFeeType } from "./types"; import MarketData from "@/libs/market-data"; @@ -141,7 +141,6 @@ import { toBN } from "web3-utils"; import { Psbt } from "bitcoinjs-lib"; import BigNumber from "bignumber.js"; import { JsonTreeView } from "@/libs/json-tree-view"; -import { bufferToHex } from "ethereumjs-util"; const isProcessing = ref(false); const isPreLoading = ref(true); diff --git a/packages/extension/src/providers/bitcoin/ui/libs/signer.ts b/packages/extension/src/providers/bitcoin/ui/libs/signer.ts index bd64c3511..161fdc71d 100644 --- a/packages/extension/src/providers/bitcoin/ui/libs/signer.ts +++ b/packages/extension/src/providers/bitcoin/ui/libs/signer.ts @@ -1,8 +1,7 @@ import { InternalMethods, InternalOnMessageResponse } from "@/types/messenger"; import { SignerTransactionOptions, SignerMessageOptions } from "../types"; -import { bufferToHex } from "ethereumjs-util"; import sendUsingInternalMessengers from "@/libs/messenger/internal-messenger"; -import { hexToBuffer } from "@enkryptcom/utils"; +import { hexToBuffer, bufferToHex } from "@enkryptcom/utils"; import { Psbt } from "bitcoinjs-lib"; import { BitcoinNetwork, PaymentType } from "../../types/bitcoin-network"; import { EnkryptAccount } from "@enkryptcom/types"; diff --git a/packages/extension/src/providers/common/types/index.ts b/packages/extension/src/providers/common/types/index.ts index 328d26d53..591d6a8a9 100644 --- a/packages/extension/src/providers/common/types/index.ts +++ b/packages/extension/src/providers/common/types/index.ts @@ -1,3 +1,5 @@ +import type { toBN } from "web3-utils"; + export interface GasFeeInfo { nativeValue: string; fiatValue: string; @@ -16,3 +18,5 @@ export interface GasFeeType { [GasPriceTypes.FAST]: GasFeeInfo; [GasPriceTypes.FASTEST]: GasFeeInfo; } + +export type BNType = ReturnType; diff --git a/packages/extension/src/providers/ethereum/libs/transaction/gas-utils.ts b/packages/extension/src/providers/ethereum/libs/transaction/gas-utils.ts index 9326670eb..edc8c7510 100644 --- a/packages/extension/src/providers/ethereum/libs/transaction/gas-utils.ts +++ b/packages/extension/src/providers/ethereum/libs/transaction/gas-utils.ts @@ -1,7 +1,6 @@ import BigNumber from "bignumber.js"; -import { BN } from "ethereumjs-util"; import { toBN, toWei } from "web3-utils"; -import { GasPriceTypes } from "@/providers/common/types"; +import { BNType, GasPriceTypes } from "@/providers/common/types"; import { FeeHistoryResult } from "web3-eth"; import { FormattedFeeHistory } from "./types"; @@ -14,10 +13,10 @@ const FASTEST_MULTIPLIER = 1.21828571429; const LIMITER = 25000000000; const GAS_PERCENTILES = [25, 50, 75, 90]; -const getEconomy = (gasPrice: string): BN => { +const getEconomy = (gasPrice: string): BNType => { return toBN(gasPrice); }; -const getRegular = (gasPrice: string): BN => { +const getRegular = (gasPrice: string): BNType => { const gpBN = toBN(gasPrice); if (gpBN.gt(toBN(LIMITER))) { let initialValue = new BigNumber(gasPrice).times(MED_MULTIPLIER); @@ -26,7 +25,7 @@ const getRegular = (gasPrice: string): BN => { } return toBN(new BigNumber(gasPrice).times(1.25).toFixed(0)); }; -const getFast = (gasPrice: string): BN => { +const getFast = (gasPrice: string): BNType => { const gpBN = toBN(gasPrice); if (gpBN.gt(toBN(LIMITER))) { let initialValue = new BigNumber(gasPrice).times(FAST_MULTIPLIER); @@ -35,7 +34,7 @@ const getFast = (gasPrice: string): BN => { } return toBN(new BigNumber(gasPrice).times(1.5).toFixed(0)); }; -const getFastest = (gasPrice: string): BN => { +const getFastest = (gasPrice: string): BNType => { const gpBN = toBN(gasPrice); if (gpBN.gt(toBN(LIMITER))) { let initialValue = new BigNumber(gasPrice).times(FASTEST_MULTIPLIER); @@ -48,7 +47,7 @@ const getFastest = (gasPrice: string): BN => { const getGasBasedOnType = ( gasPrice: string, gasPriceType: GasPriceTypes -): BN => { +): BNType => { switch (gasPriceType) { case GasPriceTypes.ECONOMY: return getEconomy(gasPrice); @@ -62,10 +61,10 @@ const getGasBasedOnType = ( return getEconomy(gasPrice); } }; -const getMinPriorityFee = (): BN => { +const getMinPriorityFee = (): BNType => { return toBN(toWei("0.1", "gwei")); }; -const getPriorityFeeAvg = (arr: BN[]): BN => { +const getPriorityFeeAvg = (arr: BNType[]): BNType => { const sum = arr.reduce((a, v) => a.add(v)); const fee = sum.divn(arr.length); if (fee.eqn(0)) return getMinPriorityFee(); @@ -75,7 +74,7 @@ const getPriorityFeeAvg = (arr: BN[]): BN => { const getPriorityFeeBasedOnType = ( gasFeeHistory: FormattedFeeHistory, gasPriceType: GasPriceTypes -): BN => { +): BNType => { if (gasFeeHistory.blocks.length === 0) return getMinPriorityFee(); switch (gasPriceType) { case GasPriceTypes.ECONOMY: @@ -141,7 +140,7 @@ const formatFeeHistory = ( const getBaseFeeBasedOnType = ( baseFee: string, gasPriceType: GasPriceTypes -): BN => { +): BNType => { const baseFeeBN = toBN(baseFee); switch (gasPriceType) { case GasPriceTypes.ECONOMY: diff --git a/packages/extension/src/providers/ethereum/libs/transaction/types.ts b/packages/extension/src/providers/ethereum/libs/transaction/types.ts index b911706dd..4cf00b52d 100644 --- a/packages/extension/src/providers/ethereum/libs/transaction/types.ts +++ b/packages/extension/src/providers/ethereum/libs/transaction/types.ts @@ -1,5 +1,5 @@ import { GasPriceTypes } from "@/providers/common/types"; -import { BN } from "ethereumjs-util"; +import { BNType as BN } from "@/providers/common/types"; export interface AccessList { address: `0x${string}`; diff --git a/packages/extension/src/providers/ethereum/methods/personal_ecRecover.ts b/packages/extension/src/providers/ethereum/methods/personal_ecRecover.ts index a6efce8a4..f582869f9 100644 --- a/packages/extension/src/providers/ethereum/methods/personal_ecRecover.ts +++ b/packages/extension/src/providers/ethereum/methods/personal_ecRecover.ts @@ -1,12 +1,12 @@ import { getCustomError } from "@/libs/error"; import { MiddlewareFunction } from "@enkryptcom/types"; -import { hexToBuffer } from "@enkryptcom/utils"; +import { bufferToHex, hexToBuffer } from "@enkryptcom/utils"; import { ecrecover, fromRpcSig, hashPersonalMessage, publicToAddress, -} from "ethereumjs-util"; +} from "@ethereumjs/util"; import EthereumProvider from ".."; const method: MiddlewareFunction = function ( this: EthereumProvider, @@ -23,7 +23,7 @@ const method: MiddlewareFunction = function ( const hashedMessage = hashPersonalMessage(hexToBuffer(payload.params[0])); const { v, r, s } = fromRpcSig(payload.params[1]); const recoveredPubKey = ecrecover(hashedMessage, v, r, s); - return res(null, "0x" + publicToAddress(recoveredPubKey).toString("hex")); + return res(null, bufferToHex(publicToAddress(recoveredPubKey))); } catch (e) { return res(getCustomError((e as Error).message)); } diff --git a/packages/extension/src/providers/ethereum/methods/wallet_watchAsset.ts b/packages/extension/src/providers/ethereum/methods/wallet_watchAsset.ts index 598082db4..74577f588 100644 --- a/packages/extension/src/providers/ethereum/methods/wallet_watchAsset.ts +++ b/packages/extension/src/providers/ethereum/methods/wallet_watchAsset.ts @@ -4,7 +4,7 @@ import MarketData from "@/libs/market-data"; import { CustomErc20Token, TokenType } from "@/libs/tokens-state/types"; import { WindowPromise } from "@/libs/window-promise"; import { MiddlewareFunction } from "@enkryptcom/types"; -import { isValidAddress } from "ethereumjs-util"; +import { isValidAddress } from "@ethereumjs/util"; import EthereumProvider from ".."; import API from "../libs/api"; import { Erc20Token } from "../types/erc20-token"; diff --git a/packages/extension/src/providers/ethereum/networks/rsk.ts b/packages/extension/src/providers/ethereum/networks/rsk.ts index 3661eea3f..36f3e662a 100644 --- a/packages/extension/src/providers/ethereum/networks/rsk.ts +++ b/packages/extension/src/providers/ethereum/networks/rsk.ts @@ -6,7 +6,7 @@ import { toChecksumAddress, isValidChecksumAddress, isValidAddress, -} from "ethereumjs-util"; +} from "@ethereumjs/util"; import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew"; const rootstockOptions: EvmNetworkOptions = { diff --git a/packages/extension/src/providers/ethereum/tests/ethereum.data.decode.mocha.ts b/packages/extension/src/providers/ethereum/tests/ethereum.data.decode.mocha.ts index 55eef6449..ba1629bbb 100644 --- a/packages/extension/src/providers/ethereum/tests/ethereum.data.decode.mocha.ts +++ b/packages/extension/src/providers/ethereum/tests/ethereum.data.decode.mocha.ts @@ -1,6 +1,6 @@ import DataDecode from "../libs/transaction/data-decoder"; import { expect } from "chai"; -import { BN } from "ethereumjs-util"; +import { toBN } from "web3-utils"; import { numberToHex } from "web3-utils"; describe("Test Ethereum data decoding", () => { it("should decode correct token transfer info", async () => { @@ -15,7 +15,7 @@ describe("Test Ethereum data decoding", () => { "0x92eefc435008af9dfc428e9f84c2a6c0fd385e8f" ); expect(dataDecoder.decode().values[1]).to.eq( - numberToHex(new BN("390343345")) + numberToHex(toBN("390343345")) ); }); it("should not decode unknown data", async () => { diff --git a/packages/extension/src/providers/ethereum/types/erc20-token.ts b/packages/extension/src/providers/ethereum/types/erc20-token.ts index 2c9d03e5e..36cb0718d 100644 --- a/packages/extension/src/providers/ethereum/types/erc20-token.ts +++ b/packages/extension/src/providers/ethereum/types/erc20-token.ts @@ -1,9 +1,9 @@ import { BaseToken, BaseTokenOptions } from "@/types/base-token"; -import { BN } from "ethereumjs-util"; import { numberToHex } from "web3-utils"; import erc20 from "../libs/abi/erc20"; import EvmAPI from "../libs/api"; import { NATIVE_TOKEN_ADDRESS } from "../libs/common"; +import { BNType } from "@/providers/common/types"; export interface Erc20TokenOptions extends BaseTokenOptions { contract: string; @@ -27,7 +27,7 @@ export class Erc20Token extends BaseToken { return contract.methods .balanceOf(address) .call() - .then((val: BN) => { + .then((val: BNType) => { const balance = numberToHex(val); this.balance = balance; return balance; diff --git a/packages/extension/src/providers/ethereum/types/evm-network.ts b/packages/extension/src/providers/ethereum/types/evm-network.ts index 2f461e5e5..5c7030acd 100644 --- a/packages/extension/src/providers/ethereum/types/evm-network.ts +++ b/packages/extension/src/providers/ethereum/types/evm-network.ts @@ -14,12 +14,13 @@ import { NFTCollection } from "@/types/nft"; import { AssetsType, ProviderName } from "@/types/provider"; import { CoingeckoPlatform, NetworkNames, SignerType } from "@enkryptcom/types"; import BigNumber from "bignumber.js"; -import { BNLike, toChecksumAddress } from "ethereumjs-util"; +import { toChecksumAddress } from "@ethereumjs/util"; import { isAddress } from "web3-utils"; import API from "../libs/api"; import createIcon from "../libs/blockies"; import { NATIVE_TOKEN_ADDRESS } from "../libs/common"; import { Erc20Token, Erc20TokenOptions } from "./erc20-token"; +import { BNType } from "@/providers/common/types"; export interface EvmNetworkOptions { name: NetworkNames; @@ -49,8 +50,8 @@ export interface EvmNetworkOptions { address: string ) => Promise; customTokens?: boolean; - displayAddress?: (address: string, chainId?: BNLike) => string; - isAddress?: (address: string, chainId?: BNLike) => boolean; + displayAddress?: (address: string, chainId?: BNType) => string; + isAddress?: (address: string, chainId?: BNType) => boolean; } export class EvmNetwork extends BaseNetwork { @@ -73,7 +74,7 @@ export class EvmNetwork extends BaseNetwork { public assets: Erc20Token[] = []; - public isAddress: (address: string, chainId?: BNLike) => boolean; + public isAddress: (address: string, chainId?: BNType) => boolean; constructor(options: EvmNetworkOptions) { const api = async () => { diff --git a/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue b/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue index c1ffb9ddb..932853585 100644 --- a/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue +++ b/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue @@ -150,9 +150,9 @@ import { defaultGasCostVals } from "@/providers/common/libs/default-vals"; import { EnkryptAccount } from "@enkryptcom/types"; import { TransactionSigner } from "./libs/signer"; import { Activity, ActivityStatus, ActivityType } from "@/types/activity"; -import { generateAddress } from "ethereumjs-util"; +import { generateAddress, bigIntToBytes } from "@ethereumjs/util"; import ActivityState from "@/libs/activity-state"; -import { bigIntToBuffer, bigIntToHex, fromBase } from "@enkryptcom/utils"; +import { bigIntToHex, fromBase, bufferToHex } from "@enkryptcom/utils"; import broadcastTx from "../libs/tx-broadcaster"; import TokenSigs from "../libs/transaction/lists/tokenSigs"; import AlertIcon from "@action/icons/send/alert-icon.vue"; @@ -303,10 +303,12 @@ const approve = async () => { from: account.value.address, to: tx.to ? tx.to.toString() - : `0x${generateAddress( - tx.getSenderAddress().toBuffer(), - bigIntToBuffer(tx.nonce) - ).toString("hex")}`, + : bufferToHex( + generateAddress( + tx.getSenderAddress().toBytes(), + bigIntToBytes(tx.nonce) + ) + ), isIncoming: tx.getSenderAddress().toString() === tx.to?.toString(), network: network.value.name, status: ActivityStatus.pending, @@ -345,11 +347,11 @@ const approve = async () => { }); }); }; - broadcastTx("0x" + tx.serialize().toString("hex"), network.value.name) + broadcastTx(bufferToHex(tx.serialize()), network.value.name) .then(onHash) .catch(() => { web3 - .sendSignedTransaction("0x" + tx.serialize().toString("hex")) + .sendSignedTransaction(bufferToHex(tx.serialize())) .on("transactionHash", onHash) .on("error", (error) => { txActivity.status = ActivityStatus.failed; diff --git a/packages/extension/src/providers/ethereum/ui/libs/signer.ts b/packages/extension/src/providers/ethereum/ui/libs/signer.ts index ab3ff2ec6..75ebd2e15 100644 --- a/packages/extension/src/providers/ethereum/ui/libs/signer.ts +++ b/packages/extension/src/providers/ethereum/ui/libs/signer.ts @@ -3,7 +3,7 @@ import { FeeMarketEIP1559Transaction } from "@ethereumjs/tx"; import { SignerTransactionOptions, SignerMessageOptions } from "../types"; import HWwallet from "@enkryptcom/hw-wallets"; import { HWwalletType } from "@enkryptcom/types"; -import { fromRpcSig, hashPersonalMessage } from "ethereumjs-util"; +import { fromRpcSig, hashPersonalMessage } from "@ethereumjs/util"; import { getCustomError } from "@/libs/error"; import { bufferToHex } from "@enkryptcom/utils"; import sendUsingInternalMessengers from "@/libs/messenger/internal-messenger"; @@ -50,7 +50,7 @@ const TransactionSigner = ( } else { const rpcSig = fromRpcSig(JSON.parse(res.result as string) || "0x"); const signedTx = (payload as FeeMarketEIP1559Transaction).addSignature( - BigInt(rpcSig.v), + rpcSig.v, rpcSig.r, rpcSig.s, true diff --git a/packages/extension/src/providers/polkadot/networks/acala/libs/assetinfo-orml.ts b/packages/extension/src/providers/polkadot/networks/acala/libs/assetinfo-orml.ts index 489a6ef69..5cf194be6 100644 --- a/packages/extension/src/providers/polkadot/networks/acala/libs/assetinfo-orml.ts +++ b/packages/extension/src/providers/polkadot/networks/acala/libs/assetinfo-orml.ts @@ -10,7 +10,7 @@ import { import { toBN } from "web3-utils"; import { KnownTokenDisplay } from "@/providers/polkadot/types"; import { SubstrateNativeToken } from "@/providers/polkadot/types/substrate-native-token"; -import { BN } from "ethereumjs-util"; +import { BNType } from "@/providers/common/types"; type AssetMetadata = { name: `0x${string}`; @@ -105,7 +105,7 @@ export default async ( const ormlOptions: AcalaOrmlAssetOptions = { name: hexToString(asset!.name), symbol: hexToString(asset!.symbol), - existentialDeposit: asset!.minimalBalance as BN, + existentialDeposit: asset!.minimalBalance as BNType, assetType: asset!.assetLookupId, lookupValue: asset!.assetLookupValue, icon: network.icon, diff --git a/packages/extension/src/providers/polkadot/networks/bifrost/libs/assetinfo-orml.ts b/packages/extension/src/providers/polkadot/networks/bifrost/libs/assetinfo-orml.ts index b157e875e..56f2af7b7 100644 --- a/packages/extension/src/providers/polkadot/networks/bifrost/libs/assetinfo-orml.ts +++ b/packages/extension/src/providers/polkadot/networks/bifrost/libs/assetinfo-orml.ts @@ -10,7 +10,7 @@ import { OrmlTokensAccountData } from "../../acala/types/acala-orml-asset"; import { toBN } from "web3-utils"; import { KnownTokenDisplay } from "@/providers/polkadot/types"; import { SubstrateNativeToken } from "@/providers/polkadot/types/substrate-native-token"; -import { BN } from "ethereumjs-util"; +import { BNType } from "@/providers/common/types"; type AssetMetadata = { name: `0x${string}`; @@ -105,7 +105,7 @@ export default async ( const ormlOptions: BifrostOrmlAssetOptions = { name: hexToString(asset!.name), symbol: hexToString(asset!.symbol), - existentialDeposit: asset!.minimalBalance as BN, + existentialDeposit: asset!.minimalBalance as BNType, assetType: asset!.assetLookupId, lookupValue: asset!.assetLookupValue, icon: network.icon, diff --git a/packages/extension/src/providers/polkadot/types/substrate-network.ts b/packages/extension/src/providers/polkadot/types/substrate-network.ts index c597163b3..f728f9252 100644 --- a/packages/extension/src/providers/polkadot/types/substrate-network.ts +++ b/packages/extension/src/providers/polkadot/types/substrate-network.ts @@ -17,7 +17,7 @@ import { SubstrateNativeToken } from "./substrate-native-token"; import { Activity } from "@/types/activity"; import { getApi, addNewApi } from "../libs/api-promises"; import { KnownTokenDisplay } from "."; -import { BN } from "ethereumjs-util"; +import { BNType } from "@/providers/common/types"; export interface SubstrateNetworkOptions { name: NetworkNames; @@ -36,7 +36,7 @@ export interface SubstrateNetworkOptions { coingeckoPlatform?: CoingeckoPlatform; genesisHash: string; knownTokens?: KnownTokenDisplay[]; - existentialDeposit?: BN; + existentialDeposit?: BNType; activityHandler: ( network: BaseNetwork, address: string @@ -52,7 +52,7 @@ export class SubstrateNetwork extends BaseNetwork { public prefix: number; public assets: BaseToken[] = []; public genesisHash: string; - public existentialDeposit?: BN; + public existentialDeposit?: BNType; private knownTokens?: KnownTokenDisplay[]; private activityHandler: ( diff --git a/packages/extension/src/providers/polkadot/ui/libs/signer.ts b/packages/extension/src/providers/polkadot/ui/libs/signer.ts index 5bf61f06a..161f58004 100644 --- a/packages/extension/src/providers/polkadot/ui/libs/signer.ts +++ b/packages/extension/src/providers/polkadot/ui/libs/signer.ts @@ -11,7 +11,7 @@ import { u8aUnwrapBytes, u8aWrapBytes, } from "@polkadot/util"; -import { bufferToHex } from "ethereumjs-util"; +import { bufferToHex } from "@enkryptcom/utils"; const TransactionSigner = ( options: SignerTransactionOptions diff --git a/packages/extension/src/scripts/chrome/hot-reload.ts b/packages/extension/src/scripts/chrome/hot-reload.ts index 8fa5d188a..43fd1febe 100644 --- a/packages/extension/src/scripts/chrome/hot-reload.ts +++ b/packages/extension/src/scripts/chrome/hot-reload.ts @@ -1,5 +1,6 @@ import browser from "webextension-polyfill"; -import { keccakFromString } from "ethereumjs-util"; +import { keccak256 } from "ethereum-cryptography/keccak"; +import { bufferToHex } from "@enkryptcom/utils"; const filesToMonitor = { content: { path: "scripts/contentscript.js", @@ -33,7 +34,7 @@ const checkFilesChanged = async () => { await fetch(exturl) .then((res) => res.text()) .then((content) => { - const hash = keccakFromString(content).toString("hex"); + const hash = bufferToHex(keccak256(Buffer.from(content))); if (value.hash !== hash) { filesChanged = true; value.hash = hash; diff --git a/packages/extension/src/types/base-network.ts b/packages/extension/src/types/base-network.ts index dbfd51fd5..aef61ef72 100644 --- a/packages/extension/src/types/base-network.ts +++ b/packages/extension/src/types/base-network.ts @@ -5,7 +5,7 @@ import { AssetsType, ProviderName } from "@/types/provider"; import { CoingeckoPlatform, SignerType, NetworkNames } from "@enkryptcom/types"; import { Activity } from "./activity"; import { BaseToken } from "./base-token"; -import { BNLike } from "ethereumjs-util"; +import { BNType } from "@/providers/common/types"; export interface BaseNetworkOptions { name: NetworkNames; @@ -20,7 +20,7 @@ export interface BaseNetworkOptions { decimals: number; signer: SignerType[]; node: string; - displayAddress: (address: string, chainId?: BNLike) => string; + displayAddress: (address: string, chainId?: BNType) => string; provider: ProviderName; coingeckoID?: string; coingeckoPlatform?: CoingeckoPlatform; @@ -42,7 +42,7 @@ export abstract class BaseNetwork { public icon: string; public signer: SignerType[]; public node: string; - public displayAddress: (address: string, chainId?: BNLike) => string; + public displayAddress: (address: string, chainId?: BNType) => string; public provider: ProviderName; public coingeckoID: string | undefined; public coingeckoPlatform: CoingeckoPlatform | undefined; diff --git a/packages/extension/src/types/base-token.ts b/packages/extension/src/types/base-token.ts index 791c58e56..00a76a944 100644 --- a/packages/extension/src/types/base-token.ts +++ b/packages/extension/src/types/base-token.ts @@ -2,7 +2,7 @@ import EvmAPI from "@/providers/ethereum/libs/api"; import MarketData from "@/libs/market-data"; import { ApiPromise } from "@polkadot/api"; import BitcoinAPI from "@/providers/bitcoin/libs/api"; -import { BN } from "ethereumjs-util"; +import { BNType } from "@/providers/common/types"; export type TransferType = "keepAlive" | "all" | "allKeepAlive" | "transfer"; @@ -16,7 +16,7 @@ export interface BaseTokenOptions { decimals: number; icon: string; coingeckoID?: string; - existentialDeposit?: BN; + existentialDeposit?: BNType; balance?: string; price?: string; } @@ -27,7 +27,7 @@ export abstract class BaseToken { public decimals: number; public icon: string; public coingeckoID: string | undefined; - public existentialDeposit: BN | undefined; + public existentialDeposit: BNType | undefined; public balance?: string; public price?: string; diff --git a/packages/extension/src/ui/action/views/swap/types.ts b/packages/extension/src/ui/action/views/swap/types.ts index ad142cf5c..fd914d0da 100644 --- a/packages/extension/src/ui/action/views/swap/types.ts +++ b/packages/extension/src/ui/action/views/swap/types.ts @@ -1,4 +1,4 @@ -import { GasPriceTypes } from "@/providers/common/types"; +import { BNType, GasPriceTypes } from "@/providers/common/types"; import { BaseNetwork } from "@/types/base-network"; import { EVMTransaction, @@ -10,7 +10,6 @@ import { StatusOptionsResponse, } from "@enkryptcom/swap"; import { EnkryptAccount } from "@enkryptcom/types"; -import { BN } from "ethereumjs-util"; export enum SWAP_LOADING { LOADING = "loading", LOOKING_FOR_OFFERS = "looking", @@ -21,9 +20,9 @@ export interface SwapData { fromToken: TokenType; toToken: TokenTypeTo; priceDifference: string; - nativeBalance: BN; + nativeBalance: BNType; nativePrice: number; - existentialDeposit: BN; + existentialDeposit: BNType; fromAddress: string; toAddress: string; } diff --git a/packages/hw-wallets/package.json b/packages/hw-wallets/package.json index 403ae0735..f22002632 100644 --- a/packages/hw-wallets/package.json +++ b/packages/hw-wallets/package.json @@ -47,7 +47,9 @@ "dependencies": { "@enkryptcom/types": "workspace:^", "@enkryptcom/utils": "workspace:^", + "@ethereumjs/rlp": "^5.0.2", "@ethereumjs/tx": "^5.2.1", + "@ethereumjs/util": "^9.0.2", "@ledgerhq/hw-app-eth": "^6.35.6", "@ledgerhq/hw-transport": "^6.30.4", "@ledgerhq/hw-transport-webusb": "^6.28.4", @@ -56,7 +58,6 @@ "@polkadot/util": "^12.6.2", "@trezor/connect-web": "^9.1.12", "@zondax/ledger-substrate": "^0.41.3", - "ethereumjs-util": "^7.1.5", "hdkey": "^2.1.0", "webextension-polyfill": "^0.10.0" } diff --git a/packages/hw-wallets/src/ledger/ethereum/index.ts b/packages/hw-wallets/src/ledger/ethereum/index.ts index 41b787073..85ec45ab9 100644 --- a/packages/hw-wallets/src/ledger/ethereum/index.ts +++ b/packages/hw-wallets/src/ledger/ethereum/index.ts @@ -3,10 +3,11 @@ import webUsbTransport from "@ledgerhq/hw-transport-webusb"; import ledgerService from "@ledgerhq/hw-app-eth/lib/services/ledger"; import { HWwalletCapabilities, NetworkNames } from "@enkryptcom/types"; import EthApp from "@ledgerhq/hw-app-eth"; -import { toRpcSig, publicToAddress, rlp } from "ethereumjs-util"; +import { toRpcSig, publicToAddress } from "@ethereumjs/util"; import { LegacyTransaction, FeeMarketEIP1559Transaction } from "@ethereumjs/tx"; import HDKey from "hdkey"; -import { bigIntToHex, bufferToHex, hexToBuffer } from "@enkryptcom/utils"; +import { bufferToHex, hexToBuffer } from "@enkryptcom/utils"; +import { RLP } from "@ethereumjs/rlp"; import { AddressResponse, getAddressRequest, @@ -108,7 +109,7 @@ class LedgerEthereum implements HWWalletProvider { let msgToSign: string; if ((options.transaction as LegacyTransaction).gasPrice) { tx = options.transaction as LegacyTransaction; - msgToSign = rlp.encode(tx.getMessageToSign()).toString("hex"); + msgToSign = bufferToHex(RLP.encode(tx.getMessageToSign()), true); } else { tx = options.transaction as FeeMarketEIP1559Transaction; msgToSign = bufferToHex(tx.getMessageToSign(), true); @@ -129,13 +130,13 @@ class LedgerEthereum implements HWWalletProvider { const rv = BigInt(parseInt(result.v, 16)); const cv = tx.common.chainId() * 2n + 35n; return toRpcSig( - bigIntToHex(rv - cv), + rv - cv, hexToBuffer(result.r), hexToBuffer(result.s) ); } return toRpcSig( - `0x${result.v}`, + BigInt(`0x${result.v}`), hexToBuffer(result.r), hexToBuffer(result.s) ); diff --git a/packages/hw-wallets/src/trezor/index.ts b/packages/hw-wallets/src/trezor/index.ts index b1626335b..77fb3e0c5 100644 --- a/packages/hw-wallets/src/trezor/index.ts +++ b/packages/hw-wallets/src/trezor/index.ts @@ -2,7 +2,7 @@ import TrezorConnect from "@trezor/connect-web"; import { HWwalletCapabilities, NetworkNames } from "@enkryptcom/types"; import HDKey from "hdkey"; import { bigIntToHex, bufferToHex, hexToBuffer } from "@enkryptcom/utils"; -import { publicToAddress, toRpcSig } from "ethereumjs-util"; +import { publicToAddress, toRpcSig } from "@ethereumjs/util"; import { FeeMarketEIP1559Transaction, LegacyTransaction } from "@ethereumjs/tx"; import { AddressResponse, @@ -113,7 +113,7 @@ class TrezorEthereum implements HWWalletProvider { const rv = BigInt(parseInt(result.payload.v, 16)); const cv = tx.common.chainId() * 2n + 35n; return toRpcSig( - bigIntToHex(rv - cv), + rv - cv, hexToBuffer(result.payload.r), hexToBuffer(result.payload.s) ); @@ -132,7 +132,7 @@ class TrezorEthereum implements HWWalletProvider { if (!result.success) throw new Error((result.payload as any).error as string); return toRpcSig( - result.payload.v, + BigInt(result.payload.v), hexToBuffer(result.payload.r), hexToBuffer(result.payload.s) ); diff --git a/packages/signers/ethereum/package.json b/packages/signers/ethereum/package.json index 1de1d97a5..7ee4e8fb5 100644 --- a/packages/signers/ethereum/package.json +++ b/packages/signers/ethereum/package.json @@ -18,9 +18,9 @@ }, "dependencies": { "@enkryptcom/utils": "workspace:^", + "@ethereumjs/util": "^9.0.2", "bip39": "^3.1.0", "chai": "^4.4.1", - "ethereumjs-util": "^7.1.5", "hdkey": "^2.1.0", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1" diff --git a/packages/signers/ethereum/src/index.ts b/packages/signers/ethereum/src/index.ts index 45b727de2..5a30c95dc 100644 --- a/packages/signers/ethereum/src/index.ts +++ b/packages/signers/ethereum/src/index.ts @@ -1,11 +1,11 @@ import { + privateToPublic, ecsign, ecrecover, fromRpcSig, toRpcSig, - privateToPublic, privateToAddress, -} from "ethereumjs-util"; +} from "@ethereumjs/util"; import { mnemonicToSeed } from "bip39"; import { Errors, SignerInterface, KeyPair } from "@enkryptcom/types"; import { hexToBuffer, bufferToHex } from "@enkryptcom/utils"; diff --git a/packages/signers/ethereum/tests/encrypt.test.ts b/packages/signers/ethereum/tests/encrypt.test.ts index 05bbf1158..81158a965 100644 --- a/packages/signers/ethereum/tests/encrypt.test.ts +++ b/packages/signers/ethereum/tests/encrypt.test.ts @@ -1,6 +1,7 @@ import { bufferToHex, hexToBuffer } from "@enkryptcom/utils"; import { expect } from "chai"; import { privateToPublic } from "ethereumjs-util"; +import { privateToPublic } from "@ethereumjs/util"; import Signer from "../src"; // https://github.com/MetaMask/eth-sig-util/blob/main/src/encryption.test.ts diff --git a/packages/signers/ethereum/tests/sign.test.ts b/packages/signers/ethereum/tests/sign.test.ts index 02815abc8..6c5761a76 100644 --- a/packages/signers/ethereum/tests/sign.test.ts +++ b/packages/signers/ethereum/tests/sign.test.ts @@ -1,6 +1,6 @@ import { bufferToHex, hexToBuffer } from "@enkryptcom/utils"; import { expect } from "chai"; -import { privateToPublic } from "ethereumjs-util"; +import { privateToPublic } from "@ethereumjs/util"; import Signer from "../src"; describe("Ethreum signing", () => { diff --git a/yarn.lock b/yarn.lock index b2acefd7a..fc8cebb75 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2360,6 +2360,7 @@ __metadata: "@enkryptcom/utils": "workspace:^" "@ethereumjs/common": ^4.2.0 "@ethereumjs/tx": ^5.2.1 + "@ethereumjs/util": ^9.0.2 "@ledgerhq/hw-transport-webusb": ^6.28.4 "@metamask/eth-sig-util": ^7.0.1 "@polkadot/api": ^10.11.3 @@ -2410,8 +2411,8 @@ __metadata: eslint-config-prettier: ^8.10.0 eslint-plugin-prettier: ^4.2.1 eslint-plugin-vue: ^8.7.1 + ethereum-cryptography: ^2.1.3 ethereumjs-abi: ^0.6.8 - ethereumjs-util: ^7.1.5 ethereumjs-wallet: ^1.0.2 eventemitter3: ^5.0.1 https-browserify: ^1.0.0 @@ -2459,7 +2460,9 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" + "@ethereumjs/rlp": ^5.0.2 "@ethereumjs/tx": ^5.2.1 + "@ethereumjs/util": ^9.0.2 "@ledgerhq/hw-app-eth": ^6.35.6 "@ledgerhq/hw-transport": ^6.30.4 "@ledgerhq/hw-transport-webusb": ^6.28.4 @@ -2480,7 +2483,6 @@ __metadata: eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - ethereumjs-util: ^7.1.5 hdkey: ^2.1.0 mocha: ^10.3.0 prettier: ^2.8.8 @@ -2637,6 +2639,7 @@ __metadata: dependencies: "@enkryptcom/types": "workspace:^" "@enkryptcom/utils": "workspace:^" + "@ethereumjs/util": ^9.0.2 "@types/chai": ^4.3.12 "@types/hdkey": ^2.0.3 "@types/mocha": ^10.0.6 @@ -2651,7 +2654,6 @@ __metadata: eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - ethereumjs-util: ^7.1.5 hdkey: ^2.1.0 mocha: ^10.3.0 prettier: ^2.8.8 From 69c71b2ab2a663a16e45dea76a45bee5362847bc Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:55:42 -0800 Subject: [PATCH 16/29] devop: update yarnlock --- yarn.lock | 614 +++--------------------------------------------------- 1 file changed, 33 insertions(+), 581 deletions(-) diff --git a/yarn.lock b/yarn.lock index fc8cebb75..c09d4c1b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -363,16 +363,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.17.9, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.22.15": - version: 7.23.6 - resolution: "@babel/parser@npm:7.23.6" - bin: - parser: ./bin/babel-parser.js - checksum: 140801c43731a6c41fd193f5c02bc71fd647a0360ca616b23d2db8be4b9739b9f951a03fc7c2db4f9b9214f4b27c1074db0f18bc3fa653783082d5af7c8860d5 - languageName: node - linkType: hard - -"@babel/parser@npm:^7.23.9": +"@babel/parser@npm:^7.17.9, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.9": version: 7.24.0 resolution: "@babel/parser@npm:7.24.0" bin: @@ -3174,17 +3165,7 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/common@npm:^4.1.0": - version: 4.1.0 - resolution: "@ethereumjs/common@npm:4.1.0" - dependencies: - "@ethereumjs/util": ^9.0.1 - crc: ^4.3.2 - checksum: 8494e6d179fe3949d8d8285badfb7be9ade71864e477da5dbf432ecc8046a58a0db73e99b5543c807fdc1b3f5959ed9c85ba99536b2f4753e08eaeb096af4beb - languageName: node - linkType: hard - -"@ethereumjs/common@npm:^4.2.0": +"@ethereumjs/common@npm:^4.1.0, @ethereumjs/common@npm:^4.2.0": version: 4.2.0 resolution: "@ethereumjs/common@npm:4.2.0" dependencies: @@ -3202,15 +3183,6 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/rlp@npm:^5.0.1": - version: 5.0.1 - resolution: "@ethereumjs/rlp@npm:5.0.1" - bin: - rlp: bin/rlp.cjs - checksum: eddff08718c3b8312007ef51a951dff6b2c1152f9f9ea6fb9eec65d50caf3fa53f5894d79d6d450eef70a5ef3b0688be044912096aa8d263345a0d9debb4d477 - languageName: node - linkType: hard - "@ethereumjs/rlp@npm:^5.0.2": version: 5.0.2 resolution: "@ethereumjs/rlp@npm:5.0.2" @@ -3252,24 +3224,7 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/tx@npm:^5.1.0": - version: 5.1.0 - resolution: "@ethereumjs/tx@npm:5.1.0" - dependencies: - "@ethereumjs/common": ^4.1.0 - "@ethereumjs/rlp": ^5.0.1 - "@ethereumjs/util": ^9.0.1 - ethereum-cryptography: ^2.1.2 - peerDependencies: - c-kzg: ^2.1.2 - peerDependenciesMeta: - c-kzg: - optional: true - checksum: fd17b337f7a64a6a29b1d279c52ac5bfb9655cda06858b198b85a306cc978d25b871acc4ec57e0c29bab50a7c9600d934837fb62052cbde7dc88223be7ebc740 - languageName: node - linkType: hard - -"@ethereumjs/tx@npm:^5.2.1": +"@ethereumjs/tx@npm:^5.1.0, @ethereumjs/tx@npm:^5.2.1": version: 5.2.1 resolution: "@ethereumjs/tx@npm:5.2.1" dependencies: @@ -3297,21 +3252,6 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/util@npm:^9.0.1": - version: 9.0.1 - resolution: "@ethereumjs/util@npm:9.0.1" - dependencies: - "@ethereumjs/rlp": ^5.0.1 - ethereum-cryptography: ^2.1.2 - peerDependencies: - c-kzg: ^2.1.2 - peerDependenciesMeta: - c-kzg: - optional: true - checksum: 3569dcc0106f5e962e62811be66b5f49529c9d1a29671908568528b2b45d6cae03cb497fc755a1ae4144170f749133308494be42255ac98b61c930d143ed26f4 - languageName: node - linkType: hard - "@ethereumjs/util@npm:^9.0.2": version: 9.0.2 resolution: "@ethereumjs/util@npm:9.0.2" @@ -4274,19 +4214,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/devices@npm:^8.0.0, @ledgerhq/devices@npm:^8.2.0": - version: 8.2.0 - resolution: "@ledgerhq/devices@npm:8.2.0" - dependencies: - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/logs": ^6.12.0 - rxjs: ^7.8.1 - semver: ^7.3.5 - checksum: 5232c4ba8c428a7e44c32198eacc7f14c188f5d50dd34322c92cfb45bb015265c845099a1814fc53c9c8f99b5306eba93b8db835d65ad7cfa8f2bed25acc202c - languageName: node - linkType: hard - -"@ledgerhq/devices@npm:^8.2.1": +"@ledgerhq/devices@npm:^8.0.0, @ledgerhq/devices@npm:^8.2.1": version: 8.2.1 resolution: "@ledgerhq/devices@npm:8.2.1" dependencies: @@ -4320,14 +4248,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/errors@npm:^6.10.0, @ledgerhq/errors@npm:^6.12.3, @ledgerhq/errors@npm:^6.14.0, @ledgerhq/errors@npm:^6.16.1": - version: 6.16.1 - resolution: "@ledgerhq/errors@npm:6.16.1" - checksum: 6bbcedee7103d8aa878a7e84e4824796e1505ef32013e1e98679827a72696d01da897adb95a996ad30fa120bf126b98d68107870001b950a55bf9af4372f42af - languageName: node - linkType: hard - -"@ledgerhq/errors@npm:^6.16.2": +"@ledgerhq/errors@npm:^6.10.0, @ledgerhq/errors@npm:^6.12.3, @ledgerhq/errors@npm:^6.14.0, @ledgerhq/errors@npm:^6.16.2": version: 6.16.2 resolution: "@ledgerhq/errors@npm:6.16.2" checksum: 2dd796c78b8428339c8906cfe2325e62c211f484576835198a9bf4efc8fed38b4ca5d342bfb08aef6c623720753ea3e5ce77e50367f2808ad5610e3ff54cec70 @@ -4616,19 +4537,7 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:^6.20.0, @ledgerhq/hw-transport@npm:^6.27.1, @ledgerhq/hw-transport@npm:^6.28.1, @ledgerhq/hw-transport@npm:^6.28.8": - version: 6.30.1 - resolution: "@ledgerhq/hw-transport@npm:6.30.1" - dependencies: - "@ledgerhq/devices": ^8.2.0 - "@ledgerhq/errors": ^6.16.1 - "@ledgerhq/logs": ^6.12.0 - events: ^3.3.0 - checksum: 71e6c05a8bf27ef494721d7d528ad71082146fc9e62d558f88ed35ffc282e04e5903f687e9606d85a0408bb677576b8b32e9a2c8e267d3f6a963aeec60640931 - languageName: node - linkType: hard - -"@ledgerhq/hw-transport@npm:^6.28.2, @ledgerhq/hw-transport@npm:^6.30.4": +"@ledgerhq/hw-transport@npm:^6.20.0, @ledgerhq/hw-transport@npm:^6.27.1, @ledgerhq/hw-transport@npm:^6.28.1, @ledgerhq/hw-transport@npm:^6.28.2, @ledgerhq/hw-transport@npm:^6.28.8, @ledgerhq/hw-transport@npm:^6.30.4": version: 6.30.4 resolution: "@ledgerhq/hw-transport@npm:6.30.4" dependencies: @@ -5224,15 +5133,6 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:1.1.0, @noble/curves@npm:~1.1.0": - version: 1.1.0 - resolution: "@noble/curves@npm:1.1.0" - dependencies: - "@noble/hashes": 1.3.1 - checksum: 2658cdd3f84f71079b4e3516c47559d22cf4b55c23ac8ee9d2b1f8e5b72916d9689e59820e0f9d9cb4a46a8423af5b56dc6bb7782405c88be06a015180508db5 - languageName: node - linkType: hard - "@noble/curves@npm:1.2.0": version: 1.2.0 resolution: "@noble/curves@npm:1.2.0" @@ -5272,13 +5172,6 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.3.1": - version: 1.3.1 - resolution: "@noble/hashes@npm:1.3.1" - checksum: 7fdefc0f7a0c1ec27acc6ff88841793e3f93ec4ce6b8a6a12bfc0dd70ae6b7c4c82fe305fdfeda1735d5ad4a9eebe761e6693b3d355689c559e91242f4bc95b1 - languageName: node - linkType: hard - "@noble/hashes@npm:1.3.2": version: 1.3.2 resolution: "@noble/hashes@npm:1.3.2" @@ -5286,7 +5179,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.2, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1, @noble/hashes@npm:~1.3.2": +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.1.2, @noble/hashes@npm:^1.1.5, @noble/hashes@npm:^1.2.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:~1.3.2": version: 1.3.3 resolution: "@noble/hashes@npm:1.3.3" checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b @@ -5494,21 +5387,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/api-augment@npm:10.11.2" - dependencies: - "@polkadot/api-base": 10.11.2 - "@polkadot/rpc-augment": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-augment": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 04a59f84abdc242ba0111afc9a41cc84ab562c3fb653db545f9d3ceb081afac2bcee392f709d4742079e1d3d1297fd135eac8727565c237349bdb7aa389ba04b - languageName: node - linkType: hard - "@polkadot/api-augment@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/api-augment@npm:10.11.3" @@ -5524,19 +5402,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-base@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/api-base@npm:10.11.2" - dependencies: - "@polkadot/rpc-core": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/util": ^12.6.2 - rxjs: ^7.8.1 - tslib: ^2.6.2 - checksum: 88f3aa2c61ebf0ac75451236767d3e873b1823a4e3bef96433e765899f9f030cdf5d059da0d1ec3e97effc6287974e48b8f60966f019ed8f62e19b35170a9721 - languageName: node - linkType: hard - "@polkadot/api-base@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/api-base@npm:10.11.3" @@ -5550,24 +5415,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-derive@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/api-derive@npm:10.11.2" - dependencies: - "@polkadot/api": 10.11.2 - "@polkadot/api-augment": 10.11.2 - "@polkadot/api-base": 10.11.2 - "@polkadot/rpc-core": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/util": ^12.6.2 - "@polkadot/util-crypto": ^12.6.2 - rxjs: ^7.8.1 - tslib: ^2.6.2 - checksum: e89bcae6ac730fce72bb75f9b491400d561b0c61eb6f390d01e7c7060dd8fe24f893d7278f12e57200e485632f4a19f61af9b3dd5354bdfc07281bc9d2e85cb2 - languageName: node - linkType: hard - "@polkadot/api-derive@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/api-derive@npm:10.11.3" @@ -5586,32 +5433,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/api@npm:10.11.2, @polkadot/api@npm:^10.11.1": - version: 10.11.2 - resolution: "@polkadot/api@npm:10.11.2" - dependencies: - "@polkadot/api-augment": 10.11.2 - "@polkadot/api-base": 10.11.2 - "@polkadot/api-derive": 10.11.2 - "@polkadot/keyring": ^12.6.2 - "@polkadot/rpc-augment": 10.11.2 - "@polkadot/rpc-core": 10.11.2 - "@polkadot/rpc-provider": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-augment": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/types-create": 10.11.2 - "@polkadot/types-known": 10.11.2 - "@polkadot/util": ^12.6.2 - "@polkadot/util-crypto": ^12.6.2 - eventemitter3: ^5.0.1 - rxjs: ^7.8.1 - tslib: ^2.6.2 - checksum: 4bb1c3ab28e7a96ea2c7a10f192ed679aff3c49e713164e69f163df7503686cb9fea7a20ab59b2dd6b85ed51e9c84df3efb346902dfd91b2f2e39aec0bdb351f - languageName: node - linkType: hard - -"@polkadot/api@npm:10.11.3, @polkadot/api@npm:^10.11.3": +"@polkadot/api@npm:10.11.3, @polkadot/api@npm:^10.11.1, @polkadot/api@npm:^10.11.3": version: 10.11.3 resolution: "@polkadot/api@npm:10.11.3" dependencies: @@ -5690,19 +5512,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-augment@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/rpc-augment@npm:10.11.2" - dependencies: - "@polkadot/rpc-core": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 06daf8630fd2e73bb5d6692300e6e9d0b4ed9b4b0814174c5103e73ad59c79036657543ddf34a4da273e16e8dde6482dcc7c422850b3f21fb54a665565881d48 - languageName: node - linkType: hard - "@polkadot/rpc-augment@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/rpc-augment@npm:10.11.3" @@ -5716,20 +5525,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/rpc-core@npm:10.11.2" - dependencies: - "@polkadot/rpc-augment": 10.11.2 - "@polkadot/rpc-provider": 10.11.2 - "@polkadot/types": 10.11.2 - "@polkadot/util": ^12.6.2 - rxjs: ^7.8.1 - tslib: ^2.6.2 - checksum: f1511fbebee55ea993d1cb113c2a163efd7fd4ae03829c91c8400ed1ba6fbd7d6e1aeebcbf9f9997b0c386fdeb7db62eab25ac3ce7ed0a7cea9691ff28488973 - languageName: node - linkType: hard - "@polkadot/rpc-core@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/rpc-core@npm:10.11.3" @@ -5744,31 +5539,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-provider@npm:10.11.2, @polkadot/rpc-provider@npm:^10.11.1": - version: 10.11.2 - resolution: "@polkadot/rpc-provider@npm:10.11.2" - dependencies: - "@polkadot/keyring": ^12.6.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-support": 10.11.2 - "@polkadot/util": ^12.6.2 - "@polkadot/util-crypto": ^12.6.2 - "@polkadot/x-fetch": ^12.6.2 - "@polkadot/x-global": ^12.6.2 - "@polkadot/x-ws": ^12.6.2 - "@substrate/connect": 0.7.35 - eventemitter3: ^5.0.1 - mock-socket: ^9.3.1 - nock: ^13.4.0 - tslib: ^2.6.2 - dependenciesMeta: - "@substrate/connect": - optional: true - checksum: a266ea4bf1fa4b2f3aaad005a04906bc2ffb6440b96b21789c41aad975311fe9a73f46e57a88c327130d69af06ad39d4e8826d70c5635966e55e2644a77ffa9a - languageName: node - linkType: hard - -"@polkadot/rpc-provider@npm:10.11.3, @polkadot/rpc-provider@npm:^10.11.3": +"@polkadot/rpc-provider@npm:10.11.3, @polkadot/rpc-provider@npm:^10.11.1, @polkadot/rpc-provider@npm:^10.11.3": version: 10.11.3 resolution: "@polkadot/rpc-provider@npm:10.11.3" dependencies: @@ -5792,18 +5563,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-augment@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/types-augment@npm:10.11.2" - dependencies: - "@polkadot/types": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 74d6efbac15dd20ce1f4c47adccdc1bf9cabed577c53ae964cf14ab943346c0fb4d0965e93b1276055f42f136d51de4bf10115ef79942bf12f8b309344e57fa4 - languageName: node - linkType: hard - "@polkadot/types-augment@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/types-augment@npm:10.11.3" @@ -5828,17 +5587,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-codec@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/types-codec@npm:10.11.2" - dependencies: - "@polkadot/util": ^12.6.2 - "@polkadot/x-bigint": ^12.6.2 - tslib: ^2.6.2 - checksum: 154b3c89120b8095c82b55e89e0c0233b9f4e628017dfbbf0a9ca8383e6085bf93a3f91cd21264acdc9e996180e28d734c5f669a70524a3aa1399d0f5b8202d6 - languageName: node - linkType: hard - "@polkadot/types-codec@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/types-codec@npm:10.11.3" @@ -5861,17 +5609,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-create@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/types-create@npm:10.11.2" - dependencies: - "@polkadot/types-codec": 10.11.2 - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 4fb124dbd3f42baaf99de68e6b26c4ce3d314ec92ba2c8a88eee72b9c3404bbe84d234e66048edbe26afb155338cdc81bf62a65c9e4dbdfe9c32e694de6f97b2 - languageName: node - linkType: hard - "@polkadot/types-create@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/types-create@npm:10.11.3" @@ -5894,20 +5631,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-known@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/types-known@npm:10.11.2" - dependencies: - "@polkadot/networks": ^12.6.2 - "@polkadot/types": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/types-create": 10.11.2 - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 198c92576fa85060bf571a56dcca3041ff749950645109d357ef77a619472096136a2fec2eaf3174742db9d20a181486c29bc23c4224c9968fc60a17b161408c - languageName: node - linkType: hard - "@polkadot/types-known@npm:10.11.3, @polkadot/types-known@npm:^10.11.3": version: 10.11.3 resolution: "@polkadot/types-known@npm:10.11.3" @@ -5936,16 +5659,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-support@npm:10.11.2": - version: 10.11.2 - resolution: "@polkadot/types-support@npm:10.11.2" - dependencies: - "@polkadot/util": ^12.6.2 - tslib: ^2.6.2 - checksum: 6283a5581876c7fba850add6612cd9285a876f506298581392a7db1f0f92357857da86aac031eef515e8d0ca725ec89259bef676b662616242cc5f5efc2527bc - languageName: node - linkType: hard - "@polkadot/types-support@npm:10.11.3": version: 10.11.3 resolution: "@polkadot/types-support@npm:10.11.3" @@ -5956,23 +5669,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:10.11.2, @polkadot/types@npm:^10.11.1": - version: 10.11.2 - resolution: "@polkadot/types@npm:10.11.2" - dependencies: - "@polkadot/keyring": ^12.6.2 - "@polkadot/types-augment": 10.11.2 - "@polkadot/types-codec": 10.11.2 - "@polkadot/types-create": 10.11.2 - "@polkadot/util": ^12.6.2 - "@polkadot/util-crypto": ^12.6.2 - rxjs: ^7.8.1 - tslib: ^2.6.2 - checksum: 6e4873329bc8754d6ebdf1e4b20b1ced1edbda554a837c6d47dbc6f3abf8001e74884631bba3695cbd08b07e96ae784191a586d286d3bdfc5a985a0785595049 - languageName: node - linkType: hard - -"@polkadot/types@npm:10.11.3, @polkadot/types@npm:^10.11.3": +"@polkadot/types@npm:10.11.3, @polkadot/types@npm:^10.11.1, @polkadot/types@npm:^10.11.3": version: 10.11.3 resolution: "@polkadot/types@npm:10.11.3" dependencies: @@ -6561,24 +6258,13 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0, @scure/base@npm:~1.1.4": +"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.4": version: 1.1.5 resolution: "@scure/base@npm:1.1.5" checksum: 9e9ee6088cb3aa0fb91f5a48497d26682c7829df3019b1251d088d166d7a8c0f941c68aaa8e7b96bbad20c71eb210397cb1099062cde3e29d4bad6b975c18519 languageName: node linkType: hard -"@scure/bip32@npm:1.3.1": - version: 1.3.1 - resolution: "@scure/bip32@npm:1.3.1" - dependencies: - "@noble/curves": ~1.1.0 - "@noble/hashes": ~1.3.1 - "@scure/base": ~1.1.0 - checksum: 394d65f77a40651eba21a5096da0f4233c3b50d422864751d373fcf142eeedb94a1149f9ab1dbb078086dab2d0bc27e2b1afec8321bf22d4403c7df2fea5bfe2 - languageName: node - linkType: hard - "@scure/bip32@npm:1.3.3, @scure/bip32@npm:^1.1.5": version: 1.3.3 resolution: "@scure/bip32@npm:1.3.3" @@ -6590,16 +6276,6 @@ __metadata: languageName: node linkType: hard -"@scure/bip39@npm:1.2.1": - version: 1.2.1 - resolution: "@scure/bip39@npm:1.2.1" - dependencies: - "@noble/hashes": ~1.3.0 - "@scure/base": ~1.1.0 - checksum: c5bd6f1328fdbeae2dcdd891825b1610225310e5e62a4942714db51066866e4f7bef242c7b06a1b9dcc8043a4a13412cf5c5df76d3b10aa9e36b82e9b6e3eeaa - languageName: node - linkType: hard - "@scure/bip39@npm:1.2.2, @scure/bip39@npm:^1.2.0": version: 1.2.2 resolution: "@scure/bip39@npm:1.2.2" @@ -7005,13 +6681,6 @@ __metadata: languageName: node linkType: hard -"@substrate/connect-extension-protocol@npm:^1.0.1": - version: 1.0.1 - resolution: "@substrate/connect-extension-protocol@npm:1.0.1" - checksum: 116dee587e81e832e14c25038bd849438c9493c6089aa6c1bf1760780d463880d44d362ed983d57ac3695368ac46f3c9df3dbaed92f36de89626c9735cecd1e4 - languageName: node - linkType: hard - "@substrate/connect-extension-protocol@npm:^2.0.0": version: 2.0.0 resolution: "@substrate/connect-extension-protocol@npm:2.0.0" @@ -7026,16 +6695,6 @@ __metadata: languageName: node linkType: hard -"@substrate/connect@npm:0.7.35": - version: 0.7.35 - resolution: "@substrate/connect@npm:0.7.35" - dependencies: - "@substrate/connect-extension-protocol": ^1.0.1 - smoldot: 2.0.7 - checksum: 4f0cfb2b9521c5300cbcc0245e87b72484738e6cc8103ddf91e3516f627de546d0a152839824ac2716b8ea2f327f3eee0f74a9a07886ed4a091e3b7c1e989441 - languageName: node - linkType: hard - "@substrate/connect@npm:0.8.7": version: 0.8.7 resolution: "@substrate/connect@npm:0.8.7" @@ -7065,20 +6724,13 @@ __metadata: languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.43.0": +"@substrate/ss58-registry@npm:^1.43.0, @substrate/ss58-registry@npm:^1.44.0": version: 1.46.0 resolution: "@substrate/ss58-registry@npm:1.46.0" checksum: 10e9bfd8d509abf78759d3e62cc41de515fc832dc2eab503071dda4cf0fb71c9d52247d0c32f93af6f8c4463add50d7f7f3483b52cbf43de621ac255226efb5f languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.44.0": - version: 1.44.0 - resolution: "@substrate/ss58-registry@npm:1.44.0" - checksum: 130fafc337a60bf22b1c01b8bd4fdbc2606a00483961bd173224478adb358a17b865d287cf99a2a32cb430d23d3a7969fce0457e8302dc48a98e1f666c7f6e40 - languageName: node - linkType: hard - "@swc/core-darwin-arm64@npm:1.4.2": version: 1.4.2 resolution: "@swc/core-darwin-arm64@npm:1.4.2" @@ -7783,14 +7435,7 @@ __metadata: languageName: node linkType: hard -"@types/chai@npm:^4.2.0": - version: 4.3.11 - resolution: "@types/chai@npm:4.3.11" - checksum: d0c05fe5d02b2e6bbca2bd4866a2ab20a59cf729bc04af0060e7a3277eaf2fb65651b90d4c74b0ebf1d152b4b1d49fa8e44143acef276a2bbaa7785fbe5642d3 - languageName: node - linkType: hard - -"@types/chai@npm:^4.3.12": +"@types/chai@npm:^4.2.0, @types/chai@npm:^4.3.12": version: 4.3.12 resolution: "@types/chai@npm:4.3.12" checksum: 64e9354181046bfc78f527bba006f2e58b49efb702a501bdd1faec51e21e4d2248e7fb49843fd3f2189e3bf3680480b94e8a1ab6d097e67183bdeacd6d024ed6 @@ -7883,14 +7528,7 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:*, @types/estree@npm:^1.0.0": - version: 1.0.1 - resolution: "@types/estree@npm:1.0.1" - checksum: e9aa175eacb797216fafce4d41e8202c7a75555bc55232dee0f9903d7171f8f19f0ae7d5191bb1a88cb90e65468be508c0df850a9fb81b4433b293a5a749899d - languageName: node - linkType: hard - -"@types/estree@npm:1.0.5": +"@types/estree@npm:*, @types/estree@npm:1.0.5, @types/estree@npm:^1.0.0": version: 1.0.5 resolution: "@types/estree@npm:1.0.5" checksum: dd8b5bed28e6213b7acd0fb665a84e693554d850b0df423ac8076cc3ad5823a6bc26b0251d080bdc545af83179ede51dd3f6fa78cad2c46ed1f29624ddf3e41a @@ -8040,14 +7678,7 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.4, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": - version: 7.0.11 - resolution: "@types/json-schema@npm:7.0.11" - checksum: 527bddfe62db9012fccd7627794bd4c71beb77601861055d87e3ee464f2217c85fca7a4b56ae677478367bbd248dbde13553312b7d4dbc702a2f2bbf60c4018d - languageName: node - linkType: hard - -"@types/json-schema@npm:^7.0.11": +"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.11, @types/json-schema@npm:^7.0.4, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": version: 7.0.15 resolution: "@types/json-schema@npm:7.0.15" checksum: 97ed0cb44d4070aecea772b7b2e2ed971e10c81ec87dd4ecc160322ffa55ff330dace1793489540e3e318d90942064bb697cc0f8989391797792d919737b3b98 @@ -8070,16 +7701,7 @@ __metadata: languageName: node linkType: hard -"@types/ledgerhq__hw-transport@npm:^4.21.3": - version: 4.21.5 - resolution: "@types/ledgerhq__hw-transport@npm:4.21.5" - dependencies: - "@types/node": "*" - checksum: 5464867899a597874c71a49c4c592c9f10d4e90021ba1ecff3e6246dc27c909a2cebc6727f7b186e82be8e568d0047453065b489f49e1b0232f2621d57f9598c - languageName: node - linkType: hard - -"@types/ledgerhq__hw-transport@npm:^4.21.4": +"@types/ledgerhq__hw-transport@npm:^4.21.3, @types/ledgerhq__hw-transport@npm:^4.21.4": version: 4.21.8 resolution: "@types/ledgerhq__hw-transport@npm:4.21.8" dependencies: @@ -8137,12 +7759,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0": - version: 20.11.5 - resolution: "@types/node@npm:20.11.5" +"@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0, @types/node@npm:^20.11.22": + version: 20.11.22 + resolution: "@types/node@npm:20.11.22" dependencies: undici-types: ~5.26.4 - checksum: a542727de1334ae20a3ca034b0ecf4b464a57ca01efc4f9cf43bd9ab93896125ab3c2de060ecd8f6ae23b86c6bf3463f681b643e69c032c6a662d376c98a6092 + checksum: ef8fd0b561c3c9810f3c23c990c856619232934e54308c84e79d4e39d44b66668eceb6eca89c64ebcbc78fb514446661ad58b0f8e6b5fa3d9ed9ff0983aac4ef languageName: node linkType: hard @@ -8195,15 +7817,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^20.11.22": - version: 20.11.22 - resolution: "@types/node@npm:20.11.22" - dependencies: - undici-types: ~5.26.4 - checksum: ef8fd0b561c3c9810f3c23c990c856619232934e54308c84e79d4e39d44b66668eceb6eca89c64ebcbc78fb514446661ad58b0f8e6b5fa3d9ed9ff0983aac4ef - languageName: node - linkType: hard - "@types/normalize-package-data@npm:^2.4.0": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -8444,7 +8057,7 @@ __metadata: languageName: node linkType: hard -"@types/ws@npm:^8.2.2": +"@types/ws@npm:^8.2.2, @types/ws@npm:^8.5.1": version: 8.5.10 resolution: "@types/ws@npm:8.5.10" dependencies: @@ -8453,15 +8066,6 @@ __metadata: languageName: node linkType: hard -"@types/ws@npm:^8.5.1": - version: 8.5.3 - resolution: "@types/ws@npm:8.5.3" - dependencies: - "@types/node": "*" - checksum: 0ce46f850d41383fcdc2149bcacc86d7232fa7a233f903d2246dff86e31701a02f8566f40af5f8b56d1834779255c04ec6ec78660fe0f9b2a69cf3d71937e4ae - languageName: node - linkType: hard - "@types/yargs-parser@npm:*": version: 21.0.0 resolution: "@types/yargs-parser@npm:21.0.0" @@ -9101,14 +8705,7 @@ __metadata: languageName: node linkType: hard -"@vue/devtools-api@npm:^6.5.0": - version: 6.5.0 - resolution: "@vue/devtools-api@npm:6.5.0" - checksum: ec819ef3a426e91d09e9cfefd2827e9ed8ec9d62bb3b3e0674f3da8c7e92a4b879c3b777dc7329172ca6fe2670b62dd5580d23160339208f0f5ae038f2e504ad - languageName: node - linkType: hard - -"@vue/devtools-api@npm:^6.5.1": +"@vue/devtools-api@npm:^6.5.0, @vue/devtools-api@npm:^6.5.1": version: 6.6.1 resolution: "@vue/devtools-api@npm:6.6.1" checksum: cf12b5ebcc7729725087072289410107b55bb82e0b86b8442e4e85516977110a8a3f4e1dec763be8b567a59173703b4e9c0ac1b0489bb2bb81363af7ea258a27 @@ -9719,7 +9316,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:8.11.2": +"ajv@npm:8.11.2, ajv@npm:^8.0.0, ajv@npm:^8.11.0, ajv@npm:^8.8.0": version: 8.11.2 resolution: "ajv@npm:8.11.2" dependencies: @@ -9743,18 +9340,6 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.0.0, ajv@npm:^8.11.0, ajv@npm:^8.8.0": - version: 8.11.0 - resolution: "ajv@npm:8.11.0" - dependencies: - fast-deep-equal: ^3.1.1 - json-schema-traverse: ^1.0.0 - require-from-string: ^2.0.2 - uri-js: ^4.2.2 - checksum: 5e0ff226806763be73e93dd7805b634f6f5921e3e90ca04acdf8db81eed9d8d3f0d4c5f1213047f45ebbf8047ffe0c840fa1ef2ec42c3a644899f69aa72b5bef - languageName: node - linkType: hard - "algo-msgpack-with-bigint@npm:^2.1.1": version: 2.1.1 resolution: "algo-msgpack-with-bigint@npm:2.1.1" @@ -10242,18 +9827,7 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.2.6, axios@npm:^1.3.1, axios@npm:^1.3.2, axios@npm:^1.3.4, axios@npm:^1.6.0": - version: 1.6.2 - resolution: "axios@npm:1.6.2" - dependencies: - follow-redirects: ^1.15.0 - form-data: ^4.0.0 - proxy-from-env: ^1.1.0 - checksum: 4a7429e2b784be0f2902ca2680964391eae7236faa3967715f30ea45464b98ae3f1c6f631303b13dfe721b17126b01f486c7644b9ef276bfc63112db9fd379f8 - languageName: node - linkType: hard - -"axios@npm:^1.6.5": +"axios@npm:^1.2.6, axios@npm:^1.3.1, axios@npm:^1.3.2, axios@npm:^1.3.4, axios@npm:^1.6.0, axios@npm:^1.6.5": version: 1.6.7 resolution: "axios@npm:1.6.7" dependencies: @@ -12172,20 +11746,13 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.36.0": +"core-js@npm:^3.36.0, core-js@npm:^3.8.3": version: 3.36.0 resolution: "core-js@npm:3.36.0" checksum: 48c807d5055ad0424f52d13583e96ddca2efcdc4e3cd9c479d60f269c8fe225191cd4e26a4593f43f7ef6dba08d161091147ecf8ae0300c15bc648a4f555217b languageName: node linkType: hard -"core-js@npm:^3.8.3": - version: 3.35.0 - resolution: "core-js@npm:3.35.0" - checksum: 25c224aca3df012b98f08f13ccbd8171ef5852acd33fd5e58e106d27f5f0c97de2fdbc520f0b4364d26253caf2deb3e5d265310f57d2a66ae6cc922850e649f0 - languageName: node - linkType: hard - "core-util-is@npm:1.0.2": version: 1.0.2 resolution: "core-util-is@npm:1.0.2" @@ -12304,18 +11871,6 @@ __metadata: languageName: node linkType: hard -"crc@npm:^4.3.2": - version: 4.3.2 - resolution: "crc@npm:4.3.2" - peerDependencies: - buffer: ">=6.0.3" - peerDependenciesMeta: - buffer: - optional: true - checksum: 8231cc25331727083ffd22da3575110fc49b4dc8725de973bd43261d4426aba134ed3a75cc247f7c5e97a6e171f87dffc3325b82890e86d032de2e6bcef09c32 - languageName: node - linkType: hard - "create-ecdh@npm:^4.0.0": version: 4.0.4 resolution: "create-ecdh@npm:4.0.4" @@ -14069,19 +13624,7 @@ __metadata: languageName: node linkType: hard -"ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2": - version: 2.1.2 - resolution: "ethereum-cryptography@npm:2.1.2" - dependencies: - "@noble/curves": 1.1.0 - "@noble/hashes": 1.3.1 - "@scure/bip32": 1.3.1 - "@scure/bip39": 1.2.1 - checksum: 2e8f7b8cc90232ae838ab6a8167708e8362621404d26e79b5d9e762c7b53d699f7520aff358d9254de658fcd54d2d0af168ff909943259ed27dc4cef2736410c - languageName: node - linkType: hard - -"ethereum-cryptography@npm:^2.1.3": +"ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2, ethereum-cryptography@npm:^2.1.3": version: 2.1.3 resolution: "ethereum-cryptography@npm:2.1.3" dependencies: @@ -14776,17 +14319,7 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.10.0, follow-redirects@npm:^1.14.0, follow-redirects@npm:^1.14.4, follow-redirects@npm:^1.14.7, follow-redirects@npm:^1.14.8, follow-redirects@npm:^1.15.0": - version: 1.15.2 - resolution: "follow-redirects@npm:1.15.2" - peerDependenciesMeta: - debug: - optional: true - checksum: faa66059b66358ba65c234c2f2a37fcec029dc22775f35d9ad6abac56003268baf41e55f9ee645957b32c7d9f62baf1f0b906e68267276f54ec4b4c597c2b190 - languageName: node - linkType: hard - -"follow-redirects@npm:^1.15.4": +"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.10.0, follow-redirects@npm:^1.14.0, follow-redirects@npm:^1.14.4, follow-redirects@npm:^1.14.7, follow-redirects@npm:^1.14.8, follow-redirects@npm:^1.15.4": version: 1.15.5 resolution: "follow-redirects@npm:1.15.5" peerDependenciesMeta: @@ -17897,16 +17430,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.3": - version: 0.30.5 - resolution: "magic-string@npm:0.30.5" - dependencies: - "@jridgewell/sourcemap-codec": ^1.4.15 - checksum: da10fecff0c0a7d3faf756913ce62bd6d5e7b0402be48c3b27bfd651b90e29677e279069a63b764bcdc1b8ecdcdb898f29a5c5ec510f2323e8d62ee057a6eb18 - languageName: node - linkType: hard - -"magic-string@npm:^0.30.7": +"magic-string@npm:^0.30.3, magic-string@npm:^0.30.7": version: 0.30.7 resolution: "magic-string@npm:0.30.7" dependencies: @@ -18266,14 +17790,7 @@ __metadata: languageName: node linkType: hard -"minimist@npm:^1.2.0, minimist@npm:^1.2.5, minimist@npm:^1.2.6": - version: 1.2.6 - resolution: "minimist@npm:1.2.6" - checksum: d15428cd1e11eb14e1233bcfb88ae07ed7a147de251441d61158619dfb32c4d7e9061d09cab4825fdee18ecd6fce323228c8c47b5ba7cd20af378ca4048fb3fb - languageName: node - linkType: hard - -"minimist@npm:^1.2.8": +"minimist@npm:^1.2.0, minimist@npm:^1.2.5, minimist@npm:^1.2.6, minimist@npm:^1.2.8": version: 1.2.8 resolution: "minimist@npm:1.2.8" checksum: 75a6d645fb122dad29c06a7597bddea977258957ed88d7a6df59b5cd3fe4a527e253e9bbf2e783e4b73657f9098b96a5fe96ab8a113655d4109108577ecf85b0 @@ -18829,17 +18346,6 @@ __metadata: languageName: node linkType: hard -"nock@npm:^13.4.0": - version: 13.5.0 - resolution: "nock@npm:13.5.0" - dependencies: - debug: ^4.1.0 - json-stringify-safe: ^5.0.1 - propagate: ^2.0.0 - checksum: b50d680da3287859f81626b426234ed81a43aae16455efd259a3044f4a6139677d97c7001f532def6b308e7c3ecf7517925f2a34b3aaf80ee2ced920cfce2799 - languageName: node - linkType: hard - "nock@npm:^13.5.0": version: 13.5.4 resolution: "nock@npm:13.5.4" @@ -20497,18 +20003,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.2.6, postcss@npm:^8.3.5, postcss@npm:^8.4.14, postcss@npm:^8.4.7": - version: 8.4.33 - resolution: "postcss@npm:8.4.33" - dependencies: - nanoid: ^3.3.7 - picocolors: ^1.0.0 - source-map-js: ^1.0.2 - checksum: 6f98b2af4b76632a3de20c4f47bf0e984a1ce1a531cf11adcb0b1d63a6cbda0aae4165e578b66c32ca4879038e3eaad386a6be725a8fb4429c78e3c1ab858fe9 - languageName: node - linkType: hard - -"postcss@npm:^8.4.35": +"postcss@npm:^8.2.6, postcss@npm:^8.3.5, postcss@npm:^8.4.14, postcss@npm:^8.4.35, postcss@npm:^8.4.7": version: 8.4.35 resolution: "postcss@npm:8.4.35" dependencies: @@ -22020,18 +21515,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4": - version: 7.5.4 - resolution: "semver@npm:7.5.4" - dependencies: - lru-cache: ^6.0.0 - bin: - semver: bin/semver.js - checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3 - languageName: node - linkType: hard - -"semver@npm:^7.6.0": +"semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.6, semver@npm:^7.3.7, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": version: 7.6.0 resolution: "semver@npm:7.6.0" dependencies: @@ -22395,15 +21879,6 @@ __metadata: languageName: node linkType: hard -"smoldot@npm:2.0.7": - version: 2.0.7 - resolution: "smoldot@npm:2.0.7" - dependencies: - ws: ^8.8.1 - checksum: fc039bfa0560312ae09c2136dd506f2a1994ead804b7234b49b2ecfac2fd19d306973a0fcfb66019645a8cf9a1702c270bc544a622ae40b63cf14790ea3531e0 - languageName: node - linkType: hard - "snake-case@npm:^2.1.0": version: 2.1.0 resolution: "snake-case@npm:2.1.0" @@ -25686,7 +25161,7 @@ __metadata: languageName: node linkType: hard -"web3-utils@npm:1.10.4, web3-utils@npm:^1.10.4": +"web3-utils@npm:1.10.4, web3-utils@npm:^1.0.0-beta.31, web3-utils@npm:^1.10.4": version: 1.10.4 resolution: "web3-utils@npm:1.10.4" dependencies: @@ -25733,22 +25208,6 @@ __metadata: languageName: node linkType: hard -"web3-utils@npm:^1.0.0-beta.31": - version: 1.10.3 - resolution: "web3-utils@npm:1.10.3" - dependencies: - "@ethereumjs/util": ^8.1.0 - bn.js: ^5.2.1 - ethereum-bloom-filters: ^1.0.6 - ethereum-cryptography: ^2.1.2 - ethjs-unit: 0.1.6 - number-to-bn: 1.7.0 - randombytes: ^2.1.0 - utf8: 3.0.0 - checksum: 353226710b2089a8e84f2b97cc765093e3018b850d3a6d60c92fe012829fa15a54ad15d432f1927bc185c6ef5100397a32fd4a896da5f514817c3f53583df134 - languageName: node - linkType: hard - "web3@npm:1.10.0, web3@npm:^1.0.0-beta.34, web3@npm:^1.7.3": version: 1.10.0 resolution: "web3@npm:1.10.0" @@ -25996,20 +25455,13 @@ __metadata: languageName: node linkType: hard -"whatwg-fetch@npm:^3.4.1": +"whatwg-fetch@npm:^3.4.1, whatwg-fetch@npm:^3.6.2": version: 3.6.20 resolution: "whatwg-fetch@npm:3.6.20" checksum: c58851ea2c4efe5c2235f13450f426824cf0253c1d45da28f45900290ae602a20aff2ab43346f16ec58917d5562e159cd691efa368354b2e82918c2146a519c5 languageName: node linkType: hard -"whatwg-fetch@npm:^3.6.2": - version: 3.6.2 - resolution: "whatwg-fetch@npm:3.6.2" - checksum: ee976b7249e7791edb0d0a62cd806b29006ad7ec3a3d89145921ad8c00a3a67e4be8f3fb3ec6bc7b58498724fd568d11aeeeea1f7827e7e1e5eae6c8a275afed - languageName: node - linkType: hard - "whatwg-url@npm:^5.0.0": version: 5.0.0 resolution: "whatwg-url@npm:5.0.0" From 425859190c1517cc0900146b274f23545a1dacc1 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:09:41 -0700 Subject: [PATCH 17/29] =?UTF-8?q?devop:=20=F0=9F=94=A7=20add=20swap=20anal?= =?UTF-8?q?ytics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/extension/package.json | 1 + .../extension/src/libs/metrics/amplitude.ts | 44 +++++++++++ packages/extension/src/libs/metrics/index.ts | 50 ++++++------ packages/extension/src/libs/metrics/types.ts | 7 ++ .../bitcoin/methods/btc_switchNetwork.ts | 4 +- .../methods/wallet_addEthereumChain.ts | 7 +- .../methods/wallet_switchEthereumChain.ts | 4 +- .../polkadot/ui/dot-verify-transaction.vue | 4 +- packages/extension/src/ui/action/App.vue | 4 +- .../extension/src/ui/action/utils/browser.ts | 9 +++ .../src/ui/action/views/swap/index.vue | 8 ++ .../swap/views/swap-best-offer/index.vue | 20 +++++ yarn.lock | 76 ++++++++++++++++++- 13 files changed, 197 insertions(+), 41 deletions(-) create mode 100644 packages/extension/src/libs/metrics/amplitude.ts create mode 100644 packages/extension/src/libs/metrics/types.ts diff --git a/packages/extension/package.json b/packages/extension/package.json index ad5f1b48c..238554366 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -18,6 +18,7 @@ "watch-vue-firefox": "cross-env BROWSER='firefox' vue-cli-service build --watch --no-clean" }, "dependencies": { + "@amplitude/analytics-browser": "^2.5.3", "@babel/runtime": "^7.23.8", "@enkryptcom/extension-bridge": "workspace:^", "@enkryptcom/hw-wallets": "workspace:^", diff --git a/packages/extension/src/libs/metrics/amplitude.ts b/packages/extension/src/libs/metrics/amplitude.ts new file mode 100644 index 000000000..32390e68f --- /dev/null +++ b/packages/extension/src/libs/metrics/amplitude.ts @@ -0,0 +1,44 @@ +import { init, track, Types } from "@amplitude/analytics-browser"; +import { detectBrowser, detectOS } from "@action/utils/browser"; + +class Metrics { + browser = ""; + os = ""; + arch = ""; + constructor() { + this.init(); + this.browser = detectBrowser(); + detectOS().then((info) => { + this.os = info.os; + this.arch = info.arch; + }); + } + private init() { + init("apikey", { + instanceName: "enkrypt-extension-prod", + optOut: false, + serverUrl: "https://analytics-web.mewwallet.dev/record", + appVersion: process.env.PACKAGE_VERSION as string, + trackingOptions: { + ipAddress: false, + }, + useBatch: true, + identityStorage: "none", + logLevel: Types.LogLevel.None, + defaultTracking: { + formInteractions: false, + pageViews: false, + sessions: false, + }, + }); + } + track(event: string, options: Record) { + track(event, options, { + os_name: this.os, + platform: this.browser, + device_model: this.arch, + }); + } +} + +export default Metrics; diff --git a/packages/extension/src/libs/metrics/index.ts b/packages/extension/src/libs/metrics/index.ts index fda8c914b..560a15704 100644 --- a/packages/extension/src/libs/metrics/index.ts +++ b/packages/extension/src/libs/metrics/index.ts @@ -1,37 +1,31 @@ import { ProviderName } from "@/types/provider"; import { NetworkNames } from "@enkryptcom/types"; -import { debounce } from "lodash"; +import Metrics from "./amplitude"; +import { SwapEventType } from "./types"; -const networkRequestsCounter: Record> = {}; +const metrics = new Metrics(); -const send = () => { - const cloneCounter = { ...networkRequestsCounter }; - Object.keys(networkRequestsCounter).forEach( - (provider) => (networkRequestsCounter[provider] = {}) - ); - fetch("https://partners.mewapi.io/enkrypt-metrics", { - method: "POST", - headers: { - Accept: "application/json", - "Content-Type": "application/json", - }, - body: JSON.stringify({ - method: "enkrypt_requests", - params: [cloneCounter], - }), +const trackNetworkSelected = ( + provider: ProviderName, + network: NetworkNames +) => { + metrics.track("network_selected", { + network, + provider, }); }; -const sendMetrics = debounce(send, 2000); - -export const addNetworkSelectMetrics = ( - provider: ProviderName, - network: NetworkNames, - count: number +const trackSwapEvents = ( + event: SwapEventType, + options: { + network: NetworkNames; + fromToken?: string; + toToken?: string; + swapProvider?: string; + error?: string; + } ) => { - if (!networkRequestsCounter[provider]) networkRequestsCounter[provider] = {}; - if (!networkRequestsCounter[provider][network]) - networkRequestsCounter[provider][network] = 0; - networkRequestsCounter[provider][network] += count; - sendMetrics(); + metrics.track("swap_event", options); }; + +export { trackNetworkSelected, trackSwapEvents }; diff --git a/packages/extension/src/libs/metrics/types.ts b/packages/extension/src/libs/metrics/types.ts new file mode 100644 index 000000000..88e2dcd73 --- /dev/null +++ b/packages/extension/src/libs/metrics/types.ts @@ -0,0 +1,7 @@ +export enum SwapEventType { + SwapOpen = "swap_open", + SwapRate = "swap_rate", + SwapVerify = "swap_verify", + SwapComplete = "swap_complete", + swapFailed = "swap_failed", +} diff --git a/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts b/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts index 8efacaadd..191a07683 100644 --- a/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts +++ b/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts @@ -7,7 +7,7 @@ import BTCNetworks from "../networks"; import DomainState from "@/libs/domain-state"; import BitcoinProvider from ".."; import { BitcoinNetworks } from "../types"; -import { addNetworkSelectMetrics } from "@/libs/metrics"; +import { trackNetworkSelected } from "@/libs/metrics"; const method: MiddlewareFunction = function ( this: BitcoinProvider, payload: ProviderRPCRequest, @@ -28,7 +28,7 @@ const method: MiddlewareFunction = function ( const allNetworks = Object.values(BTCNetworks); const validNetwork = allNetworks.find((net) => net.name === internalName); if (validNetwork) { - addNetworkSelectMetrics(validNetwork.provider, validNetwork.name, 1); + trackNetworkSelected(validNetwork.provider, validNetwork.name); sendToBackgroundFromBackground({ message: JSON.stringify({ method: InternalMethods.changeNetwork, diff --git a/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts b/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts index 1b3d4a87a..28b1f5cb1 100644 --- a/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts +++ b/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts @@ -18,7 +18,7 @@ import { getAllNetworks } from "@/libs/utils/networks"; import CustomNetworksState from "@/libs/custom-networks-state"; import NetworksState from "@/libs/networks-state"; import { EvmNetwork } from "../types/evm-network"; -import { addNetworkSelectMetrics } from "@/libs/metrics"; +import { trackNetworkSelected } from "@/libs/metrics"; interface AddEthereumChainPayload { chainId: string; @@ -127,10 +127,9 @@ const setExistingCustomNetwork = async ( ) as EvmNetwork | undefined; } if (existingNetwork) { - addNetworkSelectMetrics( + trackNetworkSelected( ProviderName.ethereum, - existingNetwork.name as NetworkNames, - 1 + existingNetwork.name as NetworkNames ); return sendToBackgroundFromBackground({ message: JSON.stringify({ diff --git a/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts b/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts index eedc5f1e0..3b5680758 100644 --- a/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts +++ b/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts @@ -9,7 +9,7 @@ import DomainState from "@/libs/domain-state"; import { getAllNetworks } from "@/libs/utils/networks"; import { EvmNetwork } from "../types/evm-network"; import NetworksState from "@/libs/networks-state"; -import { addNetworkSelectMetrics } from "@/libs/metrics"; +import { trackNetworkSelected } from "@/libs/metrics"; const method: MiddlewareFunction = function ( this: EthereumProvider, @@ -32,7 +32,7 @@ const method: MiddlewareFunction = function ( (net) => (net as EvmNetwork).chainID === payload.params![0].chainId ) as EvmNetwork | undefined; if (validNetwork) { - addNetworkSelectMetrics(validNetwork.provider, validNetwork.name, 1); + trackNetworkSelected(validNetwork.provider, validNetwork.name); sendToBackgroundFromBackground({ message: JSON.stringify({ method: InternalMethods.changeNetwork, diff --git a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue index 8a1a5f54c..04c783841 100644 --- a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue +++ b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue @@ -151,7 +151,7 @@ import { u8aToHex } from "@polkadot/util"; import ActivityState from "@/libs/activity-state"; import Polkadot from "@/providers/polkadot/networks/polkadot"; import { getAllNetworks } from "@/libs/utils/networks"; -import { addNetworkSelectMetrics } from "@/libs/metrics"; +import { trackNetworkSelected } from "@/libs/metrics"; const windowPromise = WindowPromiseHandler(2); @@ -193,7 +193,7 @@ onBeforeMount(async () => { if (targetNetwork) { network.value = targetNetwork; - addNetworkSelectMetrics(targetNetwork.provider, targetNetwork.name, 1); + trackNetworkSelected(targetNetwork.provider, targetNetwork.name); } else { networkIsUnknown.value = true; } diff --git a/packages/extension/src/ui/action/App.vue b/packages/extension/src/ui/action/App.vue index 50480474d..a99fa1517 100644 --- a/packages/extension/src/ui/action/App.vue +++ b/packages/extension/src/ui/action/App.vue @@ -135,7 +135,7 @@ import { EnkryptProviderEventMethods, ProviderName } from "@/types/provider"; import { onClickOutside } from "@vueuse/core"; import RateState from "@/libs/rate-state"; import SwapLookingAnimation from "@action/icons/swap/swap-looking-animation.vue"; -import { addNetworkSelectMetrics } from "@/libs/metrics"; +import { trackNetworkSelected } from "@/libs/metrics"; import { getLatestEnkryptVersion } from "@action/utils/browser"; import { gt as semverGT } from "semver"; @@ -266,7 +266,7 @@ const updateGradient = (newGradient: string) => { ).style.background = `radial-gradient(137.35% 97% at 100% 50%, rgba(250, 250, 250, 0.94) 0%, rgba(250, 250, 250, 0.96) 28.91%, rgba(250, 250, 250, 0.98) 100%), linear-gradient(180deg, ${newGradient} 80%, #684CFF 100%)`; }; const setNetwork = async (network: BaseNetwork) => { - addNetworkSelectMetrics(network.provider, network.name, 1); + trackNetworkSelected(network.provider, network.name); const activeAccounts = await getAccountsByNetworkName(network.name); const inactiveAccounts = await kr.getAccounts( diff --git a/packages/extension/src/ui/action/utils/browser.ts b/packages/extension/src/ui/action/utils/browser.ts index cf3decec3..6b25478ff 100644 --- a/packages/extension/src/ui/action/utils/browser.ts +++ b/packages/extension/src/ui/action/utils/browser.ts @@ -9,6 +9,15 @@ export const BROWSER_NAMES = { safari: "safari", }; +export const detectOS = (): Promise<{ os: string; arch: string }> => { + return Browser.runtime.getPlatformInfo().then((info) => { + return { + os: info.os, + arch: info.arch, + }; + }); +}; + export const detectBrowser = (): string => { const { userAgent } = navigator; diff --git a/packages/extension/src/ui/action/views/swap/index.vue b/packages/extension/src/ui/action/views/swap/index.vue index 1b4842f45..0ed76f703 100644 --- a/packages/extension/src/ui/action/views/swap/index.vue +++ b/packages/extension/src/ui/action/views/swap/index.vue @@ -168,6 +168,8 @@ import PublicKeyRing from "@/libs/keyring/public-keyring"; import MarketData from "@/libs/market-data"; import { ProviderResponseWithStatus } from "./types"; import { GenericNameResolver, CoinType } from "@/libs/name-resolver"; +import { trackSwapEvents } from "@/libs/metrics"; +import { SwapEventType } from "@/libs/metrics/types"; type BN = ReturnType; @@ -245,6 +247,7 @@ const swap = new EnkryptSwap({ }); const keyring = new PublicKeyRing(); onMounted(async () => { + trackSwapEvents(SwapEventType.SwapOpen, { network: props.network.name }); if ( !isSupportedNetwork(props.network.name as unknown as SupportedNetworkName) ) { @@ -493,6 +496,11 @@ const updateQuote = () => { errors.value.noProviders = false; const token = new SwapToken(fromToken.value!); const fromRawAmount = token.toRaw(fromAmount.value!); + trackSwapEvents(SwapEventType.SwapRate, { + network: props.network.name, + fromToken: fromToken.value!.name, + toToken: toToken.value!.name, + }); swap .getQuotes({ amount: fromRawAmount, diff --git a/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue b/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue index fb19cf5fe..76b12a563 100644 --- a/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue +++ b/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue @@ -151,6 +151,8 @@ import { executeSwap } from "../../libs/send-transactions"; import { fromBase, toBase } from "@enkryptcom/utils"; import ActivityState from "@/libs/activity-state"; import { getBitcoinGasVals } from "../../libs/bitcoin-gasvals"; +import { trackSwapEvents } from "@/libs/metrics"; +import { SwapEventType } from "@/libs/metrics/types"; const router = useRouter(); const route = useRoute(); @@ -301,6 +303,11 @@ onMounted(async () => { pickedTrade.value = tempBestTrade; await setTransactionFees(); isLooking.value = false; + trackSwapEvents(SwapEventType.SwapVerify, { + network: network.value.name, + fromToken: swapData.fromToken.name, + toToken: swapData.toToken.name, + }); }); const back = () => { @@ -382,11 +389,24 @@ const sendAction = async () => { address: swapActivity.from, network: network.value!.name, }); + trackSwapEvents(SwapEventType.SwapComplete, { + network: network.value!.name, + fromToken: swapData.fromToken.name, + toToken: swapData.toToken.name, + swapProvider: pickedTrade.value.provider, + }); }) .catch((err) => { console.error(err); isTXSendError.value = true; TXSendErrorMessage.value = err.error ? err.error.message : err.message; + trackSwapEvents(SwapEventType.swapFailed, { + network: network.value!.name, + fromToken: swapData.fromToken.name, + toToken: swapData.toToken.name, + swapProvider: pickedTrade.value.provider, + error: TXSendErrorMessage.value, + }); }); isTXSendLoading.value = false; } else { diff --git a/yarn.lock b/yarn.lock index 6a220d6e6..d96c334f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30,6 +30,79 @@ __metadata: languageName: node linkType: hard +"@amplitude/analytics-browser@npm:^2.5.3": + version: 2.5.3 + resolution: "@amplitude/analytics-browser@npm:2.5.3" + dependencies: + "@amplitude/analytics-client-common": ^2.1.1 + "@amplitude/analytics-core": ^2.2.2 + "@amplitude/analytics-types": ^2.5.0 + "@amplitude/plugin-page-view-tracking-browser": ^2.2.3 + "@amplitude/plugin-web-attribution-browser": ^2.1.4 + tslib: ^2.4.1 + checksum: 9d67fa579bbe06d7b1f4c5df152f9dd669716c4ef79f97f3ee9ed5c74b27b3092752434eca0beb5b557473d8cbfcc1c93cbf336e87039ae31197df8f73f1bbf4 + languageName: node + linkType: hard + +"@amplitude/analytics-client-common@npm:^2.1.1": + version: 2.1.1 + resolution: "@amplitude/analytics-client-common@npm:2.1.1" + dependencies: + "@amplitude/analytics-connector": ^1.4.8 + "@amplitude/analytics-core": ^2.2.2 + "@amplitude/analytics-types": ^2.5.0 + tslib: ^2.4.1 + checksum: 0c3f051fd2b9879846e66fa54ac357a4309fe20eebf44f1dd2c662913c3a75465455c374049e779a94f364e2afa3baa846dc67c04428440a300a2904e98963f1 + languageName: node + linkType: hard + +"@amplitude/analytics-connector@npm:^1.4.8": + version: 1.5.0 + resolution: "@amplitude/analytics-connector@npm:1.5.0" + checksum: 157115b642e8b254a88184fe3294150321fdd482388f262bdc08f9ab0c68b01b5f10d2e35a924edb8a8380f0944f8b1363133c2a3f42b59e33da319bfe21c8fa + languageName: node + linkType: hard + +"@amplitude/analytics-core@npm:^2.2.2": + version: 2.2.2 + resolution: "@amplitude/analytics-core@npm:2.2.2" + dependencies: + "@amplitude/analytics-types": ^2.5.0 + tslib: ^2.4.1 + checksum: 762a2e6a0cc5790320947f901dda2cefa6d457410f3a6e31b5af764fb4fa17ad3f7e78cdb095b4ad6dacc30a990a9382e9bea671f96fe5823a244e1006ddeb8b + languageName: node + linkType: hard + +"@amplitude/analytics-types@npm:^2.5.0": + version: 2.5.0 + resolution: "@amplitude/analytics-types@npm:2.5.0" + checksum: c2f0d4514d4d1772794dd6209df2311368076aaa2555b03763a9fcc21d4d861996fd1c13cd1c29a8d9f801470b20e56b2d47c3c4f35e76a3f8ab9ce2de3efcd9 + languageName: node + linkType: hard + +"@amplitude/plugin-page-view-tracking-browser@npm:^2.2.3": + version: 2.2.3 + resolution: "@amplitude/plugin-page-view-tracking-browser@npm:2.2.3" + dependencies: + "@amplitude/analytics-client-common": ^2.1.1 + "@amplitude/analytics-types": ^2.5.0 + tslib: ^2.4.1 + checksum: f9a39969a9c17f8f827cc257f860d6d2360c7bdb48ac71052c838bde289eb07921a665625f98037669674ae56f6c593038fc8f593f3ed802d2a8b9a6542e14dc + languageName: node + linkType: hard + +"@amplitude/plugin-web-attribution-browser@npm:^2.1.4": + version: 2.1.4 + resolution: "@amplitude/plugin-web-attribution-browser@npm:2.1.4" + dependencies: + "@amplitude/analytics-client-common": ^2.1.1 + "@amplitude/analytics-core": ^2.2.2 + "@amplitude/analytics-types": ^2.5.0 + tslib: ^2.4.1 + checksum: 55003bb18934e57fae70a5c66b680e1ffb501b245014a6bd7a80b1c48d493d913b63ec2f902053e01422b601ce3462346e22d2de36dbba8d967616dc495724b2 + languageName: node + linkType: hard + "@ampproject/remapping@npm:^2.1.0": version: 2.1.2 resolution: "@ampproject/remapping@npm:2.1.2" @@ -2363,6 +2436,7 @@ __metadata: version: 0.0.0-use.local resolution: "@enkryptcom/extension@workspace:packages/extension" dependencies: + "@amplitude/analytics-browser": ^2.5.3 "@babel/plugin-transform-class-static-block": ^7.23.4 "@babel/runtime": ^7.23.8 "@enkryptcom/extension-bridge": "workspace:^" @@ -23273,7 +23347,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2": +"tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.4.1, tslib@npm:^2.6.1, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad From 6bbdb3869c374e91e4145abfe2d2732d93962518 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:17:45 -0700 Subject: [PATCH 18/29] devop: more updates --- packages/extension-bridge/package.json | 4 +- packages/extension/package.json | 6 +- yarn.lock | 101 ++++++++++++++++--------- 3 files changed, 70 insertions(+), 41 deletions(-) diff --git a/packages/extension-bridge/package.json b/packages/extension-bridge/package.json index 234b5cde8..742e6bc47 100644 --- a/packages/extension-bridge/package.json +++ b/packages/extension-bridge/package.json @@ -33,7 +33,7 @@ "dist" ], "dependencies": { - "nanoevents": "^7.0.1", + "nanoevents": "^9.0.0", "serialize-error": "11.0.3", "tiny-uid": "^1.1.2", "webextension-polyfill": "^0.10.0" @@ -56,7 +56,7 @@ "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "tsup": "^8.0.2", - "type-fest": "^2.19.0", + "type-fest": "^4.13.1", "typescript": "^4.9.5", "typescript-eslint": "0.0.1-alpha.0" } diff --git a/packages/extension/package.json b/packages/extension/package.json index 709bfb3eb..e9e5c1732 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -39,7 +39,7 @@ "@types/less": "^3.0.6", "@types/lodash": "^4.17.0", "@types/utf-8-validate": "^5.0.2", - "@vueuse/core": "^9.13.0", + "@vueuse/core": "^10.9.0", "add": "^2.0.6", "bignumber.js": "^9.1.2", "bip39": "^3.1.0", @@ -55,7 +55,7 @@ "lodash": "^4.17.21", "memoize-one": "^6.0.0", "moment": "^2.30.1", - "nanoevents": "^7.0.1", + "nanoevents": "^9.0.0", "pinia": "^2.1.7", "qrcode.vue": "^3.4.1", "switch-ts": "^1.1.1", @@ -108,7 +108,7 @@ "eslint-plugin-vue": "^8.7.1", "https-browserify": "^1.0.0", "less": "^4.2.0", - "less-loader": "^11.1.4", + "less-loader": "^12.2.0", "mocha": "^10.3.0", "path-browserify": "^1.0.1", "prettier": "^2.8.8", diff --git a/yarn.lock b/yarn.lock index edc4d8419..4fe6d8bea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2400,14 +2400,14 @@ __metadata: eslint-import-resolver-alias: ^1.1.2 eslint-plugin-import: ^2.29.1 eslint-plugin-module-resolver: ^1.5.0 - nanoevents: ^7.0.1 + nanoevents: ^9.0.0 prettier: ^2.8.8 serialize-error: 11.0.3 tiny-uid: ^1.1.2 ts-node: ^10.9.2 tsconfig-paths: ^4.2.0 tsup: ^8.0.2 - type-fest: ^2.19.0 + type-fest: ^4.13.1 typescript: ^4.9.5 typescript-eslint: 0.0.1-alpha.0 webextension-polyfill: ^0.10.0 @@ -2465,7 +2465,7 @@ __metadata: "@vue/cli-plugin-typescript": ~5.0.8 "@vue/cli-service": ~5.0.8 "@vue/eslint-config-typescript": ^11.0.3 - "@vueuse/core": ^9.13.0 + "@vueuse/core": ^10.9.0 add: ^2.0.6 bignumber.js: ^9.1.2 bip39: ^3.1.0 @@ -2487,12 +2487,12 @@ __metadata: eventemitter3: ^5.0.1 https-browserify: ^1.0.0 less: ^4.2.0 - less-loader: ^11.1.4 + less-loader: ^12.2.0 lodash: ^4.17.21 memoize-one: ^6.0.0 mocha: ^10.3.0 moment: ^2.30.1 - nanoevents: ^7.0.1 + nanoevents: ^9.0.0 path-browserify: ^1.0.1 pinia: ^2.1.7 prettier: ^2.8.8 @@ -8444,10 +8444,10 @@ __metadata: languageName: node linkType: hard -"@types/web-bluetooth@npm:^0.0.16": - version: 0.0.16 - resolution: "@types/web-bluetooth@npm:0.0.16" - checksum: f68a630d062202a25c46d48686ebae1cf429dc70b4578fcf13b8357b2db63e4aedfb6f6d752bd388366be46ebd19c1c9de45f8a15c2631bb79e904fdfc454f94 +"@types/web-bluetooth@npm:^0.0.20": + version: 0.0.20 + resolution: "@types/web-bluetooth@npm:0.0.20" + checksum: d6d61da683e876e8995ac57e2e5229d829d0f536deb3568d4430898fc626ebcb7e065fe7f655ac6a5205702f7f7049e6335abe689cd5291241eef6e39e8a4371 languageName: node linkType: hard @@ -9233,31 +9233,31 @@ __metadata: languageName: node linkType: hard -"@vueuse/core@npm:^9.13.0": - version: 9.13.0 - resolution: "@vueuse/core@npm:9.13.0" +"@vueuse/core@npm:^10.9.0": + version: 10.9.0 + resolution: "@vueuse/core@npm:10.9.0" dependencies: - "@types/web-bluetooth": ^0.0.16 - "@vueuse/metadata": 9.13.0 - "@vueuse/shared": 9.13.0 - vue-demi: "*" - checksum: 2b19d8ec4305f6c65650813c0fa9c15af6b322fc253ad656eb1c4bc8d7617a2ddd46a46d7ea359c4cdc5a5724aa5fc152fa7a3816ed6ebeaec4f7e58defb7153 + "@types/web-bluetooth": ^0.0.20 + "@vueuse/metadata": 10.9.0 + "@vueuse/shared": 10.9.0 + vue-demi: ">=0.14.7" + checksum: 6d26660e4e88e2e6b34f84cb832d919d296a198e6c7f8ef93fb5d0442b53ba3872c617c1144190328992b44dde33a8e249b3182ac35128d460a457488a6df940 languageName: node linkType: hard -"@vueuse/metadata@npm:9.13.0": - version: 9.13.0 - resolution: "@vueuse/metadata@npm:9.13.0" - checksum: 91e137bf2fb1406587b523edae26b58b315d3a59797c9f2ed5dde9cb707026aa740b86da5955ea7f9662a93ce92249d0b3af763c65449b4a843bbd0725eb67f6 +"@vueuse/metadata@npm:10.9.0": + version: 10.9.0 + resolution: "@vueuse/metadata@npm:10.9.0" + checksum: e381d3134e1a5965e157503ddb1187f671316386ab0c779d3fc1b9c91d6658086c417414f4642554382ac43fd800d7565f5f25824b678433f937a917e931387e languageName: node linkType: hard -"@vueuse/shared@npm:9.13.0": - version: 9.13.0 - resolution: "@vueuse/shared@npm:9.13.0" +"@vueuse/shared@npm:10.9.0": + version: 10.9.0 + resolution: "@vueuse/shared@npm:10.9.0" dependencies: - vue-demi: "*" - checksum: e53e7312bdd2030b7970afcf4d3dc3f9a47f7721a92ccb51c364d23246233cb54758f7ddacbdb9ac63d1e86ec82e97d06cb53b05a4b8d43be877d16ab61dd9bb + vue-demi: ">=0.14.7" + checksum: e6fc1e04aa63ead37694b5543cacd8c1b55ade5ce7416699302a4db5e5c3c083b7ecda9156445e07a477eb86664740d368a03584b55859dbe0cf0abbec3e21ab languageName: node linkType: hard @@ -17432,13 +17432,19 @@ __metadata: languageName: node linkType: hard -"less-loader@npm:^11.1.4": - version: 11.1.4 - resolution: "less-loader@npm:11.1.4" +"less-loader@npm:^12.2.0": + version: 12.2.0 + resolution: "less-loader@npm:12.2.0" peerDependencies: + "@rspack/core": 0.x || 1.x less: ^3.5.0 || ^4.0.0 webpack: ^5.0.0 - checksum: 29b2055a05283e16e99d0333802c185b6e1a5408212336e25b07f53d56acd8683dcd643b3e3c0c32abba0d9d5fda5ccf73cb8da00ae634ec6b929307861955c8 + peerDependenciesMeta: + "@rspack/core": + optional: true + webpack: + optional: true + checksum: df08dba1d733d6b4202ce185e8fe4897c407a20aeba01dc214f514352ab5aadcd53fc76366b9e473f9ec920bb612d839b39c686303d2ce2155edf61a7be69b7b languageName: node linkType: hard @@ -18686,10 +18692,10 @@ __metadata: languageName: node linkType: hard -"nanoevents@npm:^7.0.1": - version: 7.0.1 - resolution: "nanoevents@npm:7.0.1" - checksum: 5c0704cfeb7af9052a70b1ce53e556e3743cefbbd09758121e0062e4fac2cf70ebea1e6b1414f18a81975ee1bdf4af05e13c82e1b015975493ef8ef34737787d +"nanoevents@npm:^9.0.0": + version: 9.0.0 + resolution: "nanoevents@npm:9.0.0" + checksum: d5e062bc67eac903991973ca923a0c9c6a3aa224583647540a0fdbe99d569f3c51f8fc6f281851e1721b24b3d0b8ea47c12215a50a0e1a3d0df1e64a41406974 languageName: node linkType: hard @@ -23915,13 +23921,20 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^2.12.2, type-fest@npm:^2.19.0": +"type-fest@npm:^2.12.2": version: 2.19.0 resolution: "type-fest@npm:2.19.0" checksum: a4ef07ece297c9fba78fc1bd6d85dff4472fe043ede98bd4710d2615d15776902b595abf62bd78339ed6278f021235fb28a96361f8be86ed754f778973a0d278 languageName: node linkType: hard +"type-fest@npm:^4.13.1": + version: 4.13.1 + resolution: "type-fest@npm:4.13.1" + checksum: 53959d57d64910a493ec4afb2e98149b6deac73ede4774af15335e7016527524646acd45af1738a0fe7b654c3f655ca6bfe88cc9adc9e8f859548356c6e5a0ec + languageName: node + linkType: hard + "type-is@npm:~1.6.18": version: 1.6.18 resolution: "type-is@npm:1.6.18" @@ -24551,7 +24564,7 @@ __metadata: languageName: node linkType: hard -"vue-demi@npm:*, vue-demi@npm:>=0.14.5": +"vue-demi@npm:>=0.14.5": version: 0.14.5 resolution: "vue-demi@npm:0.14.5" peerDependencies: @@ -24567,6 +24580,22 @@ __metadata: languageName: node linkType: hard +"vue-demi@npm:>=0.14.7": + version: 0.14.7 + resolution: "vue-demi@npm:0.14.7" + peerDependencies: + "@vue/composition-api": ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + "@vue/composition-api": + optional: true + bin: + vue-demi-fix: bin/vue-demi-fix.js + vue-demi-switch: bin/vue-demi-switch.js + checksum: 6819b1cd52355047ae899d7cdfa32f1b00e806e6c67455601d33ab0226f3172c48a5f6c3d547cb7fa32925b3b7100448bf18f98ea4d5f8bc4b9d28ae005a805d + languageName: node + linkType: hard + "vue-demi@npm:^0.13.11": version: 0.13.11 resolution: "vue-demi@npm:0.13.11" From e67c53a8d430f6b8c06aefbfacb15c61ee7fba0b Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:55:48 -0700 Subject: [PATCH 19/29] devop: amplitude events --- .../extension/src/libs/background/index.ts | 21 +++++- .../extension/src/libs/metrics/amplitude.ts | 62 ++++++++++++------ packages/extension/src/libs/metrics/index.ts | 65 ++++++++++++++++--- packages/extension/src/libs/metrics/types.ts | 24 +++++++ .../src/libs/settings-state/index.ts | 15 +++++ .../src/libs/settings-state/types.ts | 6 ++ .../bitcoin/methods/btc_switchNetwork.ts | 6 +- .../bitcoin/ui/send-transaction/index.vue | 3 + .../verify-transaction/index.vue | 10 +++ .../methods/wallet_addEthereumChain.ts | 9 +-- .../methods/wallet_switchEthereumChain.ts | 6 +- .../ethereum/tests/ethereum.events.mocha.ts | 4 ++ .../ethereum/tests/ethereum.requests.mocha.ts | 4 ++ .../ethereum/ui/send-transaction/index.vue | 3 + .../verify-transaction/index.vue | 14 ++++ .../polkadot/tests/polkadot.requests.mocha.ts | 4 ++ .../polkadot/ui/dot-verify-transaction.vue | 6 +- .../polkadot/ui/send-transaction/index.vue | 3 + .../verify-transaction/index.vue | 18 ++++- packages/extension/src/ui/action/App.vue | 9 ++- .../ui/action/views/network-dapps/index.vue | 3 + .../ui/action/views/network-nfts/index.vue | 3 + 22 files changed, 255 insertions(+), 43 deletions(-) diff --git a/packages/extension/src/libs/background/index.ts b/packages/extension/src/libs/background/index.ts index 3422f5050..e1705fe58 100644 --- a/packages/extension/src/libs/background/index.ts +++ b/packages/extension/src/libs/background/index.ts @@ -4,6 +4,7 @@ import { Message, } from "@/types/messenger"; import { RPCRequestType } from "@enkryptcom/types"; +import { v4 as randomUUID } from "uuid"; import { getCustomError } from "../error"; import KeyRingBase from "../keyring/keyring"; import { sendToWindow } from "@/libs/messenger/extension"; @@ -35,11 +36,13 @@ class BackgroundHandler { #providers: ProviderType; #persistentEvents: PersistentEvents; #domainState: DomainState; + #settingsState: SettingsState; constructor() { this.#keyring = new KeyRingBase(); this.#persistentEvents = new PersistentEvents(); this.#domainState = new DomainState(); + this.#settingsState = new SettingsState(); this.#tabProviders = { [ProviderName.ethereum]: {}, [ProviderName.polkadot]: {}, @@ -49,6 +52,21 @@ class BackgroundHandler { } async init(): Promise { await handlePersistentEvents.bind(this)(); + const enkryptSettings = await this.#settingsState.getEnkryptSettings(); + if (!enkryptSettings.installedTimestamp) { + await this.#settingsState.setEnkryptSettings({ + ...enkryptSettings, + ...{ + installedTimestamp: new Date().getTime(), + randomUserID: randomUUID(), + }, + }); + } else { + await this.#settingsState.setEnkryptSettings({ + ...enkryptSettings, + randomUserID: randomUUID(), + }); + } } async externalHandler( msg: Message, @@ -67,8 +85,7 @@ class BackgroundHandler { result: JSON.stringify(true), }; } else if (method === InternalMethods.getSettings) { - const settingsState = new SettingsState(); - return settingsState.getAllSettings().then((settings) => { + return this.#settingsState.getAllSettings().then((settings) => { return { result: JSON.stringify(settings), }; diff --git a/packages/extension/src/libs/metrics/amplitude.ts b/packages/extension/src/libs/metrics/amplitude.ts index 32390e68f..339421230 100644 --- a/packages/extension/src/libs/metrics/amplitude.ts +++ b/packages/extension/src/libs/metrics/amplitude.ts @@ -1,10 +1,21 @@ import { init, track, Types } from "@amplitude/analytics-browser"; import { detectBrowser, detectOS } from "@action/utils/browser"; +import SettingsState from "../settings-state"; + +const getUserAge = (installedDate: number) => { + const date1 = new Date(installedDate); + const date2 = new Date(); + const Difference_In_Time = date2.getTime() - date1.getTime(); + return Math.round(Difference_In_Time / (1000 * 3600 * 24)); +}; class Metrics { browser = ""; os = ""; arch = ""; + installedTime = 0; + userId = ""; + constructor() { this.init(); this.browser = detectBrowser(); @@ -14,30 +25,39 @@ class Metrics { }); } private init() { - init("apikey", { - instanceName: "enkrypt-extension-prod", - optOut: false, - serverUrl: "https://analytics-web.mewwallet.dev/record", - appVersion: process.env.PACKAGE_VERSION as string, - trackingOptions: { - ipAddress: false, - }, - useBatch: true, - identityStorage: "none", - logLevel: Types.LogLevel.None, - defaultTracking: { - formInteractions: false, - pageViews: false, - sessions: false, - }, + const settingsState = new SettingsState(); + settingsState.getEnkryptSettings().then((set) => { + this.installedTime = set.installedTimestamp; + init("apikey", { + instanceName: "enkrypt-extension-dev", + optOut: false, + serverUrl: "https://analytics-enkrypt-dev.mewwallet.dev/record", + appVersion: process.env.PACKAGE_VERSION as string, + trackingOptions: { + ipAddress: false, + }, + userId: set.randomUserID, + useBatch: true, + identityStorage: "none", + logLevel: Types.LogLevel.None, + defaultTracking: { + formInteractions: false, + pageViews: false, + sessions: false, + }, + }); }); } track(event: string, options: Record) { - track(event, options, { - os_name: this.os, - platform: this.browser, - device_model: this.arch, - }); + track( + event, + { ...options, userAge: getUserAge(this.installedTime) }, + { + os_name: this.os, + platform: this.browser, + device_model: this.arch, + } + ); } } diff --git a/packages/extension/src/libs/metrics/index.ts b/packages/extension/src/libs/metrics/index.ts index 560a15704..eb507d69a 100644 --- a/packages/extension/src/libs/metrics/index.ts +++ b/packages/extension/src/libs/metrics/index.ts @@ -1,18 +1,22 @@ import { ProviderName } from "@/types/provider"; import { NetworkNames } from "@enkryptcom/types"; import Metrics from "./amplitude"; -import { SwapEventType } from "./types"; +import { + BuyEventType, + DAppsEventType, + NFTEventType, + NetworkChangeEvents, + SendEventType, + SwapEventType, +} from "./types"; const metrics = new Metrics(); const trackNetworkSelected = ( - provider: ProviderName, - network: NetworkNames + event: NetworkChangeEvents, + options: { provider: ProviderName; network: NetworkNames } ) => { - metrics.track("network_selected", { - network, - provider, - }); + metrics.track("network", { event, ...options }); }; const trackSwapEvents = ( @@ -25,7 +29,50 @@ const trackSwapEvents = ( error?: string; } ) => { - metrics.track("swap_event", options); + metrics.track("swap", { event, ...options }); }; -export { trackNetworkSelected, trackSwapEvents }; +const trackBuyEvents = ( + event: BuyEventType, + options: { + network: NetworkNames; + } +) => { + metrics.track("buy", { event, ...options }); +}; + +const trackSendEvents = ( + event: SendEventType, + options: { + network: NetworkNames; + error?: string; + } +) => { + metrics.track("send", { event, ...options }); +}; + +const trackNFTEvents = ( + event: NFTEventType, + options: { + network: NetworkNames; + } +) => { + metrics.track("nft", { event, ...options }); +}; + +const trackDAppsEvents = ( + event: DAppsEventType, + options: { + network: NetworkNames; + } +) => { + metrics.track("dapps", { event, ...options }); +}; +export { + trackNetworkSelected, + trackSwapEvents, + trackBuyEvents, + trackSendEvents, + trackNFTEvents, + trackDAppsEvents, +}; diff --git a/packages/extension/src/libs/metrics/types.ts b/packages/extension/src/libs/metrics/types.ts index 88e2dcd73..37cc6e129 100644 --- a/packages/extension/src/libs/metrics/types.ts +++ b/packages/extension/src/libs/metrics/types.ts @@ -5,3 +5,27 @@ export enum SwapEventType { SwapComplete = "swap_complete", swapFailed = "swap_failed", } + +export enum NetworkChangeEvents { + NetworkChangePopup = "network_change_popup", + NetworkChangeAPI = "network_change_api", +} + +export enum BuyEventType { + BuyClick = "buy_click", +} + +export enum SendEventType { + SendOpen = "send_open", + SendVerify = "send_verify", + SendComplete = "send_complete", + SendFailed = "send_failed", +} + +export enum NFTEventType { + NFTOpen = "nft_open", +} + +export enum DAppsEventType { + DAppsOpen = "dapps_open", +} diff --git a/packages/extension/src/libs/settings-state/index.ts b/packages/extension/src/libs/settings-state/index.ts index 732eefc9c..025b13f81 100644 --- a/packages/extension/src/libs/settings-state/index.ts +++ b/packages/extension/src/libs/settings-state/index.ts @@ -7,8 +7,10 @@ import { SubstrateSettingsType, SettingsType, BtcSettingsType, + EnkryptSettingsType, } from "./types"; import { merge } from "lodash"; + class SettingsState { #storage: BrowserStorage; constructor() { @@ -42,6 +44,14 @@ class SettingsState { }; return merge(settings, state); } + async getEnkryptSettings(): Promise { + const state = await this.getStateByKey(StorageKeys.enkryptState); + const settings: EnkryptSettingsType = { + installedTimestamp: 0, + randomUserID: "", + }; + return merge(settings, state); + } async deleteStateByKey(key: string): Promise { await this.#storage.remove(key); } @@ -51,6 +61,9 @@ class SettingsState { async setEVMSettings(state: EVMSettingsType): Promise { await this.#storage.set(StorageKeys.evmState, state); } + async setEnkryptSettings(state: EnkryptSettingsType): Promise { + await this.#storage.set(StorageKeys.enkryptState, state); + } async setSubstrateSettings(state: SubstrateSettingsType): Promise { await this.#storage.set(StorageKeys.substrateState, state); } @@ -61,10 +74,12 @@ class SettingsState { const evmstate = await this.getEVMSettings(); const substratestate = await this.getSubstrateSettings(); const btcstate = await this.getBtcSettings(); + const enkryptState = await this.getEnkryptSettings(); return { evm: evmstate, substrate: substratestate, btc: btcstate, + enkrypt: enkryptState, manifestVersion: Browser.runtime.getManifest().manifest_version, }; } diff --git a/packages/extension/src/libs/settings-state/types.ts b/packages/extension/src/libs/settings-state/types.ts index 3d0c0c887..79f2bb3f8 100644 --- a/packages/extension/src/libs/settings-state/types.ts +++ b/packages/extension/src/libs/settings-state/types.ts @@ -2,6 +2,7 @@ export enum StorageKeys { evmState = "evm-settings-state", substrateState = "substrate-settings-state", btcState = "btc-settings-state", + enkryptState = "enkrypt-settings-state", } export interface EVMInjectSettings { disabled: boolean; @@ -16,9 +17,14 @@ export interface SubstrateSettingsType { export interface BtcSettingsType { injectUnisat: boolean; } +export interface EnkryptSettingsType { + installedTimestamp: number; + randomUserID: string; +} export interface SettingsType { evm: EVMSettingsType; substrate: SubstrateSettingsType; btc: BtcSettingsType; + enkrypt: EnkryptSettingsType; manifestVersion: number; } diff --git a/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts b/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts index 191a07683..a272e19d0 100644 --- a/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts +++ b/packages/extension/src/providers/bitcoin/methods/btc_switchNetwork.ts @@ -8,6 +8,7 @@ import DomainState from "@/libs/domain-state"; import BitcoinProvider from ".."; import { BitcoinNetworks } from "../types"; import { trackNetworkSelected } from "@/libs/metrics"; +import { NetworkChangeEvents } from "@/libs/metrics/types"; const method: MiddlewareFunction = function ( this: BitcoinProvider, payload: ProviderRPCRequest, @@ -28,7 +29,10 @@ const method: MiddlewareFunction = function ( const allNetworks = Object.values(BTCNetworks); const validNetwork = allNetworks.find((net) => net.name === internalName); if (validNetwork) { - trackNetworkSelected(validNetwork.provider, validNetwork.name); + trackNetworkSelected(NetworkChangeEvents.NetworkChangeAPI, { + provider: validNetwork.provider, + network: validNetwork.name, + }); sendToBackgroundFromBackground({ message: JSON.stringify({ method: InternalMethods.changeNetwork, diff --git a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue index 4f15be7c9..b83ab0913 100644 --- a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue @@ -157,6 +157,8 @@ import { HaskoinUnspentType } from "../../types"; import { VerifyTransactionParams } from "../types"; import { getTxInfo as getBTCTxInfo } from "@/providers/bitcoin/libs/utils"; import { NFTItem, NFTItemWithCollectionName, NFTType } from "@/types/nft"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const props = defineProps({ network: { @@ -205,6 +207,7 @@ const addressTo = ref(""); const isLoadingAssets = ref(true); onMounted(async () => { + trackSendEvents(SendEventType.SendOpen, { network: props.network.name }); fetchAssets().then(setBaseCosts); }); diff --git a/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue index 77d943f09..03b247d20 100644 --- a/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue @@ -95,6 +95,8 @@ import { EnkryptAccount } from "@enkryptcom/types"; import CustomScrollbar from "@action/components/custom-scrollbar/index.vue"; import { BitcoinNetwork } from "@/providers/bitcoin/types/bitcoin-network"; import BitcoinAPI from "@/providers/bitcoin/libs/api"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const KeyRing = new PublicKeyRing(); const route = useRoute(); @@ -115,6 +117,7 @@ const errorMsg = ref(""); defineExpose({ verifyScrollRef }); onBeforeMount(async () => { network.value = (await getNetworkByName(selectedNetwork)!) as BitcoinNetwork; + trackSendEvents(SendEventType.SendVerify, { network: network.value.name }); account.value = await KeyRing.getAccount(txData.fromAddress); isWindowPopup.value = account.value.isHardware; }); @@ -159,6 +162,9 @@ const sendAction = async () => { api .broadcastTx(signedTx.extractTransaction().toHex()) .then(() => { + trackSendEvents(SendEventType.SendComplete, { + network: network.value.name, + }); activityState.addActivities( [ { @@ -185,6 +191,10 @@ const sendAction = async () => { } }) .catch((error) => { + trackSendEvents(SendEventType.SendFailed, { + network: network.value.name, + error: error.message, + }); txActivity.status = ActivityStatus.failed; activityState.addActivities([txActivity], { address: txData.fromAddress, diff --git a/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts b/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts index 28b1f5cb1..310b49659 100644 --- a/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts +++ b/packages/extension/src/providers/ethereum/methods/wallet_addEthereumChain.ts @@ -19,6 +19,7 @@ import CustomNetworksState from "@/libs/custom-networks-state"; import NetworksState from "@/libs/networks-state"; import { EvmNetwork } from "../types/evm-network"; import { trackNetworkSelected } from "@/libs/metrics"; +import { NetworkChangeEvents } from "@/libs/metrics/types"; interface AddEthereumChainPayload { chainId: string; @@ -127,10 +128,10 @@ const setExistingCustomNetwork = async ( ) as EvmNetwork | undefined; } if (existingNetwork) { - trackNetworkSelected( - ProviderName.ethereum, - existingNetwork.name as NetworkNames - ); + trackNetworkSelected(NetworkChangeEvents.NetworkChangeAPI, { + provider: ProviderName.ethereum, + network: existingNetwork.name as NetworkNames, + }); return sendToBackgroundFromBackground({ message: JSON.stringify({ method: InternalMethods.changeNetwork, diff --git a/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts b/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts index 3b5680758..0a9df0e8a 100644 --- a/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts +++ b/packages/extension/src/providers/ethereum/methods/wallet_switchEthereumChain.ts @@ -10,6 +10,7 @@ import { getAllNetworks } from "@/libs/utils/networks"; import { EvmNetwork } from "../types/evm-network"; import NetworksState from "@/libs/networks-state"; import { trackNetworkSelected } from "@/libs/metrics"; +import { NetworkChangeEvents } from "@/libs/metrics/types"; const method: MiddlewareFunction = function ( this: EthereumProvider, @@ -32,7 +33,10 @@ const method: MiddlewareFunction = function ( (net) => (net as EvmNetwork).chainID === payload.params![0].chainId ) as EvmNetwork | undefined; if (validNetwork) { - trackNetworkSelected(validNetwork.provider, validNetwork.name); + trackNetworkSelected(NetworkChangeEvents.NetworkChangeAPI, { + provider: validNetwork.provider, + network: validNetwork.name, + }); sendToBackgroundFromBackground({ message: JSON.stringify({ method: InternalMethods.changeNetwork, diff --git a/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts b/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts index 482357bea..4925883ad 100644 --- a/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts +++ b/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts @@ -19,6 +19,10 @@ const defaultSettings = { btc: { injectUnisat: false, }, + enkrypt: { + installedTimestamp: 0, + randomUserID: "", + }, manifestVersion: 3, }; const providerSendMessage = async ( diff --git a/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts b/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts index 5e60ac14c..f0cc48a69 100644 --- a/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts +++ b/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts @@ -20,6 +20,10 @@ const defaultSettings = { btc: { injectUnisat: false, }, + enkrypt: { + installedTimestamp: 0, + randomUserID: "", + }, manifestVersion: 3, }; diff --git a/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue b/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue index d27d0153e..a2a98e79d 100644 --- a/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue @@ -176,6 +176,8 @@ import { ProviderName } from "@/types/provider"; import PublicKeyRing from "@/libs/keyring/public-keyring"; import { GenericNameResolver, CoinType } from "@/libs/name-resolver"; import { NetworkNames } from "@enkryptcom/types"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const props = defineProps({ network: { @@ -271,6 +273,7 @@ const nativeBalance = computed(() => { }); onMounted(async () => { + trackSendEvents(SendEventType.SendOpen, { network: props.network.name }); fetchAssets().then(setBaseCosts); }); diff --git a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue index eace9cdfe..63ab6df58 100644 --- a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue @@ -106,6 +106,8 @@ import { BaseNetwork } from "@/types/base-network"; import { bigIntToHex } from "@ethereumjs/util"; import { toBN } from "web3-utils"; import { bufferToHex, toBase } from "@enkryptcom/utils"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const KeyRing = new PublicKeyRing(); const route = useRoute(); @@ -126,6 +128,7 @@ const errorMsg = ref(""); defineExpose({ verifyScrollRef }); onBeforeMount(async () => { network.value = (await getNetworkByName(selectedNetwork))!; + trackSendEvents(SendEventType.SendVerify, { network: network.value.name }); account.value = await KeyRing.getAccount(txData.fromAddress); isWindowPopup.value = account.value.isHardware; }); @@ -172,6 +175,9 @@ const sendAction = async () => { }) .then(async (finalizedTx) => { const onHash = (hash: string) => { + trackSendEvents(SendEventType.SendComplete, { + network: network.value.name, + }); activityState.addActivities( [ { @@ -217,6 +223,10 @@ const sendAction = async () => { }); isProcessing.value = false; errorMsg.value = error.message; + trackSendEvents(SendEventType.SendFailed, { + network: network.value.name, + error: errorMsg.value, + }); console.error("ERROR", error); }); }); @@ -224,6 +234,10 @@ const sendAction = async () => { .catch((e) => { isProcessing.value = false; errorMsg.value = e.error ? e.error.message : e.message; + trackSendEvents(SendEventType.SendFailed, { + network: network.value.name, + error: errorMsg.value, + }); console.error(e); }); }); diff --git a/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts b/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts index 9e6325761..27b3d9357 100644 --- a/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts +++ b/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts @@ -61,6 +61,10 @@ const tempWindow: EnkryptWindow = { btc: { injectUnisat: false, }, + enkrypt: { + installedTimestamp: 0, + randomUserID: "", + }, manifestVersion: 3, }, }, diff --git a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue index 04c783841..4bfb02b3d 100644 --- a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue +++ b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue @@ -152,6 +152,7 @@ import ActivityState from "@/libs/activity-state"; import Polkadot from "@/providers/polkadot/networks/polkadot"; import { getAllNetworks } from "@/libs/utils/networks"; import { trackNetworkSelected } from "@/libs/metrics"; +import { NetworkChangeEvents } from "@/libs/metrics/types"; const windowPromise = WindowPromiseHandler(2); @@ -193,7 +194,10 @@ onBeforeMount(async () => { if (targetNetwork) { network.value = targetNetwork; - trackNetworkSelected(targetNetwork.provider, targetNetwork.name); + trackNetworkSelected(NetworkChangeEvents.NetworkChangeAPI, { + provider: targetNetwork.provider, + network: targetNetwork.name, + }); } else { networkIsUnknown.value = true; } diff --git a/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue b/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue index 5a99c4a98..06196c091 100644 --- a/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue @@ -126,6 +126,8 @@ import { ProviderName } from "@/types/provider"; import PublicKeyRing from "@/libs/keyring/public-keyring"; import { polkadotEncodeAddress } from "@enkryptcom/utils"; import { GenericNameResolver, CoinType } from "@/libs/name-resolver"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const props = defineProps({ network: { @@ -212,6 +214,7 @@ const isAddress = computed(() => { onMounted(() => { isLoadingAssets.value = true; + trackSendEvents(SendEventType.SendOpen, { network: props.network.name }); fetchTokens(); }); diff --git a/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue index 1f86dfbd7..ab3c4d5bc 100644 --- a/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue @@ -98,6 +98,8 @@ import ActivityState from "@/libs/activity-state"; import { EnkryptAccount } from "@enkryptcom/types"; import CustomScrollbar from "@action/components/custom-scrollbar/index.vue"; import { BaseNetwork } from "@/types/base-network"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const isSendDone = ref(false); const account = ref(); @@ -118,6 +120,7 @@ defineExpose({ verifyScrollRef }); const network = ref(DEFAULT_SUBSTRATE_NETWORK); onBeforeMount(async () => { network.value = (await getNetworkByName(selectedNetwork))!; + trackSendEvents(SendEventType.SendVerify, { network: network.value.name }); account.value = await KeyRing.getAccount(txData.fromAddress); isWindowPopup.value = account.value.isHardware; }); @@ -181,13 +184,20 @@ const sendAction = async () => { signedTx .send() .then(async (hash) => { + trackSendEvents(SendEventType.SendComplete, { + network: network.value.name, + }); txActivity.transactionHash = u8aToHex(hash); await activityState.addActivities([txActivity], { address: network.value.displayAddress(txData.fromAddress), network: network.value.name, }); }) - .catch(() => { + .catch((error) => { + trackSendEvents(SendEventType.SendFailed, { + network: network.value.name, + error: error.message, + }); txActivity.status = ActivityStatus.failed; activityState.addActivities([txActivity], { address: network.value.displayAddress(txData.fromAddress), @@ -209,8 +219,12 @@ const sendAction = async () => { } } catch (error: any) { isProcessing.value = false; - console.error("error", error); + console.error(error); errorMsg.value = JSON.stringify(error); + trackSendEvents(SendEventType.SendFailed, { + network: network.value.name, + error: errorMsg.value, + }); } }; diff --git a/packages/extension/src/ui/action/App.vue b/packages/extension/src/ui/action/App.vue index a99fa1517..39cc233f2 100644 --- a/packages/extension/src/ui/action/App.vue +++ b/packages/extension/src/ui/action/App.vue @@ -135,9 +135,10 @@ import { EnkryptProviderEventMethods, ProviderName } from "@/types/provider"; import { onClickOutside } from "@vueuse/core"; import RateState from "@/libs/rate-state"; import SwapLookingAnimation from "@action/icons/swap/swap-looking-animation.vue"; -import { trackNetworkSelected } from "@/libs/metrics"; +import { trackBuyEvents, trackNetworkSelected } from "@/libs/metrics"; import { getLatestEnkryptVersion } from "@action/utils/browser"; import { gt as semverGT } from "semver"; +import { BuyEventType, NetworkChangeEvents } from "@/libs/metrics/types"; const domainState = new DomainState(); const networksState = new NetworksState(); @@ -197,6 +198,7 @@ const toggleDepositWindow = () => { showDepositWindow.value = !showDepositWindow.value; }; const openBuyPage = () => { + trackBuyEvents(BuyEventType.BuyClick, { network: currentNetwork.value.name }); Browser.tabs.create({ url: `https://ccswap.myetherwallet.com/?to=${currentNetwork.value.displayAddress( accountHeaderData.value.selectedAccount!.address @@ -266,7 +268,10 @@ const updateGradient = (newGradient: string) => { ).style.background = `radial-gradient(137.35% 97% at 100% 50%, rgba(250, 250, 250, 0.94) 0%, rgba(250, 250, 250, 0.96) 28.91%, rgba(250, 250, 250, 0.98) 100%), linear-gradient(180deg, ${newGradient} 80%, #684CFF 100%)`; }; const setNetwork = async (network: BaseNetwork) => { - trackNetworkSelected(network.provider, network.name); + trackNetworkSelected(NetworkChangeEvents.NetworkChangePopup, { + provider: network.provider, + network: network.name, + }); const activeAccounts = await getAccountsByNetworkName(network.name); const inactiveAccounts = await kr.getAccounts( diff --git a/packages/extension/src/ui/action/views/network-dapps/index.vue b/packages/extension/src/ui/action/views/network-dapps/index.vue index 446002656..e9d843552 100644 --- a/packages/extension/src/ui/action/views/network-dapps/index.vue +++ b/packages/extension/src/ui/action/views/network-dapps/index.vue @@ -27,6 +27,8 @@ import DappList from "@/libs/dapp-list"; import Masonry from "@action/components/masonry/index.vue"; import { DAppsItem } from "@/types/ui"; import cacheFetch from "@/libs/cache-fetch"; +import { trackDAppsEvents } from "@/libs/metrics"; +import { DAppsEventType } from "@/libs/metrics/types"; const route = useRoute(); @@ -51,6 +53,7 @@ onMounted(async () => { console.error("Could not retrieve dapps list"); } } + trackDAppsEvents(DAppsEventType.DAppsOpen, { network: props.network.name }); }); diff --git a/packages/extension/src/ui/action/views/network-nfts/index.vue b/packages/extension/src/ui/action/views/network-nfts/index.vue index bceba62bb..17786fde7 100644 --- a/packages/extension/src/ui/action/views/network-nfts/index.vue +++ b/packages/extension/src/ui/action/views/network-nfts/index.vue @@ -62,6 +62,8 @@ import { NFTCollection, NFTItem } from "@/types/nft"; import NFTState from "@/libs/nft-state"; import scrollSettings from "@/libs/utils/scroll-settings"; import NftDetailView from "@action/views/nft-detail-view/index.vue"; +import { trackNFTEvents } from "@/libs/metrics"; +import { NFTEventType } from "@/libs/metrics/types"; const nftState = new NFTState(); const props = defineProps({ @@ -86,6 +88,7 @@ watch([props.accountInfo, props.network], () => { }); onMounted(() => { updateNFTInfo(); + trackNFTEvents(NFTEventType.NFTOpen, { network: props.network.name }); }); const localUpdate = async () => { const favs = await nftState.getFavoriteNFTs(); From db30857a7a35059e63fd6e2da169e33a5e8b465a Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:09:46 -0700 Subject: [PATCH 20/29] devop: set prod amplitude links --- packages/extension/src/libs/metrics/amplitude.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/extension/src/libs/metrics/amplitude.ts b/packages/extension/src/libs/metrics/amplitude.ts index 339421230..54798ca68 100644 --- a/packages/extension/src/libs/metrics/amplitude.ts +++ b/packages/extension/src/libs/metrics/amplitude.ts @@ -29,9 +29,13 @@ class Metrics { settingsState.getEnkryptSettings().then((set) => { this.installedTime = set.installedTimestamp; init("apikey", { - instanceName: "enkrypt-extension-dev", + instanceName: process.env.IS_DEV + ? "enkrypt-extension-dev" + : "enkrypt-extension", optOut: false, - serverUrl: "https://analytics-enkrypt-dev.mewwallet.dev/record", + serverUrl: process.env.IS_DEV + ? "https://analytics-enkrypt-dev.mewwallet.dev/record" + : "https://analytics-enkrypt.mewwallet.dev/record", appVersion: process.env.PACKAGE_VERSION as string, trackingOptions: { ipAddress: false, From 8902c1db9a7c6e9e01f352b66a527c5281f14042 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:11:56 -0700 Subject: [PATCH 21/29] devop: update browserlist --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 14c7322c2..85f1a63eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11484,9 +11484,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001317": - version: 1.0.30001532 - resolution: "caniuse-lite@npm:1.0.30001532" - checksum: 613abeb15e03dde307d543195a7860f7ba7450c9c9262d45642b2c8fbe097914fa060d68c8647f9d443947b1f62b09d891858bde7d2cac94fae8133a0b518b28 + version: 1.0.30001599 + resolution: "caniuse-lite@npm:1.0.30001599" + checksum: d7e619e2e723547b7311ba0ca5134d9cd55df548e93dbedcf8a6e4ec74c7db91969c4272fb1ab2fd94cddeac6a8176ebf05853eb06689d5e76bb97d979a214b0 languageName: node linkType: hard From 775b887e2e422d22fb2c519a823aa9be08fbe076 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:00:20 -0700 Subject: [PATCH 22/29] devop: upgrade rollup --- packages/extension/package.json | 2 +- yarn.lock | 167 ++++++++++++++++++++++++++++---- 2 files changed, 150 insertions(+), 19 deletions(-) diff --git a/packages/extension/package.json b/packages/extension/package.json index 865017a35..931a7a466 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -113,7 +113,7 @@ "path-browserify": "^1.0.1", "prettier": "^2.8.8", "rimraf": "^5.0.5", - "rollup": "^3.29.4", + "rollup": "^4.13.0", "rollup-plugin-uglify": "^6.0.4", "semver": "^7.6.0", "stream-browserify": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 4fe6d8bea..66df438dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2498,7 +2498,7 @@ __metadata: prettier: ^2.8.8 qrcode.vue: ^3.4.1 rimraf: ^5.0.5 - rollup: ^3.29.4 + rollup: ^4.13.0 rollup-plugin-uglify: ^6.0.4 semver: ^7.6.0 stream-browserify: ^3.0.0 @@ -6559,6 +6559,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.13.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-android-arm64@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-android-arm64@npm:4.12.0" @@ -6566,6 +6573,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm64@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-android-arm64@npm:4.13.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-arm64@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-darwin-arm64@npm:4.12.0" @@ -6573,6 +6587,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-arm64@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.13.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-x64@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-darwin-x64@npm:4.12.0" @@ -6580,6 +6601,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-x64@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.13.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@rollup/rollup-linux-arm-gnueabihf@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.12.0" @@ -6587,6 +6615,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm-gnueabihf@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.13.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-gnu@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.12.0" @@ -6594,6 +6629,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-gnu@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.13.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-musl@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-arm64-musl@npm:4.12.0" @@ -6601,6 +6643,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-musl@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.13.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-riscv64-gnu@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.12.0" @@ -6608,6 +6657,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-riscv64-gnu@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.13.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-gnu@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-x64-gnu@npm:4.12.0" @@ -6615,6 +6671,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-gnu@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.13.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-musl@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-linux-x64-musl@npm:4.12.0" @@ -6622,6 +6685,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-musl@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.13.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-win32-arm64-msvc@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.12.0" @@ -6629,6 +6699,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-arm64-msvc@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.13.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-win32-ia32-msvc@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.12.0" @@ -6636,6 +6713,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-ia32-msvc@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.13.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@rollup/rollup-win32-x64-msvc@npm:4.12.0": version: 4.12.0 resolution: "@rollup/rollup-win32-x64-msvc@npm:4.12.0" @@ -6643,6 +6727,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-x64-msvc@npm:4.13.0": + version: 4.13.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.13.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.3, @scure/base@npm:^1.1.5, @scure/base@npm:~1.1.0, @scure/base@npm:~1.1.4": version: 1.1.5 resolution: "@scure/base@npm:1.1.5" @@ -11410,9 +11501,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001317": - version: 1.0.30001532 - resolution: "caniuse-lite@npm:1.0.30001532" - checksum: 613abeb15e03dde307d543195a7860f7ba7450c9c9262d45642b2c8fbe097914fa060d68c8647f9d443947b1f62b09d891858bde7d2cac94fae8133a0b518b28 + version: 1.0.30001599 + resolution: "caniuse-lite@npm:1.0.30001599" + checksum: d7e619e2e723547b7311ba0ca5134d9cd55df548e93dbedcf8a6e4ec74c7db91969c4272fb1ab2fd94cddeac6a8176ebf05853eb06689d5e76bb97d979a214b0 languageName: node linkType: hard @@ -21667,20 +21758,6 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.29.4": - version: 3.29.4 - resolution: "rollup@npm:3.29.4" - dependencies: - fsevents: ~2.3.2 - dependenciesMeta: - fsevents: - optional: true - bin: - rollup: dist/bin/rollup - checksum: 8bb20a39c8d91130825159c3823eccf4dc2295c9a0a5c4ed851a5bf2167dbf24d9a29f23461a54c955e5506395e6cc188eafc8ab0e20399d7489fb33793b184e - languageName: node - linkType: hard - "rollup@npm:^4.0.2": version: 4.12.0 resolution: "rollup@npm:4.12.0" @@ -21735,6 +21812,60 @@ __metadata: languageName: node linkType: hard +"rollup@npm:^4.13.0": + version: 4.13.0 + resolution: "rollup@npm:4.13.0" + dependencies: + "@rollup/rollup-android-arm-eabi": 4.13.0 + "@rollup/rollup-android-arm64": 4.13.0 + "@rollup/rollup-darwin-arm64": 4.13.0 + "@rollup/rollup-darwin-x64": 4.13.0 + "@rollup/rollup-linux-arm-gnueabihf": 4.13.0 + "@rollup/rollup-linux-arm64-gnu": 4.13.0 + "@rollup/rollup-linux-arm64-musl": 4.13.0 + "@rollup/rollup-linux-riscv64-gnu": 4.13.0 + "@rollup/rollup-linux-x64-gnu": 4.13.0 + "@rollup/rollup-linux-x64-musl": 4.13.0 + "@rollup/rollup-win32-arm64-msvc": 4.13.0 + "@rollup/rollup-win32-ia32-msvc": 4.13.0 + "@rollup/rollup-win32-x64-msvc": 4.13.0 + "@types/estree": 1.0.5 + fsevents: ~2.3.2 + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: c2c35bee0a71ceb0df37c170c2b73a500bf9ebdffb747487d77831348603d50dcfcdd9d0a937362d3a87edda559c9d1e017fba2d75f05f0c594634d9b8dde9a4 + languageName: node + linkType: hard + "rpc-websockets@npm:^7.5.1": version: 7.6.0 resolution: "rpc-websockets@npm:7.6.0" From 3756cdac42e3bcd38f4a7e79d3d6233b9b26fbb3 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:34:12 -0700 Subject: [PATCH 23/29] devop: add more analytics --- packages/extension/src/libs/metrics/types.ts | 7 +++++ .../bitcoin/ui/btc-verify-transaction.vue | 21 ++++++++++++--- .../bitcoin/ui/send-transaction/index.vue | 3 +++ .../verify-transaction/index.vue | 3 +++ .../ethereum/ui/eth-verify-transaction.vue | 22 ++++++++++++--- .../ethereum/ui/send-transaction/index.vue | 3 +++ .../verify-transaction/index.vue | 3 +++ .../polkadot/ui/dot-verify-transaction.vue | 27 ++++++++++++++++--- .../polkadot/ui/send-transaction/index.vue | 3 +++ .../verify-transaction/index.vue | 8 ++++-- 10 files changed, 88 insertions(+), 12 deletions(-) diff --git a/packages/extension/src/libs/metrics/types.ts b/packages/extension/src/libs/metrics/types.ts index 37cc6e129..fa97e8449 100644 --- a/packages/extension/src/libs/metrics/types.ts +++ b/packages/extension/src/libs/metrics/types.ts @@ -18,8 +18,15 @@ export enum BuyEventType { export enum SendEventType { SendOpen = "send_open", SendVerify = "send_verify", + SendAPIVerify = "send_api_verify", SendComplete = "send_complete", + SendAPIComplete = "send_api_complete", SendFailed = "send_failed", + SendAPIFailed = "send_api_failed", + SendApprove = "send_approve", + SendDecline = "send_decline", + SendAPIApprove = "send_api_approve", + SendAPIDecline = "send_api_decline", } export enum NFTEventType { diff --git a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue index 5ea9e0382..4ebc2592d 100644 --- a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue +++ b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue @@ -122,7 +122,7 @@ import CommonPopup from "@action/views/common-popup/index.vue"; import SendFeeSelect from "@/providers/common/ui/send-transaction/send-fee-select.vue"; import HardwareWalletMsg from "@/providers/common/ui/verify-transaction/hardware-wallet-msg.vue"; import AlertIcon from "@action/icons/send/alert-icon.vue"; -import { getError } from "@/libs/error"; +import { getCustomError, getError } from "@/libs/error"; import { ErrorCodes } from "@/providers/ethereum/types"; import { WindowPromiseHandler } from "@/libs/window-promise"; import { DEFAULT_BTC_NETWORK, getNetworkByName } from "@/libs/utils/networks"; @@ -141,6 +141,8 @@ import { toBN } from "web3-utils"; import { Psbt } from "bitcoinjs-lib"; import BigNumber from "bignumber.js"; import { JsonTreeView } from "@/libs/json-tree-view"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const isProcessing = ref(false); const isPreLoading = ref(true); @@ -290,6 +292,9 @@ const setBaseCosts = () => { const approve = async () => { isProcessing.value = true; + trackSendEvents(SendEventType.SendAPIApprove, { + network: network.value.name, + }); const { Resolve } = await windowPromise; isProcessing.value = true; const signer = PSBTSigner(account.value, network.value as BitcoinNetwork); @@ -306,16 +311,24 @@ const approve = async () => { if (psbtOptions.value.autoFinalized) PSBT.value!.finalizeInput(i); } } + trackSendEvents(SendEventType.SendAPIComplete, { + network: network.value.name, + }); Resolve.value({ result: JSON.stringify(PSBT.value!.toHex()), }); - } catch (e) { - Resolve.value({ - error: getError(ErrorCodes.userRejected), + } catch (e: any) { + trackSendEvents(SendEventType.SendAPIComplete, { + network: network.value.name, + error: e.error, }); + Resolve.value(e); } }; const deny = async () => { + trackSendEvents(SendEventType.SendAPIDecline, { + network: network.value.name, + }); const { Resolve } = await windowPromise; Resolve.value({ error: getError(ErrorCodes.userRejected), diff --git a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue index b83ab0913..e52a41789 100644 --- a/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue @@ -325,6 +325,9 @@ const selectedNft = ref({ }); const close = () => { + trackSendEvents(SendEventType.SendDecline, { + network: props.network.name, + }); router.go(-1); }; diff --git a/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue index 03b247d20..081c6d6fb 100644 --- a/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/bitcoin/ui/send-transaction/verify-transaction/index.vue @@ -131,6 +131,9 @@ const close = () => { const sendAction = async () => { isProcessing.value = true; + trackSendEvents(SendEventType.SendApprove, { + network: network.value.name, + }); const txActivity: Activity = { from: network.value.displayAddress(txData.fromAddress), to: txData.toAddress, diff --git a/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue b/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue index 932853585..7dc0321d8 100644 --- a/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue +++ b/packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue @@ -157,6 +157,8 @@ import broadcastTx from "../libs/tx-broadcaster"; import TokenSigs from "../libs/transaction/lists/tokenSigs"; import AlertIcon from "@action/icons/send/alert-icon.vue"; import { NetworkNames } from "@enkryptcom/types"; +import { trackSendEvents } from "@/libs/metrics"; +import { SendEventType } from "@/libs/metrics/types"; const isProcessing = ref(false); const isOpenSelectFee = ref(false); @@ -284,6 +286,9 @@ onBeforeMount(async () => { const approve = async () => { isProcessing.value = true; + trackSendEvents(SendEventType.SendAPIApprove, { + network: network.value.name, + }); const { Request, Resolve } = await windowPromise; const web3 = new Web3Eth(network.value.node); const tx = new Transaction( @@ -325,6 +330,9 @@ const approve = async () => { transactionHash: "", }; const onHash = (hash: string) => { + trackSendEvents(SendEventType.SendAPIComplete, { + network: network.value.name, + }); activityState .addActivities( [ @@ -361,23 +369,31 @@ const approve = async () => { network: network.value.name, }) .then(() => { + trackSendEvents(SendEventType.SendAPIFailed, { + network: network.value.name, + error: error.message, + }); Resolve.value({ error: getCustomError(error.message), }); }); }); - }) - .catch((err) => { - Resolve.value(err); }); }) .catch((err) => { + trackSendEvents(SendEventType.SendAPIFailed, { + network: network.value.name, + error: err.error, + }); Resolve.value(err); }); } ); }; const deny = async () => { + trackSendEvents(SendEventType.SendAPIDecline, { + network: network.value.name, + }); const { Resolve } = await windowPromise; Resolve.value({ error: getError(ErrorCodes.userRejected), diff --git a/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue b/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue index a2a98e79d..45b551633 100644 --- a/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/ethereum/ui/send-transaction/index.vue @@ -525,6 +525,9 @@ watch([isSendToken], () => { }); const close = () => { + trackSendEvents(SendEventType.SendDecline, { + network: props.network.name, + }); router.go(-1); }; diff --git a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue index 63ab6df58..255476b03 100644 --- a/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/ethereum/ui/send-transaction/verify-transaction/index.vue @@ -142,6 +142,9 @@ const close = () => { const sendAction = async () => { isProcessing.value = true; + trackSendEvents(SendEventType.SendApprove, { + network: network.value.name, + }); const web3 = new Web3Eth(network.value.node); const tx = new Transaction(txData.TransactionData, web3); diff --git a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue index 4bfb02b3d..077667320 100644 --- a/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue +++ b/packages/extension/src/providers/polkadot/ui/dot-verify-transaction.vue @@ -143,7 +143,7 @@ import { getViewAndProps } from "./custom-views"; import SubstrateAPI from "../libs/api"; import BigNumber from "bignumber.js"; import { ProviderRequestOptions } from "@/types/provider"; -import { EnkryptAccount } from "@enkryptcom/types"; +import { EnkryptAccount, NetworkNames } from "@enkryptcom/types"; import { TransactionSigner } from "./libs/signer"; import { Activity, ActivityStatus, ActivityType } from "@/types/activity"; import { ApiPromise } from "@polkadot/api"; @@ -151,8 +151,8 @@ import { u8aToHex } from "@polkadot/util"; import ActivityState from "@/libs/activity-state"; import Polkadot from "@/providers/polkadot/networks/polkadot"; import { getAllNetworks } from "@/libs/utils/networks"; -import { trackNetworkSelected } from "@/libs/metrics"; -import { NetworkChangeEvents } from "@/libs/metrics/types"; +import { trackNetworkSelected, trackSendEvents } from "@/libs/metrics"; +import { NetworkChangeEvents, SendEventType } from "@/libs/metrics/types"; const windowPromise = WindowPromiseHandler(2); @@ -302,6 +302,11 @@ const toggleData = () => { }; const approve = async () => { isSigning.value = true; + trackSendEvents(SendEventType.SendAPIApprove, { + network: network.value + ? network.value.name + : ("substrate-undefined" as NetworkNames), + }); const { Request, Resolve } = await windowPromise; const registry = new TypeRegistry(); const reqPayload = Request.value.params![0] as SignerPayloadJSON; @@ -356,6 +361,11 @@ const approve = async () => { } ); } + trackSendEvents(SendEventType.SendAPIComplete, { + network: network.value + ? network.value.name + : ("substrate-undefined" as NetworkNames), + }); Resolve.value(res); }) .catch(async (res) => { @@ -366,11 +376,22 @@ const approve = async () => { network: network.value.name, }); } + trackSendEvents(SendEventType.SendAPIFailed, { + network: network.value + ? network.value.name + : ("substrate-undefined" as NetworkNames), + error: res.error, + }); Resolve.value(res); }) .finally(() => (isSigning.value = false)); }; const deny = async () => { + trackSendEvents(SendEventType.SendAPIDecline, { + network: network.value + ? network.value.name + : ("substrate-undefined" as NetworkNames), + }); const { Resolve } = await windowPromise; Resolve.value({ error: getError(ErrorCodes.userRejected), diff --git a/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue b/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue index 06196c091..723abb621 100644 --- a/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue +++ b/packages/extension/src/providers/polkadot/ui/send-transaction/index.vue @@ -319,6 +319,9 @@ const fetchTokens = async () => { }; const close = () => { + trackSendEvents(SendEventType.SendDecline, { + network: props.network.name, + }); router.go(-1); }; diff --git a/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue b/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue index ab3c4d5bc..7f9fdd147 100644 --- a/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue +++ b/packages/extension/src/providers/polkadot/ui/send-transaction/verify-transaction/index.vue @@ -125,6 +125,9 @@ onBeforeMount(async () => { isWindowPopup.value = account.value.isHardware; }); const close = () => { + trackSendEvents(SendEventType.SendDecline, { + network: network.value.name, + }); if (getCurrentContext() === "popup") { router.go(-1); } else { @@ -134,10 +137,11 @@ const close = () => { const sendAction = async () => { isProcessing.value = true; + trackSendEvents(SendEventType.SendApprove, { + network: network.value.name, + }); const api = await network.value.api(); - const tx = (api.api as ApiPromise).tx(txData.TransactionData.data); - try { const signedTx = await tx.signAsync(account.value!.address, { signer: { From 244aef9bc0ee08ae4c335c5dd5f2098f497298c6 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:09:19 -0700 Subject: [PATCH 24/29] fix: tests --- packages/swap/src/providers/rango/index.ts | 3 ++- packages/swap/tests/changelly.test.ts | 2 +- packages/swap/tests/rango.test.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/swap/src/providers/rango/index.ts b/packages/swap/src/providers/rango/index.ts index da35ddadb..71774e3e7 100644 --- a/packages/swap/src/providers/rango/index.ts +++ b/packages/swap/src/providers/rango/index.ts @@ -317,8 +317,9 @@ class Rango extends ProviderClass { !f.token.address && f.expenseType === "FROM_SOURCE_WALLET" && f.name !== "Network Fee" - ) + ) { additionalNativeFees = additionalNativeFees.add(toBN(f.amount)); + } }); return { transactions, diff --git a/packages/swap/tests/changelly.test.ts b/packages/swap/tests/changelly.test.ts index 387ce6401..9c14aa46a 100644 --- a/packages/swap/tests/changelly.test.ts +++ b/packages/swap/tests/changelly.test.ts @@ -39,7 +39,7 @@ describe("Changelly Provider", () => { expect(quote?.quote.meta.walletIdentifier).to.be.eq( WalletIdentifier.enkrypt ); - expect(quote?.fromTokenAmount.toString()).to.be.eq(amount.toString()); + expect(quote?.fromTokenAmount.gte(amount)).to.be.eq(true); expect(quote?.toTokenAmount.gtn(0)).to.be.eq(true); const swap = await changelly.getSwap(quote!.quote); diff --git a/packages/swap/tests/rango.test.ts b/packages/swap/tests/rango.test.ts index c6e5a770a..016de5436 100644 --- a/packages/swap/tests/rango.test.ts +++ b/packages/swap/tests/rango.test.ts @@ -71,7 +71,7 @@ describe("Rango Provider", () => { ); expect(quote?.fromTokenAmount.toString()).to.be.eq(amount.toString()); expect(quote?.toTokenAmount.gtn(0)).to.be.eq(true); - expect(quote?.additionalNativeFees.gtn(0)).to.be.eq(true); + expect(quote?.additionalNativeFees.eqn(0)).to.be.eq(true); const swap = await rango.getSwap(quote!.quote); expect(swap?.transactions.length).to.be.eq(1); }).timeout(25000); From a7f56fcb5f9112bbd12b738ca5a31e7f1c0218de Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:07:58 -0700 Subject: [PATCH 25/29] devop: add swap close and swap back metrics --- packages/extension/src/libs/metrics/types.ts | 2 ++ .../providers/bitcoin/ui/btc-verify-transaction.vue | 2 +- .../views/swap/views/swap-best-offer/index.vue | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/extension/src/libs/metrics/types.ts b/packages/extension/src/libs/metrics/types.ts index fa97e8449..16ba765b8 100644 --- a/packages/extension/src/libs/metrics/types.ts +++ b/packages/extension/src/libs/metrics/types.ts @@ -4,6 +4,8 @@ export enum SwapEventType { SwapVerify = "swap_verify", SwapComplete = "swap_complete", swapFailed = "swap_failed", + swapCancelled = "swap_cancelled", + swapBack = "swap_back", } export enum NetworkChangeEvents { diff --git a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue index 4ebc2592d..484cda6c5 100644 --- a/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue +++ b/packages/extension/src/providers/bitcoin/ui/btc-verify-transaction.vue @@ -122,7 +122,7 @@ import CommonPopup from "@action/views/common-popup/index.vue"; import SendFeeSelect from "@/providers/common/ui/send-transaction/send-fee-select.vue"; import HardwareWalletMsg from "@/providers/common/ui/verify-transaction/hardware-wallet-msg.vue"; import AlertIcon from "@action/icons/send/alert-icon.vue"; -import { getCustomError, getError } from "@/libs/error"; +import { getError } from "@/libs/error"; import { ErrorCodes } from "@/providers/ethereum/types"; import { WindowPromiseHandler } from "@/libs/window-promise"; import { DEFAULT_BTC_NETWORK, getNetworkByName } from "@/libs/utils/networks"; diff --git a/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue b/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue index 76b12a563..34c044a8c 100644 --- a/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue +++ b/packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue @@ -311,6 +311,12 @@ onMounted(async () => { }); const back = () => { + trackSwapEvents(SwapEventType.swapBack, { + network: network.value!.name, + fromToken: swapData.fromToken.name, + toToken: swapData.toToken.name, + swapProvider: pickedTrade.value.provider, + }); if (!isWindowPopup.value) { router.go(-1); } else { @@ -319,6 +325,12 @@ const back = () => { }; const close = () => { + trackSwapEvents(SwapEventType.swapCancelled, { + network: network.value!.name, + fromToken: swapData.fromToken.name, + toToken: swapData.toToken.name, + swapProvider: pickedTrade.value.provider, + }); if (!isWindowPopup.value) { router.go(-2); } else { From ee76431e287d200dcd96406f95a58a3dc83e5fa7 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:41:23 -0700 Subject: [PATCH 26/29] fix: subscan activity --- .../libs/activity-handlers/providers/subscan/index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/index.ts b/packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/index.ts index 536d59cf6..845f6c4df 100644 --- a/packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/index.ts +++ b/packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/index.ts @@ -17,7 +17,14 @@ const getAddressActivity = async ( ): Promise => { return cacheFetch( { - url: `${endpoint}api/scan/transfers?address=${address}&row=50`, + url: `${endpoint}api/v2/scan/transfers`, + post: { + address: address, + row: 50, + }, + headers: { + "Content-Type": "application/json", + }, }, TTL ).then((res) => { @@ -59,7 +66,7 @@ export default async ( activity.asset_symbol !== "" ? activity.asset_symbol : network.currencyName, - price: price, + price: activity.asset_symbol === network.currencyName ? price : "0", }, }; }); From 65eebcec8926a4be036db81230379d964b9b4d19 Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:05:34 -0700 Subject: [PATCH 27/29] devop: add setting to disable metrics --- .../extension/src/libs/metrics/amplitude.ts | 7 +++++-- packages/extension/src/libs/metrics/index.ts | 12 +++++++++++ packages/extension/src/libs/metrics/types.ts | 4 ++++ .../src/libs/settings-state/index.ts | 1 + .../src/libs/settings-state/types.ts | 1 + .../ethereum/tests/ethereum.events.mocha.ts | 1 + .../ethereum/tests/ethereum.requests.mocha.ts | 1 + .../polkadot/tests/polkadot.requests.mocha.ts | 1 + .../settings/views/settings-general/index.vue | 21 +++++++++++++++++++ 9 files changed, 47 insertions(+), 2 deletions(-) diff --git a/packages/extension/src/libs/metrics/amplitude.ts b/packages/extension/src/libs/metrics/amplitude.ts index 54798ca68..2ca127398 100644 --- a/packages/extension/src/libs/metrics/amplitude.ts +++ b/packages/extension/src/libs/metrics/amplitude.ts @@ -1,4 +1,4 @@ -import { init, track, Types } from "@amplitude/analytics-browser"; +import { init, track, Types, setOptOut } from "@amplitude/analytics-browser"; import { detectBrowser, detectOS } from "@action/utils/browser"; import SettingsState from "../settings-state"; @@ -32,7 +32,7 @@ class Metrics { instanceName: process.env.IS_DEV ? "enkrypt-extension-dev" : "enkrypt-extension", - optOut: false, + optOut: !set.isMetricsEnabled, serverUrl: process.env.IS_DEV ? "https://analytics-enkrypt-dev.mewwallet.dev/record" : "https://analytics-enkrypt.mewwallet.dev/record", @@ -63,6 +63,9 @@ class Metrics { } ); } + setOptOut(val: boolean) { + setOptOut(val); + } } export default Metrics; diff --git a/packages/extension/src/libs/metrics/index.ts b/packages/extension/src/libs/metrics/index.ts index eb507d69a..a83aaa617 100644 --- a/packages/extension/src/libs/metrics/index.ts +++ b/packages/extension/src/libs/metrics/index.ts @@ -7,6 +7,7 @@ import { NFTEventType, NetworkChangeEvents, SendEventType, + SettingEventType, SwapEventType, } from "./types"; @@ -68,6 +69,16 @@ const trackDAppsEvents = ( ) => { metrics.track("dapps", { event, ...options }); }; + +const optOutofMetrics = (optOut: boolean) => { + metrics.setOptOut(false); + metrics.track("settings", { + event: SettingEventType.OptOut, + value: optOut ? 1 : 0, + }); + metrics.setOptOut(optOut); +}; + export { trackNetworkSelected, trackSwapEvents, @@ -75,4 +86,5 @@ export { trackSendEvents, trackNFTEvents, trackDAppsEvents, + optOutofMetrics, }; diff --git a/packages/extension/src/libs/metrics/types.ts b/packages/extension/src/libs/metrics/types.ts index 16ba765b8..b35f023a1 100644 --- a/packages/extension/src/libs/metrics/types.ts +++ b/packages/extension/src/libs/metrics/types.ts @@ -38,3 +38,7 @@ export enum NFTEventType { export enum DAppsEventType { DAppsOpen = "dapps_open", } + +export enum SettingEventType { + OptOut = "opt_out", +} diff --git a/packages/extension/src/libs/settings-state/index.ts b/packages/extension/src/libs/settings-state/index.ts index 025b13f81..2987d650d 100644 --- a/packages/extension/src/libs/settings-state/index.ts +++ b/packages/extension/src/libs/settings-state/index.ts @@ -49,6 +49,7 @@ class SettingsState { const settings: EnkryptSettingsType = { installedTimestamp: 0, randomUserID: "", + isMetricsEnabled: true, }; return merge(settings, state); } diff --git a/packages/extension/src/libs/settings-state/types.ts b/packages/extension/src/libs/settings-state/types.ts index 79f2bb3f8..a7d375b64 100644 --- a/packages/extension/src/libs/settings-state/types.ts +++ b/packages/extension/src/libs/settings-state/types.ts @@ -20,6 +20,7 @@ export interface BtcSettingsType { export interface EnkryptSettingsType { installedTimestamp: number; randomUserID: string; + isMetricsEnabled: boolean; } export interface SettingsType { evm: EVMSettingsType; diff --git a/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts b/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts index 4925883ad..df2d976d1 100644 --- a/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts +++ b/packages/extension/src/providers/ethereum/tests/ethereum.events.mocha.ts @@ -22,6 +22,7 @@ const defaultSettings = { enkrypt: { installedTimestamp: 0, randomUserID: "", + isMetricsEnabled: true, }, manifestVersion: 3, }; diff --git a/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts b/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts index f0cc48a69..15d9a6a5f 100644 --- a/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts +++ b/packages/extension/src/providers/ethereum/tests/ethereum.requests.mocha.ts @@ -23,6 +23,7 @@ const defaultSettings = { enkrypt: { installedTimestamp: 0, randomUserID: "", + isMetricsEnabled: true, }, manifestVersion: 3, }; diff --git a/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts b/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts index 27b3d9357..ab7693779 100644 --- a/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts +++ b/packages/extension/src/providers/polkadot/tests/polkadot.requests.mocha.ts @@ -64,6 +64,7 @@ const tempWindow: EnkryptWindow = { enkrypt: { installedTimestamp: 0, randomUserID: "", + isMetricsEnabled: true, }, manifestVersion: 3, }, diff --git a/packages/extension/src/ui/action/views/settings/views/settings-general/index.vue b/packages/extension/src/ui/action/views/settings/views/settings-general/index.vue index 7beec7ed8..cf5cde455 100644 --- a/packages/extension/src/ui/action/views/settings/views/settings-general/index.vue +++ b/packages/extension/src/ui/action/views/settings/views/settings-general/index.vue @@ -38,6 +38,18 @@

Enable Enkrypt act like Unisat wallet for dapps

+ +
+

+ MEW uses Amplitude events to improve Enkrypt. No identifiable + information is collected. +

+
+