Skip to main content

riptide_amm/generated/types/
event.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6
7use borsh::{BorshDeserialize, BorshSerialize};
8use solana_pubkey::Pubkey;
9
10#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
11#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12pub enum Event {
13    SwapExecuted {
14        #[cfg_attr(
15            feature = "serde",
16            serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
17        )]
18        market: Pubkey,
19        amount_in: u64,
20        amount_out: u64,
21        #[cfg_attr(
22            feature = "serde",
23            serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
24        )]
25        input_token_mint: Pubkey,
26        #[cfg_attr(
27            feature = "serde",
28            serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
29        )]
30        output_token_mint: Pubkey,
31    },
32}