Given an APIClient instance, this class provides an AbiProvider interface for retrieving and caching ABIs.

Hierarchy

  • ABICache

Implements

Constructors

Properties

Methods

Constructors

Properties

cache: Map<string, ABI>
client: APIClient
pending: Map<string, Promise<GetRawAbiResponse>>

Methods

  • Return a promise that resolves to an abi object for the given account name, e.g. the result of a rpc call to chain/get_abi.

    Parameters

    Returns Promise<ABI>