Skip to content

Documentation / @etherfold/processor-entities / CursorWrite

Type Alias: CursorWrite ​

CursorWrite = object

Defined in: packages/state-store/dist/cursor.d.ts:68

A cursor write to be applied WITH a block, in the same transaction.

Handed to StateStore.applyBlock. The store's obligation is atomicity in both directions: if the block applies the cursor moves with it, and if the block is refused the cursor is exactly where it was. A store that wrote it separately would be reintroducing the window this port exists to close.

Properties ​

key ​

readonly key: string

Defined in: packages/state-store/dist/cursor.d.ts:70

Which cursor. See the module note: a name, not a context hash.


value ​

readonly value: string

Defined in: packages/state-store/dist/cursor.d.ts:72

Opaque to the store. Whatever the caller can read back and understand.