statefactory

package
v0.15.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateFactory

type StateFactory struct {
	UseNewState bool
	// contains filtered or unexported fields
}

func NewStateFactory

func NewStateFactory(
	newState bool,
	triedb database.TrieDB,
	stateDB *state.StateDB,
) (*StateFactory, error)

func (*StateFactory) EmptyState

func (sf *StateFactory) EmptyState() (core.StateReader, error)

func (*StateFactory) NewState

func (sf *StateFactory) NewState(

	stateRoot *felt.Felt,
	txn db.IndexedBatch,
) (core.State, error)

func (*StateFactory) NewStateReader

func (sf *StateFactory) NewStateReader(
	stateRoot *felt.Felt,
	txn db.IndexedBatch,
	blockNumber uint64,
) (core.StateReader, error)

Jump to

Keyboard shortcuts

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