Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / RemoteStorageLayer

Class: RemoteStorageLayer

Implements

Constructors

new RemoteStorageLayer()

new RemoteStorageLayer(api, at, db): RemoteStorageLayer

Parameters

api: Api

at: string

db: undefined | Database

Returns

RemoteStorageLayer

Defined in

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

Methods

findNextKey()

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

Find next storage key.

Parameters

prefix: string

startKey: string

_knownBest?: string

Returns

Promise<undefined | string>

Implementation of

StorageLayerProvider.findNextKey

Defined in

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


get()

get(key, _cache): Promise<StorageValue>

Get the value of a storage key.

Parameters

key: string

_cache: boolean

Returns

Promise<StorageValue>

Implementation of

StorageLayerProvider.get

Defined in

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


getKeysPaged()

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

Get paged storage keys.

Parameters

prefix: string

pageSize: number

startKey: string

Returns

Promise<string[]>

Implementation of

StorageLayerProvider.getKeysPaged

Defined in

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