Skip to content

Commit f93c42c

Browse files
AshinGauzerosnacks
andauthored
feat(StdChains): add Gravity mainnet (127001) (#848)
### Summary Adds [Gravity](https://gravity.xyz) L1 mainnet (chain id `127001`, native token `G`) to `StdChains` so that scripts and tests can resolve the chain via `getChain("grav")`. Gravity L1 is a new EVM-compatible L1 (reth-based execution + Aptos-derived BFT consensus). The `grav` alias matches the `shortName` registered in [`ethereum-lists/chains`](https://github.com/ethereum-lists/chains) — the existing `gravity` short name is already taken by Gravity Alpha L2 (chain id `1625`). ### Notes / Open items Companion change in alloy: alloy-rs/chains#275 ### Checklist - [x] `forge build` passes locally - [x] Alias matches `ethereum-lists/chains` `shortName` Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
1 parent 62f410e commit f93c42c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/StdChains.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ abstract contract StdChains {
295295
setChainWithDefaultRpcUrl(
296296
"tempo_andantino", ChainData("Tempo Andantino", 42429, "https://rpc.testnet.tempo.xyz")
297297
);
298+
299+
setChainWithDefaultRpcUrl("grav", ChainData("Gravity", 127001, "https://mainnet-rpc.gravity.xyz"));
298300
}
299301

300302
// set chain info, with priority to chainAlias' rpc url in foundry.toml

0 commit comments

Comments
 (0)