Documentation
¶
Index ¶
- Constants
- type InstancesManager
- func (*InstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
- func (*InstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
- func (*InstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string, ...) (protocol.RuntimeInstance, error)
- func (*InstancesManager) StartVM() error
- func (*InstancesManager) StopVM() error
- type RuntimeInstance
Constants ¶
View Source
const (
LruCacheSize = 64
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancesManager ¶
type InstancesManager struct {
}
func (*InstancesManager) AfterSchedule ¶
func (*InstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64)
func (*InstancesManager) BeforeSchedule ¶
func (*InstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)
func (*InstancesManager) NewRuntimeInstance ¶
func (*InstancesManager) StartVM ¶
func (*InstancesManager) StartVM() error
func (*InstancesManager) StopVM ¶
func (*InstancesManager) StopVM() error
type RuntimeInstance ¶
type RuntimeInstance struct {
ChainId string
Log protocol.Logger
}
RuntimeInstance gasm runtime
func (*RuntimeInstance) Invoke ¶
func (r *RuntimeInstance) Invoke(contractId *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
Source Files
¶
- runtime.go
Click to show internal directories.
Click to hide internal directories.