@aztec-foundation/l1-artifacts 6.0.0-rc.5 → 6.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/AttesterExitExtLibAbi.d.ts +12 -0
- package/dest/AttesterExitExtLibAbi.d.ts.map +1 -1
- package/dest/AttesterExitExtLibAbi.js +16 -0
- package/dest/AttesterExitExtLibAbi.js.map +1 -1
- package/dest/AttesterExitExtLibBytecode.d.ts +1 -1
- package/dest/AttesterExitExtLibBytecode.js +1 -1
- package/dest/CoinIssuerAbi.d.ts +12 -0
- package/dest/CoinIssuerAbi.d.ts.map +1 -1
- package/dest/CoinIssuerAbi.js +16 -0
- package/dest/CoinIssuerAbi.js.map +1 -1
- package/dest/DateGatedRelayerAbi.d.ts +12 -0
- package/dest/DateGatedRelayerAbi.d.ts.map +1 -1
- package/dest/DateGatedRelayerAbi.js +16 -0
- package/dest/DateGatedRelayerAbi.js.map +1 -1
- package/dest/EmpireBaseAbi.d.ts +12 -0
- package/dest/EmpireBaseAbi.d.ts.map +1 -1
- package/dest/EmpireBaseAbi.js +16 -0
- package/dest/EmpireBaseAbi.js.map +1 -1
- package/dest/EpochProofExtLibAbi.d.ts +12 -0
- package/dest/EpochProofExtLibAbi.d.ts.map +1 -1
- package/dest/EpochProofExtLibAbi.js +16 -0
- package/dest/EpochProofExtLibAbi.js.map +1 -1
- package/dest/EpochProofExtLibBytecode.d.ts +1 -1
- package/dest/EpochProofExtLibBytecode.js +1 -1
- package/dest/ErrorsAbi.d.ts +12 -0
- package/dest/ErrorsAbi.d.ts.map +1 -1
- package/dest/ErrorsAbi.js +16 -0
- package/dest/ErrorsAbi.js.map +1 -1
- package/dest/EscapeHatchAbi.d.ts +22 -0
- package/dest/EscapeHatchAbi.d.ts.map +1 -1
- package/dest/EscapeHatchAbi.js +29 -0
- package/dest/EscapeHatchAbi.js.map +1 -1
- package/dest/EscapeHatchBytecode.d.ts +1 -1
- package/dest/EscapeHatchBytecode.d.ts.map +1 -1
- package/dest/EscapeHatchBytecode.js +1 -1
- package/dest/EscapeHatchBytecode.js.map +1 -1
- package/dest/EscapeHatchStorage.d.ts +8 -8
- package/dest/EscapeHatchStorage.js +8 -8
- package/dest/FeeAssetHandlerAbi.d.ts +12 -0
- package/dest/FeeAssetHandlerAbi.d.ts.map +1 -1
- package/dest/FeeAssetHandlerAbi.js +16 -0
- package/dest/FeeAssetHandlerAbi.js.map +1 -1
- package/dest/FeeJuicePortalAbi.d.ts +12 -0
- package/dest/FeeJuicePortalAbi.d.ts.map +1 -1
- package/dest/FeeJuicePortalAbi.js +16 -0
- package/dest/FeeJuicePortalAbi.js.map +1 -1
- package/dest/FeeJuicePortalBytecode.d.ts +1 -1
- package/dest/FeeJuicePortalBytecode.js +1 -1
- package/dest/GSEAbi.d.ts +12 -0
- package/dest/GSEAbi.d.ts.map +1 -1
- package/dest/GSEAbi.js +16 -0
- package/dest/GSEAbi.js.map +1 -1
- package/dest/GovernanceAbi.d.ts +12 -0
- package/dest/GovernanceAbi.d.ts.map +1 -1
- package/dest/GovernanceAbi.js +16 -0
- package/dest/GovernanceAbi.js.map +1 -1
- package/dest/GovernanceProposerAbi.d.ts +12 -0
- package/dest/GovernanceProposerAbi.d.ts.map +1 -1
- package/dest/GovernanceProposerAbi.js +16 -0
- package/dest/GovernanceProposerAbi.js.map +1 -1
- package/dest/HonkVerifierAbi.d.ts +12 -0
- package/dest/HonkVerifierAbi.d.ts.map +1 -1
- package/dest/HonkVerifierAbi.js +16 -0
- package/dest/HonkVerifierAbi.js.map +1 -1
- package/dest/HonkVerifierBytecode.d.ts +1 -1
- package/dest/HonkVerifierBytecode.js +1 -1
- package/dest/IERC20Abi.d.ts +12 -0
- package/dest/IERC20Abi.d.ts.map +1 -1
- package/dest/IERC20Abi.js +16 -0
- package/dest/IERC20Abi.js.map +1 -1
- package/dest/ISequencerRewardCalculatorAbi.d.ts +12 -0
- package/dest/ISequencerRewardCalculatorAbi.d.ts.map +1 -1
- package/dest/ISequencerRewardCalculatorAbi.js +16 -0
- package/dest/ISequencerRewardCalculatorAbi.js.map +1 -1
- package/dest/IVerifierAbi.d.ts +12 -0
- package/dest/IVerifierAbi.d.ts.map +1 -1
- package/dest/IVerifierAbi.js +16 -0
- package/dest/IVerifierAbi.js.map +1 -1
- package/dest/InboxAbi.d.ts +12 -0
- package/dest/InboxAbi.d.ts.map +1 -1
- package/dest/InboxAbi.js +16 -0
- package/dest/InboxAbi.js.map +1 -1
- package/dest/InboxBytecode.d.ts +1 -1
- package/dest/InboxBytecode.js +1 -1
- package/dest/MockVerifierAbi.d.ts +12 -0
- package/dest/MockVerifierAbi.d.ts.map +1 -1
- package/dest/MockVerifierAbi.js +16 -0
- package/dest/MockVerifierAbi.js.map +1 -1
- package/dest/MockZKPassportVerifierAbi.d.ts +12 -0
- package/dest/MockZKPassportVerifierAbi.d.ts.map +1 -1
- package/dest/MockZKPassportVerifierAbi.js +16 -0
- package/dest/MockZKPassportVerifierAbi.js.map +1 -1
- package/dest/MultiAdderAbi.d.ts +12 -0
- package/dest/MultiAdderAbi.d.ts.map +1 -1
- package/dest/MultiAdderAbi.js +16 -0
- package/dest/MultiAdderAbi.js.map +1 -1
- package/dest/MultiAdderBytecode.d.ts +1 -1
- package/dest/MultiAdderBytecode.js +1 -1
- package/dest/NewGovernanceProposerPayloadAbi.d.ts +12 -0
- package/dest/NewGovernanceProposerPayloadAbi.d.ts.map +1 -1
- package/dest/NewGovernanceProposerPayloadAbi.js +16 -0
- package/dest/NewGovernanceProposerPayloadAbi.js.map +1 -1
- package/dest/OutboxAbi.d.ts +12 -0
- package/dest/OutboxAbi.d.ts.map +1 -1
- package/dest/OutboxAbi.js +16 -0
- package/dest/OutboxAbi.js.map +1 -1
- package/dest/OutboxBytecode.d.ts +1 -1
- package/dest/OutboxBytecode.js +1 -1
- package/dest/RegisterNewRollupVersionPayloadAbi.d.ts +40 -0
- package/dest/RegisterNewRollupVersionPayloadAbi.d.ts.map +1 -1
- package/dest/RegisterNewRollupVersionPayloadAbi.js +52 -0
- package/dest/RegisterNewRollupVersionPayloadAbi.js.map +1 -1
- package/dest/RegisterNewRollupVersionPayloadBytecode.d.ts +1 -1
- package/dest/RegisterNewRollupVersionPayloadBytecode.d.ts.map +1 -1
- package/dest/RegisterNewRollupVersionPayloadBytecode.js +1 -1
- package/dest/RegisterNewRollupVersionPayloadBytecode.js.map +1 -1
- package/dest/RegistryAbi.d.ts +12 -0
- package/dest/RegistryAbi.d.ts.map +1 -1
- package/dest/RegistryAbi.js +16 -0
- package/dest/RegistryAbi.js.map +1 -1
- package/dest/RewardDistributorAbi.d.ts +12 -0
- package/dest/RewardDistributorAbi.d.ts.map +1 -1
- package/dest/RewardDistributorAbi.js +16 -0
- package/dest/RewardDistributorAbi.js.map +1 -1
- package/dest/RewardExtLibAbi.d.ts +12 -0
- package/dest/RewardExtLibAbi.d.ts.map +1 -1
- package/dest/RewardExtLibAbi.js +16 -0
- package/dest/RewardExtLibAbi.js.map +1 -1
- package/dest/RewardExtLibBytecode.d.ts +1 -1
- package/dest/RewardExtLibBytecode.js +1 -1
- package/dest/RollupAbi.d.ts +12 -0
- package/dest/RollupAbi.d.ts.map +1 -1
- package/dest/RollupAbi.js +16 -0
- package/dest/RollupAbi.js.map +1 -1
- package/dest/RollupBytecode.d.ts +1 -1
- package/dest/RollupBytecode.js +1 -1
- package/dest/RollupOperationsExtLibAbi.d.ts +12 -0
- package/dest/RollupOperationsExtLibAbi.d.ts.map +1 -1
- package/dest/RollupOperationsExtLibAbi.js +16 -0
- package/dest/RollupOperationsExtLibAbi.js.map +1 -1
- package/dest/RollupOperationsExtLibBytecode.d.ts +1 -1
- package/dest/RollupOperationsExtLibBytecode.js +1 -1
- package/dest/SlasherAbi.d.ts +12 -0
- package/dest/SlasherAbi.d.ts.map +1 -1
- package/dest/SlasherAbi.js +16 -0
- package/dest/SlasherAbi.js.map +1 -1
- package/dest/SlasherDeploymentExtLibAbi.d.ts +12 -0
- package/dest/SlasherDeploymentExtLibAbi.d.ts.map +1 -1
- package/dest/SlasherDeploymentExtLibAbi.js +16 -0
- package/dest/SlasherDeploymentExtLibAbi.js.map +1 -1
- package/dest/SlasherDeploymentExtLibBytecode.d.ts +1 -1
- package/dest/SlasherDeploymentExtLibBytecode.js +1 -1
- package/dest/SlashingProposerAbi.d.ts +12 -0
- package/dest/SlashingProposerAbi.d.ts.map +1 -1
- package/dest/SlashingProposerAbi.js +16 -0
- package/dest/SlashingProposerAbi.js.map +1 -1
- package/dest/SlashingProposerBytecode.d.ts +1 -1
- package/dest/SlashingProposerBytecode.js +1 -1
- package/dest/StakingAssetHandlerAbi.d.ts +12 -0
- package/dest/StakingAssetHandlerAbi.d.ts.map +1 -1
- package/dest/StakingAssetHandlerAbi.js +16 -0
- package/dest/StakingAssetHandlerAbi.js.map +1 -1
- package/dest/TestERC20Abi.d.ts +12 -0
- package/dest/TestERC20Abi.d.ts.map +1 -1
- package/dest/TestERC20Abi.js +16 -0
- package/dest/TestERC20Abi.js.map +1 -1
- package/dest/TokenPortalAbi.d.ts +12 -0
- package/dest/TokenPortalAbi.d.ts.map +1 -1
- package/dest/TokenPortalAbi.js +16 -0
- package/dest/TokenPortalAbi.js.map +1 -1
- package/dest/TokenPortalBytecode.d.ts +1 -1
- package/dest/TokenPortalBytecode.js +1 -1
- package/dest/UniswapPortalAbi.d.ts +12 -0
- package/dest/UniswapPortalAbi.d.ts.map +1 -1
- package/dest/UniswapPortalAbi.js +16 -0
- package/dest/UniswapPortalAbi.js.map +1 -1
- package/dest/UniswapPortalBytecode.d.ts +1 -1
- package/dest/UniswapPortalBytecode.js +1 -1
- package/dest/ValidatorOperationsExtLibAbi.d.ts +12 -0
- package/dest/ValidatorOperationsExtLibAbi.d.ts.map +1 -1
- package/dest/ValidatorOperationsExtLibAbi.js +16 -0
- package/dest/ValidatorOperationsExtLibAbi.js.map +1 -1
- package/dest/ValidatorOperationsExtLibBytecode.d.ts +1 -1
- package/dest/ValidatorOperationsExtLibBytecode.d.ts.map +1 -1
- package/dest/ValidatorOperationsExtLibBytecode.js +1 -1
- package/dest/ValidatorOperationsExtLibBytecode.js.map +1 -1
- package/dest/ValidatorSelectionLibAbi.d.ts +12 -0
- package/dest/ValidatorSelectionLibAbi.d.ts.map +1 -1
- package/dest/ValidatorSelectionLibAbi.js +16 -0
- package/dest/ValidatorSelectionLibAbi.js.map +1 -1
- package/dest/ValidatorSelectionLibBytecode.d.ts +1 -1
- package/dest/ValidatorSelectionLibBytecode.js +1 -1
- package/dest/checksum.d.ts +1 -1
- package/dest/checksum.js +1 -1
- package/l1-contracts/cache/solidity-files-cache.json +1 -1
- package/l1-contracts/foundry.toml +2 -0
- package/l1-contracts/generated/HonkVerifier.sol +45 -45
- package/l1-contracts/out/AddressSnapshotLib.sol/AddressSnapshotLib.json +1 -1
- package/l1-contracts/out/AttestationLib.sol/AttestationLib.json +1 -1
- package/l1-contracts/out/AttesterExitExtLib.sol/AttesterExitExtLib.json +1 -1
- package/l1-contracts/out/BN254Lib.sol/BN254Lib.json +1 -1
- package/l1-contracts/out/Ballot.sol/BallotLib.json +1 -1
- package/l1-contracts/out/BlobLib.sol/BlobLib.json +1 -1
- package/l1-contracts/out/Bn254LibWrapper.sol/Bn254LibWrapper.json +1 -1
- package/l1-contracts/out/CheckpointLog.sol/CompressedTempCheckpointLogLib.json +1 -1
- package/l1-contracts/out/CheckpointedUintLib.sol/CheckpointedUintLib.json +1 -1
- package/l1-contracts/out/CoinIssuer.sol/CoinIssuer.json +1 -1
- package/l1-contracts/out/CompressedTimeMath.sol/CompressedTimeMath.json +1 -1
- package/l1-contracts/out/Configuration.sol/CompressedConfigurationLib.json +1 -1
- package/l1-contracts/out/ConfigurationLib.sol/ConfigurationLib.json +1 -1
- package/l1-contracts/out/ConstantsGen.sol/Constants.json +1 -1
- package/l1-contracts/out/CoordinationSignatureLib.sol/CoordinationSignatureLib.json +1 -1
- package/l1-contracts/out/DataStructures.sol/DataStructures.json +1 -1
- package/l1-contracts/out/DateGatedRelayer.sol/DateGatedRelayer.json +1 -1
- package/l1-contracts/out/DeployAztecL1Contracts.s.sol/DeployAztecL1Contracts.json +1 -1
- package/l1-contracts/out/DeployRollupForUpgrade.s.sol/DeployRollupForUpgrade.json +1 -1
- package/l1-contracts/out/DeployRollupForUpgradeV6.s.sol/DeployRollupForUpgradeV6.json +1 -0
- package/l1-contracts/out/DeployRollupLib.sol/DeployRollupLib.json +1 -1
- package/l1-contracts/out/DeploymentConfiguration.sol/DeploymentConfiguration.json +1 -1
- package/l1-contracts/out/DeploymentConfiguration.sol/IDeploymentConfiguration.json +1 -1
- package/l1-contracts/out/DepositDelegationLib.sol/DepositDelegationLib.json +1 -1
- package/l1-contracts/out/EmpireBase.sol/EmpireBase.json +1 -1
- package/l1-contracts/out/EpochProofExtLib.sol/EpochProofExtLib.json +1 -1
- package/l1-contracts/out/EpochProofLib.sol/EpochProofLib.json +1 -1
- package/l1-contracts/out/Errors.sol/Errors.json +1 -1
- package/l1-contracts/out/EscapeHatch.sol/EscapeHatch.json +1 -1
- package/l1-contracts/out/FeeAssetHandler.sol/FeeAssetHandler.json +1 -1
- package/l1-contracts/out/FeeAssetHandler.sol/IFeeAssetHandler.json +1 -1
- package/l1-contracts/out/FeeConfig.sol/FeeConfigLib.json +1 -1
- package/l1-contracts/out/FeeConfig.sol/PriceLib.json +1 -1
- package/l1-contracts/out/FeeJuicePortal.sol/FeeJuicePortal.json +1 -1
- package/l1-contracts/out/FeeLib.sol/FeeLib.json +1 -1
- package/l1-contracts/out/FeeStructs.sol/FeeHeaderLib.json +1 -1
- package/l1-contracts/out/FeeStructs.sol/FeeStructsLib.json +1 -1
- package/l1-contracts/out/FieldLib.sol/FieldLib.json +1 -1
- package/l1-contracts/out/FlushEntryQueue.s.sol/FlushEntryQueue.json +1 -0
- package/l1-contracts/out/FlushRewarder.sol/FlushRewarder.json +1 -1
- package/l1-contracts/out/GSE.sol/GSE.json +1 -1
- package/l1-contracts/out/GSE.sol/GSECore.json +1 -1
- package/l1-contracts/out/GSE.sol/IGSE.json +1 -1
- package/l1-contracts/out/GSE.sol/IGSECore.json +1 -1
- package/l1-contracts/out/GSEPayload.sol/GSEPayload.json +1 -1
- package/l1-contracts/out/Governance.sol/Governance.json +1 -1
- package/l1-contracts/out/GovernanceProposer.sol/GovernanceProposer.json +1 -1
- package/l1-contracts/out/Hash.sol/Hash.json +1 -1
- package/l1-contracts/out/HonkVerifier.sol/HonkVerifier.json +1 -1
- package/l1-contracts/out/HonkVerifier.sol/IVerifier.json +1 -1
- package/l1-contracts/out/IBn254LibWrapper.sol/IBn254LibWrapper.json +1 -1
- package/l1-contracts/out/ICoinIssuer.sol/ICoinIssuer.json +1 -1
- package/l1-contracts/out/IDateGatedRelayer.sol/IDateGatedRelayer.json +1 -1
- package/l1-contracts/out/IEmpire.sol/IEmperor.json +1 -1
- package/l1-contracts/out/IEmpire.sol/IEmpire.json +1 -1
- package/l1-contracts/out/IEscapeHatch.sol/IEscapeHatch.json +1 -1
- package/l1-contracts/out/IEscapeHatch.sol/IEscapeHatchCore.json +1 -1
- package/l1-contracts/out/IFeeJuicePortal.sol/IFeeJuicePortal.json +1 -1
- package/l1-contracts/out/IFlushRewarder.sol/IFlushRewarder.json +1 -1
- package/l1-contracts/out/IGovernance.sol/IGovernance.json +1 -1
- package/l1-contracts/out/IGovernanceProposer.sol/IGovernanceProposer.json +1 -1
- package/l1-contracts/out/IInbox.sol/IInbox.json +1 -1
- package/l1-contracts/out/IInstance.sol/IInstance.json +1 -1
- package/l1-contracts/out/IMintableERC20.sol/IMintableERC20.json +1 -1
- package/l1-contracts/out/IOutbox.sol/IOutbox.json +1 -1
- package/l1-contracts/out/IPayload.sol/IPayload.json +1 -1
- package/l1-contracts/out/IProposerPayload.sol/IProposerPayload.json +1 -1
- package/l1-contracts/out/IRegistry.sol/IHaveVersion.json +1 -1
- package/l1-contracts/out/IRegistry.sol/IRegistry.json +1 -1
- package/l1-contracts/out/IRewardDistributor.sol/IRewardDistributor.json +1 -1
- package/l1-contracts/out/IRollup.sol/IRollup.json +1 -1
- package/l1-contracts/out/IRollup.sol/IRollupCore.json +1 -1
- package/l1-contracts/out/IRootRegistry.sol/IRootRegistry.json +1 -1
- package/l1-contracts/out/ISequencerRewardCalculator.sol/ISequencerRewardCalculator.json +1 -1
- package/l1-contracts/out/ISlasher.sol/ISlasher.json +1 -1
- package/l1-contracts/out/IStaking.sol/IStaking.json +1 -1
- package/l1-contracts/out/IStaking.sol/IStakingCore.json +1 -1
- package/l1-contracts/out/IValidatorSelection.sol/IValidatorSelection.json +1 -1
- package/l1-contracts/out/IValidatorSelection.sol/IValidatorSelectionCore.json +1 -1
- package/l1-contracts/out/IVerifier.sol/IVerifier.json +1 -1
- package/l1-contracts/out/Inbox.sol/Inbox.json +1 -1
- package/l1-contracts/out/InputsExtractor.sol/InputsExtractor.json +1 -1
- package/l1-contracts/out/InvalidateLib.sol/InvalidateLib.json +1 -1
- package/l1-contracts/out/MerkleLib.sol/MerkleLib.json +1 -1
- package/l1-contracts/out/MockERC20.sol/MockERC20.json +1 -1
- package/l1-contracts/out/MockERC721.sol/MockERC721.json +1 -1
- package/l1-contracts/out/MockFeeJuicePortal.sol/MockFeeJuicePortal.json +1 -1
- package/l1-contracts/out/MockVerifier.sol/MockVerifier.json +1 -1
- package/l1-contracts/out/MockZKPassportVerifier.sol/IZKPassportVerifier.json +1 -1
- package/l1-contracts/out/MockZKPassportVerifier.sol/MockZKPassportVerifier.json +1 -1
- package/l1-contracts/out/MultiAdder.sol/IMultiAdder.json +1 -1
- package/l1-contracts/out/MultiAdder.sol/MultiAdder.json +1 -1
- package/l1-contracts/out/Outbox.sol/Outbox.json +1 -1
- package/l1-contracts/out/OuterCount8.sol/HonkVerifier.json +1 -1
- package/l1-contracts/out/Proposal.sol/CompressedProposalLib.json +1 -1
- package/l1-contracts/out/ProposalLib.sol/ProposalLib.json +1 -1
- package/l1-contracts/out/ProposeLib.sol/ProposeLib.json +1 -1
- package/l1-contracts/out/ProposedHeaderLib.sol/ProposedHeaderLib.json +1 -1
- package/l1-contracts/out/RegisterNewRollupVersionPayload.sol/RegisterNewRollupVersionPayload.json +1 -1
- package/l1-contracts/out/Registry.sol/Registry.json +1 -1
- package/l1-contracts/out/RewardBooster.sol/IBooster.json +1 -1
- package/l1-contracts/out/RewardBooster.sol/IBoosterCore.json +1 -1
- package/l1-contracts/out/RewardBooster.sol/RewardBooster.json +1 -1
- package/l1-contracts/out/RewardDistributor.sol/RewardDistributor.json +1 -1
- package/l1-contracts/out/RewardExtLib.sol/RewardExtLib.json +1 -1
- package/l1-contracts/out/RewardLib.sol/BpsLib.json +1 -1
- package/l1-contracts/out/RewardLib.sol/RewardLib.json +1 -1
- package/l1-contracts/out/Rollup.sol/Rollup.json +1 -1
- package/l1-contracts/out/RollupConfiguration.sol/IRollupConfiguration.json +1 -1
- package/l1-contracts/out/RollupConfiguration.sol/RollupConfiguration.json +1 -1
- package/l1-contracts/out/RollupCore.sol/RollupCore.json +1 -1
- package/l1-contracts/out/RollupOperationsExtLib.sol/RollupOperationsExtLib.json +1 -1
- package/l1-contracts/out/STFLib.sol/STFLib.json +1 -1
- package/l1-contracts/out/SampleLib.sol/SampleLib.json +1 -1
- package/l1-contracts/out/SequencerRewardCalculatorLib.sol/SequencerRewardCalculatorLib.json +1 -1
- package/l1-contracts/out/SignatureLib.sol/SignatureLib.json +1 -1
- package/l1-contracts/out/SlashPayload.sol/SlashPayload.json +1 -1
- package/l1-contracts/out/SlashPayloadCloneable.sol/SlashPayloadCloneable.json +1 -1
- package/l1-contracts/out/SlashPayloadLib.sol/SlashPayloadLib.json +1 -1
- package/l1-contracts/out/SlashRoundLib.sol/CompressedSlashRoundMath.json +1 -1
- package/l1-contracts/out/Slasher.sol/Slasher.json +1 -1
- package/l1-contracts/out/SlasherDeploymentExtLib.sol/SlasherDeploymentExtLib.json +1 -1
- package/l1-contracts/out/SlashingProposer.sol/SlashingProposer.json +1 -1
- package/l1-contracts/out/StakingAssetHandler.sol/IStakingAssetHandler.json +1 -1
- package/l1-contracts/out/StakingAssetHandler.sol/StakingAssetHandler.json +1 -1
- package/l1-contracts/out/StakingLib.sol/StakingLib.json +1 -1
- package/l1-contracts/out/StakingQueue.sol/StakingQueueLib.json +1 -1
- package/l1-contracts/out/StakingQueueConfig.sol/StakingQueueConfigLib.json +1 -1
- package/l1-contracts/out/StdError.sol/stdError.json +1 -1
- package/l1-contracts/out/TestERC20.sol/TestERC20.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/CallAssetPayload.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/CallRevertingPayload.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/EmptyPayload.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/FakeRollup.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/RevertingCall.json +1 -1
- package/l1-contracts/out/TestPayloads.sol/UpgradePayload.json +1 -1
- package/l1-contracts/out/TimeLib.sol/TimeLib.json +1 -1
- package/l1-contracts/out/Tips.sol/ChainTipsLib.json +1 -1
- package/l1-contracts/out/V6UpgradePayload.sol/V6UpgradePayload.json +1 -0
- package/l1-contracts/out/V6UpgradeSimulation.sol/V6UpgradeSimulation.json +1 -0
- package/l1-contracts/out/ValidatorOperationsExtLib.sol/ValidatorOperationsExtLib.json +1 -1
- package/l1-contracts/out/ValidatorSelectionLib.sol/ValidatorSelectionLib.json +1 -1
- package/l1-contracts/out/ZKPassportHelper.sol/ZKPassportHelper.json +1 -1
- package/l1-contracts/out/ZKPassportRootVerifier.sol/ZKPassportRootVerifier.json +1 -1
- package/l1-contracts/out/ZKPassportSubVerifier.sol/ZKPassportSubVerifier.json +1 -1
- package/l1-contracts/out/build-info/ba785d07f217e383.json +1 -0
- package/l1-contracts/out/deploy/HonkVerifier.sol/HonkVerifier.json +1 -0
- package/l1-contracts/out/deploy/HonkVerifier.sol/IVerifier.json +1 -0
- package/l1-contracts/out/generated/HonkVerifier.sol/HonkVerifier.json +1 -1
- package/l1-contracts/out/libraries/Errors.sol/Errors.json +1 -1
- package/l1-contracts/out/rollup/BlobLib.sol/BlobLib.json +1 -1
- package/l1-contracts/out/src/ZKPassportHelper.sol/ZKPassportHelper.json +1 -1
- package/l1-contracts/out/src/ZKPassportRootVerifier.sol/ZKPassportRootVerifier.json +1 -1
- package/l1-contracts/out/src/ZKPassportSubVerifier.sol/ZKPassportSubVerifier.json +1 -1
- package/l1-contracts/script/deploy/DeployRollupForUpgradeV6.s.sol +688 -0
- package/l1-contracts/script/deploy/DeployRollupLib.sol +5 -12
- package/l1-contracts/script/deploy/FlushEntryQueue.s.sol +32 -0
- package/l1-contracts/script/deploy/HonkVerifier.sol +5723 -0
- package/l1-contracts/script/deploy/V6UpgradeSimulation.sol +285 -0
- package/l1-contracts/script/deploy/V6_UPGRADE_RUNBOOK.md +441 -0
- package/l1-contracts/scripts/forge_broadcast.js +104 -34
- package/l1-contracts/scripts/network-defaults.json +1 -1
- package/l1-contracts/src/core/EscapeHatch.sol +56 -12
- package/l1-contracts/src/core/interfaces/IEscapeHatch.sol +1 -0
- package/l1-contracts/src/core/interfaces/IStaking.sol +11 -0
- package/l1-contracts/src/core/libraries/ConstantsGen.sol +1 -1
- package/l1-contracts/src/core/libraries/Errors.sol +1 -0
- package/l1-contracts/src/core/libraries/rollup/FeeLib.sol +7 -12
- package/l1-contracts/src/core/libraries/rollup/StakingLib.sol +117 -12
- package/l1-contracts/src/core/libraries/rollup/ValidatorSelectionLib.sol +8 -6
- package/l1-contracts/src/periphery/RegisterNewRollupVersionPayload.sol +30 -10
- package/l1-contracts/src/periphery/V6UpgradePayload.md +113 -0
- package/l1-contracts/src/periphery/V6UpgradePayload.sol +441 -0
- package/package.json +1 -1
- package/l1-contracts/out/build-info/4cb7b5442b848dcc.json +0 -1
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
# v6 rollup upgrade runbook
|
|
2
|
+
|
|
3
|
+
How to deploy the v6 rollup and get it made canonical. Covers `DeployRollupForUpgradeV6.s.sol`,
|
|
4
|
+
`V6UpgradePayload.sol` and `V6UpgradeSimulation.sol`.
|
|
5
|
+
|
|
6
|
+
Reviewing the payload rather than running the upgrade? Start at
|
|
7
|
+
[`src/periphery/V6UpgradePayload.md`](../../src/periphery/V6UpgradePayload.md) — what it intends,
|
|
8
|
+
guarantees, and deliberately leaves alone.
|
|
9
|
+
|
|
10
|
+
## What this does
|
|
11
|
+
|
|
12
|
+
The deploy script deploys, in one broadcast of ten transactions:
|
|
13
|
+
|
|
14
|
+
0. Six external libraries the `Rollup` links against (`AttesterExitExtLib`,
|
|
15
|
+
`ValidatorOperationsExtLib`, `SlasherDeploymentExtLib`, `RollupOperationsExtLib`, `RewardExtLib`,
|
|
16
|
+
`EpochProofExtLib`), via the CREATE2 deployer. They go out first and account for about 33M of the
|
|
17
|
+
roughly 58M gas the broadcast uses.
|
|
18
|
+
1. `HonkVerifier` — the real epoch proof verifier, from the pinned `script/deploy/HonkVerifier.sol`
|
|
19
|
+
(see [Build](#1-build)), not from this tree's `generated/`.
|
|
20
|
+
2. `Rollup` — owned by **governance** from construction. Deploying it also constructs its `Inbox`,
|
|
21
|
+
`Outbox`, `FeeJuicePortal`, `Slasher` + `SlashingProposer`, and a fresh `RewardBooster`.
|
|
22
|
+
**The owner argument is not only the owner:** it also becomes the Slasher's immutable
|
|
23
|
+
`GOVERNANCE`, which can execute any slash payload with no vote and no delay. Constructing with
|
|
24
|
+
the deploy key would hand that power to the key permanently — `transferOwnership` moves only the
|
|
25
|
+
`Ownable` half. This is why no owner-gated setup happens in the script.
|
|
26
|
+
3. `EscapeHatch` — built here, but **installed by the payload**, since `setEscapeHatch` is
|
|
27
|
+
`onlyOwner` and the owner is governance.
|
|
28
|
+
4. `V6UpgradePayload` — and, on a chain with a flush rewarder, a replacement `FlushRewarder`
|
|
29
|
+
deployed inside the payload's constructor.
|
|
30
|
+
|
|
31
|
+
Nothing is canonical yet. The payload is what governance executes later; it performs:
|
|
32
|
+
|
|
33
|
+
| # | Action | Why |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| 1 | `assertPredecessorIsCanonical()` | refuses to run if the rollup this payload succeeds is no longer canonical |
|
|
36
|
+
| 2 | `assertWithinExecutionWindow()` | mainnet only; Mon–Fri 08:00–17:00 London |
|
|
37
|
+
| 3 | `distributor.recoverFrom(v5, payload, amount)` | skipped when the reservation is zero |
|
|
38
|
+
| 4 | `payload.forwardEarmark()` | parks the drawn balance in v5's own earmarked bucket |
|
|
39
|
+
| 5 | `v5.setRewardConfig(...)` | retunes the OUTGOING rollup's split; skipped when the flag is off |
|
|
40
|
+
| 6 | `v6.setEscapeHatch(hatch)` | installs the hatch; `onlyOwner`, so only governance can |
|
|
41
|
+
| 7 | `Registry.addRollup(v6)` | makes v6 the canonical rollup |
|
|
42
|
+
| 8 | `GSE.addRollup(v6)` | lets existing attesters follow without redepositing |
|
|
43
|
+
| 9 | `oldFlushRewarder.recover(asset, newRewarder, rewardsAvailable())` | carries the entry-queue flush incentive across (skipped if there is no old rewarder) |
|
|
44
|
+
| 10 | `GSE.setProofOfPossessionGasLimit(300_000)` | raises the GSE's cap on BLS proof-of-possession verification from 250k; skipped when the configured value is zero |
|
|
45
|
+
|
|
46
|
+
Actions 3–5 all act on the **outgoing** rollup and must precede action 7. The distributor resolves
|
|
47
|
+
`canonicalRollup()` live off the registry, so once v6 is canonical the old rollup can no longer
|
|
48
|
+
reach the implicit pool, and the retune would be settling a chain that has already stopped.
|
|
49
|
+
|
|
50
|
+
Action 10 has no ordering constraint and goes last. The GSE verifies each new attester's proof of
|
|
51
|
+
possession in a sub-call capped at this much gas, and a deposit whose verification does not fit is
|
|
52
|
+
refunded and dropped from the entry queue. The cost varies per key, and since Osaka's modexp
|
|
53
|
+
repricing about 1 in 28.6k honestly generated keys exceed 250k; at 300k it is about 1 in 2.5M. The
|
|
54
|
+
cost of the raise is that a failing entry can burn at most 50k more gas in a flush. The GSE is
|
|
55
|
+
shared, so the new cap applies to the outgoing rollup too, from the moment the payload executes.
|
|
56
|
+
|
|
57
|
+
## 1. Build
|
|
58
|
+
|
|
59
|
+
The verifier and the protocol constants are **pinned in git**, not built from this tree:
|
|
60
|
+
|
|
61
|
+
- `script/deploy/HonkVerifier.sol` — the epoch proof verifier from the v6 release build at
|
|
62
|
+
`42fae4eb3feb5a493f2e8a2baf78b4716e323c40`; its provenance comment names that commit.
|
|
63
|
+
`DeployRollupForUpgradeV6.s.sol` imports it as `./HonkVerifier.sol`.
|
|
64
|
+
- `src/core/libraries/ConstantsGen.sol` — from the same build.
|
|
65
|
+
|
|
66
|
+
The verifier is a function of the protocol circuits, and the circuits this branch would build
|
|
67
|
+
differ from the release's. A verifier built here has a different `VK_HASH` and rejects every proof
|
|
68
|
+
the v6 nodes produce, so **do not replace the pinned file with this tree's `generated/HonkVerifier.sol`**.
|
|
69
|
+
The verifier, `ConstantsGen.sol` and the three genesis roots in `_config()` come from one build and
|
|
70
|
+
move together.
|
|
71
|
+
|
|
72
|
+
No noir-projects bootstrap is needed. From a clean clone:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone --branch <release branch> --depth 1 https://github.com/AztecProtocol/aztec-packages.git
|
|
76
|
+
cd aztec-packages
|
|
77
|
+
git submodule update --init --recursive --depth 1 -- l1-contracts/lib
|
|
78
|
+
cd l1-contracts
|
|
79
|
+
export FOUNDRY_SOLC_VERSION=0.8.30
|
|
80
|
+
forge script script/deploy/DeployRollupForUpgradeV6.s.sol --sig 'run()' \
|
|
81
|
+
--rpc-url $RPC # dry run; see Deploy for the broadcast flags
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
- `FOUNDRY_SOLC_VERSION=0.8.30`: `foundry.toml` points `solc` at `./solc-0.8.30`, which only
|
|
85
|
+
`./bootstrap.sh` fetches; forge downloads the same binary (`0.8.30+commit.73712a01`). Use the
|
|
86
|
+
environment variable rather than `--use 0.8.30`: the flag covers compilation but not `--verify`,
|
|
87
|
+
which reads `foundry.toml` again and fails with `solc ./solc-0.8.30 does not exist`.
|
|
88
|
+
- The submodule step is required: `forge script` does not fetch `lib/` (only `forge build` does).
|
|
89
|
+
- Gas: forge sets each transaction's gas limit from its local simulation (`evm_version = 'prague'`),
|
|
90
|
+
which matches pre-Glamsterdam pricing, so the default limits are correct on mainnet before the
|
|
91
|
+
fork. Measured pre-fork on Sepolia: verifier 3.75M gas (limit 4.88M), rollup 11.98M (limit
|
|
92
|
+
15.58M). A mainnet dry run (2026-10-08) estimated 58.4M gas across all ten transactions, each
|
|
93
|
+
limit under the cap, the largest being the rollup at 15.58M; budget roughly 0.25-0.4 ETH at
|
|
94
|
+
4-6 gwei. Do **not** add `--gas-estimate-multiplier` before Glamsterdam: the rollup's limit would
|
|
95
|
+
exceed the EIP-7825 per-transaction cap of 16,777,216 and the node would reject it after the
|
|
96
|
+
verifier had already been sent. The rollup's default limit sits about 1.2M under that cap.
|
|
97
|
+
- After Glamsterdam, the default limits are far too low: on post-fork Sepolia the verifier creation
|
|
98
|
+
ran out of gas at its 4.88M limit. Measured there: verifier 26.7M, rollup 84.8M, escape hatch
|
|
99
|
+
14.9M, payload 10.1M gas, deployed with `--gas-estimate-multiplier 1000` under a 200M block gas
|
|
100
|
+
limit. Re-check that path against mainnet's post-fork rules before using it.
|
|
101
|
+
|
|
102
|
+
> Run `forge script` on the deploy script, **not** `forge build`. A whole-project build also compiles
|
|
103
|
+
> `DeployRollupLib.sol`, which imports `@generated/HonkVerifier.sol` and fails on a clean clone.
|
|
104
|
+
> Do **not** hand-write a stub `generated/HonkVerifier.sol` to get past that: a stub compiles and
|
|
105
|
+
> deploys a verifier that accepts every proof.
|
|
106
|
+
|
|
107
|
+
Confirm the pin before broadcasting:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
grep -m1 VK_HASH script/deploy/HonkVerifier.sol
|
|
111
|
+
# 0x1fd4eb1d14be45e05dc78c448eb4f29d7f63e4de95129c4a5e1058cd9837f8a6
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## 2. Fill in the inputs
|
|
115
|
+
|
|
116
|
+
All configuration is the `_config()` literal in `DeployRollupForUpgradeV6.s.sol`. Before a real
|
|
117
|
+
deploy these must be set:
|
|
118
|
+
|
|
119
|
+
| Field | Status | Notes |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| `vkTreeRoot` | set | `0x22fff5de…5913f219`, from the v6 release build at `42fae4eb`; see below |
|
|
122
|
+
| `protocolContractsHash` | set | `0x0f54271c…5c9854d7`, same build |
|
|
123
|
+
| `genesisArchiveRoot` | set | `0x29eb2c52…3d41e5c4`, same build. Must be below the BN254 scalar field modulus |
|
|
124
|
+
| `initialEthPerFeeAsset` | set | mainnet `5_934_240` (0.0000059342 ETH per AZTEC, from the AZTEC/ETH Uniswap v4 pool at block 26148995, 2026-10-08); Sepolia `10_000_000`. E12 ETH-per-fee-asset price |
|
|
125
|
+
| `sequencerRewardCalculator` | set | `address(0)` on both chains — v6 launches with no calculator, see below |
|
|
126
|
+
| `oldFlushRewarder` | set (mainnet) | `0x5B98cA4dcE7b59CCf241D12f81d3d2eCF14e410e`; zero on Sepolia |
|
|
127
|
+
| `earmarkAmountForPredecessor` | set | mainnet 1,800,000e18; Sepolia 5,000,000e18. Zero would omit both earmark actions |
|
|
128
|
+
| `retunePredecessorRewards` | set | `true` on both chains |
|
|
129
|
+
| `predecessorSequencerBps` | set | mainnet 7000 (v5 keeps the split it already runs); Sepolia 8000 |
|
|
130
|
+
| `predecessorCheckpointReward` | set | mainnet 50e18; Sepolia 100e18. Both down from the 500e18 v5 runs on |
|
|
131
|
+
| `enforcePayloadExecutionWindow` | set | `true` on mainnet, `false` on Sepolia |
|
|
132
|
+
| `proofOfPossessionGasLimit` | set | `300_000` on both chains; zero omits the action. The payload constructor reverts unless it exceeds the GSE's cap at deployment |
|
|
133
|
+
|
|
134
|
+
Neither chain has outstanding values. The three genesis values are not decisions but build outputs,
|
|
135
|
+
pinned with the verifier.
|
|
136
|
+
|
|
137
|
+
`run()` refuses to proceed while any of the three genesis roots is zero, so a forgotten root fails
|
|
138
|
+
loudly. A *stale* root does not: it is non-zero and deploys happily. Nothing guards the rest either
|
|
139
|
+
— `initialEthPerFeeAsset` deploys silently at whatever value is in the table.
|
|
140
|
+
|
|
141
|
+
### Sequencer reward policy
|
|
142
|
+
|
|
143
|
+
Under AZIP-31 the rollup can call a governance-set `ISequencerRewardCalculator` once per epoch
|
|
144
|
+
proof, and `sequencerRewardCalculator` is the address it starts with.
|
|
145
|
+
|
|
146
|
+
**v6 launches with `address(0)` on both chains, so every proposer earns the default sequencer
|
|
147
|
+
share.** Installing a calculator later is a governance action, `setSequencerRewardCalculator`, and
|
|
148
|
+
needs no redeploy.
|
|
149
|
+
|
|
150
|
+
Nothing about the calculator path is loud, so if a later deploy does set one:
|
|
151
|
+
|
|
152
|
+
- A calculator that reverts, exhausts its stipend (`200k + 100k` per checkpoint), or answers in the
|
|
153
|
+
wrong shape causes every checkpoint to fall back to the default reward. There is no revert and no
|
|
154
|
+
event; the rollup simply pays as though no calculator were configured.
|
|
155
|
+
- Nothing at deploy time checks the address is a calculator, or a contract at all. A
|
|
156
|
+
wrong-but-plausible address has the same observable result as `address(0)`.
|
|
157
|
+
- Reward values are capped at read time at `min(default, entry)`, so a too-high entry cannot pay
|
|
158
|
+
anyone more than the default. Note this cap is now applied on read rather than at construction,
|
|
159
|
+
so lowering `sequencerBps` or `checkpointReward` later tightens existing entries automatically.
|
|
160
|
+
|
|
161
|
+
Read the value back with `getSequencerRewardCalculator()` after the deploy. Unlike the rest of this
|
|
162
|
+
table it is mutable after construction, so it is worth re-checking after any governance action that
|
|
163
|
+
touches rewards.
|
|
164
|
+
|
|
165
|
+
The three genesis values are produced by the protocol circuits / node build, not by anything in
|
|
166
|
+
`l1-contracts`. Get them from the same source the v6 release uses; do not carry v5's forward.
|
|
167
|
+
|
|
168
|
+
The values in `_config()` were read off a full build (`make fast`) of the v6 release at
|
|
169
|
+
`42fae4eb3feb5a493f2e8a2baf78b4716e323c40`, the same build the pinned verifier and
|
|
170
|
+
`ConstantsGen.sol` come from:
|
|
171
|
+
|
|
172
|
+
| Field | Value |
|
|
173
|
+
|---|---|
|
|
174
|
+
| `vkTreeRoot` | `0x22fff5de6ce590153df4468f7f0b152188a803d91b3c9c648b91d93d5913f219` |
|
|
175
|
+
| `protocolContractsHash` | `0x0f54271c52865841a77aaa66036eed901aff22fdce9f08e123ec8b205c9854d7` |
|
|
176
|
+
| `genesisArchiveRoot` | `0x29eb2c527f8d45276430363214e6c8d709ef3f657a3670ebac3179373d41e5c4` |
|
|
177
|
+
| verifier `VK_HASH` | `0x1fd4eb1d14be45e05dc78c448eb4f29d7f63e4de95129c4a5e1058cd9837f8a6` |
|
|
178
|
+
|
|
179
|
+
All three moved when the release build advanced to `42fae4eb`, which changes protocol circuit
|
|
180
|
+
sources, including `types/src/address/aztec_address.nr` and `types/src/constants.nr`. The verifier
|
|
181
|
+
did not: `VK_HASH` is unchanged and the pinned file only gained a new provenance comment. It still
|
|
182
|
+
differs from the verifier this branch's own circuits build, which is what the pin exists for.
|
|
183
|
+
|
|
184
|
+
Regenerate all of them, and re-pin the verifier and `ConstantsGen.sol`, if the release build moves
|
|
185
|
+
to a commit that changes the protocol circuits or protocol contracts: rebuilding the circuits moves
|
|
186
|
+
`vkTreeRoot` and the verifier, and rebuilding the protocol contracts moves all three roots. After
|
|
187
|
+
`make fast` on the release build, the first two come from the built packages and the third from the
|
|
188
|
+
protocol constants:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# from labs/yarn-project/prover-node
|
|
192
|
+
node --input-type=module -e '
|
|
193
|
+
import { getVKTreeRoot } from "@aztec-labs/noir-protocol-circuits-types/vk-tree";
|
|
194
|
+
import { protocolContractsHash } from "@aztec-labs/protocol-contracts";
|
|
195
|
+
console.log(getVKTreeRoot().toString(), protocolContractsHash.toString());'
|
|
196
|
+
|
|
197
|
+
grep -A1 GENESIS_ARCHIVE_ROOT \
|
|
198
|
+
noir-projects/fnd/noir-protocol-circuits/crates/types/src/constants.nr
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## 3. Pre-flight checks
|
|
202
|
+
|
|
203
|
+
Read the chain and confirm the assumptions the config is built on. Mainnet registry:
|
|
204
|
+
`0x35b22e09Ee0390539439E24f06Da43D83f90e298`.
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
export RPC=<mainnet rpc>
|
|
208
|
+
REG=0x35b22e09Ee0390539439E24f06Da43D83f90e298
|
|
209
|
+
ROLLUP=$(cast call $REG "getCanonicalRollup()(address)" --rpc-url $RPC)
|
|
210
|
+
GSE=$(cast call $ROLLUP "getGSE()(address)" --rpc-url $RPC)
|
|
211
|
+
RD=$(cast call $REG "getRewardDistributor()(address)" --rpc-url $RPC)
|
|
212
|
+
TOKEN=$(cast call $ROLLUP "getFeeAsset()(address)" --rpc-url $RPC)
|
|
213
|
+
BONUS=$(cast call $GSE "BONUS_INSTANCE_ADDRESS()(address)" --rpc-url $RPC)
|
|
214
|
+
|
|
215
|
+
cast call $GSE "ACTIVATION_THRESHOLD()(uint256)" --rpc-url $RPC # expect 200_000e18
|
|
216
|
+
cast call $GSE "EJECTION_THRESHOLD()(uint256)" --rpc-url $RPC # expect 100_000e18
|
|
217
|
+
cast call $GSE "proofOfPossessionGasLimit()(uint64)" --rpc-url $RPC # expect 250000, below the configured 300000
|
|
218
|
+
cast call $GSE "owner()(address)" --rpc-url $RPC # governance, or action 10 reverts
|
|
219
|
+
cast call $ROLLUP "getActiveAttesterCount()(uint256)" --rpc-url $RPC
|
|
220
|
+
cast call $ROLLUP "getIsBootstrapped()(bool)" --rpc-url $RPC
|
|
221
|
+
|
|
222
|
+
# the reservation's headroom: the implicit pool plus what is already earmarked to the outgoing
|
|
223
|
+
# rollup must cover the earmark amount (1,800,000e18), or action 3 reverts
|
|
224
|
+
cast call $TOKEN "balanceOf(address)(uint256)" $RD --rpc-url $RPC
|
|
225
|
+
cast call $RD "totalEarmarkedBalance()(uint256)" --rpc-url $RPC
|
|
226
|
+
cast call $RD "specificRecipientBalance(address)(uint256)" $ROLLUP --rpc-url $RPC
|
|
227
|
+
cast call $RD "availableTo(address)(uint256)" $ROLLUP --rpc-url $RPC # >= 1,800,000e18
|
|
228
|
+
|
|
229
|
+
# how much the payload will actually move (balance minus unclaimed debt)
|
|
230
|
+
cast call 0x5B98cA4dcE7b59CCf241D12f81d3d2eCF14e410e "rewardsAvailable()(uint256)" --rpc-url $RPC
|
|
231
|
+
cast call 0x5B98cA4dcE7b59CCf241D12f81d3d2eCF14e410e "owner()(address)" --rpc-url $RPC # governance, or action 9 reverts
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Baseline measured 2026-09-15 (block 25980374), for comparison rather than as expected constants:
|
|
235
|
+
attesters 3187, all in the bonus instance; `isBootstrapped` true; distributor holds ~98.98M with
|
|
236
|
+
`totalEarmarkedBalance` 0; flush rewarder holds 390,000e18 of which 378,900e18 is movable.
|
|
237
|
+
Re-measured 2026-10-08 (block 26149128): attesters 3090; distributor holds 85.76M with
|
|
238
|
+
`totalEarmarkedBalance` 0; 363,900e18 movable from the flush rewarder.
|
|
239
|
+
|
|
240
|
+
`totalEarmarkedBalance` does **not** need to be 0. Earmarks are keyed by address and stay
|
|
241
|
+
claimable by their recipient whether or not it is canonical, and `subsidizeAddress` (which anyone
|
|
242
|
+
can call) raises the distributor's balance and `totalEarmarkedBalance` by the same amount, so it
|
|
243
|
+
cannot shrink the implicit pool. A donation earmarked to the outgoing rollup before execution
|
|
244
|
+
simply adds to the reservation. What matters is `availableTo($ROLLUP)` covering the earmark
|
|
245
|
+
amount, checked above.
|
|
246
|
+
|
|
247
|
+
## 4. Dry run
|
|
248
|
+
|
|
249
|
+
Run without `--broadcast` first. This executes the whole script including `verify`,
|
|
250
|
+
`verifyFlushRewarder` and the governance simulation, against forked state, changing nothing:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
cd l1-contracts
|
|
254
|
+
export FOUNDRY_SOLC_VERSION=0.8.30
|
|
255
|
+
REGISTRY_ADDRESS=0x35b22e09Ee0390539439E24f06Da43D83f90e298 \
|
|
256
|
+
forge script script/deploy/DeployRollupForUpgradeV6.s.sol:DeployRollupForUpgradeV6 \
|
|
257
|
+
--rpc-url $RPC -vvv
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
`V6UpgradeSimulation` wraps the payload in a `GSEPayload` exactly as `GovernanceProposer` does,
|
|
261
|
+
funds a simulation-only voter with a majority of power, votes, warps past the delays, executes,
|
|
262
|
+
asserts the post-state, then reverts the snapshot. It proves the **actions execute correctly**; it
|
|
263
|
+
does not predict whether a real proposal would pass.
|
|
264
|
+
|
|
265
|
+
A green dry run means the config is self-consistent and the payload works. It does not check the
|
|
266
|
+
genesis roots are the right ones — nothing on chain can.
|
|
267
|
+
|
|
268
|
+
## 5. Deploy
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
export FOUNDRY_SOLC_VERSION=0.8.30 ETHERSCAN_API_KEY=<key>
|
|
272
|
+
REGISTRY_ADDRESS=0x35b22e09Ee0390539439E24f06Da43D83f90e298 \
|
|
273
|
+
forge script script/deploy/DeployRollupForUpgradeV6.s.sol:DeployRollupForUpgradeV6 \
|
|
274
|
+
--slow \
|
|
275
|
+
--rpc-url $RPC --private-key $KEY --broadcast --verify -vvv
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
`--slow` sends each transaction only after the previous one is mined, so a failure stops the
|
|
279
|
+
broadcast instead of leaving later transactions pending against a contract that does not exist.
|
|
280
|
+
|
|
281
|
+
`--verify` submits every contract the broadcast created to Etherscan, including the seven the
|
|
282
|
+
`Rollup` constructor deploys (`Slasher`, `SlashingProposer`, `SlashPayloadCloneable`,
|
|
283
|
+
`RewardBooster`, `Inbox`, `FeeJuicePortal`, `Outbox`). If verification fails or is skipped, re-run it
|
|
284
|
+
from the same checkout without sending anything: the same command with `--broadcast` replaced by
|
|
285
|
+
`--resume`. The verified `HonkVerifier` source is the pinned file, so anyone can read its `VK_HASH`
|
|
286
|
+
on Etherscan.
|
|
287
|
+
|
|
288
|
+
Record the logged addresses: `rollup`, `verifier`, `inbox`, `outbox`, `feeJuicePortal`, `slasher`,
|
|
289
|
+
`rewardBooster`, `escapeHatch`, `payload`, `newFlushRewarder`, `version`.
|
|
290
|
+
|
|
291
|
+
Re-run the checks against the deployed contracts at any time:
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
forge script ... --sig 'verify(address)' <rollup>
|
|
295
|
+
forge script ... --sig 'verifyFlushRewarder(address,address)' <rollup> <payload>
|
|
296
|
+
forge script script/deploy/V6UpgradeSimulation.sol:V6UpgradeSimulation \
|
|
297
|
+
--sig 'simulate(address)' <payload> --rpc-url $RPC
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Sanity-check by hand that the rollup is inert and correctly owned:
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
cast call <rollup> "getEscapeHatch()(address)" --rpc-url $RPC # ZERO until the payload executes
|
|
304
|
+
cast call <payload> "ESCAPE_HATCH()(address)" --rpc-url $RPC # the hatch it will install
|
|
305
|
+
cast call <rollup> "owner()(address)" --rpc-url $RPC # governance, from construction
|
|
306
|
+
cast call <rollup> "getVersion()(uint256)" --rpc-url $RPC # not already in the registry
|
|
307
|
+
|
|
308
|
+
# the rollup uses the pinned verifier. `verify` does not check this, and the verifier is immutable,
|
|
309
|
+
# so a wrong one cannot be fixed after the payload executes. The two hashes must be equal
|
|
310
|
+
# (HonkVerifier has no immutables, so its runtime code is exactly the compiled artifact).
|
|
311
|
+
cast call <rollup> "getEpochProofVerifier()(address)" --rpc-url $RPC # == the logged verifier
|
|
312
|
+
cast code <verifier> --rpc-url $RPC | cast keccak
|
|
313
|
+
forge inspect script/deploy/HonkVerifier.sol:HonkVerifier deployedBytecode | cast keccak
|
|
314
|
+
|
|
315
|
+
# the payload is bound to the rollup it succeeds; must equal the OUTGOING rollup, not the new one
|
|
316
|
+
cast call <payload> "PREDECESSOR()(address)" --rpc-url $RPC
|
|
317
|
+
cast call $REG "getCanonicalRollup()(address)" --rpc-url $RPC
|
|
318
|
+
|
|
319
|
+
# the proof-of-possession gas cap the payload will set on the GSE
|
|
320
|
+
cast call <payload> "PROOF_OF_POSSESSION_GAS_LIMIT()(uint64)" --rpc-url $RPC # 300000
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
## 6. Governance proposal
|
|
324
|
+
|
|
325
|
+
Propose the **payload address**, not the rollup. `GovernanceProposer` wraps it in a `GSEPayload`
|
|
326
|
+
automatically. After proposing, read the exact timings off the proposal rather than assuming:
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
cast call <governance> "getProposal(uint256)" <id> --rpc-url $RPC
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
On mainnet the configured delays are long (voting delay, then voting duration, then execution
|
|
333
|
+
delay — on the order of weeks in total), so expect the proposal to sit before it is executable.
|
|
334
|
+
|
|
335
|
+
Before execution, re-run the reservation-headroom and `rewardsAvailable` checks from step 3. Both
|
|
336
|
+
can move while the proposal is pending: the canonical rollup's reward claims draw the implicit pool
|
|
337
|
+
down, and `rewardsAvailable` is read at execution time. A non-zero or growing
|
|
338
|
+
`totalEarmarkedBalance` on its own is not a reason to hold the execution; see step 3.
|
|
339
|
+
|
|
340
|
+
### Executing on mainnet: office hours only
|
|
341
|
+
|
|
342
|
+
The mainnet payload will only execute **Monday to Friday, 08:00–17:00 London**, DST included —
|
|
343
|
+
08:00–17:00 UTC in winter, 07:00–16:00 UTC in summer. Outside that the window check (action 2) reverts and
|
|
344
|
+
the whole execution rolls back, including the `Executed` flag, so the proposal stays executable and
|
|
345
|
+
can simply be retried when the window next opens. Nothing is consumed by a rejected attempt.
|
|
346
|
+
|
|
347
|
+
Check before sending, rather than discovering it from a revert:
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
# true when the window is open right now
|
|
351
|
+
cast call <payload> "isWithinExecutionWindow(uint256)(bool)" $(date +%s) --rpc-url $RPC
|
|
352
|
+
|
|
353
|
+
# and confirm the chain agrees the restriction applies
|
|
354
|
+
cast call <payload> "ENFORCE_EXECUTION_WINDOW()(bool)" --rpc-url $RPC
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
The longest closed stretch is Friday 17:00 to Monday 08:00, well inside the grace period, so the
|
|
358
|
+
window cannot strand a proposal on its own. Sepolia is unrestricted.
|
|
359
|
+
|
|
360
|
+
### Before signalling or voting, check the payload is still live
|
|
361
|
+
|
|
362
|
+
The payload only authorises a transition **from** the rollup that was canonical when it was
|
|
363
|
+
deployed, and it refuses to execute once that is no longer true. Both halves are readable on-chain,
|
|
364
|
+
and both should be checked before anything is committed to:
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# (a) the guard is actually in the action list — expect assertPredecessorIsCanonical first
|
|
368
|
+
cast call <payload> "getActions()((address,bytes)[])" --rpc-url $RPC
|
|
369
|
+
|
|
370
|
+
# (b) the rollup it is bound to is still canonical — these two must be equal
|
|
371
|
+
cast call <payload> "PREDECESSOR()(address)" --rpc-url $RPC
|
|
372
|
+
cast call $REG "getCanonicalRollup()(address)" --rpc-url $RPC
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
A registration payload without that guard is the hazard the guard exists to remove: registration is
|
|
376
|
+
append-only with last-write-wins and `execute` is permissionless, so an accepted-but-abandoned
|
|
377
|
+
payload can be executed by anyone later and demote whatever replaced it — permanently, since
|
|
378
|
+
neither the registry nor the GSE re-admits a rollup it already holds.
|
|
379
|
+
|
|
380
|
+
**The consequence, which is intended but worth stating.** Once *any* other registration executes,
|
|
381
|
+
this payload is dead: it can never execute, even if its proposal was accepted and is still inside
|
|
382
|
+
its grace period. Registering v6 then requires deploying a fresh payload — which picks up the new
|
|
383
|
+
canonical rollup as its `PREDECESSOR` — and taking it through the full governance cycle again. So a
|
|
384
|
+
patched replacement for a bad v6 is not a quick swap; budget the whole cycle for it.
|
|
385
|
+
|
|
386
|
+
## 7. After execution
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
cast call $REG "getCanonicalRollup()(address)" --rpc-url $RPC # the new rollup
|
|
390
|
+
cast call $RD "canonicalRollup()(address)" --rpc-url $RPC # follows automatically
|
|
391
|
+
cast call <rollup> "getActiveAttesterCount()(uint256)" --rpc-url $RPC # inherits the bonus bucket
|
|
392
|
+
cast call $ROLLUP "getActiveAttesterCount()(uint256)" --rpc-url $RPC # outgoing rollup, expect 0
|
|
393
|
+
cast call <newFlushRewarder> "rewardsAvailable()(uint256)" --rpc-url $RPC
|
|
394
|
+
|
|
395
|
+
# the reservation: total distributor balance UNCHANGED, the amount moved between buckets
|
|
396
|
+
cast call $TOKEN "balanceOf(address)(uint256)" $RD --rpc-url $RPC # same as before
|
|
397
|
+
cast call $RD "totalEarmarkedBalance()(uint256)" --rpc-url $RPC # up by the amount
|
|
398
|
+
cast call $RD "specificRecipientBalance(address)(uint256)" $ROLLUP --rpc-url $RPC # up by the amount
|
|
399
|
+
cast call $TOKEN "balanceOf(address)(uint256)" <payload> --rpc-url $RPC # 0
|
|
400
|
+
|
|
401
|
+
# the retune, read off the OUTGOING rollup: (distributor, 7000, booster, 50e18)
|
|
402
|
+
cast call $ROLLUP "getRewardConfig()((address,uint32,address,uint96))" --rpc-url $RPC
|
|
403
|
+
|
|
404
|
+
# the proof-of-possession gas cap, shared by every rollup on the GSE
|
|
405
|
+
cast call $GSE "proofOfPossessionGasLimit()(uint64)" --rpc-url $RPC # 300000
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
The distributor's **total balance not moving** is the check that matters for the reservation: the
|
|
409
|
+
funds change bucket, they do not leave. If the total fell, something claimed rather than earmarked.
|
|
410
|
+
|
|
411
|
+
The outgoing rollup dropping to **exactly 0** is expected, not a fault: every mainnet attester is
|
|
412
|
+
registered against the bonus instance (`moveWithLatestRollup = true`), and the bonus instance is
|
|
413
|
+
only visible to whichever rollup is currently canonical.
|
|
414
|
+
|
|
415
|
+
## Deliberately not done
|
|
416
|
+
|
|
417
|
+
- **Protocol fee recipient and margin.** The rollup launches with `protocolFeeMarginBps = 0` and
|
|
418
|
+
`protocolFeeRecipient` set to a placeholder address. Both are `onlyOwner`, so they now require a
|
|
419
|
+
governance proposal. **Set the recipient before, or in the same payload as, any non-zero
|
|
420
|
+
margin** — otherwise the protocol fee tranche is transferred to an unrecoverable address on
|
|
421
|
+
every claim. The first margin increase is exempt from the 30-day cooldown but capped at
|
|
422
|
+
5000 bps by the ×3/2 step on the fee multiplier.
|
|
423
|
+
- **Reward distributor migration.** Not needed: the distributor resolves the canonical rollup live
|
|
424
|
+
off the registry, so its implicit pool follows v6 the moment action 7 (`Registry.addRollup`)
|
|
425
|
+
executes. Balances earmarked to other addresses, including the reservation for the outgoing
|
|
426
|
+
rollup, stay with their recipients and are not part of what v6 inherits.
|
|
427
|
+
- **Registry address pinning.** `REGISTRY_ADDRESS` is an unvalidated env input. Everything else —
|
|
428
|
+
fee asset, staking asset, GSE, governance, reward distributor — is derived from it, so a wrong
|
|
429
|
+
registry silently changes all of them together. Double-check it on the command line.
|
|
430
|
+
|
|
431
|
+
## Do not renounce ownership of the outgoing rollup
|
|
432
|
+
|
|
433
|
+
Retired rollups have had ownership renounced in the past. Two things break if that is done here:
|
|
434
|
+
|
|
435
|
+
- the outgoing `FlushRewarder` keeps its unclaimed `debt` and must stay callable for
|
|
436
|
+
`claimRewards()`;
|
|
437
|
+
- `updateStakingQueueConfig` is the only way to recover a rollup whose entry queue is wedged, and
|
|
438
|
+
it is `onlyOwner`.
|
|
439
|
+
|
|
440
|
+
Mainnet's outgoing rollup is already `isBootstrapped = true`, so its queue still flushes at
|
|
441
|
+
1 validator/epoch from zero and it remains restartable. Renouncing ownership removes the fallback.
|
|
@@ -13,6 +13,19 @@
|
|
|
13
13
|
// interval per transaction, blowing past the broadcast timeout. There (and on real chains) we keep a
|
|
14
14
|
// larger batch size. A hard timeout guards against a broadcast hanging indefinitely.
|
|
15
15
|
//
|
|
16
|
+
// A deploy that queues INITIAL_VALIDATORS does not activate them itself: once the deploy broadcast
|
|
17
|
+
// has landed, this script runs FlushEntryQueue.s.sol against the deployed Rollup as a second,
|
|
18
|
+
// `--skip-simulation` broadcast. `Rollup.flushEntryQueue` requires a fixed amount of gas to be
|
|
19
|
+
// *left* before every deposit (StakingLib.getFlushDepositGasFloor, about 1.1M at the default
|
|
20
|
+
// proof-of-possession cap). forge's on-chain simulation sizes each transaction at the gas it
|
|
21
|
+
// *used* times a multiplier, which is too little for a flush of a few entries, and it cannot be
|
|
22
|
+
// overridden per transaction. With the simulation skipped forge takes each limit from
|
|
23
|
+
// eth_estimateGas, which searches for the smallest limit at which the call succeeds and so includes
|
|
24
|
+
// the floor. Skipping the simulation also makes forge send one transaction per block, so it is
|
|
25
|
+
// confined to the one or two flush transactions; the deploy itself keeps forge's batched,
|
|
26
|
+
// simulated broadcast. On anvil, an empty block is mined after the flush so the flush is never in
|
|
27
|
+
// the head block that callers estimate gas against (see the comment at the evm_mine call).
|
|
28
|
+
//
|
|
16
29
|
// Usage: ./scripts/forge_broadcast.js <forge script args...>
|
|
17
30
|
// (without --broadcast or --batch-size — added automatically)
|
|
18
31
|
|
|
@@ -38,6 +51,27 @@ function extractArg(args, flag) {
|
|
|
38
51
|
return i >= 0 && i < args.length - 1 ? args[i + 1] : undefined;
|
|
39
52
|
}
|
|
40
53
|
|
|
54
|
+
// INITIAL_VALIDATORS is the JSON array the deploy script reads; unset, empty or "[]" means no validators. Anything
|
|
55
|
+
// that is not valid JSON is treated as validators present, so a malformed value still gets its flush.
|
|
56
|
+
function hasInitialValidators(value) {
|
|
57
|
+
if (value === undefined || value.trim() === "") return false;
|
|
58
|
+
try {
|
|
59
|
+
const parsed = JSON.parse(value);
|
|
60
|
+
return !Array.isArray(parsed) || parsed.length > 0;
|
|
61
|
+
} catch {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// The deploy scripts print `JSON DEPLOY RESULT: {...,"rollupAddress":"0x..",...}`; with --json the line sits inside
|
|
67
|
+
// forge's JSON output with escaped quotes, so the match tolerates a backslash before each quote.
|
|
68
|
+
function extractRollupAddress(stdout) {
|
|
69
|
+
const m = /rollupAddress\\?"\s*:\s*\\?"(0x[0-9a-fA-F]{40})/.exec(stdout);
|
|
70
|
+
return m ? m[1] : undefined;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const FLUSH_SCRIPT = "script/deploy/FlushEntryQueue.s.sol:FlushEntryQueue";
|
|
74
|
+
|
|
41
75
|
const args = process.argv.slice(2);
|
|
42
76
|
const rpcUrl = extractArg(args, "--rpc-url");
|
|
43
77
|
|
|
@@ -58,42 +92,78 @@ const timeoutMs =
|
|
|
58
92
|
Number(process.env.FORGE_BROADCAST_TIMEOUT_MS) ||
|
|
59
93
|
(isAnvil ? 120_000 : 1_200_000);
|
|
60
94
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
["script", ...
|
|
64
|
-
{
|
|
95
|
+
// Runs one `forge script ... --broadcast`, bounded by the timeout. Resolves to the exit code and stdout.
|
|
96
|
+
function runForge(forgeArgs) {
|
|
97
|
+
const proc = spawn(process.env.FORGE_BIN || "forge", ["script", ...forgeArgs, "--broadcast"], {
|
|
65
98
|
stdio: ["ignore", "pipe", "inherit"],
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
const stdout = [];
|
|
70
|
-
proc.stdout.on("data", (chunk) => stdout.push(chunk));
|
|
71
|
-
|
|
72
|
-
let timedOut = false;
|
|
73
|
-
const exitCode = await new Promise((resolve) => {
|
|
74
|
-
const timeout = setTimeout(() => {
|
|
75
|
-
timedOut = true;
|
|
76
|
-
log(`Broadcast timed out after ${timeoutMs}ms; killing forge.`);
|
|
77
|
-
proc.kill("SIGTERM");
|
|
78
|
-
const sigkill = setTimeout(() => proc.kill("SIGKILL"), 5_000);
|
|
79
|
-
sigkill.unref?.();
|
|
80
|
-
}, timeoutMs);
|
|
81
|
-
timeout.unref?.();
|
|
82
|
-
proc.on("error", () => {
|
|
83
|
-
clearTimeout(timeout);
|
|
84
|
-
resolve(1);
|
|
85
99
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
const chunks = [];
|
|
101
|
+
proc.stdout.on("data", (chunk) => chunks.push(chunk));
|
|
102
|
+
return new Promise((resolve) => {
|
|
103
|
+
let timedOut = false;
|
|
104
|
+
const timeout = setTimeout(() => {
|
|
105
|
+
timedOut = true;
|
|
106
|
+
log(`Broadcast timed out after ${timeoutMs}ms; killing forge.`);
|
|
107
|
+
proc.kill("SIGTERM");
|
|
108
|
+
const sigkill = setTimeout(() => proc.kill("SIGKILL"), 5_000);
|
|
109
|
+
sigkill.unref?.();
|
|
110
|
+
}, timeoutMs);
|
|
111
|
+
timeout.unref?.();
|
|
112
|
+
proc.on("error", () => {
|
|
113
|
+
clearTimeout(timeout);
|
|
114
|
+
resolve({ code: 1, stdout: Buffer.concat(chunks) });
|
|
115
|
+
});
|
|
116
|
+
proc.on("close", (code) => {
|
|
117
|
+
clearTimeout(timeout);
|
|
118
|
+
resolve({ code: timedOut ? 1 : code ?? 1, stdout: Buffer.concat(chunks) });
|
|
119
|
+
});
|
|
89
120
|
});
|
|
90
|
-
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const deploy = await runForge([...args, "--batch-size", batchSize]);
|
|
124
|
+
let exitCode = deploy.code;
|
|
125
|
+
let output = deploy.stdout;
|
|
126
|
+
|
|
127
|
+
if (exitCode === 0 && hasInitialValidators(process.env.INITIAL_VALIDATORS)) {
|
|
128
|
+
const rollup = extractRollupAddress(output.toString());
|
|
129
|
+
const privateKey = extractArg(args, "--private-key");
|
|
130
|
+
if (!rollup || !rpcUrl || !privateKey) {
|
|
131
|
+
log("INITIAL_VALIDATORS set but no rollup address, --rpc-url or --private-key to flush with.");
|
|
132
|
+
exitCode = 1;
|
|
133
|
+
} else {
|
|
134
|
+
log(`Flushing the entry queue of ${rollup} (gas limits from eth_estimateGas).`);
|
|
135
|
+
const flush = await runForge([
|
|
136
|
+
FLUSH_SCRIPT,
|
|
137
|
+
"--sig",
|
|
138
|
+
"run(address)",
|
|
139
|
+
rollup,
|
|
140
|
+
"--rpc-url",
|
|
141
|
+
rpcUrl,
|
|
142
|
+
"--private-key",
|
|
143
|
+
privateKey,
|
|
144
|
+
"--skip-simulation",
|
|
145
|
+
"--batch-size",
|
|
146
|
+
"1",
|
|
147
|
+
...(args.includes("--json") ? ["--json"] : []),
|
|
148
|
+
]);
|
|
149
|
+
exitCode = flush.code;
|
|
150
|
+
output = Buffer.concat([output, flush.stdout]);
|
|
151
|
+
if (exitCode === 0 && isAnvil) {
|
|
152
|
+
// Leave the flush out of the head block. anvil's eth_estimateGas against `latest` runs at the head
|
|
153
|
+
// block's timestamp, where a follow-up staking call (e.g. an attester exit) overwrites the
|
|
154
|
+
// timestamp-keyed GSE checkpoints the flush just pushed instead of pushing new ones. Its estimate
|
|
155
|
+
// then comes out ~25% below what it costs once mined, more than the 20% gas limit buffer that
|
|
156
|
+
// L1TxUtils adds.
|
|
157
|
+
try {
|
|
158
|
+
await rpc(rpcUrl, "evm_mine");
|
|
159
|
+
} catch (err) {
|
|
160
|
+
log(`Failed to mine a block after the flush: ${err.message}`);
|
|
161
|
+
exitCode = 1;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
91
166
|
|
|
92
|
-
log(
|
|
93
|
-
|
|
94
|
-
? "Broadcast succeeded."
|
|
95
|
-
: `Broadcast failed (exit ${exitCode}).`
|
|
96
|
-
);
|
|
97
|
-
const data = Buffer.concat(stdout);
|
|
98
|
-
if (data.length > 0) writeSync(1, data);
|
|
167
|
+
log(exitCode === 0 ? "Broadcast succeeded." : `Broadcast failed (exit ${exitCode}).`);
|
|
168
|
+
if (output.length > 0) writeSync(1, output);
|
|
99
169
|
process.exit(exitCode);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"AZTEC_EPOCH_DURATION": 32,
|
|
5
5
|
"AZTEC_TARGET_COMMITTEE_SIZE": 48,
|
|
6
6
|
"AZTEC_LAG_IN_EPOCHS_FOR_VALIDATOR_SET": 2,
|
|
7
|
-
"AZTEC_LAG_IN_EPOCHS_FOR_RANDAO":
|
|
7
|
+
"AZTEC_LAG_IN_EPOCHS_FOR_RANDAO": 1,
|
|
8
8
|
"AZTEC_ACTIVATION_THRESHOLD": 100000000000000000000,
|
|
9
9
|
"AZTEC_EJECTION_THRESHOLD": 50000000000000000000,
|
|
10
10
|
"AZTEC_LOCAL_EJECTION_THRESHOLD": 98000000000000000000,
|