package
1.4.8
Repository: https://github.com/optakt/flow-dps.git
Documentation: pkg.go.dev

# Functions

EmptyState returns a new empty state that uses the given forest.
NewFSM returns a new FSM using the given state and options.
NewTransitions returns a Transitions component using the given dependencies and using the given options.
WithBootstrapState makes the mapper bootstrap the state from a root checkpoint.
WithSkipRegisters makes the mapper skip indexing of all ledger registers, which speeds up the run significantly and can be used for debugging purposes.
WithTransition specifies which TransitionFunc should be used when the state machine has the given status.
WithWaitInterval sets the wait interval that we will wait before retrying to retrieve a trie update when it wasn't available.

# Constants

The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.
The following is an enumeration of all possible statuses the state machine can have.

# Variables

DefaultConfig is the default configuration for the Mapper.

# Structs

Config contains optional parameters for the Mapper.
FSM is a finite state machine which is used to map block data from multiple sources into the DPS index.
State is the state machine's state.
Transitions is what applies transitions to the state of an FSM.

# Interfaces

Feeder represents something that can be consumed to get trie updates in chronological order.
Forest represents a multitude of trees which are mapped by their state commitment hash.
Loader represents something that loads its checkpoint and builds it into a trie.

# Type aliases

Option is an option that can be given to the mapper to configure optional parameters on initialization.
Status is a representation of the state machine's status.
TransitionFunc is a function that is applied onto the state machine's state.