Hierarchy

  • BaseFetcherClient
    • EthereumFetcherClient

Implements

  • FetcherClientI

Constructors

  • Parameters

    • blockchainId: Blockchain

      The id of the blockchain the client handles

    • broker: ServiceBroker

      The broker instance to retrieve the actual service from.

    • Optional msId: MsIds

      The moleculer service id of the fetcher service.

    Returns EthereumFetcherClient

Properties

blockchainId: Blockchain
broker: ServiceBroker
msId: MsIds
normalizeAccount: ((account: string) => string) = normalizeAccount

Type declaration

    • (account: string): string
    • Parameters

      • account: string

      Returns string

normalizeEntityId: ((entity: IndexableEntityType, id: string) => string) = normalizeEntityId

Type declaration

    • (entity: IndexableEntityType, id: string): string
    • Parameters

      • entity: IndexableEntityType
      • id: string

      Returns string

Methods

  • Parameters

    • args: Omit<AddAccountEntityRequestArgs, "blockchainId">

    Returns Promise<void>

  • Parameters

    • args: Omit<DelAccountEntityRequestArgs, "blockchainId">

    Returns Promise<void>

  • Parameters

    • args: DelEntityRequestArgs

    Returns Promise<void>

  • Parameters

    • args: Omit<FetchAccountEntitiesByDateRequestArgs, "blockchainId">

    Returns Promise<void | AsyncIterable<string[]>>

  • Parameters

    • args: Omit<FetchEntitiesByIdRequestArgs, "blockchainId">

    Returns Promise<void>

  • Parameters

    • args: Omit<GetAccountEntityStateRequestArgs, "blockchainId">

    Returns Promise<undefined | AccountEntityHistoryState<unknown>>

  • Parameters

    • args: {
          ids: string[];
          partitionKey?: string;
      }
      • ids: string[]
      • Optional partitionKey?: string

    Returns Record<string, string[]>

  • Parameters

    • args: CheckEntityRequestArgs

    Returns Promise<EntityState[]>

  • Parameters

    • args: Omit<FetcherStateRequestArgs, "blockchainId">

    Returns Promise<FetcherState<any>>

  • Type Parameters

    • R

    • A

    Parameters

    • args: Omit<InvokeBlockchainMethodRequestArgs<A>, "blockchainId">

    Returns Promise<R>

  • Parameters

    • args: {
          ids: string[];
          type: IndexableEntityType;
      }
      • ids: string[]
      • type: IndexableEntityType

    Returns string[]

Generated using TypeDoc