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 InitContractFunc + const UpgradeContractFunc + func CallDeallocate(instance *wasmer.Instance) error + func GetVmBridgeManager() *vmBridgeManager + type CMEnvironment struct + type InstancesManager struct + func NewInstancesManager(chainId string) *InstancesManager + func (m *InstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64) + func (m *InstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64) + func (m *InstancesManager) CloseAVmPool(contractId *commonPb.Contract) + func (m *InstancesManager) CloseAllVmPool() + func (m *InstancesManager) CloseRuntimeInstance(contractName string, contractVersion string) error + 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 Other modules containing this package chainmaker.org/chainmaker/vm-wasmer/v2