api

package
v0.4.4-beta Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// entrance of api functions
	ApiEntrance           = "execute"
	CheckBlockLevel       = "isBlockLevel"
	CheckTransactionLevel = "isTransactionLevel"
	CheckIsTxVerifier     = "isTransactionVerifier"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostFunc

type HostFunc interface {
	FuncRegister() *runtime.HostAPIRegistry
}

type Register

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

Register keeps the properity owned by current

func NewRegister

func NewRegister(aspectID *common.Address) *Register

func (*Register) HostApis

func (r *Register) HostApis() *runtime.HostAPIRegistry

HostApis return the collection of aspect runtime host apis

func (*Register) RunnerContext

func (r *Register) RunnerContext() *types.RunnerContext

func (*Register) SetErrCallback

func (r *Register) SetErrCallback(errfunc func(message string))

func (*Register) SetRunnerContext

func (r *Register) SetRunnerContext(name string, blockNum int64, gas uint64, contractAddr *common.Address)

Jump to

Keyboard shortcuts

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