canic_core/workflow/icrc/
query.rs1use crate::{
8 dispatch::icrc21::Icrc21Dispatcher,
9 domain::icrc::icrc10::supported_standards,
10 dto::icrc21::{ConsentMessageRequest, ConsentMessageResponse},
11 ops::config::ConfigOps,
12};
13
14pub struct Icrc10Query;
19
20impl Icrc10Query {
21 #[must_use]
22 pub fn supported_standards() -> Vec<(String, String)> {
23 supported_standards(ConfigOps::current_icrc21_enabled())
24 }
25}
26
27pub struct Icrc21Query;
32
33impl Icrc21Query {
34 #[must_use]
35 pub fn consent_message(req: ConsentMessageRequest) -> ConsentMessageResponse {
36 Icrc21Dispatcher::consent_message(req)
37 }
38}