Skip to content

Commit b9904e9

Browse files
authored
upgrade deps (#452)
1 parent 70e8fe9 commit b9904e9

File tree

23 files changed

+3682
-4352
lines changed

23 files changed

+3682
-4352
lines changed

.github/actions/install-dependencies/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
- name: Setup Node
3232
uses: actions/setup-node@v3
3333
with:
34-
node-version: 18
34+
node-version: 20
3535

3636
- name: Install dependencies
3737
shell: bash

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
# - uses: actions/checkout@v3
218218
# - uses: actions/setup-node@v3
219219
# with:
220-
# node-version: 18
220+
# node-version: 20
221221
# - uses: actions/cache@v3
222222
# id: pnpm-cache
223223
# with:

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ module.exports = {
1414
'@babel/preset-typescript'
1515
],
1616
plugins: [
17-
['@babel/plugin-proposal-class-properties', { loose: true }]
17+
['@babel/plugin-transform-class-properties', { loose: true }]
1818
]
1919
}

package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"version-packages": "changeset version",
1111
"release": "pnpm build && changeset publish",
1212
"snapshot": "changeset && changeset version --snapshot && pnpm i && pnpm build && changeset publish --tag snapshot && git tag | grep '0\\.0\\.0' | xargs git tag -d && echo && echo -n 'Published sequence.js snapshot ' && grep '^## ' packages/0xsequence/CHANGELOG.md | head -n 1 | cut -c 4-",
13-
"test": "pnpm -r test",
14-
"test:parallel": "pnpm -r test",
13+
"test": "pnpm -r --workspace-concurrency=1 test",
14+
"test:parallel": "pnpm -r test",
1515
"lint": "eslint -c .eslintrc.js 'packages/**/src/**/*.{ts,tsx}'",
1616
"lint:fix": "eslint -c .eslintrc.js --fix 'packages/**/src/**/*.{ts,tsx}'",
1717
"lint:tests": "eslint -c .eslintrc.js 'packages/**/tests/**/*.{ts,tsx}'",
@@ -47,40 +47,40 @@
4747
"@0xsequence/utils": "workspace:*",
4848
"@0xsequence/wallet": "workspace:*",
4949
"@babel/core": "^7.21.4",
50-
"@babel/plugin-proposal-class-properties": "^7.18.6",
50+
"@babel/plugin-transform-class-properties": "^7.23.3",
5151
"@babel/preset-env": "^7.21.4",
5252
"@babel/preset-typescript": "^7.21.4",
5353
"@babel/runtime": "^7.21.0",
54-
"@changesets/changelog-github": "^0.4.7",
54+
"@changesets/changelog-github": "^0.5.0",
5555
"@changesets/cli": "^2.26.1",
5656
"@preconstruct/cli": "^2.8.1",
57-
"@types/chai": "^4.2.22",
58-
"@types/chai-as-promised": "^7.1.4",
59-
"@types/mocha": "^10.0.0",
60-
"@types/node": "^18.16.1",
61-
"@typescript-eslint/eslint-plugin": "^5.59.1",
62-
"@typescript-eslint/parser": "^5.59.1",
63-
"ava": "^3.15.0",
64-
"chai": "^4.3.4",
57+
"@types/chai": "^4.3.11",
58+
"@types/chai-as-promised": "^7.1.8",
59+
"@types/mocha": "^10.0.6",
60+
"@types/node": "^20.10.4",
61+
"@typescript-eslint/eslint-plugin": "^6.13.2",
62+
"@typescript-eslint/parser": "^6.13.2",
63+
"ava": "^6.0.1",
64+
"chai": "^4.3.10",
6565
"chai-as-promised": "^7.1.1",
66-
"concurrently": "^7.5.0",
66+
"concurrently": "^8.2.2",
6767
"eslint": "^8.39.0",
68-
"eslint-config-prettier": "^8.8.0",
68+
"eslint-config-prettier": "^9.1.0",
6969
"eslint-plugin-import": "^2.27.5",
70-
"eslint-plugin-prettier": "^4.2.1",
70+
"eslint-plugin-prettier": "^5.0.1",
7171
"ethers": "^5.7.2",
7272
"express": "^4.18.2",
7373
"hardhat": "^2.12.2",
7474
"husky": "^8.0.0",
7575
"mocha": "^10.1.0",
7676
"nyc": "^15.1.0",
7777
"prettier": "^3.0.0",
78-
"puppeteer": "^19.7.2",
79-
"rimraf": "^5.0.0",
80-
"ts-node": "^10.9.1",
81-
"tsx": "^3.12.1",
82-
"typescript": "~4.9.4",
83-
"wait-on": "^6.0.1"
78+
"puppeteer": "^21.6.0",
79+
"rimraf": "^5.0.5",
80+
"ts-node": "^10.9.2",
81+
"tsx": "^4.6.2",
82+
"typescript": "~5.3.3",
83+
"wait-on": "^7.2.0"
8484
},
8585
"resolutions": {},
8686
"workspaces": [

packages/0xsequence/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "Apache-2.0",
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
13-
"test:run": "NODE_OPTIONS='--loader tsx' ava --serial --fail-fast --timeout 5m",
13+
"test:run": "NODE_OPTIONS='--import tsx' ava --serial --fail-fast --timeout 5m",
1414
"test:only": "pnpm test:run --match",
1515
"test:watch": "pnpm test:run --watch",
1616
"test:server": "webpack serve --config tests/webpack.config.js",
@@ -51,7 +51,7 @@
5151
},
5252
"devDependencies": {
5353
"@0xsequence/tests": "workspace:*",
54-
"@0xsequence/wallet-contracts": "^1.10.0",
54+
"@0xsequence/wallet-contracts": "^2.0.0",
5555
"@babel/plugin-transform-runtime": "^7.19.6",
5656
"babel-loader": "^9.1.0",
5757
"ethers": "^5.7.2",

packages/0xsequence/tests/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = {
119119
options: {
120120
presets: ['@babel/preset-typescript'],
121121
plugins: [
122-
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }]
122+
[require.resolve('@babel/plugin-transform-class-properties'), { loose: true }]
123123
],
124124
cacheCompression: false,
125125
compact: false,

packages/account/tests/account.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Account', () => {
8888
}
8989

