canic_core/spec/mod.rs
1//!
2//! Canonical representations of external IC specs (ICRC, NNS, SNS, etc.).
3//! This module corrals the verbose candid bindings so the rest of the codebase
4//! can import clean wrappers with consistent naming.
5//!
6
7pub mod ic;
8pub mod icrc;
9pub mod nns;
10pub mod sns;
11
12/// Shared imports for spec modules so type definitions stay concise.
13pub mod prelude {
14 pub use crate::{
15 cdk::{
16 candid::{CandidType, Principal},
17 types::{Account, Int, Nat, Subaccount},
18 },
19 ids::CanisterRole,
20 };
21 pub use serde::Deserialize;
22 pub use serde_bytes::ByteBuf;
23}