executor

package
v0.0.0-...-77861b7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MSG_ABORT_PREFIX = "MSG::ABORT:"

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution struct {
	Chain      *chains.Chain
	Transactor *ethutils.Transactor
	Receiver   *contracts.ReceiverContract
	Record     *models.ExecutionRecord
	// Gas limit override. Useful for force sending out a tx and debugging in Tenderly
	GasLimit uint64
}

Execution is a context object that is assembled before the execution of a message so that later steps of the execution don't need to acquire the relavant dependencies over and over.

func (*Execution) ExecuteMessage

func (x *Execution) ExecuteMessage(opts *bind.TransactOpts, msg []byte, route types.MessageRoute, sortedSigs [][]byte, signers []eth.Addr, powers []*big.Int) (*gethtypes.Transaction, error)

func (*Execution) GetTxOptions

func (e *Execution) GetTxOptions() []ethutils.TxOption

type Executor

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

func NewExecutor

func NewExecutor(gatewayClient *sgn.GatewayClient, sgnClient *sgn.SgnClient, accs *accounts.Accounts, testMode bool) *Executor

func (*Executor) Execute

func (e *Executor) Execute(records []*models.ExecutionRecord, gasLimit uint64)

func (*Executor) Start

func (e *Executor) Start()

Jump to

Keyboard shortcuts

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