Documentation ¶
Index ¶
- type ConfigBase
- type VMBase
- func (v *VMBase) AfterRun() error
- func (v *VMBase) BeforeDeploy() error
- func (v *VMBase) BeforeGet() error
- func (v *VMBase) BeforeRun() error
- func (v *VMBase) BeforeSet() error
- func (v *VMBase) Close()
- func (v *VMBase) DeployContract() error
- func (v *VMBase) GetContext() ([]byte, error)
- func (v *VMBase) LogStatus() (int64, error)
- func (v *VMBase) Run(ctx fcom.TxContext) (*fcom.Result, error)
- func (v *VMBase) SetContext(ctx []byte) error
- func (v *VMBase) Statistic(from, to int64) (*fcom.RemoteStatistic, error)
- func (v *VMBase) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigBase ¶
type ConfigBase struct { // Path is the path of script file Path string // Ctx is the context of vm Ctx fcom.VMContext }
ConfigBase define base config in vm.
type VMBase ¶
type VMBase struct { ConfigBase Logger *logging.Logger }
VMBase the base vm for support base config.
func NewVMBase ¶
func NewVMBase(config ConfigBase) *VMBase
NewVMBase use given config create VMBase.
func (*VMBase) BeforeDeploy ¶
BeforeDeploy will call before deploy contract.
func (*VMBase) DeployContract ¶
DeployContract deploy contract.
func (*VMBase) GetContext ¶
GetContext generate context for execute tx in vm.
func (*VMBase) SetContext ¶
SetContext set context for execute tx in vm, the ctx is generated by GetContext.
Click to show internal directories.
Click to hide internal directories.