Skip to content

Commit 5a2f9c6

Browse files
authored
chore(lazer) Deploy Ethereal (#2968)
1 parent 3f35fc1 commit 5a2f9c6

File tree

7 files changed

+44
-2
lines changed

7 files changed

+44
-2
lines changed

contract_manager/store/chains/EvmChains.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,5 +1279,19 @@
12791279
"rpcUrl": "https://rpc.camp.raas.gelato.cloud",
12801280
"networkId": 484,
12811281
"type": "EvmChain"
1282+
},
1283+
{
1284+
"id": "ethereal_devnet",
1285+
"mainnet": false,
1286+
"rpcUrl": "https://rpc-ethereal-devnet-0.t.conduit.xyz/",
1287+
"networkId": 13374201,
1288+
"type": "EvmChain"
1289+
},
1290+
{
1291+
"id": "ethereal_testnet_v2",
1292+
"mainnet": false,
1293+
"rpcUrl": "https://rpc-ethereal-testnet-0.t.conduit.xyz",
1294+
"networkId": 13374202,
1295+
"type": "EvmChain"
12821296
}
12831297
]

contract_manager/store/contracts/EvmExecutorContracts.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,15 @@
208208
"chain": "polynomial",
209209
"address": "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509",
210210
"type": "EvmExecutorContract"
211+
},
212+
{
213+
"chain": "ethereal_devnet",
214+
"address": "0x2880aB155794e7179c9eE2e38200202908C17B43",
215+
"type": "EvmExecutorContract"
216+
},
217+
{
218+
"chain": "ethereal_testnet_v2",
219+
"address": "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
220+
"type": "EvmExecutorContract"
211221
}
212-
]
222+
]

contract_manager/store/contracts/EvmWormholeContracts.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,5 +848,15 @@
848848
"chain": "camp_network",
849849
"address": "0xb27e5ca259702f209a29225d0eDdC131039C9933",
850850
"type": "EvmWormholeContract"
851+
},
852+
{
853+
"chain": "ethereal_devnet",
854+
"address": "0xb27e5ca259702f209a29225d0eDdC131039C9933",
855+
"type": "EvmWormholeContract"
856+
},
857+
{
858+
"chain": "ethereal_testnet_v2",
859+
"address": "0x66E9cBa5529824a03B5Bc9931d9c63637101D0F7",
860+
"type": "EvmWormholeContract"
851861
}
852862
]

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ export const RECEIVER_CHAINS = {
249249
hemi_testnet: 50125,
250250
injective_evm_testnet: 50126,
251251
ethereal_testnet: 50127,
252+
ethereal_devnet: 50128,
253+
ethereal_testnet_v2: 50129,
252254
};
253255

254256
// If there is any overlapping value the receiver chain will replace the wormhole

lazer/contracts/evm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ out/
66
!/broadcast
77
/broadcast/*/31337/
88
/broadcast/**/dry-run/
9+
/broadcast/**
910

1011
# Docs
1112
docs/

lazer/contracts/evm/script/PythLazerChangeOwnership.s.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contract PythLazerChangeOwnership is Script {
3030
address(0xACeA761c27A909d4D3895128EBe6370FDE2dF481);
3131

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

4848
// Get the PythLazer contract instance at the proxy address
4949
PythLazer lazer = PythLazer(LAZER_PROXY_ADDRESS);
50+
5051
// Start broadcasting transactions as the old owner
5152
vm.startBroadcast(OLD_OWNER_PRIVATE_KEY);
53+
5254
// Ensure the current owner matches the expected old owner
5355
require(lazer.owner() == OLD_OWNER, "Old owner mismatch");
56+
5457
// Transfer ownership to the new owner (executor contract)
5558
lazer.transferOwnership(NEW_OWNER);
5659
console.log("Ownership transferred");
60+
5761
// Log the new owner for verification
5862
console.log(
5963
"New Lazer owner: %s",
6064
PythLazer(LAZER_PROXY_ADDRESS).owner()
6165
);
66+
6267
// Stop broadcasting
6368
vm.stopBroadcast();
6469
}

0 commit comments

Comments
 (0)