Skip to main content

VenueNotification

Struct VenueNotification 

Source
pub struct VenueNotification {
Show 13 fields pub core: ReplacementCore, pub comparison: L1Score, pub template: String, pub program: Address, pub hop: ProbedHop, pub quote_tx_index: u32, pub quote_lag_blocks: u32, pub input_mint: Address, pub output_mint: Address, pub amount: u64, pub swap_mode: String, pub template_fill: Option<u64>, pub spent_amount: Option<u64>,
}
Expand description

A venue probe (kind: "directFill"): one hop rerouted directly to a venue through your template, simulated against the state it would have traded on.

A probe prices ONE hop, so the mints and amount here are the hop’s, never the enclosing swap’s.

Fields§

§core: ReplacementCore

The fields every kind carries, flattened into this object on the wire.

§comparison: L1Score

Scored at hop scope, against the probed hop’s own onchain output.

§template: String

The template the hop was rebuilt through.

§program: Address

The program that template’s instruction calls: for one built from an aggregator’s route, the aggregator’s, which several venues share.

§hop: ProbedHop

The hop this priced, as the original swap and the replay ran it.

§quote_tx_index: u32

The transaction of block ReplacementCore::slot the pass that priced this probe ran just before; 0 at the block’s start, its transaction count at its end.

§quote_lag_blocks: u32

Blocks between the block the hop executes in and the one it was priced at.

§input_mint: Address

The mint the hop sells, base58.

§output_mint: Address

The mint the hop buys, base58.

§amount: u64

The hop’s fixed amount, in raw base units: its input for ExactIn, its output for ExactOut.

§swap_mode: String

ExactIn or ExactOut, as SwapMode spells them.

§template_fill: Option<u64>

What the template filled, in raw base units of the measured mint. None unless the probe filled attributably.

§spent_amount: Option<u64>

What the probed template spent of its input; None unless the probe filled attributably.

Trait Implementations§

Source§

impl Clone for VenueNotification

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VenueNotification

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for VenueNotification

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for VenueNotification

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V