canic_core/workflow/icrc/
query.rs1use crate::{
2 dispatch::icrc21::Icrc21Dispatcher,
3 domain::icrc::icrc10::Icrc10Registry,
4 ops::ic::icrc::{ConsentMessageRequest, ConsentMessageResponse},
5};
6
7pub struct Icrc10Query;
12
13impl Icrc10Query {
14 #[must_use]
15 pub fn supported_standards() -> Vec<(String, String)> {
16 Icrc10Registry::supported_standards()
17 }
18}
19
20pub struct Icrc21Query;
25
26impl Icrc21Query {
27 #[must_use]
28 pub fn consent_message(req: ConsentMessageRequest) -> ConsentMessageResponse {
29 Icrc21Dispatcher::consent_message(req)
30 }
31}