evm

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: LGPL-3.0 Imports: 23 Imported by: 0

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 interacting with target chains.

func NewEVMChain

func NewEVMChain(listener EventListener, writer ProposalExecutor, blockstore *store.BlockStore, config *chain.EVMConfig) *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, opts transactor.TransactOptions) 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.

Jump to

Keyboard shortcuts

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