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 },
14 ids::CanisterRole,
15 interface::{InterfaceError, ic::call::Call},
16 log,
17 log::Level,
18 types::{Account, Cycles, Int, Nat, Principal, Subaccount},
19 utils::time::now_secs,
20 };
21 pub use serde::{Deserialize, Serialize};
22}
23
24use thiserror::Error as ThisError;
25
26#[derive(Debug, ThisError)]
32pub enum InterfaceError {
33 #[error("wasm hash matches")]
34 WasmHashMatches,
35}