use crate::error::Error;
use crate::seed::client::SeedClient;
use crate::seed::config::CallOptions;
use crate::seed::models::CustodyEpoch;
pub struct CustodyResource<'c> {
pub(crate) client: &'c SeedClient,
}
impl<'c> CustodyResource<'c> {
pub async fn epoch(&self) -> Result<CustodyEpoch, Error> {
self.client.request_get("/custody/epoch").await
}
pub async fn epoch_with(&self, opts: CallOptions) -> Result<CustodyEpoch, Error> {
self.client.request_get_opts("/custody/epoch", &opts).await
}
}