pub enum SwapExecutionErrorCode {
InvalidArgument,
UnsupportedExecution,
ProgramMismatch,
InsufficientAllowance,
SimulationReverted,
InvalidSimulation,
}Expand description
Fixed domain error codes for unsigned EVM swap preparation and simulation.
Variants§
InvalidArgument
The execution request shape or scalar value is invalid.
UnsupportedExecution
The selected records do not have an approved execution capability.
ProgramMismatch
A reviewed router binding did not match the selected records.
InsufficientAllowance
The caller’s current token allowance is below the requested amount.
SimulationReverted
The final router simulation returned a recognized execution revert.
InvalidSimulation
A preflight or final simulation response was malformed or inconsistent.
Implementations§
Source§impl SwapExecutionErrorCode
impl SwapExecutionErrorCode
Sourcepub const SWAP_EXECUTION_INVALID_ARGUMENT: Self = Self::InvalidArgument
pub const SWAP_EXECUTION_INVALID_ARGUMENT: Self = Self::InvalidArgument
Stable spelling for Self::InvalidArgument.
Sourcepub const SWAP_UNSUPPORTED_EXECUTION: Self = Self::UnsupportedExecution
pub const SWAP_UNSUPPORTED_EXECUTION: Self = Self::UnsupportedExecution
Stable spelling for Self::UnsupportedExecution.
Sourcepub const SWAP_PROGRAM_MISMATCH: Self = Self::ProgramMismatch
pub const SWAP_PROGRAM_MISMATCH: Self = Self::ProgramMismatch
Stable spelling for Self::ProgramMismatch.
Sourcepub const SWAP_INSUFFICIENT_ALLOWANCE: Self = Self::InsufficientAllowance
pub const SWAP_INSUFFICIENT_ALLOWANCE: Self = Self::InsufficientAllowance
Stable spelling for Self::InsufficientAllowance.
Sourcepub const SWAP_SIMULATION_REVERTED: Self = Self::SimulationReverted
pub const SWAP_SIMULATION_REVERTED: Self = Self::SimulationReverted
Stable spelling for Self::SimulationReverted.
Sourcepub const SWAP_INVALID_SIMULATION: Self = Self::InvalidSimulation
pub const SWAP_INVALID_SIMULATION: Self = Self::InvalidSimulation
Stable spelling for Self::InvalidSimulation.
Trait Implementations§
Source§impl Clone for SwapExecutionErrorCode
impl Clone for SwapExecutionErrorCode
impl Copy for SwapExecutionErrorCode
Source§impl Debug for SwapExecutionErrorCode
impl Debug for SwapExecutionErrorCode
Source§impl Display for SwapExecutionErrorCode
impl Display for SwapExecutionErrorCode
impl Eq for SwapExecutionErrorCode
Source§impl PartialEq for SwapExecutionErrorCode
impl PartialEq for SwapExecutionErrorCode
impl StructuralPartialEq for SwapExecutionErrorCode
Auto Trait Implementations§
impl Freeze for SwapExecutionErrorCode
impl RefUnwindSafe for SwapExecutionErrorCode
impl Send for SwapExecutionErrorCode
impl Sync for SwapExecutionErrorCode
impl Unpin for SwapExecutionErrorCode
impl UnsafeUnpin for SwapExecutionErrorCode
impl UnwindSafe for SwapExecutionErrorCode
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