From 1a40410bd6b7c57506cae3e187c294c422c67156 Mon Sep 17 00:00:00 2001 From: ZD Hu Date: Tue, 9 Jul 2024 15:38:19 +0200 Subject: [PATCH] Deploy Protocolink contracts to IOTA Chain --- script/DeployIota.s.sol | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 script/DeployIota.s.sol diff --git a/script/DeployIota.s.sol b/script/DeployIota.s.sol new file mode 100644 index 0000000..eca4432 --- /dev/null +++ b/script/DeployIota.s.sol @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {DeployRouter} from './DeployRouter.s.sol'; + +contract DeployIota is DeployRouter { + address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259; + address public constant OWNER = 0xcE245455a34a57548F7c1F427233DFC1E84Ce1b3; + address public constant PAUSER = 0xcE245455a34a57548F7c1F427233DFC1E84Ce1b3; + address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75; + address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64; + + /// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`. + function setUp() external { + routerConfig = RouterConfig({ + deployedAddress: 0xDec80E988F4baF43be69c13711453013c212feA8, + wrappedNative: 0x6e47f8d48a01b44DF3fFF35d258A10A3AEdC114c, + permit2: 0x8d8B490fCe6Ca1A31752E7cFAFa954Bf30eB7EE2, + deployer: DEPLOYER, + owner: OWNER, + pauser: PAUSER, + defaultCollector: DEFAULT_COLLECTOR, + signer: 0xffFf5a88840FF1f168E163ACD771DFb292164cFA, + feeRate: 20 + }); + } + + function _run() internal override { + // router + _deployRouter(CREATE3_FACTORY); + } +}