Configure L1BeHYPEOAppStaker for Optimism route#27
Open
jtfirek wants to merge 4 commits into
Open
Conversation
Generates a Gnosis Safe transaction bundle for the HyperEVM controller to peer L1BeHYPEOAppStaker with the Optimism-side L2BeHYPEOAppStaker and configure send/receive DVNs on the HyperEVM endpoint for the OP route. Co-authored-by: Cursor <cursoragent@cursor.com>
Reads optimismController from production config and calls setDelegate + transferOwnership at the end of the OP deploy branch, matching the Scroll staker which is owned by scrollController. Co-authored-by: Cursor <cursoragent@cursor.com>
Follows the pattern of OFTOptimismVerification — verifies implementation bytecode, owner, LZ delegate, and HyperEVM peer configuration. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
script/oapp/ConfigureL1OAppStakerForOP.s.sol: a Gnosis Safe transaction bundle script for the HyperEVM controller to configure the already-deployedL1BeHYPEOAppStakerfor the Optimism routeWhat the bundle does
Executed by the HyperEVM controller Safe (
0xf27128a5b064e8d97EDaa60D24bFa2FD1eeC26eB, the current owner ofL1BeHYPEOAppStaker):L1BeHYPEOAppStaker.setPeer(OP_EID=30111, L2BeHYPEOAppStaker)— peers the L1 staker with the OP-side staker (same CREATE3 address as Scroll:0x3f1Bdae959cEd680E434Fe201861E97976eA4A8F)endpoint.setConfig(send302)— configures [Nethermind, LayerZero] DVNs on the HyperEVM send lib for the OP route (30 confirmations)endpoint.setConfig(receive302)— same for the receive libSimulates on fork and asserts the peer is set correctly before writing the output JSON.
Note
Medium Risk
Medium risk because it adds/updates deployment & governance scripts that set cross-chain peers, LayerZero DVN configs, and transfer
L2BeHYPEOAppStakercontrol to a controller address; mistakes here can break messaging routes or lock admin access.Overview
Adds
ConfigureL1OAppStakerForOP.s.sol, a Forge script that builds and fork-simulates a Gnosis Safe Transaction Builder bundle to configure the existingL1BeHYPEOAppStakerfor the Optimism route (sets the OP peer and applies ULN DVN config on HyperEVMsend302/receive302). The generated bundle is checked in asoutput/hyperevm-l1-staker-op-config-bundle.json.Updates
DeployAndConfigureOApps.s.solso Optimism deployments alsosetDelegateandtransferOwnershipofL2BeHYPEOAppStakertoroles.optimismController, and addsOAppStakerOptimismVerification.s.solto verify on-chain OP proxy bytecode matches local, and that owner/delegate/peer are correctly set.Reviewed by Cursor Bugbot for commit e9964cc. Bugbot is set up for automated code reviews on this repo. Configure here.