canic_core/ops/ic/
mod.rs

1//! IC-related ops helpers.
2//!
3//! This module groups low-level IC concerns (management canister calls, ICC call
4//! wrappers, HTTP outcalls, timers) under a single namespace to keep `ops/`
5//! navigable.
6
7pub mod call;
8pub mod http;
9pub mod icrc;
10pub mod mgmt;
11pub mod provision;
12pub mod signature;
13pub mod timer;
14
15pub use mgmt::*;
16
17use crate::{Error, ThisError, ops::OpsError};
18
19///
20/// IcOpsError
21///
22
23#[derive(Debug, ThisError)]
24pub enum IcOpsError {
25    #[error(transparent)]
26    ProvisionOpsError(#[from] provision::ProvisionOpsError),
27
28    #[error(transparent)]
29    SignatureOpsError(#[from] signature::SignatureOpsError),
30}
31
32impl From<IcOpsError> for Error {
33    fn from(err: IcOpsError) -> Self {
34        OpsError::from(err).into()
35    }
36}