9090
before(async () => {
91-
provider1 = new ethers.providers.Web3Provider(hardhat.network.provider.send)
91+
provider1 = new ethers.providers.Web3Provider(hardhat.network.provider as any)
9292
provider2 = new ethers.providers.JsonRpcProvider('http://127.0.0.1:7048')
9393

9494
// TODO: Implement migrations on local config tracker

packages/account/tests/signer.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Account signer', () => {
3636
}
3737

3838
before(async () => {
39-
provider1 = new ethers.providers.Web3Provider(hardhat.network.provider.send)
39+
provider1 = new ethers.providers.Web3Provider(hardhat.network.provider as any)
4040
provider2 = new ethers.providers.JsonRpcProvider('http://127.0.0.1:7048')
4141

4242
// TODO: Implement migrations on local config tracker

packages/auth/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1515
"test:concurrently": "concurrently -k --success first 'pnpm start:hardhat > /dev/null' ",
1616
"start:hardhat": "hardhat node --port 9546",
1717
"typecheck": "tsc --noEmit"

packages/deployer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "Apache-2.0",
1111
"scripts": {
1212
"test": "pnpm test:file tests/**/*.spec.ts",
13-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
13+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1414
"typecheck": "tsc --noEmit",
1515
"build": "rm -rf src/typings && TS_NODE_PROJECT=../../tsconfig.test.json hardhat clean && pnpm compile-contracts && pnpm gen:typings",
1616
"compile-contracts": "TS_NODE_PROJECT=../../tsconfig.test.json hardhat --max-memory 4096 compile",

packages/estimator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "wait-on -t 120000 http-get://127.0.0.1:10045/ && pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1515
"test:concurrently": "concurrently -k --success first 'pnpm start:geth > /dev/null'",
1616
"start:geth": "docker run --rm -t -p 10045:10045 ethereum/client-go:v1.10.16 --http --http.addr 0.0.0.0 --http.port 10045 --datadir test_chain --dev --rpc.allow-unprotected-txs",
1717
"typecheck": "tsc --noEmit"

packages/estimator/src/overwriter-sequence-estimator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class OverwriterSequenceEstimator implements Estimator {
3939
return a.weight.sub(b.weight).toNumber()
4040
})
4141
.filter(s => {
42-
if (totalWeight >= config.threshold) {
42+
if (totalWeight >= (config.threshold as number)) {
4343
return false
4444
} else {
4545
totalWeight += s.weight.toNumber()

packages/multicall/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "Apache-2.0",
1111
"scripts": {
1212
"test": "echo 'note, run local-test script instead, as test command is flakey'",
13-
"local-test": "NODE_OPTIONS='--loader tsx' mocha --timeout 10000 tests/**/*.spec.ts",
13+
"local-test": "NODE_OPTIONS='--import tsx' mocha --timeout 10000 tests/**/*.spec.ts",
1414
"typecheck": "tsc --noEmit"
1515
},
1616
"dependencies": {
@@ -22,7 +22,7 @@
2222
"ethers": ">=5.5 < 6"
2323
},
2424
"devDependencies": {
25-
"@0xsequence/wallet-contracts": "^1.10.0",
25+
"@0xsequence/wallet-contracts": "^2.0.0",
2626
"@ethersproject/providers": "^5.7.2",
2727
"@types/web3-provider-engine": "^14.0.1",
2828
"eth-json-rpc-middleware": "^9.0.1",

packages/provider/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1515
"typecheck": "tsc --noEmit",
1616
"test:concurrently": "concurrently -k --success first 'pnpm start:hardhat1' 'pnpm start:hardhat2'",
1717
"start:hardhat1": "pnpm start:hardhat1:verbose > /dev/null 2>&1",

packages/provider/src/types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ export interface ProviderMessageTransport {
9090

9191
export type WindowSessionParam = 'sid' | 'net' | 'intent'
9292

93+
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
9394
export interface WindowSessionParams extends URLSearchParams {
9495
get(name: WindowSessionParam): string | null
9596
set(name: WindowSessionParam, value: string): void
9697
}
9798

99+
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
98100
export class WindowSessionParams extends URLSearchParams {
99101
static new(init?: Record<WindowSessionParam, string> | string) {
100102
return new URLSearchParams(init) as WindowSessionParams

packages/relayer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1515
"test:concurrently": "concurrently -k --success first 'pnpm start:hardhat > /dev/null' ",
1616
"start:hardhat": "pnpm hardhat node --port 9547",
1717
"typecheck": "tsc --noEmit"

packages/relayer/tests/provider-relayer.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Wallet integration', function () {
2424
let signers: ethers.Signer[]
2525

2626
before(async () => {
27-
provider = new ethers.providers.Web3Provider(hardhat.network.provider.send)
27+
provider = new ethers.providers.Web3Provider(hardhat.network.provider as any)
2828
signers = new Array(8).fill(0).map((_, i) => provider.getSigner(i))
2929
contexts = await context.deploySequenceContexts(signers[0])
3030
relayer = new LocalRelayer(signers[1])

packages/sessions/tests/local.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('Local config tracker', () => {
148148
let provider: ethers.providers.Web3Provider
149149

150150
before(async () => {
151-
provider = new ethers.providers.Web3Provider(hardhat.network.provider.send)
151+
provider = new ethers.providers.Web3Provider(hardhat.network.provider as any)
152152
})
153153
;[
154154
{

packages/simulator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "wait-on -t 120000 http-get://127.0.0.1:10045/ && pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1515
"test:concurrently": "concurrently -k --success first 'pnpm start:geth > /dev/null'",
1616
"start:geth": "docker run --rm -t -p 10045:10045 ethereum/client-go:v1.10.16 --http --http.addr 0.0.0.0 --http.port 10045 --datadir test_chain --dev --rpc.allow-unprotected-txs",
1717
"typecheck": "tsc --noEmit"

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "Apache-2.0",
1111
"scripts": {
1212
"test": "pnpm test:file tests/**/*.spec.ts",
13-
"test:file": "NODE_OPTIONS='--loader tsx' mocha --timeout 30000",
13+
"test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000",
1414
"typecheck": "tsc --noEmit"
1515
},
1616
"dependencies": {

packages/wallet/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"test": "pnpm test:concurrently 'pnpm test:run'",
1313
"test:run": "pnpm test:file tests/**/*.spec.ts",
14-
"test:file": "NODE_OPTIONS='--loader tsx' mocha -timeout 300000",
14+
"test:file": "NODE_OPTIONS='--import tsx' mocha -timeout 300000",
1515
"test:concurrently": "concurrently -k --success first 'pnpm start:hardhat2 > /dev/null'",
1616
"start:hardhat2": "hardhat node --hostname 0.0.0.0 --port 7047 --config ./hardhat2.config.js",
1717
"typecheck": "tsc --noEmit"
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"@0xsequence/ethauth": "^0.8.1",
3232
"@0xsequence/tests": "workspace:*",
33-
"@0xsequence/wallet-contracts": "^1.10.0",
33+
"@0xsequence/wallet-contracts": "^2.0.0",
3434
"@istanbuljs/nyc-config-typescript": "^1.0.1",
3535
"ethers": "^5.7.2",
3636
"web3": "^1.8.1"

packages/wallet/tests/wallet.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Wallet (primitive)', () => {
2323
let relayer: LocalRelayer
2424

2525
before(async () => {
26-
provider = new ethers.providers.Web3Provider(hardhat.network.provider.send)
26+
provider = new ethers.providers.Web3Provider(hardhat.network.provider as any)
2727
signers = new Array(8).fill(0).map((_, i) => provider.getSigner(i))
2828
contexts = await context.deploySequenceContexts(signers[0])
2929
relayer = new LocalRelayer(signers[0])

0 commit comments

Comments
 (0)