Skip to main content

Crate ic_canister_runtime

Crate ic_canister_runtime 

Source
Expand description

Library to abstract the canister runtime so that code making requests to canisters can be reused:

  • in production using ic_cdk,
  • in unit tests by mocking this trait,
  • in integration tests by implementing this trait for PocketIc.

Structs§

IcRuntime
Runtime when interacting with a canister running on the Internet Computer.
StubRuntime
An implementation of Runtime that returns pre-defined results from a queue. This runtime is primarily intended for testing purposes.

Enums§

IcError
Error returned by the Internet Computer when making an inter-canister call.

Traits§

Runtime
Abstract the canister runtime so that code making requests to canisters can be reused: