1 unstable release
new 0.1.0 | Mar 14, 2025 |
---|
#3 in #subcanister
34KB
659 lines
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.
Dependencies
~8–16MB
~222K SLoC