Skip to content

Commit cbf8b4a

Browse files
committed
feat: add Sepolia network to explorer
1 parent 7b716b7 commit cbf8b4a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

explorer/lib/explorer/contract_managers/delegation_manager.ex

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

explorer/lib/explorer_web/components/nav.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ 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 or holesky
9-
"Mainnet" -> name in ["Mainnet", "Holesky"]
10-
"Holesky" -> name in ["Mainnet", "Holesky"]
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"]
1112
_ -> true
1213
end
1314
end)

explorer/lib/explorer_web/live/utils.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ defmodule ExplorerWeb.Helpers do
123123
case prefix do
124124
"holesky" -> "https://holesky.eigenlayer.xyz"
125125
"mainnet" -> "https://app.eigenlayer.xyz"
126+
"sepolia" -> "https://sepolia.eigenlayer.xyz"
126127
_ -> "http://localhost:4000"
127128
end
128129
end
@@ -134,6 +135,7 @@ defmodule ExplorerWeb.Helpers do
134135
[
135136
{"Mainnet", "https://explorer.alignedlayer.com"},
136137
{"Holesky", "https://holesky.explorer.alignedlayer.com"},
138+
{"Sepolia", "https://sepolia.explorer.alignedlayer.com"},
137139
{"Stage", "https://stage.explorer.alignedlayer.com"},
138140
{"Devnet", "http://localhost:4000/"}
139141
]
@@ -143,6 +145,7 @@ defmodule ExplorerWeb.Helpers do
143145
case host do
144146
"explorer.alignedlayer.com" -> "Mainnet"
145147
"holesky.explorer.alignedlayer.com" -> "Holesky"
148+
"sepolia.explorer.alignedlayer.com" -> "Sepolia"
146149
"stage.explorer.alignedlayer.com" -> "Stage"
147150
_ -> "Devnet"
148151
end
@@ -160,6 +163,7 @@ defmodule ExplorerWeb.Helpers do
160163
case prefix do
161164
"mainnet" -> "https://etherscan.io"
162165
"holesky" -> "https://holesky.etherscan.io"
166+
"sepolia" -> "https://sepolia.etherscan.io"
163167
_ -> "http://localhost:4000"
164168
end
165169
end
@@ -176,6 +180,7 @@ defmodule ExplorerWeb.Helpers do
176180
case prefix do
177181
"mainnet" -> "https://blobscan.com/"
178182
"holesky" -> "https://holesky.blobscan.com/"
183+
"sepolia" -> "https://sepolia.blobscan.com/"
179184
_ -> "http://localhost:4000"
180185
end
181186
end

infra/ansible/playbooks/explorer.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
ansible.builtin.git:
4646
repo: https://github.com/yetanotherco/aligned_layer
4747
dest: "/home/{{ ansible_user }}/repos/explorer/aligned_layer"
48+
version: 2065-feat-sepolia-deployment
49+
recursive: false
4850
update: yes
4951

5052
- name: Create .ssl directory

0 commit comments

Comments
 (0)