Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 898548b

Browse files
committed
Fix failing tests and upgrade dependencies
1 parent 3f21370 commit 898548b

File tree

6 files changed

+2521
-1582
lines changed

6 files changed

+2521
-1582
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16-
- uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
16+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
1717
with:
18-
node-version: 12.x
18+
node-version: 18.x
1919
registry-url: https://registry.npmjs.org
2020

2121
- id: yarn-cache
22-
run: echo "::set-output name=dir::$(yarn cache dir)"
22+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
2323

2424
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2525
with:

hardhat.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@nomiclabs/hardhat-ethers'
22
import '@nomiclabs/hardhat-etherscan'
33
import '@nomiclabs/hardhat-waffle'
4-
import 'hardhat-typechain'
4+
import '@typechain/hardhat'
55
import 'hardhat-watcher'
66
import 'dotenv/config'
77

@@ -60,6 +60,10 @@ export default {
6060
solidity: {
6161
compilers: [DEFAULT_COMPILER_SETTINGS],
6262
},
63+
typechain: {
64+
outDir: 'typechain',
65+
target: 'ethers-v5',
66+
},
6367
watcher: {
6468
test: {
6569
tasks: [{ command: 'test', params: { testFiles: ['{path}'] } }],

package.json

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,43 +26,44 @@
2626
"!artifacts/contracts/base/**/*"
2727
],
2828
"engines": {
29-
"node": ">=10"
29+
"node": ">=16"
3030
},
3131
"dependencies": {
3232
"@openzeppelin/contracts": "3.4.2-solc-0.7",
3333
"@uniswap/v2-core": "^1.0.1",
3434
"@uniswap/v3-core": "^1.0.0",
3535
"@uniswap/v3-periphery": "^1.4.4",
36-
"dotenv": "^14.2.0",
37-
"hardhat-watcher": "^2.1.1"
36+
"dotenv": "^16.0.3",
37+
"hardhat-watcher": "^2.5.0"
3838
},
3939
"devDependencies": {
40-
"@nomiclabs/hardhat-ethers": "^2.0.2",
41-
"@nomiclabs/hardhat-etherscan": "^2.1.8",
42-
"@nomiclabs/hardhat-waffle": "^2.0.1",
43-
"@typechain/ethers-v5": "^4.0.0",
44-
"@types/chai": "^4.2.6",
45-
"@types/mocha": "^5.2.7",
46-
"chai": "^4.2.0",
47-
"decimal.js": "^10.2.1",
48-
"ethereum-waffle": "^3.0.2",
49-
"ethers": "^5.0.8",
50-
"hardhat": "^2.6.8",
51-
"hardhat-typechain": "^0.3.5",
52-
"is-svg": "^4.3.1",
53-
"mocha": "^6.2.2",
54-
"mocha-chai-jest-snapshot": "^1.1.0",
55-
"prettier": "^2.0.5",
56-
"prettier-plugin-solidity": "^1.0.0-beta.10",
57-
"solhint": "^3.2.1",
40+
"@nomiclabs/hardhat-ethers": "^2.2.3",
41+
"@nomiclabs/hardhat-etherscan": "^3.1.7",
42+
"@nomiclabs/hardhat-waffle": "2.0.3",
43+
"@typechain/ethers-v5": "^10.2.1",
44+
"@types/chai": "^4.3.5",
45+
"@types/mocha": "^10.0.1",
46+
"chai": "^4.3.7",
47+
"decimal.js": "^10.4.3",
48+
"ethereum-waffle": "3.4.0",
49+
"ethers": "^5.7.2",
50+
"hardhat": "^2.12.7",
51+
"@typechain/hardhat": "^6.1.6",
52+
"is-svg": "^4.4.0",
53+
"mocha": "^10.2.0",
54+
"mocha-chai-jest-snapshot": "^1.1.4",
55+
"prettier": "^2.8.8",
56+
"prettier-plugin-solidity": "^1.1.3",
57+
"solhint": "^3.4.1",
5858
"solhint-plugin-prettier": "^0.0.5",
5959
"ts-generator": "^0.1.1",
60-
"ts-node": "^8.5.4",
61-
"typechain": "^4.0.0",
62-
"typescript": "^3.7.3"
60+
"ts-node": "^10.9.1",
61+
"typechain": "^8.1.1",
62+
"typescript": "^4.9.5"
6363
},
6464
"scripts": {
6565
"compile": "hardhat compile",
6666
"test": "hardhat test"
67-
}
67+
},
68+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
6869
}

test/__snapshots__/MixedRouteQuoterV1.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`MixedRouteQuoterV1 quotes #quoteExactInput V3 only 0 -> 2 -> 1 1`] = `281505`;
3+
exports[`MixedRouteQuoterV1 quotes #quoteExactInput V3 only 0 -> 2 -> 1 1`] = `284005`;
44

55
exports[`MixedRouteQuoterV1 quotes #quoteExactInput V3 only 0 -> 2 cross 0 tick, starting tick initialized 1`] = `123786`;
66

test/__snapshots__/QuoterV2.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`QuoterV2 quotes #quoteExactInput 0 -> 2 -> 1 1`] = `277146`;
3+
exports[`QuoterV2 quotes #quoteExactInput 0 -> 2 -> 1 1`] = `279646`;
44

55
exports[`QuoterV2 quotes #quoteExactInput 0 -> 2 cross 0 tick, starting tick initialized 1`] = `123797`;
66

@@ -26,7 +26,7 @@ exports[`QuoterV2 quotes #quoteExactInputSingle 0 -> 2 1`] = `182303`;
2626

2727
exports[`QuoterV2 quotes #quoteExactInputSingle 2 -> 0 1`] = `175105`;
2828

29-
exports[`QuoterV2 quotes #quoteExactOutput 0 -> 2 -> 1 1`] = `276746`;
29+
exports[`QuoterV2 quotes #quoteExactOutput 0 -> 2 -> 1 1`] = `279246`;
3030

3131
exports[`QuoterV2 quotes #quoteExactOutput 0 -> 2 cross 0 tick starting tick initialized 1`] = `123352`;
3232

0 commit comments

Comments
 (0)