interface StorageProvider {
    getBigMapKey<T>(contract, key, schema?): Promise<T>;
    getBigMapKeyByID<T>(id, keyToEncode, schema, block?): Promise<T>;
    getBigMapKeysByID<T>(id, keysToEncode, schema, block?, batchSize?): Promise<MichelsonMap<MichelsonMapKey, undefined | T>>;
    getSaplingDiffByID(id, block?): Promise<SaplingDiffResponse>;
    getStorage<T>(contract, schema?): Promise<T>;
}

Hierarchy (view full)

Methods

  • Type Parameters

    • T

    Parameters

    • id: string

      Big Map ID

    • keysToEncode: BigMapKeyType[]

      Array of keys to query (will be encoded properly according to the schema)

    • schema: Schema

      Big Map schema (can be determined using your contract type)

    • Optional block: number

      optional block level to fetch the values from

    • Optional batchSize: number

      optional batch size representing the number of requests to execute in parallel

    Returns Promise<MichelsonMap<MichelsonMapKey, undefined | T>>

    An object containing the keys queried in the big map and their value in a well-formatted JSON object format

    Description

    Fetch multiple values in a big map

  • Parameters

    • id: string

      Sapling state ID

    • Optional block: number

      optional block level to fetch the value from

    Returns Promise<SaplingDiffResponse>

    Description

    Return a well formatted json object of a sapling state

Generated using TypeDoc