@acala-network/chopsticks-core
@acala-network/chopsticks-core / StorageLayerProvider
Interface: StorageLayerProvider
Defined in: packages/core/src/blockchain/storage-layer.ts:21
Methods
findNextKey()
findNextKey(
prefix
,startKey
,knownBest
?):Promise
<undefined
|string
>
Defined in: packages/core/src/blockchain/storage-layer.ts:33
Find next storage key.
Parameters
prefix
string
startKey
string
knownBest?
string
Returns
Promise
<undefined
| string
>
get()
get(
key
,cache
):Promise
<StorageValue
>
Defined in: packages/core/src/blockchain/storage-layer.ts:25
Get the value of a storage key.
Parameters
key
string
cache
boolean
Returns
Promise
<StorageValue
>
getKeysPaged()
getKeysPaged(
prefix
,pageSize
,startKey
):Promise
<string
[]>
Defined in: packages/core/src/blockchain/storage-layer.ts:29
Get paged storage keys.
Parameters
prefix
string
pageSize
number
startKey
string
Returns
Promise
<string
[]>