Feat/mainnet genesis bootstrap#57
Open
rahulghangas wants to merge 6 commits intomainfrom
Open
Conversation
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/mainnet/genesis.shto build the canonical mainnetgenesis.jsonforopengradient_1486-1fromvalidators.yaml+foundation.yamlinputs. Idempotent, supports--dry-run, runs hard guards (zero inflation, zero community tax, finite max_gas, denom consistency, supply integrity, SVIP dormant), thenevmd genesis validate.x/svippool is also funded via bridge before governance activates SVIP. The canonical 1B OPG lives as ERC-20 on Base. This avoids the depeg/run risk of seating unbacked tokens in genesis (Adam + Rahul Slack thread: "if we burn the entire 10% on Base and then put it in genesis, it might create this weird setup … small amount per genesis validator would be my recommendation").scripts/mainnet/README.mdoperator guide covering prerequisites, key generation, gentx flow, config edits, launch day, a citation-backed PoA enforcement note (referencesxrplevm/node/v10/x/poa/ante/poa.goandante/cosmos.go:44), and a §17 "Post-launch bridge dependencies" section that documents the Foundation bridge ceremony required before any L1 transaction and before SVIP activation.scripts/lib/precompiles.shsolocal_node.sh,multi_node_startup.sh, and the new mainnet script all consume the same source. This also fixes a real drift bug:multi_node_startup.shwas previously missing the TEE precompile (0x…0900).multi_node_startup.shdenom_metadata usedOGETHwhilelocal_node.shusedOPG. Aligned toOPG/OpenGradient.