Crate ic_kit

Crate ic_kit 

Source

Re-exports§

pub use ic_cdk::export::candid;
pub use ic_kit_macros as macros;

Modules§

ic
APIs/Methods to work with the Internet Computer.
ic_call_api_v0_
ic_cdk APIs to be used with ic-kit-macros only, please don’t use this directly we may decide to change it anytime and break compatability.
interfaces
The type definition of common canisters on the Internet Computer.
mock_principalsDeprecated
A set of mock principal IDs useful for testing.
stable
The APIs for StableReader/StableWriter.
storage
Internal storage abstraction for singletons.

Structs§

Canister
Can be used to represent a canister and different method on the canister.
Method
A method that is constructed using nested calls.
MockContext
A context that could be used to fake/control the behaviour of the IC when testing the canister.
Principal
Generic ID on Internet Computer.
RawHandler
A method which uses Rust closures to handle the calls, it accepts every call.
StableMemoryError
A possible error value when dealing with stable memory.
Watcher
A watcher can be used to inspect the calls made in a call.
WatcherCall

Enums§

RejectionCode
Rejection code from calling another canister.

Traits§

CallHandler
Anything that could be used to simulate a inter-canister call.
Context

Functions§

get_contextDeprecated
Return the IC context depending on the build target.
set_panic_hook
Sets a custom panic hook, uses debug.trace
setup

Type Aliases§

CallResponse
CallResult
The result of a Call.

Attribute Macros§

async_test
async_std::test to be used for async tests when not targeting WASM. Enables an async test function.