Hierarchy

Constructors

Properties

backwardJob: undefined | JobRunner
blockchainId: Blockchain = Blockchain.Ethereum
ethereumClient: EthereumClient
fetcherState: BaseFetcherState<EthereumBlockHistoryPaginationCursor>
fetcherStateDAL: FetcherStateLevelStorage<EthereumBlockHistoryPaginationCursor>
forwardJob: undefined | JobRunner
iterationLimit: number = 1000
lastCheckCompleteBackward: number = ...
options: BaseFetcherOptions<EthereumBlockHistoryPaginationCursor>
pageLimit: number = 50

Methods

  • Parameters

    • type: "forward" | "backward"
    • ctx: {
          error?: Error;
          jobState: BaseFetcherJobState;
          newItems: boolean;
      }
      • Optional error?: Error
      • jobState: BaseFetcherJobState
      • newItems: boolean

    Returns Promise<boolean>

  • Parameters

    • fetcherType: "forward" | "backward"
    • ctx: {
          firstRun: boolean;
          interval: number;
      }
      • firstRun: boolean
      • interval: number

    Returns Promise<number>

  • Parameters

    • fetcherType: "forward" | "backward"

    Returns Promise<void>

  • Initialises the fetcherState class property of the Fetcher instance, could get the data from the data access layer when the fetching progress is restarted.

    Returns Promise<BaseFetcherState<EthereumBlockHistoryPaginationCursor>>

  • Returns string

  • Parameters

    • Optional fetcherType: "forward" | "backward"

    Returns Promise<number>

  • Parameters

    • Optional fetcherType: "forward" | "backward"

    Returns Promise<number>

  • Parameters

    • Optional fetcherType: "forward" | "backward"

    Returns Promise<number>

  • Returns Promise<void>

  • Parameters

    • jobType: "forward" | "backward"

    Returns void

  • Parameters

    • Optional fetcherType: "forward" | "backward"

    Returns Promise<boolean>

  • Returns Promise<unknown>

  • Saves the fetcher state in the data access layer.

    Returns Promise<void>

  • Returns Promise<void>

Generated using TypeDoc