|
|
@ -439,6 +439,7 @@ defmodule Explorer.Etherscan do |
|
|
|
from_address_hash |
|
|
|
from_address_hash |
|
|
|
to_address_hash |
|
|
|
to_address_hash |
|
|
|
amount |
|
|
|
amount |
|
|
|
|
|
|
|
amounts |
|
|
|
)a |
|
|
|
)a |
|
|
|
|
|
|
|
|
|
|
|
defp list_token_transfers(address_hash, contract_address_hash, block_height, options) do |
|
|
|
defp list_token_transfers(address_hash, contract_address_hash, block_height, options) do |
|
|
@ -453,7 +454,7 @@ defmodule Explorer.Etherscan do |
|
|
|
offset: ^offset(options), |
|
|
|
offset: ^offset(options), |
|
|
|
select: |
|
|
|
select: |
|
|
|
merge(map(tt, ^@token_transfer_fields), %{ |
|
|
|
merge(map(tt, ^@token_transfer_fields), %{ |
|
|
|
token_id: tt.token_id, |
|
|
|
token_ids: tt.token_ids, |
|
|
|
token_name: tkn.name, |
|
|
|
token_name: tkn.name, |
|
|
|
token_symbol: tkn.symbol, |
|
|
|
token_symbol: tkn.symbol, |
|
|
|
token_decimals: tkn.decimals, |
|
|
|
token_decimals: tkn.decimals, |
|
|
@ -479,6 +480,7 @@ defmodule Explorer.Etherscan do |
|
|
|
from_address_hash: tt.from_address_hash, |
|
|
|
from_address_hash: tt.from_address_hash, |
|
|
|
to_address_hash: tt.to_address_hash, |
|
|
|
to_address_hash: tt.to_address_hash, |
|
|
|
amount: tt.amount, |
|
|
|
amount: tt.amount, |
|
|
|
|
|
|
|
amounts: tt.amounts, |
|
|
|
transaction_nonce: t.nonce, |
|
|
|
transaction_nonce: t.nonce, |
|
|
|
transaction_index: t.index, |
|
|
|
transaction_index: t.index, |
|
|
|
transaction_gas: t.gas, |
|
|
|
transaction_gas: t.gas, |
|
|
@ -490,7 +492,7 @@ defmodule Explorer.Etherscan do |
|
|
|
block_number: b.number, |
|
|
|
block_number: b.number, |
|
|
|
block_timestamp: b.timestamp, |
|
|
|
block_timestamp: b.timestamp, |
|
|
|
confirmations: fragment("? - ?", ^block_height, t.block_number), |
|
|
|
confirmations: fragment("? - ?", ^block_height, t.block_number), |
|
|
|
token_id: tt.token_id, |
|
|
|
token_ids: tt.token_ids, |
|
|
|
token_name: tt.token_name, |
|
|
|
token_name: tt.token_name, |
|
|
|
token_symbol: tt.token_symbol, |
|
|
|
token_symbol: tt.token_symbol, |
|
|
|
token_decimals: tt.token_decimals, |
|
|
|
token_decimals: tt.token_decimals, |
|
|
|