From d53577ea6ba843bbcd6fc20f0914949a7882824b Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Sun, 21 Apr 2024 22:55:01 -0500 Subject: [PATCH] Add DeployArbUsdChainlinkRelayerMainnet --- script/predeployment/DeployRelayers.s.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/script/predeployment/DeployRelayers.s.sol b/script/predeployment/DeployRelayers.s.sol index 03ab429..2e3f600 100644 --- a/script/predeployment/DeployRelayers.s.sol +++ b/script/predeployment/DeployRelayers.s.sol @@ -106,3 +106,19 @@ contract DeployWstethEthChainlinkRelayerMainnet is CommonMainnet { vm.stopBroadcast(); } } + +// BROADCAST +// source .env && forge script DeployArbUsdChainlinkRelayerMainnet --with-gas-price 2000000000 -vvvvv --rpc-url $ARB_MAINNET_RPC --broadcast --verify --etherscan-api-key $ARB_ETHERSCAN_API_KEY + +// SIMULATE +// source .env && forge script DeployArbUsdChainlinkRelayerMainnet --with-gas-price 2000000000 -vvvvv --rpc-url $ARB_MAINNET_RPC + +contract DeployArbUsdChainlinkRelayerMainnet is CommonMainnet { + IAlgebraFactory public algebraFactory = IAlgebraFactory(MAINNET_ALGEBRA_FACTORY); + + function run() public { + vm.startBroadcast(vm.envUint('ARB_MAINNET_DEPLOYER_PK')); + chainlinkRelayerFactory.deployChainlinkRelayer(MAINNET_CHAINLINK_ARB_USD_FEED, MAINNET_ORACLE_INTERVAL); + vm.stopBroadcast(); + } +}