Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractCodeDescKey ¶
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 ¶
NewInstance implements bridge.Executor
func (*VMManager) RegisterSyscallService ¶
func (v *VMManager) RegisterSyscallService(syscall *bridge.SyscallService)
RegisterSyscallService implements bridge.Executor
Click to show internal directories.
Click to hide internal directories.