use crate::{
dispatch::icrc21::Icrc21Dispatcher,
domain::icrc::icrc10::supported_standards,
dto::icrc21::{ConsentMessageRequest, ConsentMessageResponse},
ops::config::ConfigOps,
};
pub struct Icrc10Query;
impl Icrc10Query {
#[must_use]
pub fn supported_standards() -> Vec<(String, String)> {
supported_standards(ConfigOps::current_icrc21_enabled())
}
}
pub struct Icrc21Query;
impl Icrc21Query {
#[must_use]
pub fn consent_message(req: ConsentMessageRequest) -> ConsentMessageResponse {
Icrc21Dispatcher::consent_message(req)
}
}