pub struct ReplacementCore {
pub context: ReplacementContext,
pub slot: u64,
pub batch_index: u32,
pub original_signature: Signature,
pub original_failed: bool,
pub outcome: String,
pub category: Option<String>,
pub error: Option<String>,
}Expand description
The identity and outcome every notification carries, whatever its kind. Flattened into the notification’s top level.
Fields§
§context: ReplacementContext§slot: u64The slot the stand-in was simulated in.
batch_index: u32Batch within its slot that the original swap executed in. A reroute through the router is
simulated just before this batch; a probe and the replayed original are simulated earlier,
at the pricing point (see VenueNotification::quote_lag_blocks).
original_signature: SignatureThe original swap’s transaction signature, base58.
original_failed: boolThe original swap failed onchain, so it filled nothing. Defaults to false.
outcome: Stringfilled, reverted, unattributed, unsimulatable or unresolved, for every kind. A
string rather than an enum, so a value the server adds later still decodes.
category: Option<String>The failure bucket; absent unless it failed. Group failures by it.
error: Option<String>The error message behind Self::category. err on the wire.