pub struct OriginalNotification {
pub core: ReplacementCore,
pub comparison: L1Score,
pub cost: SimCost,
pub route_plan: Option<RoutePlan>,
pub l1_route_plan: Option<RoutePlan>,
pub simulated_output_amount: Option<u64>,
}Expand description
The original swap replayed as the baseline (kind: "original"): the historical transaction
re-run against the state it was quoted at, so the other kinds can be scored against a number
produced the same way rather than against the chain’s.
Fields§
§core: ReplacementCoreThe fields every kind carries, flattened into this object on the wire.
comparison: L1ScoreScored at swap scope: the original swap’s net route flow across the whole swap’s pair.
cost: SimCostWhat replaying the original cost, flattened into this object on the wire.
route_plan: Option<RoutePlan>The hops this replay produced.
l1_route_plan: Option<RoutePlan>The hops the original swap took, decoded the same way, so the two are read against each other rather than against differently-derived numbers.
simulated_output_amount: Option<u64>What the replay produced, in raw output-mint base units, when a single swap’s output could be read off it.
Trait Implementations§
Source§impl Clone for OriginalNotification
impl Clone for OriginalNotification
Source§impl Debug for OriginalNotification
impl Debug for OriginalNotification
Source§impl<'de> Deserialize<'de> for OriginalNotification
impl<'de> Deserialize<'de> for OriginalNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for OriginalNotification
impl Freeze for OriginalNotification
impl Move for OriginalNotification
impl RefUnwindSafe for OriginalNotification
impl Send for OriginalNotificationwhere
RawVecInner: Send,
impl Sync for OriginalNotificationwhere
RawVecInner: Sync,
impl Unpin for OriginalNotification
impl UnsafeUnpin for OriginalNotificationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RouteHop>: UnsafeUnpin,
impl UnwindSafe for OriginalNotificationwhere
RawVecInner: UnwindSafe,
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