Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancesManager ¶
type InstancesManager struct { }
func (*InstancesManager) NewRuntimeInstance ¶
func (*InstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, contract *commonPb.Contract, byteCode []byte, log protocol.Logger) (protocol.RuntimeInstance, error)
func (*InstancesManager) StartVM ¶
func (*InstancesManager) StartVM() error
func (*InstancesManager) StopVM ¶
func (*InstancesManager) StopVM() error
type RuntimeInstance ¶
type RuntimeInstance struct { ChainId string CodeManager *xvm.CodeManager CtxService *xvm.ContextService Log protocol.Logger }
func (*RuntimeInstance) Invoke ¶
func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, method string, byteCode []byte, parameters map[string][]byte, txContext protocol.TxSimContext, gasUsed uint64) ( contractResult *commonPb.ContractResult, specialTxType protocol.ExecOrderTxType)
Invoke contract by call vm, implement protocol.RuntimeInstance
Click to show internal directories.
Click to hide internal directories.