Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
18ca58d
Support Massa in browser extension
peterjah Jul 8, 2025
59761a5
add custom token support in asset view
peterjah Jul 29, 2025
1c58e94
support MRC20 sending
peterjah Jul 31, 2025
ed340c7
devop: export type
kvhnuke Aug 13, 2025
926c79a
devop: remove form network
kvhnuke Aug 18, 2025
3bc16b3
devop: remove matic estimate gas list
kvhnuke Aug 19, 2025
8ed1760
Merge pull request #739 from massalabs/extension
kvhnuke Aug 20, 2025
83e5aef
devop: migrate crypto to local
kvhnuke Aug 20, 2025
377ce34
fix massa signature verify
peterjah Aug 25, 2025
8442c9a
devop: update packages
kvhnuke Aug 27, 2025
9564e9b
devop: update vite web extension
kvhnuke Aug 27, 2025
cb937f8
devop: update node
kvhnuke Aug 27, 2025
555d271
Merge pull request #743 from massalabs/extension
kvhnuke Aug 27, 2025
da2e374
Merge pull request #740 from enkryptcom/devop/export-types
kvhnuke Aug 27, 2025
6bab919
fix: tests
kvhnuke Aug 27, 2025
48e0cfa
fix: tests
kvhnuke Aug 27, 2025
939d68d
fix: build
kvhnuke Aug 27, 2025
92094ed
Merge pull request #742 from enkryptcom/devop/massa-changes
kvhnuke Aug 27, 2025
8660bcf
fix: tests
kvhnuke Aug 27, 2025
a754ac7
devop: cleanup
kvhnuke Aug 27, 2025
14fa497
fix: sanko network
kvhnuke Aug 27, 2025
8583091
fix: broken networks
kvhnuke Aug 27, 2025
7a72a23
devop: add zksepolia
kvhnuke Aug 27, 2025
74afbf4
devop: add zksepolia
kvhnuke Aug 27, 2025
afe65f1
fix: build
kvhnuke Aug 28, 2025
f173a23
devop: cleanup
kvhnuke Aug 28, 2025
95d0f8e
fix: build
kvhnuke Aug 28, 2025
450b069
devop: package updates
kvhnuke Aug 29, 2025
5a61a02
feat: add TAC mainnet
suhailkakar Sep 1, 2025
6fad677
update chain id
suhailkakar Sep 1, 2025
321d659
fix chrome extension build
peterjah Sep 2, 2025
0900c8c
add invalid address error message
peterjah Sep 2, 2025
4b2b694
ensure network is initialized before checking address
peterjah Sep 2, 2025
0115ba6
Merge pull request #746 from massalabs/extension
kvhnuke Sep 2, 2025
f2f8410
fix: polkadot signing issue and name resolver
kvhnuke Sep 2, 2025
6dce76c
fix: build
kvhnuke Sep 2, 2025
dad3a3e
Merge pull request #745 from suhailkakar/main
kvhnuke Sep 2, 2025
7e46243
devop: add TAC network
kvhnuke Sep 2, 2025
48a072d
devop: add tac network
kvhnuke Sep 2, 2025
da80eaf
rework sent input amount
peterjah Sep 4, 2025
3b8c669
set fiat value max width in sent-input-amount
peterjah Sep 4, 2025
99c6b70
Merge pull request #747 from massalabs/extension
kvhnuke Sep 4, 2025
660ea08
fix: keyring error
kvhnuke Sep 4, 2025
b533d21
feat: add nibiru and nibiru testnet networks
ruslan-sh-r Sep 8, 2025
e38a7c4
fix: restore readme
ruslan-sh-r Sep 8, 2025
56a2bb1
feat: routescan provider
ruslan-sh-r Sep 8, 2025
92deecc
devop: update packages
kvhnuke Sep 8, 2025
2d62693
fix transaction amount validation
peterjah Sep 9, 2025
381da02
rework activity status check
peterjah Sep 9, 2025
6966188
fix add massa custom token
peterjah Sep 9, 2025
543105b
Merge pull request #749 from massalabs/extension
kvhnuke Sep 9, 2025
d6ebdeb
devop: swap oneinchfusion provider
kvhnuke Sep 9, 2025
776c10b
fix: name issue and blank screen issue
kvhnuke Sep 9, 2025
ac3c8f0
fix: minor
kvhnuke Sep 9, 2025
89f5568
devop: properly pass rfq data
kvhnuke Sep 9, 2025
d6679ab
devop: waiting for source approval
kvhnuke Sep 10, 2025
784afe8
devop: waiting for source approval
kvhnuke Sep 10, 2025
cf3b326
Merge branch 'feat/nibiru-network' into feat/add-nibiru-network
kvhnuke Sep 10, 2025
fb5c184
Merge pull request #748 from ruslan-sh-r/feat/add-nibiru-network
kvhnuke Sep 10, 2025
901ece0
fix: conflicts
kvhnuke Sep 10, 2025
fb25068
devop: remove ham network, fix ftm explorer
kvhnuke Sep 10, 2025
cea48fd
fix: conflicts
kvhnuke Sep 11, 2025
7950524
Merge pull request #741 from enkryptcom/feat/massalabs-extension
kvhnuke Sep 11, 2025
cefd9e4
devop: add new network
kvhnuke Sep 11, 2025
ba77b24
fix: no tx bufs
kvhnuke Sep 11, 2025
266e863
devop: update massa to stable
kvhnuke Sep 15, 2025
c0aee18
devop: add massa generate tests
kvhnuke Sep 15, 2025
7a648bc
Merge pull request #744 from enkryptcom/devop/package-upgrades-2-11
kvhnuke Sep 15, 2025
b4a2ada
Merge pull request #754 from enkryptcom/develop
kvhnuke Sep 16, 2025
c4b6a6a
Merge branch 'develop' into feat/oneinch-fusion
kvhnuke Sep 16, 2025
2dd68bf
devop: minor swap changes
kvhnuke Sep 16, 2025
3170c85
fix: fusion swap
kvhnuke Sep 16, 2025
523cb32
feat: add survey popup
olgakup Sep 16, 2025
771d1e8
chore: code cleanup
olgakup Sep 16, 2025
c604780
devop: bump version
kvhnuke Sep 18, 2025
75a49b7
Merge pull request #755 from enkryptcom/feat/survey-popup
kvhnuke Sep 18, 2025
a3f5aab
Merge branch 'main' into develop
kvhnuke Sep 18, 2025
c0b090a
Merge pull request #757 from enkryptcom/develop
kvhnuke Sep 18, 2025
c8edc6e
fix: etherscan urls
kvhnuke Sep 22, 2025
c4adbd2
devop: remove 1inch fusion orders below 0
kvhnuke Sep 24, 2025
85f9c49
devop: remove survey
gamalielhere Sep 24, 2025
3a889d8
fix: tests
kvhnuke Sep 25, 2025
4df768d
fix: tests
kvhnuke Sep 25, 2025
8271a8f
fix: merge conflicts
kvhnuke Sep 25, 2025
ecabe0e
devop: upgrade packages
kvhnuke Sep 25, 2025
8399873
Merge pull request #759 from enkryptcom/devop/remove-survey
kvhnuke Sep 25, 2025
73d525d
Merge pull request #758 from enkryptcom/devop/migrate-etherscan-v2
kvhnuke Sep 25, 2025
5bb621f
devop: remove console.logs
kvhnuke Sep 25, 2025
5bb1fec
devop: merge
kvhnuke Sep 25, 2025
c98c6aa
devop: bump version
kvhnuke Sep 25, 2025
7a088c2
devop: remove undefined var
kvhnuke Sep 25, 2025
edad321
fix: massa sha512
kvhnuke Sep 29, 2025
f60316c
fix: massa sha512
kvhnuke Sep 29, 2025
eba1e19
devop: remove log
kvhnuke Sep 30, 2025
8abcd00
devop: remove console.log
kvhnuke Oct 1, 2025
1a423d4
fix: jup swap
kvhnuke Oct 1, 2025
3969621
Merge pull request #760 from enkryptcom/devop/release-v-2-13
kvhnuke Oct 2, 2025
94a605d
Merge pull request #762 from enkryptcom/main
kvhnuke Oct 2, 2025
ae5aa73
Merge pull request #761 from enkryptcom/develop
kvhnuke Oct 2, 2025
dfcdc2a
fix: blockscout balances
kvhnuke Oct 7, 2025
592fb22
devop: bump version
kvhnuke Oct 8, 2025
0e366a7
Merge pull request #764 from enkryptcom/devop/fix-blockscout-tokens
kvhnuke Oct 8, 2025
1bd8c09
Merge branch 'main' into develop
kvhnuke Oct 8, 2025
eb027e9
Merge pull request #765 from enkryptcom/develop
kvhnuke Oct 8, 2025
65d7109
fix: fantom node
kvhnuke Oct 16, 2025
3d13b84
feat: allow rbtc swaps using changelly
ahsan-javaiid Oct 21, 2025
7056766
devop: package updates
kvhnuke Nov 3, 2025
f3f2afe
fix: remove unused parameter from mnemonicToMiniSecret
kvhnuke Nov 3, 2025
a5be057
Merge branch 'devop/package-updates-2-14' into fix/nodes
kvhnuke Nov 4, 2025
32caaf3
fix: remove OKC network references from asset handlers and configs
kvhnuke Nov 4, 2025
720ed80
fix: update Astar network node URL to use OnFinality API
kvhnuke Nov 4, 2025
ff17c94
fix: update Palm network node URL to use Infura API
kvhnuke Nov 4, 2025
03aa877
fix: remove references to Proof of Play Apex network from various files
kvhnuke Nov 4, 2025
0f3b501
fix: remove ZChains network references and associated files
kvhnuke Nov 5, 2025
7a00693
Merge branch 'devop/package-updates-2-14' into feat/nibiru-network
kvhnuke Nov 5, 2025
ef2c2d6
fix: update XLayer network node URL to use OKX RPC
kvhnuke Nov 5, 2025
bf1d1d2
fix: remove trailing slashes from NetworkEndpoints URLs
kvhnuke Nov 5, 2025
a77e69f
fix: improve error handling in getAddressActivity function
kvhnuke Nov 5, 2025
f1a2229
Merge pull request #766 from enkryptcom/fix/nodes
kvhnuke Nov 5, 2025
43df733
Merge pull request #750 from enkryptcom/feat/nibiru-network
kvhnuke Nov 5, 2025
5602f3b
Merge pull request #767 from ahsan-javaiid/rbtc-swaps
kvhnuke Nov 5, 2025
d4c8da7
fix: improve readability and add condition for getExchangeAmount resp…
kvhnuke Nov 5, 2025
d366167
feat: update version to 2.14.0 and add Nibiru network to new features
kvhnuke Nov 5, 2025
2fbdf58
fix: correct chainID for Story network from '0x5EF' to '0x5ea'
kvhnuke Nov 5, 2025
f8cc79c
refactor: remove XLayer network support from asset handlers and types
kvhnuke Nov 6, 2025
9130c31
feat: add provider names to swap
gamalielhere Nov 19, 2025
41bd3d3
devop: update packages
kvhnuke Nov 19, 2025
59f2363
feat: implement backup restoration and exclude specific signer types
kvhnuke Nov 19, 2025
0e5d94c
refactor: remove Canto network support from dapp lists and asset hand…
kvhnuke Nov 20, 2025
624f8dc
feat: update Kadena network integration and restore backup functionality
kvhnuke Nov 20, 2025
93e5180
fix: handle empty data response in OKX provider
kvhnuke Nov 20, 2025
a104588
fix: cleanup and add provider logos
gamalielhere Nov 20, 2025
859e386
devop: coderabbit recs
gamalielhere Nov 20, 2025
d6fe1e5
feat: add restricted popup
gamalielhere Nov 24, 2025
c729efe
fix: remove second loop
gamalielhere Nov 24, 2025
ca8ebfd
feat: add geolock
gamalielhere Nov 24, 2025
deb7190
fix: copy
gamalielhere Nov 25, 2025
45936d7
fix: update copy
gamalielhere Nov 25, 2025
475bb3e
feat: update more info
gamalielhere Nov 25, 2025
305d41f
Refactor code structure for improved readability and maintainability
kvhnuke Nov 25, 2025
d2f8958
Merge branch 'feat/provider-names' into feat/restricted-popup
kvhnuke Nov 25, 2025
319ad1b
Refactor Vue components for improved readability and maintainability
kvhnuke Nov 26, 2025
4269203
feat: implement geo-restriction handling in BackgroundHandler and imp…
kvhnuke Nov 26, 2025
b316433
feat: enhance UI structure and styling in App.vue and lock-screen-pas…
kvhnuke Nov 26, 2025
3c1b112
feat: improve markup and styling in index.vue and App.vue for better …
kvhnuke Nov 27, 2025
6fa4721
Merge pull request #771 from enkryptcom/feat/restricted-popup
kvhnuke Nov 27, 2025
581e162
Merge pull request #769 from enkryptcom/feat/provider-names
kvhnuke Nov 27, 2025
b57707b
Merge pull request #768 from enkryptcom/devop/package-updates-2-14
kvhnuke Nov 27, 2025
ad6990d
Merge branch 'main' into develop
kvhnuke Nov 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.10.0"
node-version: "22.18.0"
cache: "yarn"
- run: yarn install
- run: yarn build:all
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.10.0"
node-version: "22.18.0"
cache: "yarn"
- run: yarn install
- run: yarn build:all
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.11.0
v22.18.0
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.inlineSuggest.enabled": false
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22.11-bookworm
FROM node:22.18-bookworm
RUN apt-get update
RUN apt-get install build-essential zip -y
ENV HOME /home
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ Enkrypt is a web3 wallet built from the ground up to support the multi-chain fut
- Gravity
- Unit Zero
- Unit Zero Testnet
- Nibiru
- Nibiru Testnet
- More coming soon!

