Function: keepStateOnIndexedDB
keepStateOnIndexedDB<
ABI
,ProcessResultType
,ProcessorConfig
>(name
,remote
?):object
Type parameters
Parameter |
---|
ABI extends readonly (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive )[] |
ProcessResultType |
ProcessorConfig |
Parameters
Parameter | Type |
---|---|
name | string |
remote ? | string |
Returns
clear
clear: (
context
) =>Promise
<void
>
Parameters
Parameter | Type |
---|---|
context | ProcessorContext < ABI , ProcessorConfig > |
Returns
Promise
< void
>
fetch
fetch: (
context
) =>Promise
<undefined
| {lastSync
:LastSync
<ABI
>;state
:ProcessResultType
;} >
Parameters
Parameter | Type |
---|---|
context | ProcessorContext < ABI , ProcessorConfig > |
Returns
Promise
< undefined
| {lastSync
: LastSync
< ABI
>; state
: ProcessResultType
;} >
save
save: (
context
,all
) =>Promise
<void
>
Parameters
Parameter | Type |
---|---|
context | ProcessorContext < ABI , ProcessorConfig > |
all | object |
all.lastSync | LastSync < ABI > |
all.state | ProcessResultType |
Returns
Promise
< void
>
Defined In
packages/ethereum-indexer-browser/src/storage/state/OnIndexedDB.ts:11
Generated using TypeDoc and typedoc-plugin-markdown