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
One replayed original - the Original shape of ReplacementNotification: the historical
transaction itself, re-run against the state it was quoted at, so the other two kinds are
scored against a number produced the same way rather than against the chain’s.
Fields§
§core: ReplacementCore§comparison: L1ScoreScored at swap scope: net route flow across the whole swap’s pair on L1.
cost: SimCost§route_plan: Option<RoutePlan>The hops this replay produced.
l1_route_plan: Option<RoutePlan>The hops the original took on L1, 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 replayed original produced, 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 Freeze for OriginalNotification
impl RefUnwindSafe for OriginalNotification
impl Send for OriginalNotification
impl Sync for OriginalNotification
impl Unpin for OriginalNotification
impl UnsafeUnpin for OriginalNotification
impl UnwindSafe for OriginalNotification
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