chore(deploy): mainnet fresh-deploy path + repoint to new mainnet contracts#71
Merged
Conversation
…tracts - Deploy.s.sol: gate MarketSeed/bootstrapMarket behind non-mainnet. On Gravity mainnet (chain 127001) switch GTreasury to withdraw mode (faucet OFF -> withdraw ON) so no unbacked G can be minted on the full-backed mainnet economy. - Repoint default Router to the freshly deployed mainnet proxy 0x13860c81003e1d11E8C8576F995a68b02c750A59 across frontend config, MCP server defaults (src + rebuilt zero-install bin bundle), README, and the play-skill connect docs. - frontend: format wei-denominated gBalance for display (1 G = 1e18), fixing the G column now that mainnet runs the wei economy.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What
Enables a safe mainnet fresh deploy and repoints the whole stack at the newly deployed mainnet contracts. The fresh deploy described below has already been executed and verified on-chain (chain 127001); this PR lands the script change + address repoint that the deploy depended on.
1.
Deploy.s.sol— mainnet pathcreateAgent("MarketSeed")+bootstrapMarketbehind non-mainnet.bootstrapMarketfaucet-mints 500 unbacked G — fatal on a full-backed mainnet (creates withdrawable G with no native backing).block.chainid == 127001) it instead switches the treasury to withdraw mode:setFaucetEnabled(false)→setWithdrawEnabled(true)(order matters —setWithdrawEnabledrequires!faucetEnabled).2. Repoint default Router → new mainnet proxy
0x4c2F…De03a(old) →0x13860c81003e1d11E8C8576F995a68b02c750A59(new) across:frontend/config/gravity.json+gravity-mainnet.example.jsonmcp-server/src/index.ts+http.tsdefaults, and the rebuilt zero-install bundlemcp-server/bin/gravity-town-mcp.mjsREADME.md,skills/gravity-town/references/connect.md3. Frontend wei display
New mainnet runs the wei economy (1 G = 1e18).
useArenaEnginenowformatUnits(gBalance, 18)so the leaderboard G column shows whole-G instead of5000000000000000000.Deployed mainnet addresses (chain 127001)
0x13860c81003e1d11E8C8576F995a68b02c750A590xC9B0EdA92A2164040f4b37fa011d5C1088232f5f0x859AcF859718515f0Ad39dF1C0231500768564630x10c5bE2706c6f575a21602Cdc5382c7a968c06010x789add516de4363BDB29103D63d7f3018Dd7F4210x795bCAAC036F91282D5b6CC3c9Cf0fA87C9dcC8b0x2975e834018971b0230CCaB7EaB1C51A9da636B00x396DE3685A279213Bc7e8293331cf57165475E6f0xde9CcBB78eF024f9EBD32D6908A460e67Eee6DA50x37E66499168f797B8E3D5C13A589474D3d2D1361On-chain verification (post-deploy)
GTreasury.faucetEnabled() == false,withdrawEnabled() == true,owner == deployer,totalOutstandingG == 0, native balance 0 ✅ArenaEngine.WEI_PER_G() == 1e18✅setFaucetEnabled,setWithdrawEnabled) and nocreateAgent/bootstrapMarket.Follow-ups (not in this PR)
0xF45F…DA91(UUPS proxy owned by deployer →withdrawSurplus/upgrade-sweep).npm publishfrommcp-server/).#69fresh-deploy decision.