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 code_version: U256,
pub data: Option<Bytes>,
pub action_type: ActionType,
pub params_type: ParamsType,
}Expand description
Action (call/create) input params. Everything else should be specified in Externalities.
Fields§
§code_address: AddressAddress of currently executed code.
code_hash: Option<H256>Hash of currently executed code.
address: AddressReceive address. Usually equal to code_address, except when called using CALLCODE.
sender: AddressSender of current part of the transaction.
origin: AddressTransaction initiator.
gas: U256Gas paid up front for transaction execution
gas_price: U256Gas price.
value: ActionValueTransaction value.
code: Option<Arc<Bytes>>Code being executed.
code_version: U256Code version being executed.
data: Option<Bytes>Input data.
action_type: ActionTypeType of action (e.g. CALL, DELEGATECALL, CREATE, etc.)
params_type: ParamsTypeParam types encoding
Trait Implementations§
Source§impl Clone for ActionParams
impl Clone for ActionParams
Source§fn clone(&self) -> ActionParams
fn clone(&self) -> ActionParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionParams
impl Debug for ActionParams
Source§impl Default for ActionParams
impl Default for ActionParams
Source§fn default() -> ActionParams
fn default() -> ActionParams
Returns default ActionParams initialized with zeros
Source§impl From<Transaction> for ActionParams
impl From<Transaction> for ActionParams
Source§fn from(t: Transaction) -> Self
fn from(t: Transaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionParams
impl RefUnwindSafe for ActionParams
impl Send for ActionParams
impl Sync for ActionParams
impl Unpin for ActionParams
impl UnwindSafe for ActionParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more