From 9d00a598e2d0eb59c189a3d467f32c53273ba797 Mon Sep 17 00:00:00 2001 From: simplyoptimistic <111120814+simplyoptimistic@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:16:24 +0900 Subject: [PATCH] feat: deploy metal (#208) --- README.md | 1 + deployment-addresses/metal.json | 15 ++++++++++++++ foundry.toml | 2 ++ .../deployParameters/metal/DeployBase.s.sol | 20 +++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 deployment-addresses/metal.json create mode 100644 script/deployParameters/metal/DeployBase.s.sol diff --git a/README.md b/README.md index 0ebc816..849e1fb 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ Velodrome has a live bug bounty hosted on ([Immunefi](https://immunefi.com/bount | Mode | [Addresses](https://github.com/velodrome-finance/superchain-contracts/blob/main/deployment-addresses/mode.json) | [v1.0](https://github.com/velodrome-finance/superchain-contracts/commit/a739cdd788673d5fb08736e456fd8ec15d262dc7) | | Lisk | [Addresses](https://github.com/velodrome-finance/superchain-contracts/blob/main/deployment-addresses/lisk.json) | [v1.0](https://github.com/velodrome-finance/superchain-contracts/commit/a739cdd788673d5fb08736e456fd8ec15d262dc7) | | Fraxtal | [Addresses](https://github.com/velodrome-finance/superchain-contracts/blob/main/deployment-addresses/fraxtal.json) | [v1.0](https://github.com/velodrome-finance/superchain-contracts/commit/a739cdd788673d5fb08736e456fd8ec15d262dc7) | +| Metal | [Addresses](https://github.com/velodrome-finance/superchain-contracts/blob/main/deployment-addresses/metal.json) | [v1.0](https://github.com/velodrome-finance/superchain-contracts/commit/a739cdd788673d5fb08736e456fd8ec15d262dc7) | Optimism contains the root deployment contracts, and these factory addresses are used by all leaf chains. \ No newline at end of file diff --git a/deployment-addresses/metal.json b/deployment-addresses/metal.json new file mode 100644 index 0000000..fe5e38b --- /dev/null +++ b/deployment-addresses/metal.json @@ -0,0 +1,15 @@ +{ + "ism": "0x0000000000000000000000000000000000000000", + "leafFeeModule": "0x81c5d01Ae474040a59D0092A6973f4621e06B362", + "leafGaugeFactory": "0x42e403b73898320f23109708b0ba1Ae85838C445", + "leafMessageBridge": "0xF278761576f45472bdD721EACA19317cE159c011", + "leafMessageModule": "0x9298403c7658c9de2a654055d9c341a191993643", + "leafPoolFactory": "0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", + "leafPoolImplementation": "0x10499d88Bd32AF443Fc936F67DE32bE1c8Bb374C", + "leafRouter": "0x3a63171DD9BebF4D07BC782FECC7eb0b890C2A45", + "leafTokenBridge": "0xA7287a56C01ac8Baaf8e7B662bDB41b10889C7A6", + "leafVoter": "0x97cDBCe21B6fd0585d29E539B1B99dAd328a1123", + "leafVotingRewardsFactory": "0x7dc9fd82f91B36F416A89f5478375e4a79f4Fb2F", + "leafXFactory": "0x73CaE4450f11f4A33a49C880CE3E8E56a9294B31", + "leafXVelo": "0x7f9AdFbd38b669F03d1d11000Bc76b9AaEA28A81" +} \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index f597e2d..4458352 100644 --- a/foundry.toml +++ b/foundry.toml @@ -19,9 +19,11 @@ lisk = "${LISK_RPC_URL}" mode = "${MODE_RPC_URL}" bob = "${BOB_RPC_URL}" optimism = "${OPTIMISM_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}"} lisk = { key = "${LISK_ETHERSCAN_API_KEY}", url = "${LISK_ETHERSCAN_VERIFIER_URL}"} +metal = { key = "NA", url = "${METAL_ETHERSCAN_VERIFIER_URL}"} diff --git a/script/deployParameters/metal/DeployBase.s.sol b/script/deployParameters/metal/DeployBase.s.sol new file mode 100644 index 0000000..e7b1e79 --- /dev/null +++ b/script/deployParameters/metal/DeployBase.s.sol @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployBaseFixture} from "../../01_DeployBaseFixture.s.sol"; + +contract DeployBase is DeployBaseFixture { + function setUp() public override { + _params = DeployBaseFixture.DeploymentParameters({ + weth: 0x4200000000000000000000000000000000000006, + poolAdmin: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + pauser: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + feeManager: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + tokenAdmin: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + bridgeOwner: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + moduleOwner: 0x6fF6F4485375C4D194c3C6F3FC15D53409697FcA, + mailbox: 0x730f8a4128Fa8c53C777B62Baa1abeF94cAd34a9, + outputFilename: "metal.json" + }); + } +}