Versions in this module Expand all Collapse all v2 v2.2.3 Apr 8, 2022 v2.2.2 Apr 8, 2022 Changes in this version + type CMEnvironment struct v2.1.1 Apr 8, 2022 Changes in this version + func CallDeallocate(instance *wasmer.Instance) error + func GetVmBridgeManager() *vmBridgeManager + type InstancesManager struct + func NewInstancesManager(chainId string) *InstancesManager + func (m *InstancesManager) CloseAVmPool(contractId *commonPb.Contract) + func (m *InstancesManager) CloseAllVmPool() + func (m *InstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, ...) (protocol.RuntimeInstance, error) + func (m *InstancesManager) ResetAVmPool(contractId *commonPb.Contract) + func (m *InstancesManager) ResetAllPool() + func (m *InstancesManager) StartVM() error + func (m *InstancesManager) StopVM() error + type RuntimeInstance struct + func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, method string, byteCode []byte, ...) (contractResult *commonPb.ContractResult, ...) + func (r *RuntimeInstance) Pool() *vmPool + type SimContext struct + ChainId string + Contract *commonPb.Contract + ContractEvent []*commonPb.ContractEvent + ContractResult *commonPb.ContractResult + CtxPtr int32 + GetStateCache []byte + Instance *wasmer.Instance + Log *logger.CMLogger + SpecialTxType protocol.ExecOrderTxType + TxSimContext protocol.TxSimContext + func NewSimContext(method string, log *logger.CMLogger, chainId string) *SimContext + func (sc *SimContext) CallMethod(instance *wasmer.Instance) error + type WaciInstance struct + ChainId string + Memory []byte + RequestBody []byte + Sc *SimContext + func (s *WaciInstance) CallContract() int32 + func (s *WaciInstance) CallContractLen() int32 + func (s *WaciInstance) DeleteState() int32 + func (s *WaciInstance) EmitEvent() int32 + func (s *WaciInstance) ErrorResult() int32 + func (s *WaciInstance) ExecuteDDL() int32 + func (s *WaciInstance) ExecuteQuery() int32 + func (s *WaciInstance) ExecuteQueryOne() int32 + func (s *WaciInstance) ExecuteQueryOneLen() int32 + func (s *WaciInstance) ExecuteUpdate() int32 + func (s *WaciInstance) GetBulletProofsResult() int32 + func (s *WaciInstance) GetBulletProofsResultLen() int32 + func (s *WaciInstance) GetPaillierResult() int32 + func (s *WaciInstance) GetPaillierResultLen() int32 + func (s *WaciInstance) GetState() int32 + func (s *WaciInstance) GetStateLen() int32 + func (s *WaciInstance) KvIterator() int32 + func (s *WaciInstance) KvIteratorClose() int32 + func (s *WaciInstance) KvIteratorHasNext() int32 + func (s *WaciInstance) KvIteratorNext() int32 + func (s *WaciInstance) KvIteratorNextLen() int32 + func (s *WaciInstance) KvPreIterator() int32 + func (s *WaciInstance) LogMessage() int32 + func (s *WaciInstance) PutState() int32 + func (s *WaciInstance) RSClose() int32 + func (s *WaciInstance) RSHasNext() int32 + func (s *WaciInstance) RSNext() int32 + func (s *WaciInstance) RSNextLen() int32 + func (s *WaciInstance) SuccessResult() int32