<%= gettext "Logs" %>
- <%= if @next_page_params do %>
- <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "top", cur_page_number: "1", show_pagination_limit: true, next_page_path: transaction_log_path(@conn,:index, @transaction, @next_page_params) %>
- <% end %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "top", show_pagination_limit: true, data_next_page_button: true, data_prev_page_button: true %>
- <%= if !@next_page_params do %>
- <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "top", cur_page_number: "1", show_pagination_limit: true %>
- <% end %>
+
- <%= if Enum.count(@logs) > 0 do %>
- <%= for log <- @logs do %>
-
-
- - <%= gettext "Address" %>
- -
-
- <%= link(
- log.address,
- to: address_path(@conn, :show, log.address),
- "data-test": "log_address_link",
- "data-address-hash": log.address
- ) %>
-
-
- - <%= gettext "Decoded" %>
- -
- <%= case decode(log, @transaction) do %>
- <% {:error, :contract_not_verified} -> %>
-
- <%= gettext "To see decoded input data, the contract must be verified." %>
- <%= case @transaction do %>
- <% %{to_address: %{hash: hash}} -> %>
- <%= gettext "Verify the contract " %>
<%= gettext "here" %>
- <% _ -> %>
- <%= nil %>
- <% end %>
-
- <% {:error, :could_not_decode} -> %>
-
- <%= gettext "Failed to decode log data." %>
-
- <% {:ok, method_id, text, mapping} -> %>
-
- " class="table thead-light table-bordered table-responsive">
-
- |
- <%= gettext "Name" %> |
- <%= gettext "Type" %> |
- <%= gettext "Indexed?" %> |
- <%= gettext "Data" %> |
-
- <%= for {name, type, indexed?, value} <- mapping do %>
-
-
- <%= case BlockScoutWeb.ABIEncodedValueView.copy_text(type, value) do %>
- <% :error -> %>
- <%= nil %>
- <% copy_text -> %>
-
-
-
- <% end %>
- |
- <%= name %> |
- <%= type %> |
- <%= indexed? %> |
-
- <%= BlockScoutWeb.ABIEncodedValueView.value_html(type, value) %>
- |
-
- <% end %>
-
- <% _ -> %>
- <%= nil %>
- <% end %>
-
-
- - <%= gettext "Topics" %>
- -
-
- <%= unless is_nil(log.first_topic) do %>
-
- [0]
- <%= log.first_topic %>
-
- <% end %>
- <%= unless is_nil(log.second_topic) do %>
-
- [1]
- <%= log.second_topic %>
-
- <% end %>
- <%= unless is_nil(log.third_topic) do %>
-
- [2]
- <%= log.third_topic %>
-
- <% end %>
- <%= unless is_nil(log.fourth_topic) do %>
-
- [3]
- <%= log.fourth_topic %>
-
- <% end %>
-
-
- -
- <%= gettext "Data" %>
-
- -
- <%= unless is_nil(log.data) do %>
-
- <%= log.data %>
-
- <% end %>
-
-
+
+
+ <%= gettext "There are no logs for this transaction." %>
- <% end %>
- <% else %>
-
- <%= gettext "There are no logs for this transaction." %>
-
- <% end %>
+
- <%= if @next_page_params do %>
- <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "bottom", cur_page_number: "1", show_pagination_limit: true, next_page_path: transaction_log_path(@conn,:index, @transaction, @next_page_params) %>
- <% end %>
+
- <%= if !@next_page_params do %>
- <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "bottom", cur_page_number: "1", show_pagination_limit: true %>
- <% end %>
+ <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "bottom", cur_page_number: "1", show_pagination_limit: true, data_next_page_button: true, data_prev_page_button: true %>
-