Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / StorageLayerProvider

Interface: StorageLayerProvider

Methods

findNextKey()

findNextKey(prefix, startKey, knownBest?): Promise<undefined | string>

Find next storage key.

Parameters

prefix: string

startKey: string

knownBest?: string

Returns

Promise<undefined | string>

Defined in

packages/core/src/blockchain/storage-layer.ts:33


get()

get(key, cache): Promise<StorageValue>

Get the value of a storage key.

Parameters

key: string

cache: boolean

Returns

Promise<StorageValue>

Defined in

packages/core/src/blockchain/storage-layer.ts:25


getKeysPaged()

getKeysPaged(prefix, pageSize, startKey): Promise<string[]>

Get paged storage keys.

Parameters

prefix: string

pageSize: number

startKey: string

Returns

Promise<string[]>

Defined in

packages/core/src/blockchain/storage-layer.ts:29