Skip to content

BaseState

BaseState: object

Internal

The core data structure powering the state manager internally

Type declaration

caches

caches: StateCache

getCurrentStateRoot()

getCurrentStateRoot: () => Hex

Returns

Hex

logger

logger: Logger

options

options: StateOptions

ready()

ready: () => Promise<true>

Returns

Promise<true>

setCurrentStateRoot()

setCurrentStateRoot: (newStateRoot) => void

Parameters

newStateRoot: Hex

Returns

void

stateRoots

stateRoots: StateRoots

Mapping of hashes to State roots

Defined in

packages/state/src/BaseState.ts:9