Crate vvm

Source
Expand description

Vapory virtual machine.

Re-exports§

pub use self::vvm::Finalize;
pub use self::vvm::FinalizationResult;
pub use self::vvm::CostType;
pub use self::factory::Factory;

Modules§

factory
Vvm factory.
interpreter
Rust VM implementation
vvm
Vvm interface.

Macros§

vvm_test
Create tests by injecting different VM factories
vvm_test_ignore
Create ignored tests by injecting different VM factories

Structs§

ActionParams
Action (call/create) input params. Everything else should be specified in Externalities.
EnvInfo
Information concerning the execution environment for a message-call/contract-creation.
InstructionInfo
VVM instruction information.
ReturnData
Return data buffer. Holds memory from a previous call and a slice into that memory.
Schedule
Definition of the cost schedule and other parameterisations for the VVM.

Enums§

ActionType
The type of the instruction.
CleanDustMode
Dust accounts cleanup mode.
ContractCreateResult
Result of externalities create function.
CreateContractAddress
Specifies how an address is calculated for a new contract.
GasLeft
Gas Left: either it is a known value, or it needs to be computed by processing a return instruction.
Instruction
Virtual machine bytecode instruction.
MessageCallResult
Result of externalities call function.

Traits§

Ext
Externalities interface for VVMs