Skip to content

Commit 548f8ed

Browse files
committed
deploy univ3 caller on base
1 parent 0aacbb6 commit 548f8ed

10 files changed

+11
-30
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
"lint": "npm run lint:solhint && npm run lint:eslint",
1616
"slither": "slither . --filter-paths \"node_modules\"",
1717
"truffle-dashboard": "npx truffle dashboard",
18-
"deploy:router": "npx hardhat run scripts/0_deploy_router.js --network truffle-dashboard",
19-
"deploy:sc": "npx hardhat run scripts/1_deploy_simple_caller.js --network truffle-dashboard",
20-
"deploy:univ2caller": "npx hardhat run scripts/2_deploy_uniswap_v2_caller.js --network truffle-dashboard",
21-
"initialize:router": "npx hardhat run scripts/3_setup_router_fee.js --network truffle-dashboard",
22-
"verify": "npx hardhat run scripts/4_verify.js --network mode",
18+
"deploy:router": "npx hardhat run scripts/deploy_router.js --network truffle-dashboard",
19+
"deploy:sc": "npx hardhat run scripts/deploy_simple_caller.js --network truffle-dashboard",
20+
"deploy:univ2caller": "npx hardhat run scripts/deploy_uniswap_v2_caller.js --network truffle-dashboard",
21+
"deploy:univ3caller": "npx hardhat run scripts/deploy_uniswap_v3_caller.js --network truffle-dashboard",
22+
"initialize:router": "npx hardhat run scripts/setup_router_fee.js --network truffle-dashboard",
23+
"verify": "npx hardhat run scripts/verify.js --network base",
2324
"docs:serve": "npx @techdocs/cli serve:mkdocs -p 3333"
2425
},
2526
"lint-staged": {

scripts/4_deploy_uniswap_v2_caller copy.js

Lines changed: 0 additions & 23 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

scripts/5_deploy_uniswap_v2_caller.js renamed to scripts/deploy_uniswap_v3_caller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import deploymentAddresses from './deployment';
22

33
try {
44
(async () => {
5-
console.log('Make sure 0x161b29D1919D4E06b53eE449376181B5082b30B9 is used and nonce is 7');
5+
console.log('Make sure 0x161b29D1919D4E06b53eE449376181B5082b30B9 is used and nonce is 8');
66

77
const chainIdHex = await hre.network.provider.request({ method: 'eth_chainId' });
88
const chainId = parseInt(chainIdHex.toString(), 16).toString();

scripts/deployment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ const deploymentAddresses = {
6161
7777777: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE',
6262
666666666: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE',
6363
},
64+
uniswapV3Caller: {
65+
8453: '0x05Bdc1AED3f648424efA4b76a96d6294b788f416',
66+
},
6467
weth: {
6568
56: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
6669
100: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
File renamed without changes.
File renamed without changes.

test/callers/UniswapV2Caller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ describe('UniswapV2Caller', () => {
304304
).to.be.reverted;
305305
});
306306

307-
it.only('should do dai -> eth trade', async () => {
307+
it('should do dai -> eth trade', async () => {
308308
await dai.approve(router.address, ethers.utils.parseUnits('500', 18));
309309

310310
await execute(

0 commit comments

Comments
 (0)