Documentation ¶
Index ¶
- Constants
- type OriginalIeleVM
- func (vm *OriginalIeleVM) G0Call(input *vmi.ContractCallInput) (*big.Int, error)
- func (vm *OriginalIeleVM) G0Create(input *vmi.ContractCreateInput) (*big.Int, error)
- func (vm *OriginalIeleVM) RunSmartContractCall(input *vmi.ContractCallInput) (*vmi.VMOutput, error)
- func (vm *OriginalIeleVM) RunSmartContractCreate(input *vmi.ContractCreateInput) (*vmi.VMOutput, error)
- func (vm *OriginalIeleVM) SetTracePretty()
- type Schedule
Constants ¶
const AddressLength = 20
AddressLength is the account address length expected by the VM.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OriginalIeleVM ¶
type OriginalIeleVM struct {
// contains filtered or unexported fields
}
OriginalIeleVM defines an object containing the state of the Iele VM. This is the original version.
func NewOriginalIeleVM ¶
func NewOriginalIeleVM(blockchainHook vmi.BlockchainHook, cryptoHook vmi.CryptoHook, schedule Schedule) *OriginalIeleVM
NewOriginalIeleVM creates new original Iele VM instance
func (*OriginalIeleVM) G0Call ¶
func (vm *OriginalIeleVM) G0Call(input *vmi.ContractCallInput) (*big.Int, error)
G0Call yields the initial gas cost of calling an existing smart contract
func (*OriginalIeleVM) G0Create ¶
func (vm *OriginalIeleVM) G0Create(input *vmi.ContractCreateInput) (*big.Int, error)
G0Create yields the initial gas cost of creating a new smart contract
func (*OriginalIeleVM) RunSmartContractCall ¶
func (vm *OriginalIeleVM) RunSmartContractCall(input *vmi.ContractCallInput) (*vmi.VMOutput, error)
RunSmartContractCall computes the result of a smart contract call and how the system must change after the execution
func (*OriginalIeleVM) RunSmartContractCreate ¶
func (vm *OriginalIeleVM) RunSmartContractCreate(input *vmi.ContractCreateInput) (*vmi.VMOutput, error)
RunSmartContractCreate computes how a smart contract creation should be performed
func (*OriginalIeleVM) SetTracePretty ¶
func (vm *OriginalIeleVM) SetTracePretty()
SetTracePretty turns on pretty trace creation, use for debugging only
type Schedule ¶ added in v0.0.8
type Schedule int
Schedule defines a IELE gas model type
func ParseSchedule ¶ added in v0.0.8
ParseSchedule yields the schedule with the given name. It is used in tests.