Module ic

Module ic 

Source
Expand description

IC Interfaces Thin wrappers around the management canister and network-specific helpers.

Re-exports§

pub use helper::*;

Modules§

call
canister
cycles
helper
icp
network
sns
timer

Functions§

call_and_decode
Calls a method on a canister and candid-decodes the response into T.
canister_cycle_balance
Returns the local canister’s cycle balance (cheap).
canister_status
Query the management canister for a canister’s status.
delete_canister
Deletes a canister (code + controllers) via the management canister.
deposit_cycles
Deposits cycles into a canister.
get_current_subnet_pid
Queries the NNS registry for the subnet that this canister belongs to.
get_cycles
Gets a canister’s cycle balance (expensive: calls mgmt canister).
install_code
Installs or upgrades a canister with the given wasm + args.
uninstall_code
Uninstalls code from a canister.