Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstructionsTable ¶
func GetInstructionsTable() [opcodes.MaxOpCodesCount]opCodeInstruction
func Load ¶
func Load()
Types ¶
type ClosureExecute ¶
type ClosureExecute func(ClosureParam) ([]byte, error)
type ClosureParam ¶
type ConstOpGasCostSetting ¶
type ConstOpGasCostSetting [opcodes.MaxOpCodesCount]uint64
type DynamicGasCostSetting ¶
type GasSetting ¶
type GasSetting struct { ActionConstCost [opcodes.MaxOpCodesCount]uint64 NewAccountCost uint64 DynamicCost DynamicGasCostSetting }
func DefaultGasSetting ¶
func DefaultGasSetting() *GasSetting
type IInstructions ¶
type IInstructions interface { ExecuteContract(isCreate bool) ([]byte, uint64, []byte, []byte, error) GetPcCountAndTimeUsed() (uint64, int64) SetGasLimit(uint64) GetGasLeft() uint64 SetReadOnly() IsReadOnly() bool ExitOpCode() opcodes.OpCode }
func New ¶
func New( vm interface{}, stack *stack.Stack, memory *memory.Memory, storage *storage.Storage, context *environment.Context, gasSetting *GasSetting, closureExecute ClosureExecute) IInstructions
Click to show internal directories.
Click to hide internal directories.