Struct sputnikvm::Context
[−]
[src]
pub struct Context { pub address: Address, pub caller: Address, pub code: Rc<Vec<u8>>, pub data: Rc<Vec<u8>>, pub gas_limit: Gas, pub gas_price: Gas, pub origin: Address, pub value: U256, pub apprent_value: U256, pub is_system: bool, }
A VM context. See the Yellow Paper for more information.
Fields
address: Address
Address that is executing this runtime.
caller: Address
Caller of the runtime.
code: Rc<Vec<u8>>
Code to be executed.
data: Rc<Vec<u8>>
Data associated with this execution.
gas_limit: Gas
Gas limit.
gas_price: Gas
Gas price.
origin: Address
The origin of the context. The same as caller when it is from a transaction.
value: U256
Value passed for this runtime.
apprent_value: U256
Apprent value in the execution context.
is_system: bool
Whether this represents a system call.