-
Notifications
You must be signed in to change notification settings - Fork 0
/
root_inittrail.did
43 lines (43 loc) · 1.17 KB
/
root_inittrail.did
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
type CreatePlanetSetting =
record {
avatar: text;
code: text;
desc: text;
name: text;
owner: principal;
};
type CreatePlanetResp =
variant {
Err: text;
Ok: record {id: principal;};
};
type CanisterInfo =
record {
id: principal;
initArgs: blob;
launchTrail: principal;
moduleHash: blob;
owner: principal;
};
service : {
canisterAccount: () -> (text) query;
createPlanet: (CreatePlanetSetting) -> (CreatePlanetResp);
initTrail: (int) -> (int);
queryAgreePayee: () -> (text) query;
queryCanisterCount: () -> (int) query;
queryCanisterIds: () -> (vec text) query;
queryCanisterPids: () -> (vec principal) query;
queryCanisters: () -> (vec CanisterInfo) query;
queryTrailPids: () -> (vec principal) query;
queryTrailWasmHash: () -> (text) query;
queryWasmHash: () -> (text) query;
setAgreePayee: (blob) -> () oneway;
setInviter: (principal) -> () oneway;
setOwner: (principal) -> () oneway;
setTrailWasm: (blob) -> () oneway;
setUserRouter: (principal) -> () oneway;
setWasm: (blob) -> () oneway;
upgradePlanet: (principal) -> (bool);
wallet_balance: () -> (nat) query;
wallet_receive: () -> (record {accepted: nat64;});
}