-
\ No newline at end of file
+
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/advertisement/text_ad/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/advertisement/text_ad/index.html.eex
index c8dc85c5621d..66eedb9a02f9 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/advertisement/text_ad/index.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/advertisement/text_ad/index.html.eex
@@ -1,4 +1,4 @@
: -
-
\ No newline at end of file
+
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/block/_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/block/_tile.html.eex
index 452c73a3feb0..419ac616db73 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/block/_tile.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/block/_tile.html.eex
@@ -33,7 +33,7 @@
<%= Cldr.Unit.new!(:byte, @block.size) |> cldr_unit_to_string!() %>
<% end %>
-
+
<%= if !Application.get_env(:block_scout_web, :hide_block_miner) do %>
-
\ No newline at end of file
+
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
index 33b1995cfa0f..189955032356 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
@@ -92,18 +92,20 @@
- <%= if Enum.count(main_nets) > 0 do %>
- Mainnets
- <%= for %{url: url, title: title} <- main_nets do %>
+
+ <%= unless Enum.empty?(main_nets) do %>
+ Mainnets
+ <%= for %{url: url, title: title} <- main_nets do %>
<%= title %>
<% end %>
<% end %>
- <%= if Enum.count(test_nets) > 0 do %>
- Testnets
- <%= for %{url: url, title: title} <- test_nets do %>
+ <%= unless Enum.empty?(test_nets) do %>
+ Testnets
+ <%= for %{url: url, title: title} <- test_nets do %>
<%= title %>
<% end %>
<% end %>
- <%= if Enum.count(other_nets) > 0 do %>
- Other Networks
- <%= for %{url: url, title: title} <- other_nets do %>
+ <%= unless Enum.empty?(other_nets) do %>
+ Other Networks
+ <%= for %{url: url, title: title} <- other_nets do %>
<%= title %>
- <% end %>
+ <% end %>
<% end %>
diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex
index ebd4a61cadc7..21229d73ade2 100644
--- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex
+++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex
@@ -195,9 +195,29 @@
<% end %>
+ <%= if Application.get_env(:explorer, :chain_type) == :optimism && @transaction.l1_block_number do %>
+
+
+
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Block number containing the transaction on L1.") %>
+ <%= gettext "L1 Block" %>
+
+ <%= if block do %>
+ <%= link(
+ @transaction.l1_block_number,
+ class: "transaction__link",
+ to: "https://eth-goerli.blockscout.com/block/#{@transaction.l1_block_number}"
+ ) %>
+ <% else %>
+ <%= formatted_result(status) %>
+ <% end %>
+
+
+ <% end %>
<% %{transaction_actions: transaction_actions} = transaction_actions(@transaction) %>
- <%= if not Enum.empty?(transaction_actions) do %>
+ <%= unless Enum.empty?(transaction_actions) do %>
<%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
@@ -275,7 +295,7 @@
<% {_type, %{token_transfers: token_transfers} = transaction_with_transfers} when is_list(token_transfers) and token_transfers != [] -> %>
<% %{transfers: transfers, mintings: mintings, burnings: burnings, creations: creations} = aggregate_token_transfers(transaction_with_transfers.token_transfers) %>
- <%= if Enum.count(transfers) > 0 do %>
+ <%= unless Enum.empty?(transfers) do %>
- <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
- text: gettext("Price per unit of gas specified by the sender. Higher gas prices can prioritize transaction inclusion during times of high usage.") %>
- <%= gettext "Gas Price" %>
+ <%= if Application.get_env(:explorer, :chain_type) == :optimism do %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Price per unit of gas specified by the sender on L2. Higher gas prices can prioritize transaction inclusion during times of high usage.") %>
+ <%= gettext "L2 Gas Price" %>
+ <% else %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Price per unit of gas specified by the sender. Higher gas prices can prioritize transaction inclusion during times of high usage.") %>
+ <%= gettext "Gas Price" %>
+ <% end %>
<%= gas_price(@transaction, :gwei) %>
@@ -394,9 +420,15 @@
- <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
- text: gettext("Maximum gas amount approved for the transaction.") %>
- <%= gettext "Gas Limit" %>
+ <%= if Application.get_env(:explorer, :chain_type) == :optimism do %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Maximum gas amount approved for the transaction on L2.") %>
+ <%= gettext "L2 Gas Limit" %>
+ <% else %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Maximum gas amount approved for the transaction.") %>
+ <%= gettext "Gas Limit" %>
+ <% end %>
<%= format_gas_limit(@transaction.gas) %>
@@ -444,16 +476,57 @@
<% end %>
-
+
- <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
- text: gettext("Actual gas amount used by the transaction.") %>
- <%= gettext "Gas Used by Transaction" %>
+ <%= if Application.get_env(:explorer, :chain_type) == :optimism do %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Actual gas amount used by the transaction on L2.") %>
+ <%= gettext "L2 Gas Used by Transaction" %>
+ <% else %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("Actual gas amount used by the transaction.") %>
+ <%= gettext "Gas Used by Transaction" %>
+ <% end %>
<% gas_used_perc = gas_used_perc(@transaction) %>
<%= gas_used(@transaction) %> <%= if gas_used_perc, do: "| #{gas_used_perc}%" %>
+ <%= if Application.get_env(:explorer, :chain_type) == :optimism do %>
+ <%= if @transaction.l1_gas_used do %>
+
+
+
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("L1 Gas Used by Transaction") %>
+ <%= gettext "L1 Gas Used by Transaction" %>
+
+
<%= l1_gas_used(@transaction) %>
+
+ <% end %>
+ <%= if @transaction.l1_gas_used do %>
+
+
+
+ <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
+ text: gettext("L1 Gas Price") %>
+ <%= gettext "L1 Gas Price" %>
+
+
<%= l1_gas_price(@transaction, :gwei) %>
+
+ <% end %>
+ <%= if @transaction.l1_fee_scalar do %>
+
+