From 765a7985f3c971d56eda7556f752c0a252227ab2 Mon Sep 17 00:00:00 2001 From: Eddort Date: Tue, 14 Jan 2025 13:35:47 +0100 Subject: [PATCH] fix: local devnet deploy params --- script/DeployCSVerifierElectra.s.sol | 2 +- script/DeployLocalDevNet.s.sol | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/script/DeployCSVerifierElectra.s.sol b/script/DeployCSVerifierElectra.s.sol index 2dcdb7cc..e700788f 100644 --- a/script/DeployCSVerifierElectra.s.sol +++ b/script/DeployCSVerifierElectra.s.sol @@ -135,7 +135,7 @@ contract DeployCSVerifierDevNet is DeployCSVerifier { config = Config({ withdrawalVault: vm.envAddress("CSM_WITHDRAWAL_VAULT"), module: vm.envAddress("CSM_MODULE"), - slotsPerEpoch: vm.envUint("DEVNET_SLOTS_PER_EPOCH"), + slotsPerEpoch: uint64(vm.envUint("DEVNET_SLOTS_PER_EPOCH")), gIFirstWithdrawalPrev: FIRST_WITHDRAWAL_DENEB, gIFirstWithdrawalCurr: FIRST_WITHDRAWAL_ELECTRA, gIFirstValidatorPrev: FIRST_VALIDATOR_DENEB, diff --git a/script/DeployLocalDevNet.s.sol b/script/DeployLocalDevNet.s.sol index d61f06d9..70daa84f 100644 --- a/script/DeployLocalDevNet.s.sol +++ b/script/DeployLocalDevNet.s.sol @@ -19,14 +19,15 @@ contract DeployLocalDevNet is DeployBase { config.secondsPerSlot = 12; config.slotsPerEpoch = vm.envUint("DEVNET_SLOTS_PER_EPOCH"); config.clGenesisTime = vm.envUint("DEVNET_GENESIS_TIME"); - config.oracleReportEpochsPerFrame = 225 * 7; // 7 days + config.oracleReportEpochsPerFrame = 50; config.fastLaneLengthSlots = 0; config.consensusVersion = 1; config.avgPerfLeewayBP = 500; - config.oracleMembers = new address[](2); + config.oracleMembers = new address[](3); config.oracleMembers[0] = vm.envAddress("CSM_ORACLE_1_ADDRESS"); config.oracleMembers[1] = vm.envAddress("CSM_ORACLE_2_ADDRESS"); - config.hashConsensusQuorum = 2; + config.oracleMembers[2] = vm.envAddress("CSM_ORACLE_3_ADDRESS"); + config.hashConsensusQuorum = 3; // Verifier // NOTE: Deneb fork gIndexes. Should be updated according to `config.verifierSupportedEpoch` fork epoch if needed config.gIFirstWithdrawal = GIndex.wrap(