Skip to content

chore(frontend): point gravity.json at Gravity mainnet#63

Merged
colinisme merged 1 commit into
mainfrom
chore/gravity-config-mainnet
Jun 5, 2026
Merged

chore(frontend): point gravity.json at Gravity mainnet#63
colinisme merged 1 commit into
mainfrom
chore/gravity-config-mainnet

Conversation

@colinisme

Copy link
Copy Markdown
Contributor

What

Point frontend/config/gravity.json at Gravity mainnet (was Gravity testnet).

field before (testnet) after (mainnet)
rpc_url https://rpc-testnet.gravity.xyz https://mainnet-rpc.gravity.xyz
chain_id 7771625 127001
router_address 0x5cAD…112C3 0x4c2F6C0BAd768A75a67949b35feb094BAC4De03a
explorer_url https://explorer-sepolia.gravity.xyz https://mainnet-explorer.gravity.xyz
wss_url wss://rpc-testnet.gravity.xyz ""

The frontend discovers every other contract address on-chain via the Router, so only the router address needs to change.

Verified against the live mainnet Router

Router.getAddressesV3() at 0x4c2F…De03a resolves all nine addresses exactly as deployed (incl. the freshly-upgraded GTreasury / CardLedger / ArenaEngine):

idx contract address
0 AgentRegistry 0x906Dd69FCe1Ac822d683db7b4bA202b4bCB1c98b
1 AgentLedger 0x08e6f61987b16165b9976DD9A96576C6b848F85d
2 LocationLedger 0xA336F5263f5164984F582e58242aCAA0E3DCD578
3 InboxLedger 0x05f7900B2B4d94a981AD52E783f37d2731C9618a
4 GameEngine 0xF1A15Ebbb23EC1b3AA5c2BE2f5758d6cBD111d87
5 EvaluationLedger 0xDD2555CF9F99a191fD6dF77bE7B24fC737Ae2579
6 ArenaEngine 0x48d038d02188568ce24f92852e594e52561a7e86
7 GTreasury 0xF45F145D9e36224d03EE9f18C41b97070554DA91
8 CardLedger 0xF7C71901654EF9945e024683DC258AD58BD93319

Values also match the committed gravity-mainnet.example.json.

Notes

  • wss_url set to "" to match gravity-mainnet.example.json (testnet had a wss endpoint). If mainnet exposes a websocket endpoint, tell me and I'll add it so the frontend gets live push updates instead of polling.

Test plan

  • JSON is valid; chain_id is a number (127001), not a string.
  • All nine Router-resolved addresses verified on https://mainnet-rpc.gravity.xyz (chainId 0x1f019 = 127001).
  • Reviewer confirms this is intended to flip the default gravity config from testnet → mainnet (the runtime network picker still offers both via the *.example.json files).

Switch the `gravity` frontend config from testnet to Gravity mainnet:

- rpc_url    → https://mainnet-rpc.gravity.xyz
- chain_id   → 127001
- router     → 0x4c2F6C0BAd768A75a67949b35feb094BAC4De03a
- explorer   → https://mainnet-explorer.gravity.xyz

The frontend resolves all other contract addresses on-chain via the
Router, so only the router needs to change. Verified against the live
mainnet Router (getAddressesV3) — all nine addresses resolve exactly,
including the freshly-upgraded GTreasury / CardLedger / ArenaEngine.

Values match the committed gravity-mainnet.example.json.
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gravity-town Ready Ready Preview, Comment Jun 5, 2026 2:59am

Request Review

@colinisme colinisme merged commit 12f8b8e into main Jun 5, 2026
6 checks passed
@colinisme colinisme deleted the chore/gravity-config-mainnet branch June 5, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant