canic_core/infra/
mod.rs

1pub mod ic;
2
3use crate::ThisError;
4
5///
6/// Prelude
7///
8
9pub mod prelude {
10    pub use crate::{
11        cdk::{
12            api::{canister_self, msg_caller},
13            candid::CandidType,
14            types::{Account, Cycles, Int, Nat, Principal, Subaccount},
15        },
16        ids::CanisterRole,
17        log,
18        log::{Level, Topic},
19    };
20    pub use serde::{Deserialize, Serialize};
21}
22
23///
24/// InfraError
25///
26
27#[derive(Debug, ThisError)]
28pub enum InfraError {
29    #[error(transparent)]
30    IcInfraError(#[from] ic::IcInfraError),
31}