Skip to content

BaseState

Internal

BaseState: object

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

Source

packages/state/src/BaseState.ts:9