Skip to content

Commit

Permalink
feat: transfer ownership of the beacon in mainnet deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
thaixuandang committed Nov 20, 2024
1 parent e59ece0 commit 2569cd6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ deploy-testnet:

deploy-testnet-broadcast:
op run --env-file="./.env" -- \
forge script DeployKatanaV3Testnet -f ronin-testnet --verify --verifier sourcify --verifier-url https://sourcify.roninchain.com/server/ --legacy --broadcast
forge script DeployKatanaV3Testnet -f ronin-testnet --verify --verifier sourcify --verifier-url https://sourcify.roninchain.com/server/ --legacy --broadcast

deploy-mainnet:
op run --env-file="./.env" -- \
forge script DeployKatanaV3Mainnet -f ronin-mainnet

deploy-mainnet-broadcast:
op run --env-file="./.env" -- \
forge script DeployKatanaV3Mainnet -f ronin-mainnet --verify --verifier sourcify --verifier-url https://sourcify.roninchain.com/server/ --legacy --broadcast
9 changes: 8 additions & 1 deletion script/ronin-mainnet/DeployKatanaV3Mainnet.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ import { Script } from "forge-std/Script.sol";
import { console } from "forge-std/console.sol";
import { DeployKatanaV3Periphery } from "../DeployKatanaV3Periphery.s.sol";
import { MixedRouteQuoterV1 } from "src/periphery/lens/MixedRouteQuoterV1.sol";
import { KatanaV3PoolBeacon } from "src/core/KatanaV3PoolBeacon.sol";

contract DeployKatanaV3Mainnet is DeployKatanaV3Periphery {
address mixedRouteQuoterV1;
address multisig;

function setUp() public override {
multisig = 0x9D05D1F5b0424F8fDE534BC196FFB6Dd211D902a; // Multisig
proxyAdmin = 0xA3e7d085E65CB0B916f6717da876b7bE5cC92f03; // Proxy Admin
governance = 0x2C1726346d83cBF848bD3C2B208ec70d32a9E44a; // Governance Proxy
treasury = 0x22cEfc91E9b7c0f3890eBf9527EA89053490694e; // Ronin Treasury
Expand All @@ -24,8 +27,12 @@ contract DeployKatanaV3Mainnet is DeployKatanaV3Periphery {
function run() public override {
super.run();

vm.broadcast();
vm.startBroadcast();
mixedRouteQuoterV1 = address(new MixedRouteQuoterV1(factory, factoryV2, wron));
console.log("MixedRouteQuoterV1 deployed:", mixedRouteQuoterV1);

KatanaV3PoolBeacon(beacon).transferOwnership(multisig);
console.log("Transfered ownership of KatanaV3PoolBeacon to", multisig);
vm.stopBroadcast();
}
}

0 comments on commit 2569cd6

Please sign in to comment.