pub struct TransactionContext<'a> {
pub chain_id: u64,
pub to: &'a str,
pub calldata: &'a [u8],
pub value: Option<&'a [u8]>,
pub from: Option<&'a str>,
pub implementation_address: Option<&'a str>,
}Expand description
Transaction context for calldata formatting.
Fields§
§chain_id: u64§to: &'a str§calldata: &'a [u8]§value: Option<&'a [u8]>§from: Option<&'a str>§implementation_address: Option<&'a str>For proxy contracts: the implementation address to match descriptors against.
When set, descriptor matching uses this instead of to.
Container value @.to still uses to (the proxy address the user interacts with).
Auto Trait Implementations§
impl<'a> Freeze for TransactionContext<'a>
impl<'a> RefUnwindSafe for TransactionContext<'a>
impl<'a> Send for TransactionContext<'a>
impl<'a> Sync for TransactionContext<'a>
impl<'a> Unpin for TransactionContext<'a>
impl<'a> UnsafeUnpin for TransactionContext<'a>
impl<'a> UnwindSafe for TransactionContext<'a>
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