diff --git a/package.json b/package.json index 35314e423..757c7ce4c 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.100", + "@swc/core": "^1.3.104", "concurrently": "^8.2.2", "devmoji": "^2.3.0", "husky": "^8.0.3", "node-notifier": "^10.0.1", - "nodemon": "^3.0.2", + "nodemon": "^3.0.3", "ultra-runner": "^3.10.5" }, "resolutions": { diff --git a/packages/extension-bridge/package.json b/packages/extension-bridge/package.json index a50ee3506..78be5c8b5 100644 --- a/packages/extension-bridge/package.json +++ b/packages/extension-bridge/package.json @@ -41,19 +41,19 @@ "devDependencies": { "@types/chai": "^4.3.11", "@types/mocha": "^10.0.6", - "@types/node": "^20.10.4", + "@types/node": "^20.11.5", "@types/webextension-polyfill": "^0.10.7", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "bumpp": "^9.2.0", - "eslint": "^8.55.0", + "bumpp": "^9.3.0", + "eslint": "^8.56.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.0", + "eslint-plugin-import": "^2.29.1", "eslint-plugin-module-resolver": "^1.5.0", "prettier": "^2.8.8", - "ts-node": "^10.9.1", + "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "tsup": "^6.7.0", "type-fest": "^2.19.0", diff --git a/packages/extension/package.json b/packages/extension/package.json index fefbf1342..5a8d9fd5b 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -1,6 +1,6 @@ { "name": "@enkryptcom/extension", - "version": "1.31.0", + "version": "1.32.0", "private": true, "scripts": { "zip": "cd dist; zip -r release.zip *;", @@ -18,7 +18,7 @@ "watch-vue-firefox": "cross-env BROWSER='firefox' vue-cli-service build --watch --no-clean" }, "dependencies": { - "@babel/runtime": "^7.23.5", + "@babel/runtime": "^7.23.8", "@enkryptcom/extension-bridge": "workspace:^", "@enkryptcom/hw-wallets": "workspace:^", "@enkryptcom/keyring": "workspace:^", @@ -29,10 +29,10 @@ "@enkryptcom/utils": "workspace:^", "@ethereumjs/common": "^3.2.0", "@ethereumjs/tx": "^4.2.0", - "@ledgerhq/hw-transport-webusb": "^6.28.0", - "@metamask/eth-sig-util": "^6.0.2", + "@ledgerhq/hw-transport-webusb": "^6.28.1", + "@metamask/eth-sig-util": "^7.0.1", "@rollup/plugin-replace": "^5.0.5", - "@types/chrome": "^0.0.250", + "@types/chrome": "^0.0.258", "@types/events": "^3.0.3", "@types/less": "^3.0.6", "@types/lodash": "^4.14.202", @@ -43,9 +43,9 @@ "bip39": "^3.1.0", "bitcoinjs-lib": "^6.1.5", "bitcoinjs-message": "^2.2.0", - "chai": "^4.3.10", + "chai": "^4.4.1", "concurrently": "^8.2.2", - "core-js": "^3.34.0", + "core-js": "^3.35.0", "echarts": "^5.4.3", "ethereumjs-abi": "^0.6.8", "ethereumjs-util": "^7.1.5", @@ -53,15 +53,15 @@ "eventemitter3": "^5.0.1", "lodash": "^4.17.21", "memoize-one": "^6.0.0", - "moment": "^2.29.4", + "moment": "^2.30.1", "nanoevents": "^7.0.1", "pinia": "^2.1.7", "qrcode.vue": "^3.4.1", "switch-ts": "^1.1.1", "url-parse": "^1.5.10", "uuid": "^9.0.1", - "vue": "^3.3.10", - "vue-echarts": "6.6.1", + "vue": "^3.4.15", + "vue-echarts": "6.6.8", "vue-router": "4.2.5", "vue3-lottie": "^2.7.4", "vuedraggable": "^4.1.0", @@ -72,19 +72,19 @@ }, "devDependencies": { "@babel/plugin-transform-class-static-block": "^7.23.4", - "@polkadot/api": "^10.11.1", + "@polkadot/api": "^10.11.2", "@polkadot/extension-inject": "^0.46.6", - "@polkadot/keyring": "^12.6.1", - "@polkadot/rpc-provider": "^10.11.1", - "@polkadot/types": "^10.11.1", - "@polkadot/types-known": "^10.11.1", + "@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/util": "^12.6.1", + "@polkadot/util": "^12.6.2", "@polkadot/wasm-crypto": "^7.3.2", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-inject": "^5.0.5", "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-typescript": "^11.1.5", + "@rollup/plugin-typescript": "^11.1.6", "@types/ethereumjs-abi": "^0.6.5", "@types/mocha": "^10.0.6", "@types/url-parse": "^1.4.11", @@ -101,13 +101,13 @@ "buffer": "^6.0.3", "cross-env": "^7.0.3", "crypto-browserify": "^3.12.0", - "eslint": "^8.55.0", + "eslint": "^8.56.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.3", + "less-loader": "^11.1.4", "mocha": "^10.2.0", "path-browserify": "^1.0.1", "prettier": "^2.8.8", @@ -117,7 +117,7 @@ "semver": "^7.5.4", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", - "systeminformation": "^5.21.20", + "systeminformation": "^5.21.22", "ts-mocha": "^10.0.0", "tsconfig-paths": "^4.2.0", "typescript": "^4.9.5", diff --git a/packages/extension/src/providers/ethereum/libs/transaction/index.ts b/packages/extension/src/providers/ethereum/libs/transaction/index.ts index e968dd69f..a0a9d586f 100644 --- a/packages/extension/src/providers/ethereum/libs/transaction/index.ts +++ b/packages/extension/src/providers/ethereum/libs/transaction/index.ts @@ -69,10 +69,11 @@ class Transaction { gasLimit: string; formattedFeeHistory?: FormattedFeeHistory; }> { + const latestBlock = await this.web3.getBlock("latest", false); const { isFeeMarketNetwork, feeHistory } = await this.web3 .getFeeHistory(6, "latest", GAS_PERCENTILES) .then((history) => ({ - isFeeMarketNetwork: true, + isFeeMarketNetwork: !!latestBlock.baseFeePerGas, feeHistory: history, })) .catch(() => ({ diff --git a/packages/extension/src/providers/ethereum/networks/aa.ts b/packages/extension/src/providers/ethereum/networks/aa.ts index 8aa20b659..b40a38806 100644 --- a/packages/extension/src/providers/ethereum/networks/aa.ts +++ b/packages/extension/src/providers/ethereum/networks/aa.ts @@ -13,7 +13,7 @@ const artheraOptions: EvmNetworkOptions = { isTestNetwork: false, currencyName: "AA", currencyNameLong: "Arthera", - node: "https://rpc.arthera.net", + node: "wss://ws.arthera.net", icon: require("./icons/aa.svg"), activityHandler: wrapActivityHandler(EtherscanActivity), }; diff --git a/packages/extension/src/providers/ethereum/networks/glmr.ts b/packages/extension/src/providers/ethereum/networks/glmr.ts index 348b135f5..bd749671f 100644 --- a/packages/extension/src/providers/ethereum/networks/glmr.ts +++ b/packages/extension/src/providers/ethereum/networks/glmr.ts @@ -2,6 +2,7 @@ import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler"; import { CoingeckoPlatform, NetworkNames } from "@enkryptcom/types"; import { EtherscanActivity } from "../libs/activity-handlers"; import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network"; +import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew"; const moonbeamOptions: EvmNetworkOptions = { name: NetworkNames.Moonbeam, @@ -17,6 +18,7 @@ const moonbeamOptions: EvmNetworkOptions = { icon: require("./icons/moonbeam.svg"), coingeckoID: "moonbeam", coingeckoPlatform: CoingeckoPlatform.Moonbeam, + assetsInfoHandler, activityHandler: wrapActivityHandler(EtherscanActivity), }; diff --git a/packages/extension/src/providers/ethereum/networks/movr.ts b/packages/extension/src/providers/ethereum/networks/movr.ts index 58dd8bf06..cb27466dc 100644 --- a/packages/extension/src/providers/ethereum/networks/movr.ts +++ b/packages/extension/src/providers/ethereum/networks/movr.ts @@ -2,6 +2,7 @@ import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler"; import { CoingeckoPlatform, NetworkNames } from "@enkryptcom/types"; import { EtherscanActivity } from "../libs/activity-handlers"; import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network"; +import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew"; const moonriverOptions: EvmNetworkOptions = { name: NetworkNames.Moonriver, @@ -16,6 +17,7 @@ const moonriverOptions: EvmNetworkOptions = { node: "wss://wss.api.moonriver.moonbeam.network", icon: require("./icons/moonriver.svg"), coingeckoID: "moonriver", + assetsInfoHandler, coingeckoPlatform: CoingeckoPlatform.Moonriver, activityHandler: wrapActivityHandler(EtherscanActivity), }; diff --git a/packages/extension/src/ui/action/App.vue b/packages/extension/src/ui/action/App.vue index c2c2bd430..82ec4d5ba 100644 --- a/packages/extension/src/ui/action/App.vue +++ b/packages/extension/src/ui/action/App.vue @@ -76,7 +76,11 @@ @update:active-networks="setActiveNetworks" /> - + Add new {{ network.name_long }} account