statemachine

package
v0.0.0-...-c1b05a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateMachine

type StateMachine struct {
	// contains filtered or unexported fields
}

func NewStateMachine

func NewStateMachine(db rollupdb.DB, serializer *types.Serializer) (*StateMachine, error)

func (*StateMachine) ApplyTransaction

func (sm *StateMachine) ApplyTransaction(tx types.Transaction) (*types.StateUpdate, error)

func (*StateMachine) GetStateRoot

func (sm *StateMachine) GetStateRoot() []byte

func (*StateMachine) GetStateSnapshot

func (sm *StateMachine) GetStateSnapshot(key []byte) (*types.StateSnapshot, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL