|
|
@ -38,6 +38,7 @@ defmodule Explorer.Chain do |
|
|
|
|
|
|
|
|
|
|
|
alias Explorer.Chain.Block.Reward |
|
|
|
alias Explorer.Chain.Block.Reward |
|
|
|
alias Explorer.{PagingOptions, Repo} |
|
|
|
alias Explorer.{PagingOptions, Repo} |
|
|
|
|
|
|
|
alias Explorer.Counters.TokenTransferCounter |
|
|
|
|
|
|
|
|
|
|
|
@default_paging_options %PagingOptions{page_size: 50} |
|
|
|
@default_paging_options %PagingOptions{page_size: 50} |
|
|
|
|
|
|
|
|
|
|
@ -1922,7 +1923,7 @@ defmodule Explorer.Chain do |
|
|
|
|
|
|
|
|
|
|
|
@spec count_token_transfers_from_token_hash(Hash.t()) :: non_neg_integer() |
|
|
|
@spec count_token_transfers_from_token_hash(Hash.t()) :: non_neg_integer() |
|
|
|
def count_token_transfers_from_token_hash(token_address_hash) do |
|
|
|
def count_token_transfers_from_token_hash(token_address_hash) do |
|
|
|
TokenTransfer.count_token_transfers_from_token_hash(token_address_hash) |
|
|
|
TokenTransferCounter.fetch(token_address_hash) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@spec transaction_has_token_transfers?(Hash.t()) :: boolean() |
|
|
|
@spec transaction_has_token_transfers?(Hash.t()) :: boolean() |
|
|
|