Skip to content

Commit

Permalink
deploy script for Base Sepolia (#381)
Browse files Browse the repository at this point in the history
* Update .gitmodules (#337)

There is no need to use an account for GitHub.

* deploy script for Base Sepolia

* updating some deploys for sepolia L2s

* include vanity/public RPCs for scripts

* Update script/deployParameters/DeployOPSepolia.s.sol

Co-authored-by: Alice <[email protected]>

* Update script/deployParameters/DeployUnichainSepolia.s.sol

Co-authored-by: Alice <[email protected]>

---------

Co-authored-by: Jonney <[email protected]>
Co-authored-by: Alice <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent 5db48b1 commit 419b9e6
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 1 deletion.
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/
@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;
}
}

0 comments on commit 419b9e6

Please sign in to comment.