Module ic_utils::interfaces::management_canister::builders

source ·
Expand description

Builder interfaces for some method calls of the management canister.

Structs§

  • A prepared call to install_code.
  • The set of possible canister settings. Similar to DefiniteCanisterSettings, but all the fields are optional.
  • A compute allocation for a canister, represented as a percentage between 0 and 100 inclusive.
  • A builder for a create_canister call.
  • A freezing threshold for a canister. Can be anywhere from 0 to 2^64-1 inclusive.
  • A builder for a ManagementCanister::install call. This automatically selects one-shot installation or chunked installation depending on module size.
  • A builder for an install_chunked_code call.
  • A builder for an install_code call.
  • A memory allocation for a canister. Can be anywhere from 0 to 2^48 (i.e. 256 TiB) inclusive.
  • A reserved cycles limit for a canister. Can be anywhere from 0 to 2^128-1 inclusive.
  • A builder for an update_settings call.
  • A soft limit on the Wasm memory usage of the canister. Update calls, timers, heartbeats, install, and post-upgrade fail if the Wasm memory usage exceeds this limit. The main purpose of this field is to protect against the case when the canister reaches the hard 4GiB limit. Must be a number between 0 and 2^48^ (i.e 256TB), inclusively.

Enums§