Expand description
A library for managing sub-canisters on the Internet Computer.
This library provides functionality to create, manage, and update sub-canisters on the Internet Computer. It handles the lifecycle of canisters including creation, installation, updates, and state management.
§Features
- Create and manage sub-canisters
- Handle canister lifecycle (create, install, update, stop)
- Manage canister controllers and permissions
- Handle cycles allocation and management
§Example
use bity_ic_subcanister_manager::{SubCanisterManager, CanisterState};
// Create a new sub-canister manager
let manager = SubCanisterManager::new(
master_canister_id,
HashMap::new(),
vec![],
vec![],
1_000_000_000, // initial cycles
100_000_000, // reserved cycles
false, // test mode
"commit_hash".to_string(),
wasm_module,
);§License
This project is licensed under the MIT License.
Structs§
- SubCanister
Manager - Manager for handling sub-canisters
Enums§
- Canister
Error - Error types for canister operations
- Canister
State - Represents the current state of a canister
- NewCanister
Error - Error types for canister operations
- NewStorage
Error - Error types for storage operations
Traits§
- Canister
- Trait that must be implemented by canister types