Struct sputnikvm::UntrustedTransaction
source · pub struct UntrustedTransaction {
pub caller: AccountCommitment,
pub gas_price: Gas,
pub gas_limit: Gas,
pub action: TransactionAction,
pub value: U256,
pub input: Rc<Vec<u8>>,
}
Expand description
Represents an untrusted Ethereum transaction.
Fields
caller: AccountCommitment
The caller. Must be attached with its commitment,
gas_price: Gas
Transaction gas price.
gas_limit: Gas
Transaction gas limit.
action: TransactionAction
Action CALL/CREATE of the transaction.
value: U256
Value sent with this transaction.
input: Rc<Vec<u8>>
Transaction input.
Implementations
sourceimpl UntrustedTransaction
impl UntrustedTransaction
sourcepub fn to_valid<P: Patch>(&self) -> Result<ValidTransaction, PreExecutionError>
pub fn to_valid<P: Patch>(&self) -> Result<ValidTransaction, PreExecutionError>
Convert to a valid transaction.
Trait Implementations
sourceimpl Clone for UntrustedTransaction
impl Clone for UntrustedTransaction
sourcefn clone(&self) -> UntrustedTransaction
fn clone(&self) -> UntrustedTransaction
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 moreAuto Trait Implementations
impl RefUnwindSafe for UntrustedTransaction
impl !Send for UntrustedTransaction
impl !Sync for UntrustedTransaction
impl Unpin for UntrustedTransaction
impl UnwindSafe for UntrustedTransaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more