evm

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 6 Imported by: 6 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMChain

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

EVMChain is struct that aggregates all data required for

func NewEVMChain

func NewEVMChain(listener EventListener, writer ProposalExecutor, blockstore *store.BlockStore, domainID uint8, startBlock *big.Int, latestBlock bool, freshStart bool) *EVMChain

func (*EVMChain) DomainID

func (c *EVMChain) DomainID() uint8

func (*EVMChain) PollEvents

func (c *EVMChain) PollEvents(ctx context.Context, sysErr chan<- error, msgChan chan []*message.Message)

PollEvents is the goroutine that polls blocks and searches Deposit events in them. Events are then sent to eventsChan.

func (*EVMChain) Write

func (c *EVMChain) Write(msg []*message.Message) error

type EventListener

type EventListener interface {
	ListenToEvents(ctx context.Context, startBlock *big.Int, msgChan chan []*message.Message, errChan chan<- error)
}

type ProposalExecutor

type ProposalExecutor interface {
	Execute(message *message.Message) error
}

Directories

Path Synopsis
evmgaspricer/mock
Package mock_evmgaspricer is a generated GoMock package.
Package mock_evmgaspricer is a generated GoMock package.
mock
Package mock_calls is a generated GoMock package.
Package mock_calls is a generated GoMock package.
transactor/itx/mock
Package mock_itx is a generated GoMock package.
Package mock_itx is a generated GoMock package.
transactor/mock
Package mock_transactor is a generated GoMock package.
Package mock_transactor is a generated GoMock package.
cli
bridge/mock
Package mock_bridge is a generated GoMock package.
Package mock_bridge is a generated GoMock package.
mock
Package mock_executor is a generated GoMock package.
Package mock_executor is a generated GoMock package.
mock
Package mock_listener is a generated GoMock package.
Package mock_listener is a generated GoMock package.

Jump to

Keyboard shortcuts

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