diff --git a/.eslintrc.js b/.eslintrc.js
index 694e34be..a078a7f1 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,6 +19,7 @@ module.exports = {
{
files: ['src/**/*.js'],
parserOptions: {
+ ecmaVersion: 2020,
sourceType: 'module',
},
},
diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml
index 2eb53834..6c38b104 100644
--- a/.github/workflows/build-lint-test.yml
+++ b/.github/workflows/build-lint-test.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [18.x, 20.x]
+ node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
diff --git a/.gitignore b/.gitignore
index b10648c1..28ad1a70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ node_modules
dist
.eslintcache
.DS_Store
+.worktrees
diff --git a/.nvmrc b/.nvmrc
index 3f430af8..f62f0b29 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-v18
+v20.19.1
diff --git a/README.md b/README.md
index bb185b4a..a44155e0 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ It can be used by navigating to `/request.html?method=${METHOD}¶ms=${PARAMS}
### Setup
-- Install [Node.js](https://nodejs.org) version 16
+- Install [Node.js](https://nodejs.org) version 20.19.0 or later
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
- Install [Yarn v1](https://yarnpkg.com/en/docs/install)
- Run `yarn setup` to install dependencies and run any required post-install scripts
diff --git a/package.json b/package.json
index c5053de1..4a22f50a 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "9.9.0",
"description": "A simple dapp used in MetaMask e2e tests.",
"engines": {
- "node": ">= 18.0.0"
+ "node": ">=20.19.0"
},
"scripts": {
"setup": "yarn install && yarn allow-scripts",
@@ -42,6 +42,7 @@
"@lavamoat/allow-scripts": "^2.5.1",
"@lavamoat/preinstall-always-fail": "^2.0.0",
"@metamask/auto-changelog": "^2.5.0",
+ "@metamask/connect-evm": "^1.4.0",
"@metamask/eslint-config": "^6.0.0",
"@metamask/eslint-config-nodejs": "^6.0.0",
"@metamask/eth-sig-util": "^7.0.1",
@@ -82,7 +83,10 @@
"@metamask/sdk>@metamask/sdk-communication-layer>bufferutil": false,
"@metamask/sdk>@metamask/sdk-communication-layer>utf-8-validate": false,
"@metamask/sdk>eciesjs>secp256k1": false,
- "@web3modal/ethers5>@coinbase/wallet-sdk>@solana/web3.js>rpc-websockets>utf-8-validate": false
+ "@web3modal/ethers5>@coinbase/wallet-sdk>@solana/web3.js>rpc-websockets>utf-8-validate": false,
+ "@metamask/connect-evm>@metamask/connect-multichain>@metamask/mobile-wallet-protocol-core>centrifuge>protobufjs": false,
+ "ethereumjs-util>ethereum-cryptography>keccak": false,
+ "ethereumjs-util>ethereum-cryptography>secp256k1": false
}
},
"packageManager": "yarn@1.22.22"
diff --git a/src/components/connections/connections.js b/src/components/connections/connections.js
index 431b20f5..657aeda7 100644
--- a/src/components/connections/connections.js
+++ b/src/components/connections/connections.js
@@ -31,6 +31,10 @@ export function connectionsComponent(parentContainer) {
>
SDK Connect
+