Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions contract_manager/store/chains/EvmChains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1279,5 +1279,19 @@
"rpcUrl": "https://rpc.camp.raas.gelato.cloud",
"networkId": 484,
"type": "EvmChain"
},
{
"id": "ethereal_devnet",
"mainnet": false,
"rpcUrl": "https://rpc-ethereal-devnet-0.t.conduit.xyz/",
"networkId": 13374201,
"type": "EvmChain"
},
{
"id": "ethereal_testnet_v2",
"mainnet": false,
"rpcUrl": "https://rpc-ethereal-testnet-0.t.conduit.xyz",
"networkId": 13374202,
"type": "EvmChain"
}
]
12 changes: 11 additions & 1 deletion contract_manager/store/contracts/EvmExecutorContracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,15 @@
"chain": "polynomial",
"address": "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
"type": "EvmExecutorContract"
},
{
"chain": "ethereal_devnet",
"address": "0x2880aB155794e7179c9eE2e38200202908C17B43",
"type": "EvmExecutorContract"
},
{
"chain": "ethereal_testnet_v2",
"address": "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
"type": "EvmExecutorContract"
}
]
]
10 changes: 10 additions & 0 deletions contract_manager/store/contracts/EvmWormholeContracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -848,5 +848,15 @@
"chain": "camp_network",
"address": "0xb27e5ca259702f209a29225d0eDdC131039C9933",
"type": "EvmWormholeContract"
},
{
"chain": "ethereal_devnet",
"address": "0xb27e5ca259702f209a29225d0eDdC131039C9933",
"type": "EvmWormholeContract"
},
{
"chain": "ethereal_testnet_v2",
"address": "0x66E9cBa5529824a03B5Bc9931d9c63637101D0F7",
"type": "EvmWormholeContract"
}
]
2 changes: 2 additions & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export const RECEIVER_CHAINS = {
hemi_testnet: 50125,
injective_evm_testnet: 50126,
ethereal_testnet: 50127,
ethereal_devnet: 50128,
ethereal_testnet_v2: 50129,
};

// If there is any overlapping value the receiver chain will replace the wormhole
Expand Down
1 change: 1 addition & 0 deletions lazer/contracts/evm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ out/
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/
/broadcast/**

# Docs
docs/
Expand Down
7 changes: 6 additions & 1 deletion lazer/contracts/evm/script/PythLazerChangeOwnership.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract PythLazerChangeOwnership is Script {
address(0xACeA761c27A909d4D3895128EBe6370FDE2dF481);

// Private key of the current owner, loaded from environment variable
uint256 public OLD_OWNER_PRIVATE_KEY = vm.envUint("DEPLOYER_PRIVATE_KEY");
uint256 public OLD_OWNER_PRIVATE_KEY = vm.envUint("PK");
// Current owner address, derived from private key
address public OLD_OWNER = vm.addr(OLD_OWNER_PRIVATE_KEY);
// Address of the new owner (should be the deployed executor contract)
Expand All @@ -47,18 +47,23 @@ contract PythLazerChangeOwnership is Script {

// Get the PythLazer contract instance at the proxy address
PythLazer lazer = PythLazer(LAZER_PROXY_ADDRESS);

// Start broadcasting transactions as the old owner
vm.startBroadcast(OLD_OWNER_PRIVATE_KEY);

// Ensure the current owner matches the expected old owner
require(lazer.owner() == OLD_OWNER, "Old owner mismatch");

// Transfer ownership to the new owner (executor contract)
lazer.transferOwnership(NEW_OWNER);
console.log("Ownership transferred");

// Log the new owner for verification
console.log(
"New Lazer owner: %s",
PythLazer(LAZER_PROXY_ADDRESS).owner()
);

// Stop broadcasting
vm.stopBroadcast();
}
Expand Down
Loading