Struct vm::ActionParams [−][src]
pub struct ActionParams {
pub code_address: Address,
pub code_hash: Option<H256>,
pub address: Address,
pub sender: Address,
pub origin: Address,
pub gas: U256,
pub gas_price: U256,
pub value: ActionValue,
pub code: Option<Arc<Bytes>>,
pub data: Option<Bytes>,
pub call_type: CallType,
pub params_type: ParamsType,
}Action (call/create) input params. Everything else should be specified in Externalities.
Fields
code_address: Address
Address of currently executed code.
code_hash: Option<H256>
Hash of currently executed code.
address: Address
Receive address. Usually equal to code_address, except when called using CALLCODE.
sender: Address
Sender of current part of the transaction.
origin: Address
Transaction initiator.
gas: U256
Gas paid up front for transaction execution
gas_price: U256
Gas price.
value: ActionValue
Transaction value.
code: Option<Arc<Bytes>>
Code being executed.
data: Option<Bytes>
Input data.
call_type: CallType
Type of call
params_type: ParamsType
Param types encoding
Trait Implementations
impl Clone for ActionParams[src]
impl Clone for ActionParamsfn clone(&self) -> ActionParams[src]
fn clone(&self) -> ActionParamsReturns 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 ActionParamsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for ActionParams[src]
impl Default for ActionParamsfn default() -> ActionParams[src]
fn default() -> ActionParamsReturns default ActionParams initialized with zeros
impl From<Transaction> for ActionParams[src]
impl From<Transaction> for ActionParamsfn from(t: Transaction) -> Self[src]
fn from(t: Transaction) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ActionParams
impl Send for ActionParamsimpl Sync for ActionParams
impl Sync for ActionParams