Struct evm::ActionParams [−][src]
pub struct ActionParams { pub code_address: H160, pub code_hash: Option<H256>, pub address: H160, pub sender: H160, pub origin: H160, pub gas: U256, pub gas_price: U256, pub value: ActionValue, pub code: Option<Arc<Vec<u8>>>, pub data: Option<Vec<u8>>, pub call_type: CallType, pub params_type: ParamsType, }
Action (call/create) input params. Everything else should be specified in Externalities.
Fields
code_address: H160
Address of currently executed code.
code_hash: Option<H256>
Hash of currently executed code.
address: H160
Receive address. Usually equal to code_address, except when called using CALLCODE.
sender: H160
Sender of current part of the transaction.
origin: H160
Transaction initiator.
gas: U256
Gas paid up front for transaction execution
gas_price: U256
Gas price.
value: ActionValue
Transaction value.
code: Option<Arc<Vec<u8>>>
Code being executed.
data: Option<Vec<u8>>
Input data.
call_type: CallType
Type of call
params_type: ParamsType
Param types encoding
Trait Implementations
impl From<Transaction> for ActionParams
[src]
impl From<Transaction> for ActionParams
fn from(t: Transaction) -> ActionParams
[src]
fn from(t: Transaction) -> ActionParams
Performs the conversion.
impl Default for ActionParams
[src]
impl Default for ActionParams
fn default() -> ActionParams
[src]
fn default() -> ActionParams
Returns default ActionParams initialized with zeros
impl Clone for ActionParams
[src]
impl Clone for ActionParams
fn clone(&self) -> ActionParams
[src]
fn clone(&self) -> ActionParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ActionParams
[src]
impl Debug for ActionParams
Auto Trait Implementations
impl Send for ActionParams
impl Send for ActionParams
impl Sync for ActionParams
impl Sync for ActionParams