Skip to content

Commit

Permalink
CCTPRelayer deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0lf committed Jun 18, 2024
1 parent 18159cb commit 9a1c80c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CCTPRelayer/script/SetRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract DeploymentScript is BaseScript {
function run() public {
vm.startBroadcast();

CCTPRelayer relayer = CCTPRelayer(address(0));
CCTPRelayer relayer = CCTPRelayer(payable(address(0)));
relayer.setSwapRouter(0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45);

vm.stopBroadcast();
Expand Down
22 changes: 22 additions & 0 deletions CCTPRelayer/script/Upgrade.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import "forge-std/Script.sol";

import {CCTPRelayer} from "src/CCTPRelayer.sol";

contract AxelarHandlerUpgradeScript is Script {
CCTPRelayer public relayer;

function setUp() public {
vm.createSelectFork(vm.envString("RPC_URL"));
relayer = CCTPRelayer(payable(0xBC8552339dA68EB65C8b88B414B5854E0E366cFc));
}

function run() public {
vm.startBroadcast(vm.envUint("PRIVATE_KEY"));
CCTPRelayer newImplementation = new CCTPRelayer();
relayer.upgradeToAndCall(address(newImplementation), bytes(""));
vm.stopBroadcast();
}
}

0 comments on commit 9a1c80c

Please sign in to comment.