Explorer.Indexer.BlockFetcher.AddressExtraction -> Explorer.Indexer.AddressExtraction

Move AddressExtraction out of BlockFetcher because it is used in the
InternalTransactionFetcher and will be used in the
PendingTransactionFetcher.
pull/255/head
Luke Imhoff 6 years ago
parent fa455e331d
commit ef2b2bb745
  1. 2
      apps/explorer/lib/explorer/indexer/address_extraction.ex
  2. 3
      apps/explorer/lib/explorer/indexer/block_fetcher.ex
  3. 3
      apps/explorer/lib/explorer/indexer/internal_transaction_fetcher.ex
  4. 4
      apps/explorer/test/explorer/indexer/address_extraction_test.exs

@ -1,4 +1,4 @@
defmodule Explorer.Indexer.BlockFetcher.AddressExtraction do
defmodule Explorer.Indexer.AddressExtraction do
@moduledoc """
Extract Addresses from data fetched from the Blockchain and structured as Blocks, InternalTransactions,
Transactions and Logs.

@ -12,8 +12,7 @@ defmodule Explorer.Indexer.BlockFetcher do
alias EthereumJSONRPC
alias EthereumJSONRPC.Transactions
alias Explorer.{BufferedTask, Chain, Indexer}
alias Explorer.Indexer.BlockFetcher.AddressExtraction
alias Explorer.Indexer.{AddressBalanceFetcher, InternalTransactionFetcher, Sequence}
alias Explorer.Indexer.{AddressBalanceFetcher, AddressExtraction, InternalTransactionFetcher, Sequence}
# dialyzer thinks that Logger.debug functions always have no_local_return
@dialyzer {:nowarn_function, import_range: 3}

@ -6,8 +6,7 @@ defmodule Explorer.Indexer.InternalTransactionFetcher do
"""
alias Explorer.{BufferedTask, Chain, Indexer}
alias Explorer.Indexer.BlockFetcher.AddressExtraction
alias Explorer.Indexer.AddressBalanceFetcher
alias Explorer.Indexer.{AddressBalanceFetcher, AddressExtraction}
alias Explorer.Chain.{Hash, Transaction}
@behaviour BufferedTask

@ -1,7 +1,7 @@
defmodule Explorer.Indexer.BlockFetcher.AddressExtractionTest do
defmodule Explorer.Indexer.AddressExtractionTest do
use Explorer.DataCase, async: true
alias Explorer.Indexer.BlockFetcher.AddressExtraction
alias Explorer.Indexer.AddressExtraction
describe "extract_addresses/1" do
test "returns all hashes entities data in a list" do
Loading…
Cancel
Save