Skip to content

Commit eb4620f

Browse files
committed
feat(explorer): add support to Hoodi
1 parent ed1c631 commit eb4620f

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

explorer/lib/explorer/contract_managers/aligned_layer_service_manager.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule AlignedLayerServiceManager do
99
"holesky" -> Logger.debug("Running on holesky")
1010
"mainnet" -> Logger.debug("Running on mainnet")
1111
"sepolia" -> Logger.debug("Running on sepolia")
12+
"hoodi" -> Logger.debug("Running on hoodi")
1213
_ -> Logger.debug("Invalid ENVIRONMENT var in .env")
1314
nil -> raise("Invalid ENVIRONMENT var in .env")
1415
end
@@ -40,6 +41,7 @@ defmodule AlignedLayerServiceManager do
4041
"holesky" -> 1_728_056
4142
"mainnet" -> 19_000_000
4243
"sepolia" -> 9_062_616
44+
"hoodi" -> 1_093_860
4345
_ -> raise("Invalid environment")
4446
end)
4547

explorer/lib/explorer/contract_managers/batcher_payment_service_manager.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule BatcherPaymentServiceManager do
99
"holesky" -> 1_728_056
1010
"mainnet" -> 19_000_000
1111
"sepolia" -> 9_062_616
12+
"hoodi" -> 1_093_860
1213
_ -> raise("Invalid environment")
1314
end)
1415

explorer/lib/explorer/contract_managers/delegation_manager.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule DelegationManager do
88
"holesky" -> 1_210_000
99
"mainnet" -> 19_000_000
1010
"sepolia" -> 9_062_616
11+
"hoodi" -> 1_093_860
1112
_ -> raise("Invalid environment")
1213
end)
1314

explorer/lib/explorer_web/components/nav.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ defmodule NavComponent do
55
Helpers.get_aligned_networks()
66
|> Enum.filter(fn {name, _link} ->
77
case current_network do
8-
# Filter dev networks if we are in mainnet, holesky, or sepolia
9-
"Mainnet" -> name in ["Mainnet", "Holesky", "Sepolia"]
10-
"Holesky" -> name in ["Mainnet", "Holesky", "Sepolia"]
11-
"Sepolia" -> name in ["Mainnet", "Holesky", "Sepolia"]
8+
# Filter dev networks if we are in mainnet, holesky, sepolia, or hoodi
9+
"Mainnet" -> name in ["Mainnet", "Holesky", "Sepolia", "Hoodi"]
10+
"Holesky" -> name in ["Mainnet", "Holesky", "Sepolia", "Hoodi"]
11+
"Sepolia" -> name in ["Mainnet", "Holesky", "Sepolia", "Hoodi"]
12+
"Hoodi" -> name in ["Mainnet", "Holesky", "Sepolia", "Hoodi"]
1213
_ -> true
1314
end
1415
end)

explorer/lib/explorer_web/live/utils.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ defmodule ExplorerWeb.Helpers do
124124
"holesky" -> "https://holesky.eigenlayer.xyz"
125125
"mainnet" -> "https://app.eigenlayer.xyz"
126126
"sepolia" -> "https://sepolia.eigenlayer.xyz"
127+
"hoodi" -> "https://hoodi.eigenlayer.xyz"
127128
_ -> "http://localhost:4000"
128129
end
129130
end
@@ -136,6 +137,7 @@ defmodule ExplorerWeb.Helpers do
136137
{"Mainnet", "https://explorer.alignedlayer.com"},
137138
{"Holesky", "https://holesky.explorer.alignedlayer.com"},
138139
{"Sepolia", "https://sepolia.explorer.alignedlayer.com"},
140+
{"Hoodi", "https://hoodi.explorer.alignedlayer.com"},
139141
{"Stage", "https://stage.explorer.alignedlayer.com"},
140142
{"Devnet", "http://localhost:4000/"}
141143
]
@@ -146,6 +148,7 @@ defmodule ExplorerWeb.Helpers do
146148
"explorer.alignedlayer.com" -> "Mainnet"
147149
"holesky.explorer.alignedlayer.com" -> "Holesky"
148150
"sepolia.explorer.alignedlayer.com" -> "Sepolia"
151+
"hoodi.explorer.alignedlayer.com" -> "Hoodi"
149152
"stage.explorer.alignedlayer.com" -> "Stage"
150153
_ -> "Devnet"
151154
end
@@ -164,6 +167,7 @@ defmodule ExplorerWeb.Helpers do
164167
"mainnet" -> "https://etherscan.io"
165168
"holesky" -> "https://holesky.etherscan.io"
166169
"sepolia" -> "https://sepolia.etherscan.io"
170+
"hoodi" -> "https://hoodi.etherscan.io"
167171
_ -> "http://localhost:4000"
168172
end
169173
end
@@ -181,6 +185,7 @@ defmodule ExplorerWeb.Helpers do
181185
"mainnet" -> "https://blobscan.com/"
182186
"holesky" -> "https://holesky.blobscan.com/"
183187
"sepolia" -> "https://sepolia.blobscan.com/"
188+
"hoodi" -> "https://hoodi.blobscan.com/"
184189
_ -> "http://localhost:4000"
185190
end
186191
end

0 commit comments

Comments
 (0)