executor

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const HASHI_GAS_COST = 3000000
View Source
const TRANSFER_GAS_COST = 600000

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

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

type EVMExecutor

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

func NewEVMExecutor

func NewEVMExecutor(domainID uint8, executor ExecutorContract, hashiAdapter HashiContract) *EVMExecutor

func (*EVMExecutor) Execute

func (e *EVMExecutor) Execute(props []*proposal.Proposal) error

type ExecutorContract

type ExecutorContract interface {
	IsProposalExecuted(p *proposal.Proposal) (bool, error)
	ExecuteProposals(proposals []contracts.ExecutorProposal, accountProof [][]byte, slot *big.Int, opts transactor.TransactOptions) (*common.Hash, error)
}

type HashiContract added in v1.0.3

type HashiContract interface {
	VerifyAndStoreDispatchedMessage(
		srcSlot uint64,
		txSlot uint64,
		receiptsRootProof [][]byte,
		receiptsRoot [32]byte,
		receiptProof [][]byte,
		txIndexRLPEncoded []byte,
		logIndex *big.Int,
		opts transactor.TransactOptions,
	) (*common.Hash, error)
}

Jump to

Keyboard shortcuts

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