-
Notifications
You must be signed in to change notification settings - Fork 86
/
management_service.ts
57 lines (57 loc) · 2.06 KB
/
management_service.ts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* This file is generated from the candid for asset management.
*/
/* tslint:disable */
// @ts-ignore
import type { Principal } from '@dfinity/principal';
export type canister_id = Principal;
export interface canister_settings {
controllers: [] | [Array<Principal>];
freezing_threshold: [] | [bigint];
memory_allocation: [] | [bigint];
compute_allocation: [] | [bigint];
}
export interface definite_canister_settings {
controllers: Array<Principal>;
freezing_threshold: bigint;
memory_allocation: bigint;
compute_allocation: bigint;
}
export type user_id = Principal;
export type wasm_module = Array<number>;
export default interface _SERVICE {
canister_status: (arg_0: { canister_id: canister_id }) => Promise<{
status: { stopped: null } | { stopping: null } | { running: null };
memory_size: bigint;
cycles: bigint;
settings: definite_canister_settings;
module_hash: [] | [Array<number>];
}>;
create_canister: (arg_0: {
settings: [] | [canister_settings];
}) => Promise<{ canister_id: canister_id }>;
delete_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>;
deposit_cycles: (arg_0: { canister_id: canister_id }) => Promise<undefined>;
install_code: (arg_0: {
arg: Array<number>;
wasm_module: wasm_module;
mode: { reinstall: null } | { upgrade: null } | { install: null };
canister_id: canister_id;
}) => Promise<undefined>;
provisional_create_canister_with_cycles: (arg_0: {
settings: [] | [canister_settings];
amount: [] | [bigint];
}) => Promise<{ canister_id: canister_id }>;
provisional_top_up_canister: (arg_0: {
canister_id: canister_id;
amount: bigint;
}) => Promise<undefined>;
raw_rand: () => Promise<Array<number>>;
start_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>;
stop_canister: (arg_0: { canister_id: canister_id }) => Promise<undefined>;
uninstall_code: (arg_0: { canister_id: canister_id }) => Promise<undefined>;
update_settings: (arg_0: {
canister_id: Principal;
settings: canister_settings;
}) => Promise<undefined>;
}