Expand description
Helpers that build requests routed through the root canister.
Non-root canisters submit orchestration requests to root using the
canic_response endpoint. This module owns the request envelope and
high-level helpers for creating new canisters, triggering upgrades, or
moving cycles between principals.
Structs§
- Create
Canister Request - CreateCanisterRequest
Payload for
Request::CreateCanister - Create
Canister Response - CreateCanisterResponse Result of creating and installing a new canister.
- Cycles
Request - CyclesRequest
Payload for
Request::Cycles - Cycles
Response - CyclesResponse Result of transferring cycles to a child canister
- Upgrade
Canister Request - UpgradeCanisterRequest
Payload for
Request::UpgradeCanister - Upgrade
Canister Response - UpgradeCanisterResponse Result of an upgrade request (currently empty, reserved for metadata)
Enums§
- Create
Canister Parent - CreateCanisterParent Parent-location choices for a new canister
- Request
- Request Root-directed orchestration commands.
- Request
OpsError - RequestOpsError Errors produced during request dispatch or response handling
- Response
- Response Response payloads produced by root for orchestration requests.
Functions§
- create_
canister_ request - Ask root to create and install a canister of the given type.
- cycles_
request - Request a cycle transfer from root to the current canister.
- response
- Handle a root-bound orchestration request and produce a
Response. - upgrade_
canister_ request - Ask root to upgrade a child canister to its latest registered WASM.