Transaction detail #369
pull/475/head
Jimmy Lauzau 6 years ago committed by GitHub
commit 2582d0504b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      apps/explorer_web/assets/css/_typography.scss
  2. 2
      apps/explorer_web/lib/explorer_web/templates/address/_responsive_hash.html.eex
  3. 8
      apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex
  4. 24
      apps/explorer_web/lib/explorer_web/templates/address_transaction/_transaction.html.eex
  5. 39
      apps/explorer_web/lib/explorer_web/templates/pending_transaction/index.html.eex
  6. 36
      apps/explorer_web/lib/explorer_web/templates/transaction/index.html.eex
  7. 295
      apps/explorer_web/lib/explorer_web/templates/transaction/overview.html.eex
  8. 20
      apps/explorer_web/lib/explorer_web/templates/transaction_internal_transaction/_internal_transaction.html.eex
  9. 145
      apps/explorer_web/lib/explorer_web/templates/transaction_internal_transaction/index.html.eex
  10. 120
      apps/explorer_web/lib/explorer_web/templates/transaction_log/index.html.eex
  11. 129
      apps/explorer_web/priv/gettext/default.pot
  12. 129
      apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po
  13. 6
      apps/explorer_web/test/explorer_web/features/pages/transaction_page.ex
  14. 13
      apps/explorer_web/test/explorer_web/features/viewing_transactions_test.exs

@ -60,3 +60,26 @@ a {
border-bottom: 1px dashed currentColor; border-bottom: 1px dashed currentColor;
display: inline-block; display: inline-block;
} }
.text {
&-transaction {
color: $blue;
}
&-contract-call {
color: $green;
}
&-contract-creation {
color: $pink;
}
&-token {
color: $orange;
}
&-internal-transaction {
color: $teal;
}
}

@ -1,4 +1,4 @@
<span class="<%= if @contract do %>contract-address<% end %>"> <span class="<%= if @contract do %>contract-address<% end %>">
<span class="d-none d-md-none d-lg-inline"><%= @address_hash %></span> <span class="d-none d-md-none d-lg-inline"><%= @address_hash %></span>
<span class="d-md-block d-lg-none "><%= ExplorerWeb.AddressView.trimmed_hash(@address_hash) %></span> <span class="d-md-inline-block d-lg-none "><%= ExplorerWeb.AddressView.trimmed_hash(@address_hash) %></span>
</span> </span>

@ -1,9 +1,9 @@
<div class="tile tile-type-internal-transaction fade-in" data-test="internal_transaction" data-internal-transaction-id="<%= @internal_transaction.id %>"> <div class="tile tile-type-internal-transaction fade-in" data-test="internal_transaction" data-internal-transaction-id="<%= @internal_transaction.id %>">
<div class="row"> <div class="row justify-content-end">
<div class="col-md-2 d-flex align-items-center justify-content-start justify-content-lg-center tile-label"> <div class="col-md-3 col-lg-2 d-flex align-items-center justify-content-start justify-content-lg-center tile-label">
<%= gettext("Internal Transaction") %> <%= gettext("Internal Transaction") %>
</div> </div>
<div class="col-md-7 col-lg-8 d-flex flex-column"> <div class="col-md-9 col-lg-7 d-flex flex-column text-nowrap">
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @internal_transaction.transaction_hash %> <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @internal_transaction.transaction_hash %>
<span> <span>
<%= if @address.hash == @internal_transaction.from_address_hash do %> <%= if @address.hash == @internal_transaction.from_address_hash do %>
@ -24,7 +24,7 @@
<span class="badge badge-success tile-badge"><%= gettext "IN" %></span> <span class="badge badge-success tile-badge"><%= gettext "IN" %></span>
<% end %> <% end %>
</div> </div>
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start text-md-right"> <div class="col-md-9 col-lg-3 d-flex flex-row flex-md-column justify-content-start text-lg-right mt-3 mt-lg-0">
<span class="tile-title"> <span class="tile-title">
<%= ExplorerWeb.TransactionView.value(@internal_transaction, include_label: false) %> <%= gettext "Ether" %> <%= ExplorerWeb.TransactionView.value(@internal_transaction, include_label: false) %> <%= gettext "Ether" %>
</span> </span>

@ -1,14 +1,16 @@
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(@transaction) %> fade-in tile-status--<%= ExplorerWeb.TransactionView.status(@transaction) %>" data-transaction-hash="<%= @transaction.hash %>"> <div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(@transaction) %> fade-in tile-status--<%= ExplorerWeb.TransactionView.status(@transaction) %>" data-transaction-hash="<%= @transaction.hash %>">
<div class="row"> <div class="row justify-content-end">
<div class="pl-5 col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center"> <div class="col-md-3 col-lg-2 d-flex align-items-lg-center">
<span class="tile-label"> <div class="d-flex flex-md-column ml-md-4">
<%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %> <span class="tile-label mr-1 mr-md-0">
</span> <%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %>
<div class="tile-status-label" data-test="transaction_status"> </span>
<%= ExplorerWeb.TransactionView.formatted_status(@transaction) %> <span class="tile-status-label" data-test="transaction_status">
<%= ExplorerWeb.TransactionView.formatted_status(@transaction) %>
</span>
</div> </div>
</div> </div>
<div class="col-md-7 col-lg-8 d-flex flex-column"> <div class="col-md-9 col-lg-7 d-flex flex-column">
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @transaction.hash %> <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @transaction.hash %>
<span> <span>
<%= if @address.hash == @transaction.from_address_hash do %> <%= if @address.hash == @transaction.from_address_hash do %>
@ -40,11 +42,11 @@
</span> </span>
</span> </span>
</div> </div>
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start align-items-end text-md-right"> <div class="col-md-9 col-lg-3 d-flex flex-column flex-md-row flex-lg-column justify-content-start text-lg-right mt-3 mt-lg-0">
<span class="tile-title"> <span class="tile-title mr-1 mr-lg-0">
<%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> <%= gettext "Ether" %> <%= ExplorerWeb.TransactionView.value(@transaction, include_label: false) %> <%= gettext "Ether" %>
</span> </span>
<span class="mr-2 mr-sm-0 text-muted"> <%= ExplorerWeb.TransactionView.formatted_fee(@transaction, denomination: :ether) %> <%= gettext "Fee" %></span> <span> <%= ExplorerWeb.TransactionView.formatted_fee(@transaction, denomination: :ether) %> <%= gettext "Fee" %></span>
</div> </div>
</div> </div>
</div> </div>

