impl

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor executes chain events.

func NewExecutor

func NewExecutor(
	chainID tableland.ChainID,

	db *sql.DB,
	parser parsing.SQLValidator,
	maxTableRowCount int,
	acl tableland.ACL,
) (*Executor, error)

NewExecutor returns a new Executor.

func (*Executor) Close

func (ex *Executor) Close(ctx context.Context) error

Close closes the processor gracefully. It will wait for any pending batch to be closed, or until ctx is canceled.

func (*Executor) GetLastExecutedBlockNumber

func (ex *Executor) GetLastExecutedBlockNumber(ctx context.Context) (int64, error)

GetLastExecutedBlockNumber returns the last block number that was successfully executed.

func (*Executor) NewBlockScope

func (ex *Executor) NewBlockScope(ctx context.Context, newBlockNum int64) (executor.BlockScope, error)

NewBlockScope starts a block scope to execute EVM transactions with events.

Jump to

Keyboard shortcuts

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