Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const DefaultCap + const OptLevel + var BuiltinResolver = exec.MapResolver(map[string]interface{}{ ... }) + var MaxLimits = Limits + func NewContextServiceResolver(service *ContextService) exec.Resolver + type CodeManager struct + func NewCodeManager(chainId string, basedir string, log protocol.Logger) *CodeManager + func (c *CodeManager) CompileCode(buf []byte, outputPath string) error + func (c *CodeManager) GetExecCode(chainId string, contract *commonPb.Contract, byteCode []byte, ...) (exec.Code, error) + func (c *CodeManager) MakeExecCode(libpath string, contextService *ContextService) (exec.Code, error) + func (c *CodeManager) RemoveCode(name string) + type Context struct + ContractEvent []*commonPb.ContractEvent + ContractId *commonPb.Contract + ContractResult *commonPb.ContractResult + ID int64 + Parameters map[string][]byte + TxSimContext protocol.TxSimContext + type ContextService struct + func NewContextService(chainId string, log protocol.Logger) *ContextService + func (c *ContextService) CallContract(ctxId int64) int32 + func (c *ContextService) Context(id int64) (*Context, bool) + func (c *ContextService) DeleteState(ctxId int64) int32 + func (c *ContextService) DestroyContext(ctx *Context) + func (c *ContextService) EmitEvent(ctxId int64) int32 + func (c *ContextService) ErrorResult(ctxId int64) int32 + func (c *ContextService) GetCallArgs(ctxId int64) int32 + func (c *ContextService) GetState(ctxId int64) int32 + func (c *ContextService) LogMessage(ctxId int64) int32 + func (c *ContextService) MakeContext(contract *commonPb.Contract, txSimContext protocol.TxSimContext, ...) *Context + func (c *ContextService) NewIterator(ctxId int64) int32 + func (c *ContextService) PutState(ctxId int64) int32 + func (c *ContextService) SetOutput(ctxId int64) int32 + func (c *ContextService) SuccessResult(ctxId int64) int32 + type Limits struct + Cpu uint64 + func (l *Limits) Add(l1 Limits) *Limits + func (l *Limits) Sub(l1 Limits) *Limits + func (l Limits) Exceed(l1 Limits) bool + type WxvmInstance struct + ExecCtx exec.Context + func CreateInstance(contextId int64, code exec.Code, method string, contract *commonPb.Contract, ...) (*WxvmInstance, error) + func (x *WxvmInstance) Abort(msg string) + func (x *WxvmInstance) Exec() error + func (x *WxvmInstance) Release() + func (x *WxvmInstance) ResourceUsed() Limits Other modules containing this package chainmaker.org/chainmaker/vm-wxvm/v2