Skip to content

Commit

Permalink
Transfer ownership script
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed Aug 26, 2024
1 parent c8ab80c commit 0250544
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 0250544

Please sign in to comment.