diff --git a/deploy-addresses/base-sepolia.json b/deploy-addresses/base-sepolia.json new file mode 100644 index 00000000..fa3856bc --- /dev/null +++ b/deploy-addresses/base-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouter": "0x95273d871c8156636e114b63797d78D7E1720d81", + "UnsupportedProtocol": "0x7B46ee9BaB49bd5b37117494689A035b0F187B59" +} diff --git a/deploy-addresses/op-sepolia.json b/deploy-addresses/op-sepolia.json new file mode 100644 index 00000000..3c08eae6 --- /dev/null +++ b/deploy-addresses/op-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouter": "0x78e7F1502A9e4115dEbd6876E0AC4FaEBDB96880", + "UnsupportedProtocol": "0xFC885F37F5A9FA8159c8dBb907fc1b0C2fB31323" +} diff --git a/deploy-addresses/unichain-sepolia.json b/deploy-addresses/unichain-sepolia.json new file mode 100644 index 00000000..f30d2f98 --- /dev/null +++ b/deploy-addresses/unichain-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouter": "0x5418a6d871d327a1cefe6deb97153f07cbf6030e", + "UnsupportedProtocol": "0x7B46ee9BaB49bd5b37117494689A035b0F187B59" +} diff --git a/foundry.toml b/foundry.toml index 4fb734a4..799172b0 100644 --- a/foundry.toml +++ b/foundry.toml @@ -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 diff --git a/remappings.txt b/remappings.txt index 5c90902b..aafe0440 100644 --- a/remappings.txt +++ b/remappings.txt @@ -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/ diff --git a/script/deployParameters/DeployBaseSepolia.s.sol b/script/deployParameters/DeployBaseSepolia.s.sol new file mode 100644 index 00000000..8e9dd399 --- /dev/null +++ b/script/deployParameters/DeployBaseSepolia.s.sol @@ -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; + } +} diff --git a/script/deployParameters/DeployOPSepolia.s.sol b/script/deployParameters/DeployOPSepolia.s.sol new file mode 100644 index 00000000..dbaa012f --- /dev/null +++ b/script/deployParameters/DeployOPSepolia.s.sol @@ -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; + } +} diff --git a/script/deployParameters/DeployUnichainSepolia.s.sol b/script/deployParameters/DeployUnichainSepolia.s.sol new file mode 100644 index 00000000..4cb68bf7 --- /dev/null +++ b/script/deployParameters/DeployUnichainSepolia.s.sol @@ -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; + } +}