pacifica_rust_sdk 0.1.2

Rust SDK for pacifica.fi exchange
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
use solana_sdk::pubkey::Pubkey;

use crate::{common::utils::Validatable, make_validatable};

make_validatable!(GetPointsPayload);
#[serde_as]
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct GetPointsPayload {
    #[serde_as(as = "serde_with::DisplayFromStr")]
    pub user: Pubkey,
}