From afa13df9a6d5afbbde9e47d4e4fb6d875860e86a Mon Sep 17 00:00:00 2001 From: simplyoptimistic <111120814+simplyoptimistic@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:21:53 +0900 Subject: [PATCH] feat: metal deployment (#22) --- deployment-addresses/metal.json | 5 ++++ foundry.toml | 2 ++ script/deployParameters/DeployMetal.s.sol | 35 +++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 deployment-addresses/metal.json create mode 100644 script/deployParameters/DeployMetal.s.sol diff --git a/deployment-addresses/metal.json b/deployment-addresses/metal.json new file mode 100644 index 0000000..3a33e09 --- /dev/null +++ b/deployment-addresses/metal.json @@ -0,0 +1,5 @@ +{ + "Permit2": "0x592B5C472aF554B4E33a1A0e9e02b04664dd788B", + "UniversalRouter": "0x652e53C6a4FE39B6B30426d9c96376a105C89A95", + "UnsupportedProtocol": "0x3E4239724e9A886Fc2BD1794697b6584b518Ac3C" +} \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 490ebfe..69e7d06 100644 --- a/foundry.toml +++ b/foundry.toml @@ -32,9 +32,11 @@ lisk = "${LISK_RPC_URL}" mode = "${MODE_RPC_URL}" optimism = "${OPTIMISM_RPC_URL}" fraxtal = "${FRAXTAL_RPC_URL}" +metal = "${METAL_RPC_URL}" [etherscan] mode = { key = "${MODE_ETHERSCAN_API_KEY}", url = "${MODE_ETHERSCAN_VERIFIER_URL}" } optimism = { key = "${OPTIMISM_ETHERSCAN_API_KEY}", url = "${OPTIMISM_ETHERSCAN_VERIFIER_URL}" } fraxtal = { key = "${FRAXTAL_ETHERSCAN_API_KEY}", url = "${FRAXTAL_ETHERSCAN_VERIFIER_URL}" } +metal = { key = "NA", url = "${METAL_ETHERSCAN_VERIFIER_URL}" } # See more config options https://github.com/foundry-rs/foundry/tree/master/config diff --git a/script/deployParameters/DeployMetal.s.sol b/script/deployParameters/DeployMetal.s.sol new file mode 100644 index 0000000..3dc7840 --- /dev/null +++ b/script/deployParameters/DeployMetal.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol'; +import {RouterParameters} from 'contracts/base/RouterImmutables.sol'; + +contract DeployBase is DeployUniversalRouter { + function setUp() public override { + params = RouterParameters({ + permit2: address(0), + 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: 0x31832f2a97Fd20664D76Cc421207669b55CE4BC0, + v3Factory: 0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F, + v2Implementation: 0x10499d88Bd32AF443Fc936F67DE32bE1c8Bb374C, + clImplementation: 0x321f7Dfb9B2eA9131B8C17691CF6e01E5c149cA8 + }); + + unsupported = address(0); + outputFilename = 'metal.json'; + } +}