espresso_api/v1/token.rs
1//! V1 token API.
2//!
3//! Mirrors the tide-disco endpoints defined in `crates/espresso/node/api/token.toml`.
4
5use async_trait::async_trait;
6
7#[async_trait]
8pub trait TokenApi {
9 async fn total_minted_supply(&self) -> anyhow::Result<String>;
10 async fn circulating_supply(&self) -> anyhow::Result<String>;
11 async fn circulating_supply_ethereum(&self) -> anyhow::Result<String>;
12 async fn total_issued_supply(&self) -> anyhow::Result<String>;
13 async fn total_reward_distributed(&self) -> anyhow::Result<String>;
14}