|
|
|
@ -65,6 +65,7 @@ defmodule Explorer.Chain do |
|
|
|
|
Transaction, |
|
|
|
|
Wei, |
|
|
|
|
Withdrawal, |
|
|
|
|
ZkevmBatchTxn, |
|
|
|
|
ZkevmTxnBatch |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1752,7 +1753,7 @@ defmodule Explorer.Chain do |
|
|
|
|
|> where([transaction], transaction.hash in ^hashes) |
|
|
|
|
|> join_associations(necessity_by_association) |
|
|
|
|
|> preload([{:token_transfers, [:token, :from_address, :to_address]}]) |
|
|
|
|
|> Repo.all() |
|
|
|
|
|> select_repo(options).all() |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
@doc """ |
|
|
|
@ -6462,6 +6463,12 @@ defmodule Explorer.Chain do |
|
|
|
|
select_repo(options).all(query) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def zkevm_batch_transactions(batch_number, options \\ []) do |
|
|
|
|
query = from(bts in ZkevmBatchTxn, where: bts.batch_number == ^batch_number) |
|
|
|
|
|
|
|
|
|
select_repo(options).all(query) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
defp page_zkevm_batches(query, %PagingOptions{key: nil}), do: query |
|
|
|
|
|
|
|
|
|
defp page_zkevm_batches(query, %PagingOptions{key: {number}}) do |
|
|
|
|