pub struct ExecutionOptions {
pub dry_run: bool,
pub storage_overrides: Option<StorageOverrides>,
pub fetch_revert_reason: bool,
}Expand description
Options controlling the behaviour of FyndClient::execute_swap.
Fields§
§dry_run: boolWhen true, simulate the transaction via eth_call and estimate_gas instead of
broadcasting it. The returned ExecutionReceipt resolves immediately with the
simulated settled amount (decoded from the call return data) and the estimated gas cost.
No transaction is submitted to the network.
storage_overrides: Option<StorageOverrides>Storage slot overrides to apply during dry-run simulation. Ignored when dry_run is
false.
fetch_revert_reason: boolWhen true (default), a reverted transaction triggers a debug_traceTransaction call
to retrieve the revert reason, falling back to eth_call if the node does not support
the debug API. Set to false to skip the extra round-trip and return a bare
FyndError::TransactionReverted with only the transaction hash.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionOptions
impl RefUnwindSafe for ExecutionOptions
impl Send for ExecutionOptions
impl Sync for ExecutionOptions
impl Unpin for ExecutionOptions
impl UnsafeUnpin for ExecutionOptions
impl UnwindSafe for ExecutionOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more