Struct vm::ActionParams
source · [−]pub struct ActionParams {Show 13 fields
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,
pub access_list: AccessList,
}
Expand description
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
access_list: AccessList
Current access list
Trait Implementations
sourceimpl Clone for ActionParams
impl Clone for ActionParams
sourcefn clone(&self) -> ActionParams
fn clone(&self) -> ActionParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ActionParams
impl Debug for ActionParams
sourceimpl Default for ActionParams
impl Default for ActionParams
sourcefn default() -> ActionParams
fn default() -> ActionParams
Returns default ActionParams initialized with zeros
sourceimpl From<Transaction> for ActionParams
impl From<Transaction> for ActionParams
sourcefn from(t: Transaction) -> Self
fn from(t: Transaction) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ActionParams
impl !Send for ActionParams
impl !Sync for ActionParams
impl Unpin for ActionParams
impl !UnwindSafe for ActionParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more