From 025054427d8df8f48bd839715897d4da55b56ae0 Mon Sep 17 00:00:00 2001 From: Zaki Manian Date: Mon, 26 Aug 2024 22:03:27 +0100 Subject: [PATCH] Transfer ownership script --- .../TransferOwnerShipOfTestCellar.s.sol | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 script/Arbitrum/peggyjv_production/TransferOwnerShipOfTestCellar.s.sol diff --git a/script/Arbitrum/peggyjv_production/TransferOwnerShipOfTestCellar.s.sol b/script/Arbitrum/peggyjv_production/TransferOwnerShipOfTestCellar.s.sol new file mode 100644 index 00000000..28ab1dd1 --- /dev/null +++ b/script/Arbitrum/peggyjv_production/TransferOwnerShipOfTestCellar.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: Apache-2.0 +pragma solidity 0.8.21; + +import { Deployer } from "src/Deployer.sol"; +import { ArbitrumAddresses } from "test/resources/Arbitrum/ArbitrumAddressesPeggyJV.sol"; +import "forge-std/Script.sol"; +import { CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit } from "src/base/permutations/advanced/CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit.sol"; +import { ContractDeploymentNames } from "resources/PeggyJVContractDeploymentNames.sol"; + +/** + * @dev Run + * script/Arbitrum/peggyjv_production/TransferOwnerShipOfTestCellar.s.sol:TransferOwnerShipScript--evm-version london --with-gas-price 100000000 --slow --broadcast --etherscan-api-key $ARBISCAN_KEY --verify --private-key $PRIVATE_KEY + + * @dev Optionally can change `--with-gas-price` to something more reasonable + */ + +contract TransferOwnerShipScript is Script, ArbitrumAddresses, ContractDeploymentNames { + uint256 public privateKey; + + Deployer public deployer = Deployer(deployerAddress); + + CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit public RYUSD; + + function setUp() external { + privateKey = vm.envUint("PRIVATE_KEY"); + vm.createSelectFork("arbitrum"); + RYUSD = CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit(deployer.getAddress(realYieldUsdName)); + } + + function run() external { + vm.startBroadcast(privateKey); + RYUSD.transferOwnership(axelarProxyV0_0); + vm.stopBroadcast(); + } +}