Looking to add your project? [Contact us!](https://mewwallet.typeform.com/enkrypt-inquiry?typeform-source=www.enkrypt.com)
Expand Down Expand Up @@ -226,4 +228,4 @@ Email - info@enkrypt.com

Homepage - [https://www.enkrypt.com/](https://www.enkrypt.com/)

<p align="right">(<a href="#top">back to top</a>)</p>
<p align="right">(<a href="#top">back to top</a>)</p>
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@swc/core": "^1.13.2",
"concurrently": "^9.2.0",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@swc/core": "^1.15.2",
"concurrently": "^9.2.1",
"husky": "^9.1.7",
"node-notifier": "^10.0.1",
"nodemon": "^3.1.10",
"ultra-runner": "^3.10.5"
"nodemon": "^3.1.11",
"ultra-runner": "^3.10.5",
"vite-plugin-node-polyfills": "0.24.0"
},
"resolutions": {
"@zondax/ledger-cosmos-js/vue": "^3.5.12",
Expand Down
20 changes: 10 additions & 10 deletions packages/extension-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"webextension-polyfill": "^0.12.0"
},
"devDependencies": {
"@types/node": "^22.16.5",
"@types/webextension-polyfill": "^0.12.3",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"bumpp": "^10.2.0",
"eslint": "^9.32.0",
"@types/node": "^22.19.1",
"@types/webextension-polyfill": "^0.12.4",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"bumpp": "^10.3.1",
"eslint": "^9.39.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-alias": "^1.1.2",
Expand All @@ -58,9 +58,9 @@
"prettier": "^3.6.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsup": "^8.5.0",
"type-fest": "^4.41.0",
"typescript": "^5.8.3",
"typescript-eslint": "8.38.0"
"tsup": "^8.5.1",
"type-fest": "^5.2.0",
"typescript": "^5.9.3",
"typescript-eslint": "8.47.0"
}
}
21 changes: 12 additions & 9 deletions packages/extension/configs/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@ export default defineConfig({
plugins: [
tsconfigPaths() as any,
nodePolyfills({
include: [
'crypto',
// ... include other Node.js modules if needed
],
include: ['crypto'],
}),
],
define: {
// setting __VERSION__ here blows it up for some reason
// __VERSION__: 'testing',
__IS_OPERA__: false,
},
test: {
environment: 'jsdom',
setupFiles: ['./tests/setup.ts'],
include: [
'src/**/*.{test,spec}.ts',
'tests/**/*.{test,spec}.ts',
include: ['src/**/*.{test,spec}.ts', 'tests/**/*.{test,spec}.ts'],
},
resolve: {
alias: [
{
find: /^(vite-plugin-node-polyfills\/shims\/.+)/,
replacement: '$1',
customResolver(source) {
return import.meta.resolve(source).replace(/^file:\/\//, '');
},
},
],
},
});
109 changes: 55 additions & 54 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enkryptcom/extension",
"version": "2.10.0",
"version": "2.14.0",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -16,14 +16,14 @@
"build:chrome": "yarn prebuild && cross-env BROWSER='chrome' MINIFY='true' vite build",
"build:firefox": "yarn prebuild && cross-env BROWSER='firefox' MINIFY='true' vite build && node configs/get-system-info.js",
"build:opera": "yarn prebuild && cross-env BROWSER='opera' MINIFY='true' vite build",
"kadena:prebuild": "pactjs contract-generate --contract=coin --api https://api.chainweb.com/chainweb/0.0/mainnet01/chain/1/pact",
"kadena:prebuild": "pactjs contract-generate --contract=coin --api https://api.chainweb-community.org/chainweb/0.0/mainnet01/chain/1/pact",
"test": "vitest run -c ./configs/vitest.config.mts",
"watch": "yarn dev",
"watch:chrome": "yarn dev",
"watch:firefox": "yarn prebuild && cross-env BROWSER='firefox' vite"
},
"dependencies": {
"@amplitude/analytics-browser": "^2.20.1",
"@amplitude/analytics-browser": "^2.31.1",
"@enkryptcom/extension-bridge": "workspace:^",
"@enkryptcom/hw-wallets": "workspace:^",
"@enkryptcom/keyring": "workspace:^",
Expand All @@ -36,34 +36,35 @@
"@ethereumjs/tx": "^5.4.0",
"@ethereumjs/util": "^9.1.0",
"@ethereumjs/wallet": "^2.0.4",
"@kadena/client": "^1.18.0",
"@kadena/pactjs-cli": "^1.18.0",
"@ledgerhq/hw-transport-webusb": "^6.29.8",
"@kadena/client": "^1.18.3",
"@kadena/pactjs-cli": "^1.18.3",
"@ledgerhq/hw-transport-webusb": "^6.29.13",
"@massalabs/massa-web3": "^5.3.0",
"@metamask/eth-sig-util": "^8.2.0",
"@metaplex-foundation/mpl-bubblegum": "^5.0.2",
"@metaplex-foundation/umi": "^1.2.0",
"@metaplex-foundation/umi-bundle-defaults": "^1.2.0",
"@polkadot/api": "^16.4.2",
"@polkadot/extension-inject": "^0.61.4",
"@polkadot/keyring": "^13.5.3",
"@polkadot/rpc-provider": "^16.4.2",
"@polkadot/types": "^16.4.2",
"@polkadot/types-known": "^16.4.2",
"@polkadot/ui-shared": "^3.15.2",
"@polkadot/util": "^13.5.3",
"@polkadot/wasm-crypto": "^7.4.1",
"@metaplex-foundation/umi": "^1.4.1",
"@metaplex-foundation/umi-bundle-defaults": "^1.4.1",
"@polkadot/api": "^16.5.2",
"@polkadot/extension-inject": "^0.62.5",
"@polkadot/keyring": "^13.5.8",
"@polkadot/rpc-provider": "^16.5.2",
"@polkadot/types": "^16.5.2",
"@polkadot/types-known": "^16.5.2",
"@polkadot/ui-shared": "^3.16.3",
"@polkadot/util": "^13.5.8",
"@polkadot/wasm-crypto": "^7.5.2",
"@solana-developers/helpers": "2.8.0",
"@solana/spl-token": "^0.4.13",
"@solana/spl-token": "^0.4.14",
"@solana/wallet-standard-features": "^1.3.0",
"@solana/web3.js": "^1.98.2",
"@solana/web3.js": "^1.98.4",
"@wallet-standard/base": "^1.1.0",
"add": "^2.0.6",
"bignumber.js": "^9.3.1",
"bip39": "^3.1.0",
"bitcoinjs-lib": "^6.1.7",
"bs58": "^6.0.0",
"concurrently": "^9.2.0",
"echarts": "^5.6.0",
"concurrently": "^9.2.1",
"echarts": "^6.0.0",
"ethereum-cryptography": "^2.2.1",
"ethereumjs-abi": "^0.6.8",
"eventemitter3": "^5.0.1",
Expand All @@ -73,14 +74,14 @@
"moment": "^2.30.1",
"nanoevents": "^9.1.0",
"pact-lang-api": "^4.3.6",
"pinia": "^3.0.3",
"pinia": "^3.0.4",
"qrcode.vue": "^3.6.0",
"switch-ts": "^1.1.1",
"url-parse": "^1.5.10",
"uuid": "^11.1.0",
"vue": "^3.5.18",
"vue-echarts": "7.0.3",
"vue-router": "^4.5.1",
"uuid": "^13.0.0",
"vue": "^3.5.24",
"vue-echarts": "8.0.1",
"vue-router": "^4.6.3",
"vue3-lottie": "^3.3.1",
"vuedraggable": "^4.1.0",
"web3-eth": "^1.10.4",
Expand All @@ -89,56 +90,56 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@crxjs/vite-plugin": "^2.0.0-beta.32",
"@rollup/plugin-commonjs": "^28.0.6",
"@crxjs/vite-plugin": "^2.2.1",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@tsconfig/node20": "^20.1.6",
"@rollup/plugin-typescript": "^12.3.0",
"@tsconfig/node20": "^20.1.8",
"@types/bs58": "^5.0.0",
"@types/chrome": "^0.1.1",
"@types/chrome": "^0.1.31",
"@types/ethereumjs-abi": "^0.6.5",
"@types/events": "^3.0.3",
"@types/fs-extra": "^11.0.4",
"@types/less": "^3.0.8",
"@types/lodash": "^4.17.20",
"@types/node": "^22.16.5",
"@types/semver": "^7.7.0",
"@types/node": "^22.19.1",
"@types/semver": "^7.7.1",
"@types/url-parse": "^1.4.11",
"@types/utf-8-validate": "^5.0.2",
"@types/uuid": "^10.0.0",
"@types/uuid": "^11.0.0",
"@types/wif": "^2.0.5",
"@types/zxcvbn": "^4.4.5",
"@vitejs/plugin-vue": "^5.2.4",
"@vitejs/plugin-vue": "^6.0.2",
"@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^14.6.0",
"@vue/tsconfig": "^0.7.0",
"@vueuse/core": "^13.5.0",
"cross-env": "^7.0.3",
"eslint": "^9.32.0",
"eslint-plugin-vue": "^10.3.0",
"fs-extra": "^11.3.0",
"@vue/tsconfig": "^0.8.1",
"@vueuse/core": "^14.0.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.1",
"eslint-plugin-vue": "^10.5.1",
"fs-extra": "^11.3.2",
"jsdom": "^26.1.0",
"less": "^4.4.0",
"less": "^4.4.2",
"less-loader": "^12.3.0",
"npm-run-all2": "^8.0.4",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"rollup": "^4.45.1",
"rollup-plugin-visualizer": "^6.0.3",
"semver": "^7.7.2",
"systeminformation": "^5.27.7",
"tsup": "^8.5.0",
"typescript": "~5.8.3",
"rimraf": "^6.1.2",
"rollup": "^4.53.3",
"rollup-plugin-visualizer": "^6.0.5",
"semver": "^7.7.3",
"systeminformation": "^5.27.11",
"tsup": "^8.5.1",
"typescript": "~5.9.3",
"url": "^0.11.4",
"vite": "^6.3.5",
"vite": "^7.2.2",
"vite-plugin-node-polyfills": "0.24.0",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4",
"vue-tsc": "^2.2.12",
"vitest": "^4.0.10",
"vue-tsc": "^3.1.4",
"webextension-polyfill": "^0.12.0"
},
"installConfig": {
Expand Down
19 changes: 19 additions & 0 deletions packages/extension/src/libs/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from './internal';
import { handlePersistentEvents } from './external';
import SettingsState from '../settings-state';
import { isGeoRestricted } from '../utils/screening';

class BackgroundHandler {
#keyring: KeyRingBase;
Expand All @@ -36,6 +37,7 @@ class BackgroundHandler {
#persistentEvents: PersistentEvents;
#domainState: DomainState;
#settingsState: SettingsState;
#geoRestricted: boolean | undefined;

constructor() {
this.#keyring = new KeyRingBase();
Expand All @@ -48,8 +50,13 @@ class BackgroundHandler {
[ProviderName.bitcoin]: {},
[ProviderName.kadena]: {},
[ProviderName.solana]: {},
[ProviderName.massa]: {},
};
this.#providers = Providers;
this.#geoRestricted = undefined;
isGeoRestricted().then(restricted => {
this.#geoRestricted = restricted;
});
}
async init(): Promise<void> {
await handlePersistentEvents.bind(this)();
Expand Down Expand Up @@ -82,6 +89,9 @@ class BackgroundHandler {
method === InternalMethods.newWindowUnload
) {
this.#persistentEvents.deleteEvents(_tabid);
isGeoRestricted().then(restricted => {
this.#geoRestricted = restricted;
});
return {
result: JSON.stringify(true),
};
Expand All @@ -96,6 +106,15 @@ class BackgroundHandler {
error: JSON.stringify(getCustomError('Enkrypt: not implemented')),
};
}
if (this.#geoRestricted !== undefined && this.#geoRestricted) {
return {
error: JSON.stringify(
getCustomError(
'Enkrypt: Geo restricted https://www.myetherwallet.com/blocked',
),
),
};
}
const tabInfo = TabInfo(await Browser.tabs.get(_tabid));
if (!this.#tabProviders[_provider][_tabid]) {
const toWindow = (message: string) => {
Expand Down
Loading