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.
Click to show internal directories.
Click to hide internal directories.