@@ -24,12 +24,13 @@ type ConfigResponse struct {
2424
2525// NetworkInfo represents network metadata.
2626type NetworkInfo struct {
27- Name string `json:"name"` // "mainnet", "sepolia", etc.
28- DisplayName string `json:"display_name"` // "Mainnet", "Sepolia", etc.
29- ChainID int64 `json:"chain_id"`
30- GenesisTime int64 `json:"genesis_time"`
31- GenesisDelay int64 `json:"genesis_delay"` // Genesis delay in seconds
32- Forks Forks `json:"forks"`
27+ Name string `json:"name"` // "mainnet", "sepolia", etc.
28+ DisplayName string `json:"display_name"` // "Mainnet", "Sepolia", etc.
29+ ChainID int64 `json:"chain_id"`
30+ GenesisTime int64 `json:"genesis_time"`
31+ GenesisDelay int64 `json:"genesis_delay"` // Genesis delay in seconds
32+ Forks Forks `json:"forks"`
33+ ServiceUrls map [string ]string `json:"service_urls"` // Map of service name to URL
3334}
3435
3536// Forks contains fork information for a network (API response format with snake_case).
@@ -123,6 +124,7 @@ func (h *ConfigHandler) buildNetworks(ctx context.Context) []NetworkInfo {
123124 var (
124125 chainID , genesisTime , genesisDelay int64
125126 forks Forks
127+ serviceUrls map [string ]string
126128 )
127129
128130 if net .ChainID != nil {
@@ -137,11 +139,13 @@ func (h *ConfigHandler) buildNetworks(ctx context.Context) []NetworkInfo {
137139 genesisDelay = * net .GenesisDelay
138140 }
139141
140- // Get forks from cartographoor if available (forks not in config.yaml yet)
142+ // Get forks and serviceUrls from cartographoor if available
141143 if h .provider != nil {
142144 if cartNet , exists := h .provider .GetNetwork (ctx , net .Name ); exists {
143145 // Transform cartographoor.Forks to API Forks
144146 forks = transformForks (cartNet .Forks )
147+ // Copy serviceUrls from cartographoor
148+ serviceUrls = cartNet .ServiceUrls
145149 }
146150 }
147151
@@ -161,6 +165,7 @@ func (h *ConfigHandler) buildNetworks(ctx context.Context) []NetworkInfo {
161165 GenesisTime : genesisTime ,
162166 GenesisDelay : genesisDelay ,
163167 Forks : forks ,
168+ ServiceUrls : serviceUrls ,
164169 })
165170 }
166171
0 commit comments