Struct sputnikvm::ContextVM [] [src]

pub struct ContextVM<M, P: Patch> { /* fields omitted */ }

A VM that executes using a context and block information.

Methods

impl<M: Memory + Default, P: Patch> ContextVM<M, P>
[src]

[src]

Create a new VM using the given context, block header and patch.

[src]

Create a new VM with the given account state and blockhash state.

[src]

Create a new VM with customized initialization code.

[src]

Create a new VM with the result of the previous VM. This is usually used by transaction for chainning them.

[src]

Returns the current state of the VM.

[src]

Returns the current runtime machine.

[src]

Add a new context history hook.

Trait Implementations

impl<M: Memory + Default, P: Patch> VM for ContextVM<M, P>
[src]

[src]

Commit an account information to this VM. This should only be used when receiving RequireError. Read more

[src]

Commit a block hash to this VM. This should only be used when receiving RequireError. Read more

[src]

Returns the current status of the VM.

[src]

Read the next instruction to be executed.

[src]

Read the next opcode to be executed.

[src]

Run one instruction and return. If it succeeds, VM status can still be Running. If the call stack has more than one items, this will only executes the last items' one single instruction. Read more

[src]

Run instructions until it reaches a RequireError or exits. If this function succeeds, the VM status can only be either ExitedOk or ExitedErr. Read more

[src]

Returns the changed or committed accounts information up to current execution status. Read more

[src]

Returns all fetched or modified addresses.

[src]

Returns the out value, if any.

[src]

Returns the available gas of this VM.

[src]

Returns the refunded gas of this VM.

[src]

Returns logs to be appended to the current block if the user decided to accept the running status of this VM. Read more

[src]

Returns all removed account addresses as for current VM execution.

[src]

Returns the real used gas by the transaction or the VM context. Only available when the status of the VM is exited. Otherwise returns zero. Read more