From ecd3e9983ba4b4e9e8106a1473e2d3f388703808 Mon Sep 17 00:00:00 2001 From: Austin Adams Date: Thu, 25 Jan 2024 11:48:05 -0500 Subject: [PATCH] feat: add l2 sepolia --- deploy-addresses/arbitrum-sepolia.json | 4 +++ deploy-addresses/base-sepolia.json | 4 +++ deploy-addresses/optimism-sepolia.json | 4 +++ .../DeployArbitrumSepolia.s.sol | 34 +++++++++++++++++++ .../deployParameters/DeployBaseSepolia.s.sol | 34 +++++++++++++++++++ .../DeployOptimismSepolia.s.sol | 34 +++++++++++++++++++ 6 files changed, 114 insertions(+) create mode 100644 deploy-addresses/arbitrum-sepolia.json create mode 100644 deploy-addresses/base-sepolia.json create mode 100644 deploy-addresses/optimism-sepolia.json create mode 100644 script/deployParameters/DeployArbitrumSepolia.s.sol create mode 100644 script/deployParameters/DeployBaseSepolia.s.sol create mode 100644 script/deployParameters/DeployOptimismSepolia.s.sol diff --git a/deploy-addresses/arbitrum-sepolia.json b/deploy-addresses/arbitrum-sepolia.json new file mode 100644 index 00000000..bd0e2c67 --- /dev/null +++ b/deploy-addresses/arbitrum-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouterV1_2": "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2", + "UnsupportedProtocol": "0x5302086A3a25d473aAbBd0356eFf8Dd811a4d89B" +} \ No newline at end of file diff --git a/deploy-addresses/base-sepolia.json b/deploy-addresses/base-sepolia.json new file mode 100644 index 00000000..85000af4 --- /dev/null +++ b/deploy-addresses/base-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouterV1_2": "0x050E797f3625EC8785265e1d9BDd4799b97528A1", + "UnsupportedProtocol": "0x7B46ee9BaB49bd5b37117494689A035b0F187B59" +} \ No newline at end of file diff --git a/deploy-addresses/optimism-sepolia.json b/deploy-addresses/optimism-sepolia.json new file mode 100644 index 00000000..7b42d33b --- /dev/null +++ b/deploy-addresses/optimism-sepolia.json @@ -0,0 +1,4 @@ +{ + "UniversalRouterV1_2": "0xD5bBa708b39537d33F2812E5Ea032622456F1A95", + "UnsupportedProtocol": "0x5302086A3a25d473aAbBd0356eFf8Dd811a4d89B" +} \ No newline at end of file diff --git a/script/deployParameters/DeployArbitrumSepolia.s.sol b/script/deployParameters/DeployArbitrumSepolia.s.sol new file mode 100644 index 00000000..793a1f3d --- /dev/null +++ b/script/deployParameters/DeployArbitrumSepolia.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol'; +import {RouterParameters} from 'contracts/base/RouterImmutables.sol'; + +contract DeployArbitrumSepolia is DeployUniversalRouter { + function setUp() public override { + params = RouterParameters({ + permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3, + weth9: 0x980B62Da83eFf3D4576C647993b0c1D7faf17c73, + seaportV1_5: UNSUPPORTED_PROTOCOL, + seaportV1_4: UNSUPPORTED_PROTOCOL, + openseaConduit: UNSUPPORTED_PROTOCOL, + nftxZap: UNSUPPORTED_PROTOCOL, + x2y2: UNSUPPORTED_PROTOCOL, + foundation: UNSUPPORTED_PROTOCOL, + sudoswap: UNSUPPORTED_PROTOCOL, + elementMarket: UNSUPPORTED_PROTOCOL, + nft20Zap: UNSUPPORTED_PROTOCOL, + cryptopunks: UNSUPPORTED_PROTOCOL, + looksRareV2: UNSUPPORTED_PROTOCOL, + routerRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareToken: UNSUPPORTED_PROTOCOL, + v2Factory: UNSUPPORTED_PROTOCOL, + v3Factory: 0x248AB79Bbb9bC29bB72f7Cd42F17e054Fc40188e, + pairInitCodeHash: BYTES32_ZERO, + poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54 + }); + + unsupported = 0x5302086A3a25d473aAbBd0356eFf8Dd811a4d89B; + } +} diff --git a/script/deployParameters/DeployBaseSepolia.s.sol b/script/deployParameters/DeployBaseSepolia.s.sol new file mode 100644 index 00000000..58e01132 --- /dev/null +++ b/script/deployParameters/DeployBaseSepolia.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +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, + seaportV1_5: UNSUPPORTED_PROTOCOL, + seaportV1_4: UNSUPPORTED_PROTOCOL, + openseaConduit: UNSUPPORTED_PROTOCOL, + nftxZap: UNSUPPORTED_PROTOCOL, + x2y2: UNSUPPORTED_PROTOCOL, + foundation: UNSUPPORTED_PROTOCOL, + sudoswap: UNSUPPORTED_PROTOCOL, + elementMarket: UNSUPPORTED_PROTOCOL, + nft20Zap: UNSUPPORTED_PROTOCOL, + cryptopunks: UNSUPPORTED_PROTOCOL, + looksRareV2: UNSUPPORTED_PROTOCOL, + routerRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareToken: UNSUPPORTED_PROTOCOL, + v2Factory: UNSUPPORTED_PROTOCOL, + v3Factory: 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24, + pairInitCodeHash: BYTES32_ZERO, + poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54 + }); + + unsupported = 0x5302086A3a25d473aAbBd0356eFf8Dd811a4d89B; + } +} diff --git a/script/deployParameters/DeployOptimismSepolia.s.sol b/script/deployParameters/DeployOptimismSepolia.s.sol new file mode 100644 index 00000000..3260730d --- /dev/null +++ b/script/deployParameters/DeployOptimismSepolia.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol'; +import {RouterParameters} from 'contracts/base/RouterImmutables.sol'; + +contract DeployOptimismSepolia is DeployUniversalRouter { + function setUp() public override { + params = RouterParameters({ + permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3, + weth9: 0x4200000000000000000000000000000000000006, + seaportV1_5: UNSUPPORTED_PROTOCOL, + seaportV1_4: UNSUPPORTED_PROTOCOL, + openseaConduit: UNSUPPORTED_PROTOCOL, + nftxZap: UNSUPPORTED_PROTOCOL, + x2y2: UNSUPPORTED_PROTOCOL, + foundation: UNSUPPORTED_PROTOCOL, + sudoswap: UNSUPPORTED_PROTOCOL, + elementMarket: UNSUPPORTED_PROTOCOL, + nft20Zap: UNSUPPORTED_PROTOCOL, + cryptopunks: UNSUPPORTED_PROTOCOL, + looksRareV2: UNSUPPORTED_PROTOCOL, + routerRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareRewardsDistributor: UNSUPPORTED_PROTOCOL, + looksRareToken: UNSUPPORTED_PROTOCOL, + v2Factory: UNSUPPORTED_PROTOCOL, + v3Factory: 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24, + pairInitCodeHash: BYTES32_ZERO, + poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54 + }); + + unsupported = 0x5302086A3a25d473aAbBd0356eFf8Dd811a4d89B; + } +}