-
Notifications
You must be signed in to change notification settings - Fork 26
/
ic.mo
32 lines (30 loc) · 951 Bytes
/
ic.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module {
public type CanisterId = Principal;
public type CanisterSettings = {
controllers : [Principal];
compute_allocation : Nat;
memory_allocation : Nat;
freezing_threshold : Nat;
};
public type ManagementCanister = actor {
create_canister : ({ settings : ?CanisterSettings }) -> async ({
canister_id : CanisterId;
});
install_code : ({
mode : { #install; #reinstall; #upgrade };
canister_id : CanisterId;
wasm_module : Blob;
arg : Blob;
}) -> async ();
update_settings : ({ canister_id : CanisterId; settings : CanisterSettings }) -> async ();
deposit_cycles : ({ canister_id : Principal }) -> async ();
canister_status : ({ canister_id : CanisterId }) -> async ({
status : { #running; #stopping; #stopped };
settings: CanisterSettings;
module_hash: ?Blob;
memory_size: Nat;
cycles: Nat;
idle_cycles_burned_per_day: Nat;
});
};
}