Skip to content

Commit

Permalink
update deps (#1015)
Browse files Browse the repository at this point in the history
* update deps

* fix waffle build

* fix build

* fix test (#1018)

---------

Co-authored-by: Shunji Zhan <[email protected]>
  • Loading branch information
ntduan and shunjizhan authored Sep 10, 2024
1 parent a37d93a commit fb330a4
Show file tree
Hide file tree
Showing 21 changed files with 455 additions and 416 deletions.
2 changes: 1 addition & 1 deletion examples/waffle/arbitrager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "~2.3.4",
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^12.4.2",
"@uniswap/v2-core": "~1.0.1",
"@uniswap/v2-periphery": "~1.1.0-beta.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/waffle/dex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"@acala-network/contracts": "4.3.4",
"@acala-network/eth-providers": "workspace:*",
"@openzeppelin/contracts": "^4.4.2",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/erc20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/evm-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/homa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/honzon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/incentives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "~2.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/stable-asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion examples/waffle/uniswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"dependencies": {
"@acala-network/bodhi": "workspace:*",
"@acala-network/contracts": "4.3.4",
"@polkadot/api": "^10.9.1"
"@polkadot/api": "^12.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/bodhi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "tsc --build ./tsconfig.json"
},
"peerDependencies": {
"@polkadot/api": "^10.11.1"
"@polkadot/api": "^12.4.2"
},
"dependencies": {
"@acala-network/eth-providers": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions packages/eth-providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
"test:e2e": "vitest --run --config vitest.config.e2e.ts"
},
"peerDependencies": {
"@acala-network/api": "6.1.0",
"@polkadot/api": "^10.11.1"
"@acala-network/api": "6.1.3",
"@polkadot/api": "^12.4.2"
},
"dependencies": {
"@acala-network/contracts": "4.3.4",
"@acala-network/eth-transactions": "workspace:*",
"bn.js": "~5.2.0",
"bn.js": "~5.2.1",
"ethers": "~5.7.0",
"graphql": "~16.0.1",
"graphql-request": "~3.6.1",
"lru-cache": "~7.8.2"
},
"devDependencies": {
"@acala-network/api": "6.1.0",
"@types/bn.js": "~5.1.0",
"@acala-network/api": "6.1.3",
"@types/bn.js": "^5.1.5",
"@types/lru-cache": "~7.6.1",
"dotenv": "~10.0.0",
"jsdom": "^22.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eth-rpc-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ncc:pack": "ncc build src/index.ts -t --target es2020"
},
"peerDependencies": {
"@polkadot/api": "^10.11.1"
"@polkadot/api": "^12.4.2"
},
"dependencies": {
"@acala-network/eth-providers": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/eth-rpc-adapter/src/__tests__/e2e/endpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,11 @@ describe('endpoint', () => {

it('should return latest logs before subql is synced', async () => {
const curHeight = await provider.getBlockNumber();
const pendings = [] as any[];

for (let i = 0; i < 5; i++) {
pendings.push(await token.transfer(ADDRESS_ALICE, 1000));
const tx = await token.transfer(ADDRESS_ALICE, 1000);
await tx.wait();
}
await Promise.all(pendings.map(p => p.wait()));

const targetHeight = curHeight + 5;
await waitForHeight(provider, targetHeight);
Expand Down
2 changes: 1 addition & 1 deletion packages/eth-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"typescript": "~4.6.3"
},
"peerDependencies": {
"@polkadot/util-crypto": "^12.4.2"
"@polkadot/util-crypto": "^13.0.2"
},
"dependencies": {
"ethers": "~5.7.0"
Expand Down
4 changes: 2 additions & 2 deletions scripts/evm-state-call/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"state-call": "ts-node-dev --transpile-only evm_state_call.ts"
},
"dependencies": {
"@acala-network/api": "~4.1.8-2.3",
"@polkadot/api": "^10.9.1",
"@acala-network/api": "6.1.3",
"@polkadot/api": "^12.4.2",
"ethers": "^5.7.2",
"ts-node-dev": "^2.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions scripts/subway-perf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"build": "tsc"
},
"dependencies": {
"@acala-network/api": "^4.1.8-2.3",
"@acala-network/eth-providers": "^2.6.2",
"@polkadot/api": "^9.14.2",
"@acala-network/api": "6.1.3",
"@acala-network/eth-providers": "^2.8.9",
"@polkadot/api": "^12.4.2",
"csv-parse": "^5.3.3",
"ws": "^8.12.1",
"yargs": "^17.6.2"
Expand Down
2 changes: 1 addition & 1 deletion scripts/wormhole-bulk-attest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "tsc"
},
"devDependencies": {
"@acala-network/eth-providers": "~2.7.3",
"@acala-network/eth-providers": "~2.8.9",
"@certusone/wormhole-sdk": "^0.9.11",
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
"@types/chai": "^4.3.4",
Expand Down
Loading

0 comments on commit fb330a4

Please sign in to comment.