wasm

package
v0.0.0-...-d9e9996 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContractCodeDescKey

func ContractCodeDescKey(contractName string) []byte

Types

type VMManager

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

VMManager manages wasm contracts, include deploy contracts, instance wasm virtual machine, etc...

func New

func New(cfg *config.WasmConfig, basedir string, xbridge *bridge.XBridge, xmodel *xmodel.XModel) (*VMManager, error)

New instances a new VMManager

func (*VMManager) DeployContract

func (v *VMManager) DeployContract(contextConfig *contract.ContextConfig, args map[string][]byte) ([]byte, contract.Limits, error)

DeployContract deploy contract and initialize contract

func (*VMManager) NewInstance

func (v *VMManager) NewInstance(ctx *bridge.Context) (bridge.Instance, error)

NewInstance implements bridge.Executor

func (*VMManager) RegisterSyscallService

func (v *VMManager) RegisterSyscallService(syscall *bridge.SyscallService)

RegisterSyscallService implements bridge.Executor

Directories

Path Synopsis
vm
xvm

Jump to

Keyboard shortcuts

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