canic_core/interface/
mod.rs1pub mod ck;
5pub mod ic;
6pub mod icrc;
7
8pub mod prelude {
9 pub use crate::{
10 cdk::{
11 api::{canister_self, msg_caller},
12 candid::CandidType,
13 types::{Account, Int, Nat, Principal, Subaccount},
14 utils::time::now_secs,
15 },
16 ids::CanisterRole,
17 interface::{InterfaceError, ic::call::Call},
18 log,
19 log::Level,
20 types::Cycles,
21 };
22 pub use serde::{Deserialize, Serialize};
23}
24
25use thiserror::Error as ThisError;
26
27#[derive(Debug, ThisError)]
33pub enum InterfaceError {
34 #[error("wasm hash matches")]
35 WasmHashMatches,
36}