From 0eea8bfea500a9827fad50935070d49029ea3f56 Mon Sep 17 00:00:00 2001 From: Alex T Date: Wed, 11 Oct 2023 17:01:19 +0300 Subject: [PATCH] added filecoin mainnet and filecoin calibration testnet deployments --- deploy-addresses/filecoin-calibration.json | 4 +++ deploy-addresses/filecoin.json | 4 +++ script/deployParameters/DeployFilecoin.s.sol | 36 +++++++++++++++++++ .../DeployFilecoinCalibration.s.sol | 36 +++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 deploy-addresses/filecoin-calibration.json create mode 100644 deploy-addresses/filecoin.json create mode 100644 script/deployParameters/DeployFilecoin.s.sol create mode 100644 script/deployParameters/DeployFilecoinCalibration.s.sol diff --git a/deploy-addresses/filecoin-calibration.json b/deploy-addresses/filecoin-calibration.json new file mode 100644 index 00000000..ba2cb899 --- /dev/null +++ b/deploy-addresses/filecoin-calibration.json @@ -0,0 +1,4 @@ +{ + "UniversalRouterV1_3": "0xB4C47eD546Fc31E26470a186eC2C5F19eF09BA41", + "UnsupportedProtocol": "0x9BC4C46f501411604cf3a0CeCd6ce36a35C9628F" +} diff --git a/deploy-addresses/filecoin.json b/deploy-addresses/filecoin.json new file mode 100644 index 00000000..2d266a6b --- /dev/null +++ b/deploy-addresses/filecoin.json @@ -0,0 +1,4 @@ +{ + "UniversalRouterV1_3": "0x83702C6356A1028A900F83d446D189a31646a16b", + "UnsupportedProtocol": "0x7Ed796282f718ab5A5B9eEb0eF35aD273007977c" +} diff --git a/script/deployParameters/DeployFilecoin.s.sol b/script/deployParameters/DeployFilecoin.s.sol new file mode 100644 index 00000000..f89b5dd9 --- /dev/null +++ b/script/deployParameters/DeployFilecoin.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol'; +import {RouterParameters} from 'contracts/base/RouterImmutables.sol'; + +contract DeployFilecoin is DeployUniversalRouter { + function setUp() public override { + params = RouterParameters({ + permit2: 0xb81363578d377F8DA3902e9e705FD60198a9cEc2, + weth9: 0x60E1773636CF5E4A227d9AC24F20fEca034ee25A, + steth: UNSUPPORTED_PROTOCOL, + wsteth: UNSUPPORTED_PROTOCOL, + 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: 0xB4C47eD546Fc31E26470a186eC2C5F19eF09BA41, + pairInitCodeHash: BYTES32_ZERO, + poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54 + }); + + unsupported = UNSUPPORTED_PROTOCOL; + } +} diff --git a/script/deployParameters/DeployFilecoinCalibration.s.sol b/script/deployParameters/DeployFilecoinCalibration.s.sol new file mode 100644 index 00000000..9e2d966e --- /dev/null +++ b/script/deployParameters/DeployFilecoinCalibration.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.15; + +import {DeployUniversalRouter} from '../DeployUniversalRouter.s.sol'; +import {RouterParameters} from 'contracts/base/RouterImmutables.sol'; + +contract DeployFilecoinCalibration is DeployUniversalRouter { + function setUp() public override { + params = RouterParameters({ + permit2: 0xeb45AB7574f26644Df4d00d830B73036AC2f5238, + weth9: 0xaC26a4Ab9cF2A8c5DBaB6fb4351ec0F4b07356c4, + steth: UNSUPPORTED_PROTOCOL, + wsteth: UNSUPPORTED_PROTOCOL, + 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: 0xc4A5018Bce3F02b3838a716aC5b5d67b3e7258ee, + pairInitCodeHash: BYTES32_ZERO, + poolInitCodeHash: 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54 + }); + + unsupported = UNSUPPORTED_PROTOCOL; + } +}