Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy script for Base Sepolia #381

Merged
merged 8 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy-addresses/base-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UniversalRouter": "0x95273d871c8156636e114b63797d78D7E1720d81",
"UnsupportedProtocol": "0x7B46ee9BaB49bd5b37117494689A035b0F187B59"
}
4 changes: 4 additions & 0 deletions deploy-addresses/op-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UniversalRouter": "0x78e7F1502A9e4115dEbd6876E0AC4FaEBDB96880",
"UnsupportedProtocol": "0xFC885F37F5A9FA8159c8dBb907fc1b0C2fB31323"
}
4 changes: 4 additions & 0 deletions deploy-addresses/unichain-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UniversalRouter": "0x5418a6d871d327a1cefe6deb97153f07cbf6030e",
"UnsupportedProtocol": "0x7B46ee9BaB49bd5b37117494689A035b0F187B59"
}
6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ quote_style = 'single'
[profile.lite.optimizer_details.yulDetails]
optimizerSteps = ''

[rpc_endpoints]
sepolia = "https://rpc.sepolia.org"
unichain_sepolia = "https://sepolia.unichain.org"
base_sepolia = "https://sepolia.base.org"
op_sepolia = "https://sepolia.optimism.io"

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
1 change: 0 additions & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
solmate/=lib/solmate/
permit2/=lib/permit2/
forge-std/=lib/forge-std/src/
@openzeppelin/contracts=node_modules/@openzeppelin/contracts
@uniswap/v3-core/=node_modules/@uniswap/v3-core/
Comment on lines 3 to 4
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, foundry was auto-remapping @openzeppelin/contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/ which totally broke contract verification

poked around, and it seems to be implicitly be using v4-periphery's remappings 🤔

@uniswap/v2-core/=node_modules/@uniswap/v2-core/
@uniswap/v3-periphery/=lib/v3-periphery/
Expand Down
23 changes: 23 additions & 0 deletions script/deployParameters/DeployBaseSepolia.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol';
import {RouterParameters} from 'contracts/base/RouterImmutables.sol';

contract DeployBaseSepolia is DeployUniversalRouter {
function setUp() public override {
params = RouterParameters({
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3,
weth9: 0x4200000000000000000000000000000000000006,
v2Factory: 0x7Ae58f10f7849cA6F5fB71b7f45CB416c9204b1e,
v3Factory: 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24,
pairInitCodeHash: 0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f,
poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54,
v4PoolManager: 0x7Da1D65F8B249183667cdE74C5CBD46dD38AA829,
v3NFTPositionManager: 0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2,
v4PositionManager: 0xcDbe7b1ed817eF0005ECe6a3e576fbAE2EA5EAFE
});

unsupported = 0x76870DEbef0BE25589A5CddCe9B1D99276C73B4e;
}
}
23 changes: 23 additions & 0 deletions script/deployParameters/DeployOPSepolia.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol';
import {RouterParameters} from 'contracts/base/RouterImmutables.sol';

contract DeployOPSepolia is DeployUniversalRouter {
function setUp() public override {
params = RouterParameters({
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3,
weth9: 0x4200000000000000000000000000000000000006,
v2Factory: UNSUPPORTED_PROTOCOL,
v3Factory: 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24,
pairInitCodeHash: 0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f,
poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54,
v4PoolManager: 0xE5dF461803a59292c6c03978c17857479c40bc46,
v3NFTPositionManager: 0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2,
v4PositionManager: 0xEf3853450006cE9FB12B540486c920c9a705F502
});

unsupported = 0xFC885F37F5A9FA8159c8dBb907fc1b0C2fB31323;
}
}
23 changes: 23 additions & 0 deletions script/deployParameters/DeployUnichainSepolia.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;

import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol';
import {RouterParameters} from 'contracts/base/RouterImmutables.sol';

contract DeployUnichainSepolia is DeployUniversalRouter {
function setUp() public override {
params = RouterParameters({
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3,
weth9: 0x4200000000000000000000000000000000000006,
v2Factory: 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f,
v3Factory: 0x1F98431c8aD98523631AE4a59f267346ea31F984,
pairInitCodeHash: 0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f,
poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54,
v4PoolManager: 0xC81462Fec8B23319F288047f8A03A57682a35C1A,
v3NFTPositionManager: 0xB7F724d6dDDFd008eFf5cc2834edDE5F9eF0d075,
v4PositionManager: 0xB433cB9BcDF4CfCC5cAB7D34f90d1a7deEfD27b9
});

unsupported = 0x76870DEbef0BE25589A5CddCe9B1D99276C73B4e;
}
}
Loading