diff --git a/scripts/deployment/staking/celo/globals_celo_sepolia.json b/scripts/deployment/staking/celo/globals_celo_sepolia.json index 13577727..46f072f7 100644 --- a/scripts/deployment/staking/celo/globals_celo_sepolia.json +++ b/scripts/deployment/staking/celo/globals_celo_sepolia.json @@ -8,6 +8,7 @@ "blockscoutURL": "https://celo-alfajores.blockscout.com", "gasPriceInGwei": "2", "olasAddress": "0xaCFfAe8e57Ec6E394Eb1b41939A8CF7892DbDc51", + "l1ChainId": "1", "serviceStakingFactoryAddress": "0x1c2cD884127b080F940b7546c1e9aaf525b1FA55", "bridgeMediatorAddress": "0x397125902ED2cA2d42104F621f448A2cE1bC8Fb7", "celoL2CrossDomainMessengerAddress": "0x4200000000000000000000000000000000000007", diff --git a/scripts/deployment/staking/deploy_10_set_deposit_processors.js b/scripts/deployment/staking/deploy_10_set_deposit_processors.js index ecab6bf3..77a6b10f 100644 --- a/scripts/deployment/staking/deploy_10_set_deposit_processors.js +++ b/scripts/deployment/staking/deploy_10_set_deposit_processors.js @@ -1,4 +1,14 @@ /*global process*/ +/* + * NOTE: this script does NOT register the Mode processor. + * + * Mode's L1 processor is deployed at step 11, after this step runs, so its address does not exist + * yet here. `deploy_10_set_deposit_processors.sh` is the current equivalent and registers all eight + * routes including Mode; prefer it. A chain left unregistered resolves to a zero processor and + * reverts the claim - in the batch path it takes the other chains' claims down with it - so a + * fresh deployment that uses this script must register Mode separately afterwards. + */ + const { ethers } = require("hardhat"); const { LedgerSigner } = require("@anders-t/ethers-ledger"); @@ -36,7 +46,7 @@ async function main() { // Get all the contracts const arbitrumDepositProcessorL1 = await ethers.getContractAt("ArbitrumDepositProcessorL1", arbitrumDepositProcessorL1Address); const baseDepositProcessorL1 = await ethers.getContractAt("OptimismDepositProcessorL1", baseDepositProcessorL1Address); - const celoDepositProcessorL1 = await ethers.getContractAt("WormholeDepositProcessorL1", celoDepositProcessorL1Address); + const celoDepositProcessorL1 = await ethers.getContractAt("OptimismDepositProcessorL1", celoDepositProcessorL1Address); const gnosisDepositProcessorL1 = await ethers.getContractAt("GnosisDepositProcessorL1", gnosisDepositProcessorL1Address); const optimismDepositProcessorL1 = await ethers.getContractAt("OptimismDepositProcessorL1", optimismDepositProcessorL1Address); const polygonDepositProcessorL1 = await ethers.getContractAt("PolygonDepositProcessorL1", polygonDepositProcessorL1Address); diff --git a/scripts/deployment/staking/globals_sepolia.json b/scripts/deployment/staking/globals_sepolia.json index 17b80317..fe5a6c13 100644 --- a/scripts/deployment/staking/globals_sepolia.json +++ b/scripts/deployment/staking/globals_sepolia.json @@ -33,7 +33,7 @@ "modeL1StandardBridgeProxyAddress": "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1", "modeL1CrossDomainMessengerProxyAddress": "0x58Cc85b8D04EA49cC6DBd3CbFFd00B4B8D6cb3ef", "modeOLASAddress": "0x01B8b6384298D4848E3BE63D4C9D17830EeE488A", - "modeL2TargetChainId": "84532", + "modeL2TargetChainId": "919", "modeDepositProcessorL1Address": "0x93504d2275998a4fCa666000A906067648edC723", "wormholeL1CoreAddress": "0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78", "wormholeL1TokenRelayerAddress": "0xDB5492265f6038831E89f495670FF909aDe94bd9",