Skip to content

Commit

Permalink
deploy univ3 caller on base
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolev-igor committed Sep 18, 2024
1 parent 0aacbb6 commit 548f8ed
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 30 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"lint": "npm run lint:solhint && npm run lint:eslint",
"slither": "slither . --filter-paths \"node_modules\"",
"truffle-dashboard": "npx truffle dashboard",
"deploy:router": "npx hardhat run scripts/0_deploy_router.js --network truffle-dashboard",
"deploy:sc": "npx hardhat run scripts/1_deploy_simple_caller.js --network truffle-dashboard",
"deploy:univ2caller": "npx hardhat run scripts/2_deploy_uniswap_v2_caller.js --network truffle-dashboard",
"initialize:router": "npx hardhat run scripts/3_setup_router_fee.js --network truffle-dashboard",
"verify": "npx hardhat run scripts/4_verify.js --network mode",
"deploy:router": "npx hardhat run scripts/deploy_router.js --network truffle-dashboard",
"deploy:sc": "npx hardhat run scripts/deploy_simple_caller.js --network truffle-dashboard",
"deploy:univ2caller": "npx hardhat run scripts/deploy_uniswap_v2_caller.js --network truffle-dashboard",
"deploy:univ3caller": "npx hardhat run scripts/deploy_uniswap_v3_caller.js --network truffle-dashboard",
"initialize:router": "npx hardhat run scripts/setup_router_fee.js --network truffle-dashboard",
"verify": "npx hardhat run scripts/verify.js --network base",
"docs:serve": "npx @techdocs/cli serve:mkdocs -p 3333"
},
"lint-staged": {
Expand Down
23 changes: 0 additions & 23 deletions scripts/4_deploy_uniswap_v2_caller copy.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import deploymentAddresses from './deployment';

try {
(async () => {
console.log('Make sure 0x161b29D1919D4E06b53eE449376181B5082b30B9 is used and nonce is 7');
console.log('Make sure 0x161b29D1919D4E06b53eE449376181B5082b30B9 is used and nonce is 8');

const chainIdHex = await hre.network.provider.request({ method: 'eth_chainId' });
const chainId = parseInt(chainIdHex.toString(), 16).toString();
Expand Down
3 changes: 3 additions & 0 deletions scripts/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ const deploymentAddresses = {
7777777: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE',
666666666: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE',
},
uniswapV3Caller: {
8453: '0x05Bdc1AED3f648424efA4b76a96d6294b788f416',
},
weth: {
56: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
100: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d',
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/callers/UniswapV2Caller.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ describe('UniswapV2Caller', () => {
).to.be.reverted;
});

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

await execute(
Expand Down

0 comments on commit 548f8ed

Please sign in to comment.