state

package
v0.37.0-prerelease-1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockState

type BlockState struct {
	types.StateDB // todo change to types.ReadOnlyView
	// contains filtered or unexported fields
}

func NewBlockState

func NewBlockState(
	block *models.Block,
	chainID flowGo.ChainID,
	store *pebble.Storage,
	blocks storage.BlockIndexer,
	receipts storage.ReceiptIndexer,
	logger zerolog.Logger,
) (*BlockState, error)

func (*BlockState) Call

func (s *BlockState) Call(from common.Address, data []byte) (*types.Result, error)

func (*BlockState) Execute

func (s *BlockState) Execute(tx models.Transaction) error

type Engine

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

func NewStateEngine

func NewStateEngine(
	chainID flowGo.ChainID,
	blockPublisher *models.Publisher,
	store *pebble.Storage,
	blocks storage.BlockIndexer,
	transactions storage.TransactionIndexer,
	receipts storage.ReceiptIndexer,
	logger zerolog.Logger,
) *Engine

func (*Engine) Done

func (e *Engine) Done() <-chan struct{}

func (*Engine) Error

func (e *Engine) Error() <-chan error

func (*Engine) ID

func (e *Engine) ID() uuid.UUID

func (*Engine) Notify

func (e *Engine) Notify(data any)

func (*Engine) Ready

func (e *Engine) Ready() <-chan struct{}

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) error

func (*Engine) Stop

func (e *Engine) Stop()

Jump to

Keyboard shortcuts

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