Skip to content

Documentation / @etherfold/processor-entities / parseStoredCursor

Function: parseStoredCursor() ​

parseStoredCursor<ABI>(stored): LastSync<ABI> | undefined

Defined in: packages/processor-entities/src/cursor.ts:85

A cursor parsed from what a store handed back, or undefined.

A stored string that does not parse is treated as "never synced" rather than thrown: the recovery from a corrupt cursor is a fresh sync, and that is exactly what undefined triggers.

Type Parameters ​

ABI ​

ABI extends Abi

Parameters ​

stored ​

string | undefined

Returns ​

LastSync<ABI> | undefined