1pub use handler::*;
2pub use interface::*;
3pub use mock::*;
4pub use setup::*;
5
6mod handler;
7mod inject;
8mod interface;
9mod mock;
10mod setup;
11#[cfg(target_family = "wasm")]
12mod wasm;
13
14#[cfg(not(target_family = "wasm"))]
16#[deprecated(since = "0.4.7", note = "mock_principals is deprecated.")]
17pub mod mock_principals {
18 use crate::Principal;
19
20 #[inline]
21 pub fn alice() -> Principal {
22 Principal::from_text("sgymv-uiaaa-aaaaa-aaaia-cai").unwrap()
23 }
24
25 #[inline]
26 pub fn bob() -> Principal {
27 Principal::from_text("ai7t5-aibaq-aaaaa-aaaaa-c").unwrap()
28 }
29
30 #[inline]
31 pub fn john() -> Principal {
32 Principal::from_text("hozae-racaq-aaaaa-aaaaa-c").unwrap()
33 }
34
35 #[inline]
36 pub fn xtc() -> Principal {
37 Principal::from_text("aanaa-xaaaa-aaaah-aaeiq-cai").unwrap()
38 }
39}
40
41#[inline(always)]
43#[deprecated(note = "get_context is deprecated use ic_kit::ic::*")]
44pub fn get_context() -> &'static impl Context {
45 #[cfg(not(target_family = "wasm"))]
46 return inject::get_context();
47 #[cfg(target_family = "wasm")]
48 return wasm::IcContext::context();
49}
50
51pub mod ic;
53pub mod interfaces;
55pub mod stable;
57pub mod storage;
59
60#[cfg(not(target_family = "wasm"))]
62pub use async_std::test as async_test;
63pub use ic_cdk::api::call::{CallResult, RejectionCode};
64pub use ic_cdk::export::candid;
65pub use ic_cdk::export::Principal;
66pub use ic_kit_macros as macros;
67
68pub mod ic_call_api_v0_ {
71 pub use ic_cdk::api::call::arg_data;
72 pub use ic_cdk::api::call::reject;
73 pub use ic_cdk::api::call::reply;
74}