feat(bridge): Ethereum mainnet sender deployment script#87
Merged
Conversation
Adds scripts/eth-mainnet-sender/ with a single-broadcast forge script that deploys GravityPortal + GBridgeSender and immediately hands ownership of both to a Safe multisig via Ownable2Step.transferOwnership. Includes chainid==1 guard, 7 post-deploy invariant asserts, and a minimal README pointing at the full ceremony runbook in mono-grav. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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
scripts/eth-mainnet-sender/DeployBridge.s.sol— single-broadcast forge script that deploysGravityPortal+GBridgeSenderto Ethereum mainnet and hands ownership of both to a Safe multisig viaOwnable2Step.transferOwnership()in the same broadcast.0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649), enforceschainid == 1(with anALLOW_NON_MAINNET=1escape for fork tests), and runs 7 post-deploy invariant asserts.README.mdthat points to the full operator runbook inmono-grav/docs/mainnet/ETH-BRIDGE-SENDER-DEPLOYMENT.md.Design notes
transferOwnershipruns in the same broadcast immediately after each deploy, so the EOA window is effectively zero.feeRecipientis set directly to the multisig in the constructor, so even if the EOA window were attacked, anywithdrawFees()still routes ETH to the multisig.GBridgeSenderreceives theGravityPortaladdress from the same script context, eliminating manual transcription risk.Test plan
forge buildclean on Solc 0.8.30 with via_irhttps://ethereum-rpc.publicnode.com— 4 txs simulated, 7 invariants pass, deployment JSON produced🤖 Generated with Claude Code