evm

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: LGPL-3.0 Imports: 7 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

func NewEVMChain

func NewEVMChain(listener EventListener, writer ProposalExecutor, blockstore *store.BlockStore, config *chain.EVMConfig) *EVMChain

func (*EVMChain) CheckFeeClaim

func (c *EVMChain) CheckFeeClaim() bool

func (*EVMChain) DomainID

func (c *EVMChain) DomainID() uint8

func (*EVMChain) GetFeeClaim

func (c *EVMChain) GetFeeClaim(msg *message.Message) error

func (*EVMChain) PollEvents

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

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

func (*EVMChain) Write1

func (c *EVMChain) Write1(msg1 *message.Message2) (bool, error)

func (*EVMChain) Write2

func (c *EVMChain) Write2(msg *message.Message2) error

func (*EVMChain) WriteRemoval

func (c *EVMChain) WriteRemoval(msg *message.Message2) error

type EventListener

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

type ProposalExecutor

type ProposalExecutor interface {
	Execute(message *message.Message) error
	Execute1(message *message.Message2) (bool, error)
	ExecuteSourceTransactiions(message *message.Message2) error
	ExecuteRemovefromdest(message *message.Message2) error
	FeeClaimByRelayer(p *message.Message) error
	IsFeeThresholdReached() bool
}

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