executor

package
v0.0.0-...-7c2dc49 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	// RegisterGPACT registers a gpact contract to a given chain id.
	RegisterGPACT(chainID *big.Int, gpactAddr common.Address)

	// CrosschainCall executes a crosschain transaction from the root node of an execution tree.
	CrosschainCall(root *treenode.TreeNode) ([]interface{}, error)
}

Executor is used to execute crosschain transactions.

type ExecutorImplV1

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

ExecutorImplV1 implements Executor.

func NewExecutorImplV1

func NewExecutorImplV1(cmgr chainap.ChainAPManager, ms msgstore.MessageStore, transactOpts *bind.TransactOpts) *ExecutorImplV1

NewExecutorImplV1 creates a new executor.

func (*ExecutorImplV1) CrosschainCall

func (exec *ExecutorImplV1) CrosschainCall(root *treenode.TreeNode) ([]interface{}, error)

CrosschainCall executes a crosschain transaction from the root node of an execution tree.

func (*ExecutorImplV1) RegisterGPACT

func (exec *ExecutorImplV1) RegisterGPACT(chainID *big.Int, gpactAddr common.Address)

RegisterGPACT registers a gpact contract to a given chain id.

Jump to

Keyboard shortcuts

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