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