@ -1,6 +1,8 @@
<section class="container"> <section class="container">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<!-- DESKTOP TAB NAV -->
<ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex"> <ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex">
<li class="nav-item"> <li class="nav-item">
<%= link( <%= link(
@ -18,6 +20,26 @@
) %> ) %>
</li> </li>
</ul> </ul>
<!-- MOBILE DROPDOWN NAV -->
<ul class="nav nav-tabs card-header-tabs d-md-none">
<li class="nav-item dropdown flex-fill text-center">
<a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><%= gettext("Pending") %></a>
<div class="dropdown-menu">
<%= link(
gettext("Validated"),
class: "dropdown-item",
to: transaction_path(@conn, :index, @conn.assigns.locale)
) %>
<%= link(
gettext("Pending"),
class: "dropdown-item",
"data-test": "pending_transactions_link",
to: pending_transaction_path(@conn, :index, @conn.assigns.locale)
) %>
</div>
</li>
</ul>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -26,14 +48,14 @@
<%= for transaction <- @transactions do %> <%= for transaction <- @transactions do %>
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>"> <div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>">
<div class="row" data-test="chain_transaction"> <div class="row justify-content-end" data-test="chain_transaction">
<div class="col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center tile-label"> <div class="col-md-3 col-lg-2 d-flex align-items-lg-center">
<div class="ml-4"> <div class="d-flex flex-md-column ml-md-4">
<span data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span> <span class="tile-label mr-1 mr-md-0" data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span>
<div data-test="transaction_status" class="text-muted"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div> <div data-test="transaction_status"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div>
</div> </div>
</div> </div>
<div class="col-md-7 col-lg-8 d-flex flex-column"> <div class="col-md-9 col-lg-7 d-flex flex-column">
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %> <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %>
<span> <span>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %> <%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %>
@ -44,7 +66,10 @@
<%= gettext("Contract Address Pending") %> <%= gettext("Contract Address Pending") %>
<% end %> <% end %>
</span> </span>
<%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %> </div>
<div class="col-md-9 col-lg-3 d-flex flex-column flex-md-row flex-lg-column justify-content-start text-lg-right mt-3 mt-lg-0">
<span class="tile-title mr-1 mr-lg-0"><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %></span>
<span> <%= ExplorerWeb.TransactionView.formatted_fee(transaction, denomination: :ether) %> <%= gettext "Fee" %></span>
</div> </div>
</div> </div>
</div> </div>

