From d734acda3161b1a1c798152d60074c736c839e7d Mon Sep 17 00:00:00 2001 From: AntiD2ta Date: Thu, 12 Sep 2024 16:31:28 +0000 Subject: [PATCH] feat: Add ChainID to network configs --- configs/init.go | 11 ++++++++--- configs/types.go | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configs/init.go b/configs/init.go index 77e953d1..d42363a4 100644 --- a/configs/init.go +++ b/configs/init.go @@ -32,7 +32,8 @@ var networksConfigs map[string]NetworkConfig = map[string]NetworkConfig{ "https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net", "https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money", }, - Weight: 1, + ChainID: 1, + Weight: 1, }, NetworkSepolia: { Name: NetworkSepolia, @@ -43,13 +44,15 @@ var networksConfigs map[string]NetworkConfig = map[string]NetworkConfig{ RelayURLs: []string{ "https://0x845bd072b7cd566f02faeb0a4033ce9399e42839ced64e8b2adcfc859ed1e8e1a5a293336a49feac6d9a5edb779be53a@builder-relay-sepolia.flashbots.net", }, - Weight: 3, + ChainID: 11155111, + Weight: 3, }, NetworkChiado: { Name: NetworkChiado, NetworkService: "merge", GenesisForkVersion: "0x0000006f", CheckpointSyncURL: "https://checkpoint.chiadochain.net", + ChainID: 10200, Weight: 5, }, NetworkGnosis: { @@ -57,6 +60,7 @@ var networksConfigs map[string]NetworkConfig = map[string]NetworkConfig{ NetworkService: "merge", GenesisForkVersion: "0x00000064", CheckpointSyncURL: "https://checkpoint.gnosischain.com", + ChainID: 100, Weight: 4, }, NetworkHolesky: { @@ -71,7 +75,8 @@ var networksConfigs map[string]NetworkConfig = map[string]NetworkConfig{ "https://0xab78bf8c781c58078c3beb5710c57940874dd96aef2835e7742c866b4c7c0406754376c2c8285a36c630346aa5c5f833@holesky.aestus.live", "https://0xaa58208899c6105603b74396734a6263cc7d947f444f396a90f7b7d3e65d102aec7e5e5291b27e08d02c50a050825c2f@holesky.titanrelay.xyz", }, - Weight: 2, + ChainID: 17000, + Weight: 2, }, NetworkCustom: { Name: NetworkCustom, diff --git a/configs/types.go b/configs/types.go index 599b3288..6fe1cf60 100644 --- a/configs/types.go +++ b/configs/types.go @@ -34,5 +34,6 @@ type NetworkConfig struct { SupportsMEVBoost bool CheckpointSyncURL string RelayURLs []string + ChainID uint64 Weight int // Weight of the network for sorting purposes }