fix(configs): Pars mainnet canonical EVMChainID 7070 -> 494949 (LP-018 map)

The LP-018 (family,env)->EVMChainID source-of-truth map carried the stale
7070 for Pars mainnet, but the live chain reports 494949 (api.pars.network
eth_chainId=0x78d65 / net_version=494949), and the map's own Pars testnet/devnet
(494950/494951) are already on the 4949xx base. Align mainnet to 494949 so the
map, its reverse lookup, and the tests agree with reality and with the rest of
the map. brand-genesis-homes.md updated to match. Dated l2-*.json inventory
snapshots left as historical records.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
zeekay
2026-07-14 10:12:26 -07:00
co-authored by Hanzo Dev
parent 1a8f237eae
commit 60902d86d1
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ empirical provenance archive. Brand homes are deployment-side consumers
Chain ID assignments:
- hanzo: mainnet 36963, testnet 36962, devnet 36964
- zoo: mainnet 200200, testnet 200201, devnet 200202
- pars: mainnet 7070, testnet 494950, devnet 494951
- pars: mainnet 494949, testnet 494950, devnet 494951
- spc: mainnet 36911, testnet 36910, devnet 36912
- osage: mainnet 1872, testnet 1871, devnet 1873
+4 -2
View File
@@ -99,7 +99,9 @@ func EVMChainID(family NetworkFamily, env uint32) (uint64, bool) {
case FamilyPars:
switch env {
case MainnetID:
return 7070, true
// 494949 = live api.pars.network eth_chainId 0x78d65 / net_version.
// (Was 7070 — a stale value the live chain never adopted.)
return 494949, true
case TestnetID:
return 494950, true
case DevnetID:
@@ -130,7 +132,7 @@ func NetworkFamilyOf(chainID uint64) (NetworkFamily, bool) {
return FamilyZoo, true
case 36911, 36910, 36912:
return FamilySPC, true
case 7070, 494950, 494951:
case 494949, 494950, 494951:
return FamilyPars, true
}
return "", false
+3 -3
View File
@@ -28,7 +28,7 @@ func TestEVMChainID_KnownCells(t *testing.T) {
{FamilySPC, MainnetID, 36911},
{FamilySPC, TestnetID, 36910},
{FamilySPC, DevnetID, 36912},
{FamilyPars, MainnetID, 7070},
{FamilyPars, MainnetID, 494949},
{FamilyPars, TestnetID, 494950},
{FamilyPars, DevnetID, 494951},
}
@@ -77,7 +77,7 @@ func TestNetworkFamilyOf_RoundTrip(t *testing.T) {
{36963, FamilyHanzo},
{200200, FamilyZoo},
{36911, FamilySPC},
{7070, FamilyPars},
{494949, FamilyPars},
}
for _, c := range cases {
got, ok := NetworkFamilyOf(c.chainID)
@@ -146,7 +146,7 @@ func TestEVMChainIDFor_StringInputs(t *testing.T) {
{"spc", "mainnet", 36911},
{"spc", "testnet", 36910},
{"spc", "devnet", 36912},
{"pars", "mainnet", 7070},
{"pars", "mainnet", 494949},
{"pars", "testnet", 494950},
{"pars", "devnet", 494951},
}