use std::sync::Arc;
use crate::client::HttpCore;
use crate::error::Result;
use crate::types::*;
#[derive(Debug, Clone)]
pub struct Alpha {
pub(crate) core: Arc<HttpCore>,
}
impl Alpha {
pub async fn leaderboard(
&self,
params: &AlphaLeaderboardParams,
) -> Result<AlphaLeaderboardResponse> {
self.core.get("/alpha/leaderboard", params).await
}
pub async fn wallet(&self, wallet: &str) -> Result<AlphaWalletResponse> {
self.core
.get(&format!("/alpha/{}", wallet), &())
.await
}
pub async fn linked(&self, wallet: &str) -> Result<AlphaLinkedResponse> {
self.core
.get(&format!("/alpha/{}/linked", wallet), &())
.await
}
pub async fn cap_table(&self, mint: &str) -> Result<AlphaCapTableResponse> {
self.core
.get(&format!("/tokens/{}/cap-table", mint), &())
.await
}
pub async fn buyer_quality(&self, mint: &str) -> Result<AlphaBuyerQualityResponse> {
self.core
.get(&format!("/tokens/{}/buyer-quality", mint), &())
.await
}
}