|
|
|
@ -215,7 +215,8 @@ defmodule Explorer.Chain.TokenTransfer do |
|
|
|
|
from( |
|
|
|
|
tt in TokenTransfer, |
|
|
|
|
where: tt.to_address_hash == ^address_hash, |
|
|
|
|
select: type(tt.transaction_hash, :binary) |
|
|
|
|
select: type(tt.transaction_hash, :binary), |
|
|
|
|
distinct: tt.transaction_hash |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
query |
|
|
|
@ -229,7 +230,8 @@ defmodule Explorer.Chain.TokenTransfer do |
|
|
|
|
from( |
|
|
|
|
tt in TokenTransfer, |
|
|
|
|
where: tt.from_address_hash == ^address_hash, |
|
|
|
|
select: type(tt.transaction_hash, :binary) |
|
|
|
|
select: type(tt.transaction_hash, :binary), |
|
|
|
|
distinct: tt.transaction_hash |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
query |
|
|
|
@ -249,6 +251,7 @@ defmodule Explorer.Chain.TokenTransfer do |
|
|
|
|
from(token_transfer in TokenTransfer, |
|
|
|
|
where: token_transfer.to_address_hash == ^address_bytes or token_transfer.from_address_hash == ^address_bytes, |
|
|
|
|
select: type(token_transfer.transaction_hash, :binary), |
|
|
|
|
distinct: token_transfer.transaction_hash, |
|
|
|
|
limit: ^page_size |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|