Skip to content

Commit

Permalink
feat: metal deployment (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyoptimistic committed Dec 19, 2024
1 parent db27981 commit afa13df
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deployment-addresses/metal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Permit2": "0x592B5C472aF554B4E33a1A0e9e02b04664dd788B",
"UniversalRouter": "0x652e53C6a4FE39B6B30426d9c96376a105C89A95",
"UnsupportedProtocol": "0x3E4239724e9A886Fc2BD1794697b6584b518Ac3C"
}
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
35 changes: 35 additions & 0 deletions script/deployParameters/DeployMetal.s.sol
Original file line number Diff line number Diff line change
@@ -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';
}
}

0 comments on commit afa13df

Please sign in to comment.