use std::sync::Arc;
use crate::client::HttpCore;
use crate::error::Result;
use crate::types::*;
#[derive(Debug, Clone)]
pub struct DeployerHunter {
pub(crate) core: Arc<HttpCore>,
}
impl DeployerHunter {
pub async fn leaderboard(
&self,
params: &DeployerLeaderboardParams,
) -> Result<DeployerLeaderboardResponse> {
self.core
.get("/rhc/deployer-hunter/leaderboard", params)
.await
}
pub async fn profile(&self, address: &str) -> Result<DeployerProfileResponse> {
self.core
.get(&format!("/rhc/deployer-hunter/{}", address), &())
.await
}
}