api

package
v0.4.7-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 10 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 Registry

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

Registry keeps the properity owned by current

func NewRegistry

func NewRegistry(ctx context.Context, aspectID common.Address, aspVer uint64) *Registry

func (*Registry) HostApis

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

HostApis return the collection of aspect runtime host apis

func (*Registry) RunnerContext

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

func (*Registry) SetErrCallback

func (r *Registry) SetErrCallback(errFunc func(message string))

func (*Registry) SetRunnerContext

func (r *Registry) 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