carbon-moonshot-decoder 1.0.0

Moonshot Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This code was AUTOGENERATED using the Codama library.
use {crate::types::TradeType, solana_pubkey::Pubkey};
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct TradeEvent {
    pub amount: u64,
    pub collateral_amount: u64,
    pub dex_fee: u64,
    pub helio_fee: u64,
    pub allocation: u64,
    pub curve: Pubkey,
    pub cost_token: Pubkey,
    pub sender: Pubkey,
    pub r#type: TradeType,
    pub label: String,
}