@ -1,6 +1,8 @@
<section class="container"> <section class="container">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<!-- DESKTOP TAB NAV -->
<ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex"> <ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex">
<li class="nav-item"> <li class="nav-item">
<%= link( <%= link(
@ -18,6 +20,26 @@
) %> ) %>
</li> </li>
</ul> </ul>
<!-- MOBILE DROPDOWN NAV -->
<ul class="nav nav-tabs card-header-tabs d-md-none">
<li class="nav-item dropdown flex-fill text-center">
<a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><%= gettext("Validated") %></a>
<div class="dropdown-menu">
<%= link(
gettext("Validated"),
class: "dropdown-item",
to: transaction_path(@conn, :index, @conn.assigns.locale)
) %>
<%= link(
gettext("Pending"),
class: "dropdown-item",
"data-test": "pending_transactions_link",
to: pending_transaction_path(@conn, :index, @conn.assigns.locale)
) %>
</div>
</li>
</ul>
</div> </div>
<div class="card-body"> <div class="card-body">
@ -26,14 +48,14 @@
<%= for transaction <- @transactions do %> <%= for transaction <- @transactions do %>
<div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %> tile-status--<%= ExplorerWeb.TransactionView.status(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>"> <div class="tile tile-type-<%= ExplorerWeb.TransactionView.type_suffix(transaction) %> tile-status--<%= ExplorerWeb.TransactionView.status(transaction) %>" data-test="<%= ExplorerWeb.TransactionView.type_suffix(transaction) %>" data-transaction-hash="<%= transaction.hash %>">
<div class="row" data-test="chain_transaction"> <div class="row justify-content-end" data-test="chain_transaction">
<div class="col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center"> <div class="col-md-3 col-lg-2 d-flex align-items-lg-center">
<div class="ml-4"> <div class="d-flex flex-md-column ml-md-4">
<span class="tile-label" data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span> <span class="tile-label mr-1 mr-md-0" data-test="transaction_type"> <%= ExplorerWeb.TransactionView.transaction_display_type(transaction) %></span>
<div class="tile-status-label" data-test="transaction_status"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div> <div class="tile-status-label" data-test="transaction_status"><%= ExplorerWeb.TransactionView.formatted_status(transaction) %></div>
</div> </div>
</div> </div>
<div class="col-md-7 col-lg-8 d-flex flex-column"> <div class="col-md-9 col-lg-7 d-flex flex-column">
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %> <%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: transaction.hash %>
<span> <span>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %> <%= render ExplorerWeb.AddressView, "_link.html", address_hash: transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(transaction.from_address), locale: @locale %>
@ -50,8 +72,8 @@
</span> </span>
</span> </span>
</div> </div>
<div class="col-md-3 col-lg-2 d-flex flex-row flex-md-column justify-content-start text-md-right"> <div class="col-md-9 col-lg-3 d-flex flex-column flex-md-row flex-lg-column justify-content-start text-lg-right mt-3 mt-lg-0">
<span class="tile-title"><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %></span> <span class="tile-title mr-1 mr-lg-0"><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> <%= gettext "Ether" %></span>
<span> <%= ExplorerWeb.TransactionView.formatted_fee(transaction, denomination: :ether) %> <%= gettext "Fee" %></span> <span> <%= ExplorerWeb.TransactionView.formatted_fee(transaction, denomination: :ether) %> <%= gettext "Fee" %></span>
</div> </div>
</div> </div>

@ -1,202 +1,109 @@
<% block = @transaction.block %>
<section> <section>
<div class="row mb-3"> <div class="row">
<div class="col-md-2 col-lg-1 order-last order-sm-first"> <div class="col-md-8">
<div class="card mt-3 mt-sm-0"> <!-- Block Details -->
<div class="card-body px-2 py-2"> <div class="card">
<img src="data:image/png;base64, <%= qr_code(@transaction) %>" class="qr-code" alt="qr_code" title="<%= @transaction %>" /> <div class="card-body">
<h1 class="card-title"><%= gettext "Transaction Details" %> </h1>
<h3 data-test="transaction_detail_hash"><%= @transaction %> </h3>
<span class="d-block mb-2">
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: @transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(@transaction.from_address), locale: @locale %>
<span class="text-muted"> &rarr; </span>
<%= if @transaction.to_address_hash do %>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: @transaction.to_address_hash, contract: ExplorerWeb.AddressView.contract?(@transaction.to_address), locale: @locale %>
<% else %>
<%= gettext("Contract Address Pending") %>
<% end %>
</span>
<div class="d-flex flex-row justify-content-start text-muted">
<span class="mr-4 text-<%= ExplorerWeb.TransactionView.type_suffix(@transaction) %>"><%= ExplorerWeb.TransactionView.transaction_display_type(@transaction) %></span>
<span class="mr-4"><%= ExplorerWeb.TransactionView.formatted_status(@transaction) %></span>
<span class="mr-4">
<%= if block do %>
<span data-from-now="<%= @transaction.block.timestamp %>"></span>
<% end %>
</span>
</div>
<hr>
<!-- Block Hash -->
<dl class="row">
<dt class="col-sm-3 text-muted"><%= gettext "Block Number" %> </dt>
<dd class="col-sm-9">
<%= if block do %>
<%= link(
block,
class: "transaction__link",
to: block_path(@conn, :show, @conn.assigns.locale, block)
) %>
<% else %>
<%= gettext "Pending" %>
<% end %>
</dd>
</dl>
<dl class="row">
<dt class="col-sm-3 text-muted"> <%= gettext "Block Confirmations" %> </dt>
<dd class="col-sm-9">
<span data-selector="block-confirmations"><%= confirmations(@transaction, max_block_number: @max_block_number) %></span>
</dd>
</dl>
<!-- Nonce -->
<dl class="row">
<dt class="col-sm-3 text-muted"> <%= gettext "Nonce" %> </dt>
<dd class="col-sm-9"> <%= @transaction.nonce %> </dd>
</dl>
<!-- TX Fee -->
<dl class="row">
<dt class="col-sm-3 text-muted"> <%= gettext "TX Fee" %> </dt>
<dd class="col-sm-9"> <%= formatted_fee(@transaction, denomination: :ether) %> (<%= formatted_fee(@transaction, exchange_rate: @exchange_rate) %>)</dd>
</dl>
<!-- Input -->
<dl class="row mb-0">
<dt class="col-sm-3 text-muted"> <%= gettext "Input" %> </dt>
<dd class="col-sm-9">
<div class="tile tile-muted">
<pre class="pre-scrollable pre-scrollable-shorty pre-wrap mb-0">
<code>
<%= @transaction.input %>
</code>
</pre>
</div>
</dd>
</dl>
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-10 align-self-center"> <!-- Value -->
<h1><%= gettext "Transaction Details" %></h1> <div class="col-md-4">
<p class="mb-0" data-test="transaction_detail_hash"><%= @transaction %></p> <div class="card bg-primary">
</div> <div class="card-body">
</div> <h2 class="card-title text-white"><%= gettext "Ether" %> <%= gettext "Value" %></h2>
<div class="text-right">
<div class="card mb-3"> <h3 class="text-white"> <%= value(@transaction) %></h3>
<div class="card-body"> <span class="text-light"> <%= formatted_usd_value(@transaction, @exchange_rate) %></span>
<div class="row"> </div>
<div class="col-md-6">
<table class="table table-font table-responsive-sm table-horizontal">
<tbody>
<tr>
<th scope="row">
<%= gettext "Transaction Status" %>
</th>
<td>
<%= ExplorerWeb.TransactionView.formatted_status(@transaction) %>
<div class="transaction__dot transaction__dot--<%= ExplorerWeb.TransactionView.status(@transaction) %>"></div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Block Number" %>
</th>
<td>
<% block = @transaction.block %>
<%= if block do %>
<%= link(
block,
class: "transaction__link",
"data-selector": "block-number",
to: block_path(@conn, :show, @conn.assigns.locale, block)
) %>
<% end %>
( <span data-selector="block-confirmations">
<%= confirmations(@transaction, max_block_number: @max_block_number) %>
</span> <%= gettext "block confirmations" %>)
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Age" %>
</th>
<td>
<%= if block do %>
<span data-from-now="<%= @transaction.block.timestamp %>"></span> (<%= formatted_timestamp(@transaction.block) %>)
<% else %>
<%= gettext "Pending" %>
<% end %>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Ether" %> <%= gettext "Value" %>
</th>
<td>
<div><%= value(@transaction) %> </div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "USD" %> <%= gettext "Value" %>
</th>
<td>
<div><%= formatted_usd_value(@transaction, @exchange_rate) %></div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "From" %>
</th>
<td>
<%= link(
@transaction.from_address,
class: "transaction__link",
to: address_path(@conn, :show, @conn.assigns.locale, @transaction.from_address)
) %>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "To" %>
</th>
<td>
<%= cond do %>
<% @transaction.to_address_hash != nil -> %>
<%= link(
@transaction.to_address,
class: "transaction__link",
to: address_path(@conn, :show, @conn.assigns.locale, @transaction.to_address)
) %>
<% @transaction.created_contract_address_hash != nil -> %>
<i class="fas fa-plus-square"></i> Contract <%= link(
@transaction.created_contract_address_hash,
class: "transaction__link",
"data-test": "created_contract_address_hash",
to: address_path(@conn, :show, @conn.assigns.locale, @transaction.created_contract_address_hash)
) %> Created
<% @transaction.to_address_hash == nil -> %>
<%= gettext "Contract Creation" %>
<% true -> %>
<% end %>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Nonce" %>
</th>
<td>
<%= @transaction.nonce %>
</td>
</tr>
</tbody>
</table>
</div> </div>
<div class="col-md-6"> </div>
<table class="table table-font table-responsive-sm table-horizontal">
<tbody> <!-- Gas -->
<tr> <div class="card">
<th scope="row"> <div class="card-body">
<%= gettext "First Seen" %> <h2 class="card-title"> <%= gettext "Gas" %> </h2>
</th> <div class="text-right">
<td data-from-now="<%= @transaction.inserted_at %>"></td> <!-- Gas Used -->
</tr> <h3>
<tr> <span>
<th scope="row"> <%= gettext "Used" %>
<%= gettext "Last Seen" %> <%= gas_used(@transaction) %> @
</th> <%= gas_price(@transaction, :gwei) %>
<td data-from-now="<%= @transaction.updated_at %>"></td> </span>
</tr> </h3>
<tr> <!-- Gas Limit -->
<th scope="row"> <span class="text-muted">
<%= gettext "Gas Limit" %> <%= gettext "Limit" %>
</th> <%= format_gas_limit(@transaction.gas) %>
<td title="<%= format_gas_limit(@transaction.gas) %>"> </span>
<%= format_gas_limit(@transaction.gas) %>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Gas Price" %>
</th>
<td title="<%= gas_price(@transaction, :ether) %>">
<%= gas_price(@transaction, :ether) %>
(<%= gas_price(@transaction, :gwei) %>)
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Ether" %> <%= gettext "TX Fee" %>
</th>
<td>
<div><%= formatted_fee(@transaction, denomination: :ether) %></div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "USD" %> <%= gettext "TX Fee" %>
</th>
<td>
<div><%= formatted_fee(@transaction, exchange_rate: @exchange_rate) %></div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Gas Used" %>
</th>
<td title="<%= gas_used(@transaction) %>">
<%= gas_used(@transaction) %>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "Input" %>
</th>
<td title="<%= @transaction.input %>">
<div class="card bg-light">
<div class="card-body">
<pre class="pre-scrollable pre-scrollable-shorty pre-wrap mb-0">
<code>
<%= @transaction.input %>
</code>
</pre>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
</div> </div>

@ -0,0 +1,20 @@
<div class="tile tile-type-internal-transaction fade-in" data-test="internal_transaction" data-internal-transaction-id="<%= @internal_transaction.id %>">
<div class="row justify-content-end">
<div class="col-md-3 col-lg-2 d-flex align-items-center justify-content-start justify-content-lg-center tile-label">
<%= gettext("Internal Transaction") %>
</div>
<div class="col-md-9 col-lg-10 d-flex flex-column text-nowrap">
<%= render ExplorerWeb.TransactionView, "_link.html", locale: @locale, transaction_hash: @internal_transaction.transaction_hash %>
<span>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: @internal_transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(@internal_transaction.from_address), locale: @locale %>
&rarr;
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: ExplorerWeb.InternalTransactionView.to_address_hash(@internal_transaction), contract: ExplorerWeb.AddressView.contract?(@internal_transaction.to_address), locale: @locale %>
</span>
<span class="tile-title text-truncate">
<%= ExplorerWeb.TransactionView.value(@internal_transaction, include_label: false) %>
<%= gettext "Ether" %>
</span>
</div>
</div>
</div>

@ -1,83 +1,72 @@
<section class="container-fluid"> <section class="container">
<%= render ExplorerWeb.TransactionView, "overview.html", assigns %> <%= render ExplorerWeb.TransactionView, "overview.html", assigns %>
<section> <div class="card">
<div class="card"> <div class="card-header">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs"> <!-- DESKTOP TAB NAV -->
<li class="nav-item"> <ul class="nav nav-tabs card-header-tabs d-none d-md-inline-flex">
<%= link( <li class="nav-item">
gettext("Internal Transactions"), <%= link(
class: "nav-link active", gettext("Internal Transactions"),
to: transaction_path(@conn, :show, @conn.assigns.locale, @transaction) class: "nav-link active",
) %> to: transaction_path(@conn, :show, @conn.assigns.locale, @transaction)
</li> ) %>
<li class="nav-item"> </li>
<%= link( <li class="nav-item">
gettext("Logs"), <%= link(
class: "nav-link", gettext("Logs"),
to: transaction_log_path(@conn, :index, @conn.assigns.locale, @transaction), class: "nav-link",
"data-test": "transaction_logs_link" to: transaction_log_path(@conn, :index, @conn.assigns.locale, @transaction),
) %> "data-test": "transaction_logs_link"
</li> ) %>
</ul> </li>
</div> </ul>
<div class="card-body">
<%= if Enum.count(@internal_transactions) > 0 do %> <!-- MOBILE DROPDOWN NAV -->
<table class="table table-responsive-sm table-font"> <ul class="nav nav-tabs card-header-tabs d-md-none">
<thead> <li class="nav-item dropdown flex-fill text-center">
<th><%= gettext "Type" %></th> <a class="nav-link active dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><%= gettext("Internal Transactions") %></a>
<th><%= gettext "From" %></th> <div class="dropdown-menu">
<th><%= gettext "To" %></th> <%= link(
<th><%= gettext "Value" %> (<%= gettext "Ether" %>)</th> gettext("Internal Transactions"),
<th><%= gettext "Gas Used" %></th> class: "dropdown-item",
</thead> to: transaction_path(@conn, :show, @conn.assigns.locale, @transaction)
) %>
<%= link(
gettext("Logs"),
class: "dropdown-item",
to: transaction_log_path(@conn, :index, @conn.assigns.locale, @transaction),
"data-test": "transaction_logs_link"
) %>
</div>
</li>
</ul>
</div>
<div class="card-body">
<h2 class="card-title"><%= gettext "Internal Transactions" %></h2>
<%= if Enum.count(@internal_transactions) > 0 do %>
<%= for internal_transaction <- @internal_transactions do %> <%= for internal_transaction <- @internal_transactions do %>
<tgroup> <%= render "_internal_transaction.html", locale: @locale, internal_transaction: internal_transaction %>
<tr>
<td><%= internal_transaction.type %></td>
<td>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: internal_transaction.from_address_hash, contract: ExplorerWeb.AddressView.contract?(internal_transaction.from_address), locale: @locale %>
</td>
<td>
<%= if ExplorerWeb.InternalTransactionView.create?(internal_transaction) do %>
<i class="fas fa-plus-square"></i>
<%= link(
gettext("Contract Creation"),
class: "transaction__link",
"data-address-hash": internal_transaction.created_contract_address_hash,
to: address_path(ExplorerWeb.Endpoint, :show, @locale, internal_transaction.created_contract_address_hash),
title: internal_transaction.created_contract_address_hash
) %>
<% else %>
<%= render ExplorerWeb.AddressView, "_link.html", address_hash: internal_transaction.to_address_hash, contract: ExplorerWeb.AddressView.contract?(internal_transaction.to_address), locale: @locale %>
<% end %>
</td>
<td><%= ExplorerWeb.TransactionView.value(internal_transaction, include_label: false) %></td>
<td><%= ExplorerWeb.TransactionView.gas(internal_transaction) %></td>
</tr>
</tgroup>
<% end %> <% end %>
</table> <% else %>
<% else %> <div class="tile tile-muted text-center">
<p><%= gettext "There are no Internal Transactions" %></p> <span><%= gettext "There are no internal transactions for this transaction." %></span>
<% end %> </div>
<% end %>
</div>
</div> </div>
</div> <%= if @next_page_params do %>
<%= link(
<%= if @next_page_params do %> gettext("Newer"),
<%= link( class: "button button--secondary button--sm u-float-right mt-3",
gettext("Newer"), to: transaction_internal_transaction_path(
class: "button button--secondary button--sm u-float-right mt-3", @conn,
to: transaction_internal_transaction_path( :index,
@conn, @conn.assigns.locale,
:index, @transaction,
@conn.assigns.locale, @next_page_params
@transaction, )
@next_page_params ) %>
) <% end %>
) %> </section>
<% end %>
</section>
</section>

@ -1,8 +1,7 @@
<section class="container-fluid"> <section class="container">
<%= render ExplorerWeb.TransactionView, "overview.html", assigns %> <%= render ExplorerWeb.TransactionView, "overview.html", assigns %>
<section>
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<ul class="nav nav-tabs card-header-tabs"> <ul class="nav nav-tabs card-header-tabs">
@ -23,63 +22,74 @@
</ul> </ul>
</div> </div>
<div class="card-body"> <div class="card-body">
<h2 class="card-title"><%= gettext "Logs" %></h2>
<%= if Enum.count(@logs) > 0 do %> <%= if Enum.count(@logs) > 0 do %>
<table class="table table-responsive-sm table-font"> <%= for log <- @logs do %>
<thead> <div data-test="transaction_log" class="tile tile-muted">
<th><%= gettext "Address" %></th> <dl class="row">
<th><%= gettext "Topic" %></th> <dt class="col-md-1"> Address </dt>
</thead> <dd class="col-md-11">
<%= for log <- @logs do %> <h3 class="">
<tgroup>
<tr data-test="transaction_log">
<td>
<%= link( <%= link(
log.address, log.address,
to: address_path(@conn, :show, @conn.assigns.locale, log.address), to: address_path(@conn, :show, @conn.assigns.locale, log.address),
"data-test": "log_address_link", "data-test": "log_address_link",
"data-address-hash": log.address "data-address-hash": log.address
) %> ) %>
</td> </h3>
<td><%= log.first_topic %></td> </dd>
</tr> <dt class="col-md-1"> Topics </dt>
<% unless is_nil(log.second_topic) do %> <dd class="col-md-11">
<tr> <%= unless is_nil(log.first_topic) do %>
<td>topic[1]</td> <div class="text-dark">
<td><%= log.second_topic %></td> <span class="text-dark">[0]</span>
</tr> <%= log.first_topic %>
<% end %> </div>
<% unless is_nil(log.third_topic) do %> <% end %>
<tr> <%= unless is_nil(log.second_topic) do %>
<td>topic[2]</td> <div class="text-dark">
<td><%= log.third_topic %></td> <span class="">[1] </span>
</tr> <%= log.second_topic %>
<% end %> </div>
<% unless is_nil(log.data) do %> <% end %>
<tr> <%= unless is_nil(log.third_topic) do %>
<td>↠</td> <div class="text-dark">
<td><%= log.data %></td> <span>[2]</span>
</tr> <%= log.third_topic %>
<% end %> </div>
</tgroup> <% end %>
<% end %> </dd>
</table> <dt class="col-md-1">
Data
</dt>
<dd class="col-md-11">
<%= unless is_nil(log.data) do %>
<div class="text-dark">
<%= log.data %>
</div>
<% end %>
</dd>
</dl>
</div>
<% end %>
<% else %> <% else %>
<p><%= gettext "There are no logs currently." %></p> <div class="tile tile-muted text-center">
<span><%= gettext "There are no logs for this transaction." %></span>
</div>
<% end %>
<%= if @next_page_params do %>
<%= link(
gettext("Newer"),
class: "button button--secondary button--sm u-float-right mt-3",
to: transaction_log_path(
@conn,
:index,
@conn.assigns.locale,
@transaction,
@next_page_params
)
) %>
<% end %> <% end %>
</div> </div>
</div> </div>
<%= if @next_page_params do %>
<%= link(
gettext("Newer"),
class: "button button--secondary button--sm u-float-right mt-3",
to: transaction_log_path(
@conn,
:index,
@conn.assigns.locale,
@transaction,
@next_page_params
)
) %>
<% end %>
</section> </section>
</section>

@ -1,5 +1,4 @@
#: lib/explorer_web/templates/block/index.html.eex:18 #: lib/explorer_web/templates/block/index.html.eex:18
#: lib/explorer_web/templates/transaction/overview.html.eex:52
msgid "Age" msgid "Age"
msgstr "" msgstr ""
@ -18,8 +17,6 @@ msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block/overview.html.eex:84 #: lib/explorer_web/templates/block/overview.html.eex:84
#: lib/explorer_web/templates/transaction/overview.html.eex:176
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34
msgid "Gas Used" msgid "Gas Used"
msgstr "" msgstr ""
@ -49,14 +46,12 @@ msgstr ""
#: lib/explorer_web/templates/block_transaction/index.html.eex:36 #: lib/explorer_web/templates/block_transaction/index.html.eex:36
#: lib/explorer_web/templates/chain/_transactions.html.eex:4 #: lib/explorer_web/templates/chain/_transactions.html.eex:4
#: lib/explorer_web/templates/layout/_topnav.html.eex:18 #: lib/explorer_web/templates/layout/_topnav.html.eex:18
#: lib/explorer_web/templates/pending_transaction/index.html.eex:24 #: lib/explorer_web/templates/pending_transaction/index.html.eex:46
#: lib/explorer_web/templates/transaction/index.html.eex:24 #: lib/explorer_web/templates/transaction/index.html.eex:46
msgid "Transactions" msgid "Transactions"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:64 #: lib/explorer_web/templates/transaction/overview.html.eex:81
#: lib/explorer_web/templates/transaction/overview.html.eex:72
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
msgid "Value" msgid "Value"
msgstr "" msgstr ""
@ -70,7 +65,6 @@ msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/block/overview.html.eex:92 #: lib/explorer_web/templates/block/overview.html.eex:92
#: lib/explorer_web/templates/transaction/overview.html.eex:143
msgid "Gas Limit" msgid "Gas Limit"
msgstr "" msgstr ""
@ -79,7 +73,7 @@ msgid "Miner"
msgstr "" msgstr ""
#: lib/explorer_web/templates/block/overview.html.eex:59 #: lib/explorer_web/templates/block/overview.html.eex:59
#: lib/explorer_web/templates/transaction/overview.html.eex:117 #: lib/explorer_web/templates/transaction/overview.html.eex:52
msgid "Nonce" msgid "Nonce"
msgstr "" msgstr ""
@ -103,11 +97,11 @@ msgstr ""
msgid "Total Difficulty" msgid "Total Difficulty"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:33 #: lib/explorer_web/templates/transaction/overview.html.eex:31
msgid "Block Number" msgid "Block Number"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:11 #: lib/explorer_web/templates/transaction/overview.html.eex:8
msgid "Transaction Details" msgid "Transaction Details"
msgstr "" msgstr ""
@ -117,15 +111,15 @@ msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/transaction/overview.html.eex:92
msgid "Gas" msgid "Gas"
msgstr "" msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:22 #: lib/explorer_web/templates/block/index.html.eex:22
#: lib/explorer_web/templates/transaction/overview.html.eex:151
msgid "Gas Price" msgid "Gas Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:184 #: lib/explorer_web/templates/transaction/overview.html.eex:63
msgid "Input" msgid "Input"
msgstr "" msgstr ""
@ -137,15 +131,12 @@ msgstr ""
msgid "%{count} transactions in this block" msgid "%{count} transactions in this block"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction_log/index.html.eex:29
#: lib/explorer_web/views/address_view.ex:15 #: lib/explorer_web/views/address_view.ex:15
msgid "Address" msgid "Address"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:106 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:106
#: lib/explorer_web/templates/address_transaction/index.html.eex:117 #: lib/explorer_web/templates/address_transaction/index.html.eex:117
#: lib/explorer_web/templates/transaction/overview.html.eex:80
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31
#: lib/explorer_web/views/address_internal_transaction_view.ex:10 #: lib/explorer_web/views/address_internal_transaction_view.ex:10
#: lib/explorer_web/views/address_transaction_view.ex:10 #: lib/explorer_web/views/address_transaction_view.ex:10
msgid "From" msgid "From"
@ -162,8 +153,6 @@ msgstr ""
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:94 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:94
#: lib/explorer_web/templates/address_transaction/index.html.eex:105 #: lib/explorer_web/templates/address_transaction/index.html.eex:105
#: lib/explorer_web/templates/transaction/overview.html.eex:92
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/views/address_internal_transaction_view.ex:9 #: lib/explorer_web/views/address_internal_transaction_view.ex:9
#: lib/explorer_web/views/address_transaction_view.ex:9 #: lib/explorer_web/views/address_transaction_view.ex:9
msgid "To" msgid "To"
@ -204,9 +193,12 @@ msgstr ""
msgid "Showing %{count} Transactions" msgid "Showing %{count} Transactions"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:14 #: lib/explorer_web/templates/pending_transaction/index.html.eex:16
#: lib/explorer_web/templates/transaction/index.html.eex:14 #: lib/explorer_web/templates/pending_transaction/index.html.eex:27
#: lib/explorer_web/templates/transaction/overview.html.eex:58 #: lib/explorer_web/templates/pending_transaction/index.html.eex:35
#: lib/explorer_web/templates/transaction/index.html.eex:16
#: lib/explorer_web/templates/transaction/index.html.eex:35
#: lib/explorer_web/templates/transaction/overview.html.eex:40
#: lib/explorer_web/views/transaction_view.ex:38 #: lib/explorer_web/views/transaction_view.ex:38
#: lib/explorer_web/views/transaction_view.ex:69 #: lib/explorer_web/views/transaction_view.ex:69
msgid "Pending" msgid "Pending"
@ -221,11 +213,13 @@ msgid "Last Seen"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:18 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:18
#: lib/explorer_web/templates/transaction_log/index.html.eex:18 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction_log/index.html.eex:17
#: lib/explorer_web/templates/transaction_log/index.html.eex:25
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:25 #: lib/explorer_web/templates/pending_transaction/index.html.eex:47
msgid "Showing %{count} Pending Transactions" msgid "Showing %{count} Pending Transactions"
msgstr "" msgstr ""
@ -291,14 +285,13 @@ msgstr ""
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:29 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:29
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:45 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:47
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:33 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:33
#: lib/explorer_web/templates/chain/_transactions.html.eex:33 #: lib/explorer_web/templates/chain/_transactions.html.eex:33
#: lib/explorer_web/templates/pending_transaction/index.html.eex:47 #: lib/explorer_web/templates/pending_transaction/index.html.eex:71
#: lib/explorer_web/templates/transaction/index.html.eex:54 #: lib/explorer_web/templates/transaction/index.html.eex:76
#: lib/explorer_web/templates/transaction/overview.html.eex:64 #: lib/explorer_web/templates/transaction/overview.html.eex:81
#: lib/explorer_web/templates/transaction/overview.html.eex:160 #: lib/explorer_web/templates/transaction_internal_transaction/_internal_transaction.html.eex:16
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
#: lib/explorer_web/views/wei_helpers.ex:71 #: lib/explorer_web/views/wei_helpers.ex:71
msgid "Ether" msgid "Ether"
msgstr "" msgstr ""
@ -316,7 +309,10 @@ msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:20 #: lib/explorer_web/templates/address_transaction/index.html.eex:20
#: lib/explorer_web/templates/address_transaction/index.html.eex:60 #: lib/explorer_web/templates/address_transaction/index.html.eex:60
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:11 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:11
#: lib/explorer_web/templates/transaction_log/index.html.eex:11 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:29
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:47
#: lib/explorer_web/templates/transaction_log/index.html.eex:10
msgid "Internal Transactions" msgid "Internal Transactions"
msgstr "" msgstr ""
@ -359,15 +355,19 @@ msgstr ""
msgid "All" msgid "All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:47 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:49
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:35 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:35
#: lib/explorer_web/templates/chain/_transactions.html.eex:35 #: lib/explorer_web/templates/chain/_transactions.html.eex:35
#: lib/explorer_web/templates/transaction/index.html.eex:55 #: lib/explorer_web/templates/pending_transaction/index.html.eex:72
#: lib/explorer_web/templates/transaction/index.html.eex:77
msgid "Fee" msgid "Fee"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:7 #: lib/explorer_web/templates/pending_transaction/index.html.eex:9
#: lib/explorer_web/templates/transaction/index.html.eex:7 #: lib/explorer_web/templates/pending_transaction/index.html.eex:30
#: lib/explorer_web/templates/transaction/index.html.eex:9
#: lib/explorer_web/templates/transaction/index.html.eex:27
#: lib/explorer_web/templates/transaction/index.html.eex:30
msgid "Validated" msgid "Validated"
msgstr "" msgstr ""
@ -395,8 +395,6 @@ msgstr ""
msgid "Price" msgid "Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:72
#: lib/explorer_web/templates/transaction/overview.html.eex:168
#: lib/explorer_web/views/currency_helpers.ex:32 #: lib/explorer_web/views/currency_helpers.ex:32
msgid "USD" msgid "USD"
msgstr "" msgstr ""
@ -409,7 +407,7 @@ msgstr ""
msgid "Dashboard" msgid "Dashboard"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/index.html.eex:25 #: lib/explorer_web/templates/transaction/index.html.eex:47
msgid "Showing %{count} Validated Transactions" msgid "Showing %{count} Validated Transactions"
msgstr "" msgstr ""
@ -450,8 +448,7 @@ msgstr ""
msgid "View All" msgid "View All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:160 #: lib/explorer_web/templates/transaction/overview.html.eex:57
#: lib/explorer_web/templates/transaction/overview.html.eex:168
msgid "TX Fee" msgid "TX Fee"
msgstr "" msgstr ""
@ -475,8 +472,8 @@ msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:146 #: lib/explorer_web/templates/address_transaction/index.html.eex:146
#: lib/explorer_web/templates/block/index.html.eex:60 #: lib/explorer_web/templates/block/index.html.eex:60
#: lib/explorer_web/templates/block_transaction/index.html.eex:51 #: lib/explorer_web/templates/block_transaction/index.html.eex:51
#: lib/explorer_web/templates/pending_transaction/index.html.eex:54 #: lib/explorer_web/templates/pending_transaction/index.html.eex:79
#: lib/explorer_web/templates/transaction/index.html.eex:62 #: lib/explorer_web/templates/transaction/index.html.eex:84
msgid "Older" msgid "Older"
msgstr "" msgstr ""
@ -510,14 +507,12 @@ msgid "Last Updated In Block"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:61
#: lib/explorer_web/templates/transaction_log/index.html.eex:73 #: lib/explorer_web/templates/transaction_log/index.html.eex:82
msgid "Newer" msgid "Newer"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:110
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:47
#: lib/explorer_web/views/transaction_view.ex:111 #: lib/explorer_web/views/transaction_view.ex:111
msgid "Contract Creation" msgid "Contract Creation"
msgstr "" msgstr ""
@ -572,11 +567,6 @@ msgstr ""
msgid "Wallet addresses" msgid "Wallet addresses"
msgstr "" msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:47
msgid "block confirmations"
msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/address_transaction/index.html.eex:89 #: lib/explorer_web/templates/address_transaction/index.html.eex:89
msgid "Connection Lost, click to load newer transactions" msgid "Connection Lost, click to load newer transactions"
@ -590,6 +580,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:4 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:4
#: lib/explorer_web/templates/transaction_internal_transaction/_internal_transaction.html.eex:4
msgid "Internal Transaction" msgid "Internal Transaction"
msgstr "" msgstr ""
@ -616,7 +607,8 @@ msgid "There are no transactions for this address."
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/pending_transaction/index.html.eex:44 #: lib/explorer_web/templates/pending_transaction/index.html.eex:66
#: lib/explorer_web/templates/transaction/overview.html.eex:16
msgid "Contract Address Pending" msgid "Contract Address Pending"
msgstr "" msgstr ""
@ -636,24 +628,24 @@ msgid "at"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:37 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:39
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:25 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:25
#: lib/explorer_web/templates/chain/_transactions.html.eex:25 #: lib/explorer_web/templates/chain/_transactions.html.eex:25
#: lib/explorer_web/templates/transaction/index.html.eex:47 #: lib/explorer_web/templates/transaction/index.html.eex:69
msgid "Block #%{number}" msgid "Block #%{number}"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:24 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:24
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:32 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:34
msgid "IN" msgid "IN"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:22 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:22
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:30 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:32
msgid "OUT" msgid "OUT"
msgstr "" msgstr ""
@ -694,3 +686,28 @@ msgstr ""
#: lib/explorer_web/templates/layout/_footer.html.eex:4 #: lib/explorer_web/templates/layout/_footer.html.eex:4
msgid "Github" msgid "Github"
msgstr "" msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:45
msgid "Block Confirmations"
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:104
msgid "Limit"
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:54
msgid "There are no internal transactions for this transaction."
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction_log/index.html.eex:77
msgid "There are no logs for this transaction."
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:97
msgid "Used"
msgstr ""

@ -11,7 +11,6 @@ msgstr ""
"Language: en\n" "Language: en\n"
#: lib/explorer_web/templates/block/index.html.eex:18 #: lib/explorer_web/templates/block/index.html.eex:18
#: lib/explorer_web/templates/transaction/overview.html.eex:52
msgid "Age" msgid "Age"
msgstr "Age" msgstr "Age"
@ -30,8 +29,6 @@ msgstr "%{year} POA Network Ltd. All rights reserved"
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block/overview.html.eex:84 #: lib/explorer_web/templates/block/overview.html.eex:84
#: lib/explorer_web/templates/transaction/overview.html.eex:176
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34
msgid "Gas Used" msgid "Gas Used"
msgstr "Gas Used" msgstr "Gas Used"
@ -61,14 +58,12 @@ msgstr "POA Network Explorer"
#: lib/explorer_web/templates/block_transaction/index.html.eex:36 #: lib/explorer_web/templates/block_transaction/index.html.eex:36
#: lib/explorer_web/templates/chain/_transactions.html.eex:4 #: lib/explorer_web/templates/chain/_transactions.html.eex:4
#: lib/explorer_web/templates/layout/_topnav.html.eex:18 #: lib/explorer_web/templates/layout/_topnav.html.eex:18
#: lib/explorer_web/templates/pending_transaction/index.html.eex:24 #: lib/explorer_web/templates/pending_transaction/index.html.eex:46
#: lib/explorer_web/templates/transaction/index.html.eex:24 #: lib/explorer_web/templates/transaction/index.html.eex:46
msgid "Transactions" msgid "Transactions"
msgstr "Transactions" msgstr "Transactions"
#: lib/explorer_web/templates/transaction/overview.html.eex:64 #: lib/explorer_web/templates/transaction/overview.html.eex:81
#: lib/explorer_web/templates/transaction/overview.html.eex:72
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
msgid "Value" msgid "Value"
msgstr "Value" msgstr "Value"
@ -82,7 +77,6 @@ msgstr "Difficulty"
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/block/overview.html.eex:92 #: lib/explorer_web/templates/block/overview.html.eex:92
#: lib/explorer_web/templates/transaction/overview.html.eex:143
msgid "Gas Limit" msgid "Gas Limit"
msgstr "Gas Limit" msgstr "Gas Limit"
@ -91,7 +85,7 @@ msgid "Miner"
msgstr "Validator" msgstr "Validator"
#: lib/explorer_web/templates/block/overview.html.eex:59 #: lib/explorer_web/templates/block/overview.html.eex:59
#: lib/explorer_web/templates/transaction/overview.html.eex:117 #: lib/explorer_web/templates/transaction/overview.html.eex:52
msgid "Nonce" msgid "Nonce"
msgstr "Nonce" msgstr "Nonce"
@ -115,11 +109,11 @@ msgstr "Timestamp"
msgid "Total Difficulty" msgid "Total Difficulty"
msgstr "Total Difficulty" msgstr "Total Difficulty"
#: lib/explorer_web/templates/transaction/overview.html.eex:33 #: lib/explorer_web/templates/transaction/overview.html.eex:31
msgid "Block Number" msgid "Block Number"
msgstr "Block Height" msgstr "Block Height"
#: lib/explorer_web/templates/transaction/overview.html.eex:11 #: lib/explorer_web/templates/transaction/overview.html.eex:8
msgid "Transaction Details" msgid "Transaction Details"
msgstr "Transaction Details" msgstr "Transaction Details"
@ -129,15 +123,15 @@ msgstr "Cumulative Gas Used"
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/transaction/overview.html.eex:92
msgid "Gas" msgid "Gas"
msgstr "Gas" msgstr "Gas"
#: lib/explorer_web/templates/block/index.html.eex:22 #: lib/explorer_web/templates/block/index.html.eex:22
#: lib/explorer_web/templates/transaction/overview.html.eex:151
msgid "Gas Price" msgid "Gas Price"
msgstr "Gas Price" msgstr "Gas Price"
#: lib/explorer_web/templates/transaction/overview.html.eex:184 #: lib/explorer_web/templates/transaction/overview.html.eex:63
msgid "Input" msgid "Input"
msgstr "Input" msgstr "Input"
@ -149,15 +143,12 @@ msgstr "%{confirmations} block confirmations"
msgid "%{count} transactions in this block" msgid "%{count} transactions in this block"
msgstr "%{count} transactions in this block" msgstr "%{count} transactions in this block"
#: lib/explorer_web/templates/transaction_log/index.html.eex:29
#: lib/explorer_web/views/address_view.ex:15 #: lib/explorer_web/views/address_view.ex:15
msgid "Address" msgid "Address"
msgstr "Address" msgstr "Address"
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:106 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:106
#: lib/explorer_web/templates/address_transaction/index.html.eex:117 #: lib/explorer_web/templates/address_transaction/index.html.eex:117
#: lib/explorer_web/templates/transaction/overview.html.eex:80
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31
#: lib/explorer_web/views/address_internal_transaction_view.ex:10 #: lib/explorer_web/views/address_internal_transaction_view.ex:10
#: lib/explorer_web/views/address_transaction_view.ex:10 #: lib/explorer_web/views/address_transaction_view.ex:10
msgid "From" msgid "From"
@ -174,8 +165,6 @@ msgstr "Success"
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:94 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:94
#: lib/explorer_web/templates/address_transaction/index.html.eex:105 #: lib/explorer_web/templates/address_transaction/index.html.eex:105
#: lib/explorer_web/templates/transaction/overview.html.eex:92
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/views/address_internal_transaction_view.ex:9 #: lib/explorer_web/views/address_internal_transaction_view.ex:9
#: lib/explorer_web/views/address_transaction_view.ex:9 #: lib/explorer_web/views/address_transaction_view.ex:9
msgid "To" msgid "To"
@ -216,9 +205,12 @@ msgstr "Showing #%{start_block} to #%{end_block}"
msgid "Showing %{count} Transactions" msgid "Showing %{count} Transactions"
msgstr "Showing %{count} Transactions" msgstr "Showing %{count} Transactions"
#: lib/explorer_web/templates/pending_transaction/index.html.eex:14 #: lib/explorer_web/templates/pending_transaction/index.html.eex:16
#: lib/explorer_web/templates/transaction/index.html.eex:14 #: lib/explorer_web/templates/pending_transaction/index.html.eex:27
#: lib/explorer_web/templates/transaction/overview.html.eex:58 #: lib/explorer_web/templates/pending_transaction/index.html.eex:35
#: lib/explorer_web/templates/transaction/index.html.eex:16
#: lib/explorer_web/templates/transaction/index.html.eex:35
#: lib/explorer_web/templates/transaction/overview.html.eex:40
#: lib/explorer_web/views/transaction_view.ex:38 #: lib/explorer_web/views/transaction_view.ex:38
#: lib/explorer_web/views/transaction_view.ex:69 #: lib/explorer_web/views/transaction_view.ex:69
msgid "Pending" msgid "Pending"
@ -233,11 +225,13 @@ msgid "Last Seen"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:18 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:18
#: lib/explorer_web/templates/transaction_log/index.html.eex:18 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction_log/index.html.eex:17
#: lib/explorer_web/templates/transaction_log/index.html.eex:25
msgid "Logs" msgid "Logs"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:25 #: lib/explorer_web/templates/pending_transaction/index.html.eex:47
msgid "Showing %{count} Pending Transactions" msgid "Showing %{count} Pending Transactions"
msgstr "" msgstr ""
@ -303,14 +297,13 @@ msgstr ""
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:29 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:29
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:45 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:47
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:33 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:33
#: lib/explorer_web/templates/chain/_transactions.html.eex:33 #: lib/explorer_web/templates/chain/_transactions.html.eex:33
#: lib/explorer_web/templates/pending_transaction/index.html.eex:47 #: lib/explorer_web/templates/pending_transaction/index.html.eex:71
#: lib/explorer_web/templates/transaction/index.html.eex:54 #: lib/explorer_web/templates/transaction/index.html.eex:76
#: lib/explorer_web/templates/transaction/overview.html.eex:64 #: lib/explorer_web/templates/transaction/overview.html.eex:81
#: lib/explorer_web/templates/transaction/overview.html.eex:160 #: lib/explorer_web/templates/transaction_internal_transaction/_internal_transaction.html.eex:16
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
#: lib/explorer_web/views/wei_helpers.ex:71 #: lib/explorer_web/views/wei_helpers.ex:71
msgid "Ether" msgid "Ether"
msgstr "POA" msgstr "POA"
@ -328,7 +321,10 @@ msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:20 #: lib/explorer_web/templates/address_transaction/index.html.eex:20
#: lib/explorer_web/templates/address_transaction/index.html.eex:60 #: lib/explorer_web/templates/address_transaction/index.html.eex:60
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:11 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:11
#: lib/explorer_web/templates/transaction_log/index.html.eex:11 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:29
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:47
#: lib/explorer_web/templates/transaction_log/index.html.eex:10
msgid "Internal Transactions" msgid "Internal Transactions"
msgstr "" msgstr ""
@ -371,15 +367,19 @@ msgstr ""
msgid "All" msgid "All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:47 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:49
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:35 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:35
#: lib/explorer_web/templates/chain/_transactions.html.eex:35 #: lib/explorer_web/templates/chain/_transactions.html.eex:35
#: lib/explorer_web/templates/transaction/index.html.eex:55 #: lib/explorer_web/templates/pending_transaction/index.html.eex:72
#: lib/explorer_web/templates/transaction/index.html.eex:77
msgid "Fee" msgid "Fee"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:7 #: lib/explorer_web/templates/pending_transaction/index.html.eex:9
#: lib/explorer_web/templates/transaction/index.html.eex:7 #: lib/explorer_web/templates/pending_transaction/index.html.eex:30
#: lib/explorer_web/templates/transaction/index.html.eex:9
#: lib/explorer_web/templates/transaction/index.html.eex:27
#: lib/explorer_web/templates/transaction/index.html.eex:30
msgid "Validated" msgid "Validated"
msgstr "" msgstr ""
@ -407,8 +407,6 @@ msgstr ""
msgid "Price" msgid "Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:72
#: lib/explorer_web/templates/transaction/overview.html.eex:168
#: lib/explorer_web/views/currency_helpers.ex:32 #: lib/explorer_web/views/currency_helpers.ex:32
msgid "USD" msgid "USD"
msgstr "" msgstr ""
@ -421,7 +419,7 @@ msgstr ""
msgid "Dashboard" msgid "Dashboard"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/index.html.eex:25 #: lib/explorer_web/templates/transaction/index.html.eex:47
msgid "Showing %{count} Validated Transactions" msgid "Showing %{count} Validated Transactions"
msgstr "" msgstr ""
@ -462,8 +460,7 @@ msgstr ""
msgid "View All" msgid "View All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:160 #: lib/explorer_web/templates/transaction/overview.html.eex:57
#: lib/explorer_web/templates/transaction/overview.html.eex:168
msgid "TX Fee" msgid "TX Fee"
msgstr "" msgstr ""
@ -487,8 +484,8 @@ msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:146 #: lib/explorer_web/templates/address_transaction/index.html.eex:146
#: lib/explorer_web/templates/block/index.html.eex:60 #: lib/explorer_web/templates/block/index.html.eex:60
#: lib/explorer_web/templates/block_transaction/index.html.eex:51 #: lib/explorer_web/templates/block_transaction/index.html.eex:51
#: lib/explorer_web/templates/pending_transaction/index.html.eex:54 #: lib/explorer_web/templates/pending_transaction/index.html.eex:79
#: lib/explorer_web/templates/transaction/index.html.eex:62 #: lib/explorer_web/templates/transaction/index.html.eex:84
msgid "Older" msgid "Older"
msgstr "" msgstr ""
@ -522,14 +519,12 @@ msgid "Last Updated In Block"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:61
#: lib/explorer_web/templates/transaction_log/index.html.eex:73 #: lib/explorer_web/templates/transaction_log/index.html.eex:82
msgid "Newer" msgid "Newer"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:110
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:47
#: lib/explorer_web/views/transaction_view.ex:111 #: lib/explorer_web/views/transaction_view.ex:111
msgid "Contract Creation" msgid "Contract Creation"
msgstr "" msgstr ""
@ -584,11 +579,6 @@ msgstr ""
msgid "Wallet addresses" msgid "Wallet addresses"
msgstr "" msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:47
msgid "block confirmations"
msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/address_transaction/index.html.eex:89 #: lib/explorer_web/templates/address_transaction/index.html.eex:89
msgid "Connection Lost, click to load newer transactions" msgid "Connection Lost, click to load newer transactions"
@ -602,6 +592,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:4 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:4
#: lib/explorer_web/templates/transaction_internal_transaction/_internal_transaction.html.eex:4
msgid "Internal Transaction" msgid "Internal Transaction"
msgstr "" msgstr ""
@ -628,7 +619,8 @@ msgid "There are no transactions for this address."
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/pending_transaction/index.html.eex:44 #: lib/explorer_web/templates/pending_transaction/index.html.eex:66
#: lib/explorer_web/templates/transaction/overview.html.eex:16
msgid "Contract Address Pending" msgid "Contract Address Pending"
msgstr "" msgstr ""
@ -648,24 +640,24 @@ msgid "at"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:37 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:39
#: lib/explorer_web/templates/block_transaction/_transaction.html.eex:25 #: lib/explorer_web/templates/block_transaction/_transaction.html.eex:25
#: lib/explorer_web/templates/chain/_transactions.html.eex:25 #: lib/explorer_web/templates/chain/_transactions.html.eex:25
#: lib/explorer_web/templates/transaction/index.html.eex:47 #: lib/explorer_web/templates/transaction/index.html.eex:69
msgid "Block #%{number}" msgid "Block #%{number}"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:24 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:24
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:32 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:34
msgid "IN" msgid "IN"
msgstr "" msgstr ""
#, elixir-format #, elixir-format
#: #:
#: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:22 #: lib/explorer_web/templates/address_internal_transaction/_internal_transaction.html.eex:22
#: lib/explorer_web/templates/address_transaction/_transaction.html.eex:30 #: lib/explorer_web/templates/address_transaction/_transaction.html.eex:32
msgid "OUT" msgid "OUT"
msgstr "" msgstr ""
@ -706,3 +698,28 @@ msgstr ""
#: lib/explorer_web/templates/layout/_footer.html.eex:4 #: lib/explorer_web/templates/layout/_footer.html.eex:4
msgid "Github" msgid "Github"
msgstr "" msgstr ""
#, elixir-format, fuzzy
#: lib/explorer_web/templates/transaction/overview.html.eex:45
msgid "Block Confirmations"
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:104
msgid "Limit"
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:54
msgid "There are no internal transactions for this transaction."
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction_log/index.html.eex:77
msgid "There are no logs for this transaction."
msgstr ""
#, elixir-format
#: lib/explorer_web/templates/transaction/overview.html.eex:97
msgid "Used"
msgstr ""

@ -5,7 +5,7 @@ defmodule ExplorerWeb.TransactionPage do
import Wallaby.Query, only: [css: 1, css: 2] import Wallaby.Query, only: [css: 1, css: 2]
alias Explorer.Chain.{InternalTransaction, Transaction, Hash} alias Explorer.Chain.{Transaction, Hash}
def block_confirmations() do def block_confirmations() do
css("[data-selector='block-confirmations']") css("[data-selector='block-confirmations']")
@ -15,10 +15,6 @@ defmodule ExplorerWeb.TransactionPage do
click(session, css("[data-test='transaction_logs_link']")) click(session, css("[data-test='transaction_logs_link']"))
end end
def contract_creation_address_hash(%InternalTransaction{created_contract_address_hash: hash}) do
css("[data-test='created_contract_address_hash']", text: Hash.to_string(hash))
end
def detail_hash(%Transaction{hash: transaction_hash}) do def detail_hash(%Transaction{hash: transaction_hash}) do
css("[data-test='transaction_detail_hash']", text: Hash.to_string(transaction_hash)) css("[data-test='transaction_detail_hash']", text: Hash.to_string(transaction_hash))
end end

@ -135,19 +135,6 @@ defmodule ExplorerWeb.ViewingTransactionsTest do
|> assert_has(TransactionPage.detail_hash(transaction)) |> assert_has(TransactionPage.detail_hash(transaction))
end end
test "can see a contract creation address in to_address", %{session: session} do
transaction =
:transaction
|> insert(to_address: nil)
|> with_block()
internal_transaction = insert(:internal_transaction_create, transaction: transaction, index: 0)
session
|> TransactionPage.visit_page(transaction.hash)
|> assert_has(TransactionPage.contract_creation_address_hash(internal_transaction))
end
test "can view a transaction's logs", %{session: session, transaction: transaction} do test "can view a transaction's logs", %{session: session, transaction: transaction} do
session session
|> TransactionPage.visit_page(transaction) |> TransactionPage.visit_page(transaction)

Loading…
Cancel
Save