@junobuild/ic-client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/declarations/console/console.did.d.ts +311 -0
- package/dist/declarations/console/console.factory.certified.did.js +326 -0
- package/dist/declarations/console/console.factory.did.js +326 -0
- package/dist/declarations/console/console.factory.did.mjs +326 -0
- package/dist/declarations/deprecated/console-0-0-14.did.d.ts +267 -0
- package/dist/declarations/deprecated/console-0-0-14.factory.did.js +285 -0
- package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +75 -0
- package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +80 -0
- package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +246 -0
- package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +280 -0
- package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +241 -0
- package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +258 -0
- package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +80 -0
- package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +99 -0
- package/dist/declarations/deprecated/mission_control-deprecated-version.did.d.ts +231 -0
- package/dist/declarations/deprecated/mission_control-deprecated-version.factory.did.js +247 -0
- package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +70 -0
- package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +76 -0
- package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +161 -0
- package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +192 -0
- package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +166 -0
- package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +197 -0
- package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +245 -0
- package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +287 -0
- package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +277 -0
- package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +319 -0
- package/dist/declarations/deprecated/orbiter-deprecated-version.did.d.ts +229 -0
- package/dist/declarations/deprecated/orbiter-deprecated-version.factory.did.js +271 -0
- package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +240 -0
- package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +264 -0
- package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +254 -0
- package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +281 -0
- package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +299 -0
- package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +333 -0
- package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +290 -0
- package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +318 -0
- package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +183 -0
- package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +194 -0
- package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +199 -0
- package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +213 -0
- package/dist/declarations/deprecated/satellite-deprecated-no-scope.did.d.ts +183 -0
- package/dist/declarations/deprecated/satellite-deprecated-no-scope.factory.did.js +194 -0
- package/dist/declarations/deprecated/satellite-deprecated-no-scope.factory.did.mjs +192 -0
- package/dist/declarations/deprecated/satellite-deprecated-version.did.d.ts +291 -0
- package/dist/declarations/deprecated/satellite-deprecated-version.factory.did.js +319 -0
- package/dist/declarations/deprecated/satellite-deprecated.did.d.ts +182 -0
- package/dist/declarations/deprecated/satellite-deprecated.factory.did.js +191 -0
- package/dist/declarations/deprecated/satellite-deprecated.factory.did.mjs +191 -0
- package/dist/declarations/mission_control/mission_control.did.d.ts +241 -0
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +259 -0
- package/dist/declarations/mission_control/mission_control.factory.did.js +259 -0
- package/dist/declarations/observatory/observatory.did.d.ts +86 -0
- package/dist/declarations/observatory/observatory.factory.certified.did.js +93 -0
- package/dist/declarations/observatory/observatory.factory.did.js +93 -0
- package/dist/declarations/observatory/observatory.factory.did.mjs +93 -0
- package/dist/declarations/orbiter/orbiter.did.d.ts +277 -0
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +304 -0
- package/dist/declarations/orbiter/orbiter.factory.did.js +320 -0
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +320 -0
- package/dist/declarations/satellite/satellite.did.d.ts +396 -0
- package/dist/declarations/satellite/satellite.factory.certified.did.js +419 -0
- package/dist/declarations/satellite/satellite.factory.did.js +419 -0
- package/dist/declarations/satellite/satellite.factory.did.mjs +419 -0
- package/dist/declarations/sputnik/sputnik.did.d.ts +396 -0
- package/dist/declarations/sputnik/sputnik.factory.certified.did.js +419 -0
- package/dist/declarations/sputnik/sputnik.factory.did.js +419 -0
- package/dist/index.js +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +7 -0
- package/dist/types/api/_agent.api.d.ts +3 -0
- package/dist/types/api/actor.api.d.ts +34 -0
- package/dist/types/api/actor.factory.d.ts +19 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types/actor.d.ts +74 -0
- package/dist/types/utils/agent.utils.d.ts +6 -0
- package/package.json +63 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export const idlFactory = ({IDL}) => {
|
|
2
|
+
const CommitBatch = IDL.Record({
|
|
3
|
+
batch_id: IDL.Nat,
|
|
4
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
5
|
+
chunk_ids: IDL.Vec(IDL.Nat)
|
|
6
|
+
});
|
|
7
|
+
const DeleteControllersArgs = IDL.Record({
|
|
8
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
9
|
+
});
|
|
10
|
+
const Controller = IDL.Record({
|
|
11
|
+
updated_at: IDL.Nat64,
|
|
12
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
13
|
+
created_at: IDL.Nat64,
|
|
14
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
15
|
+
});
|
|
16
|
+
const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
|
|
17
|
+
const StorageConfig = IDL.Record({
|
|
18
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
|
|
19
|
+
});
|
|
20
|
+
const Config = IDL.Record({storage: StorageConfig});
|
|
21
|
+
const Doc = IDL.Record({
|
|
22
|
+
updated_at: IDL.Nat64,
|
|
23
|
+
owner: IDL.Principal,
|
|
24
|
+
data: IDL.Vec(IDL.Nat8),
|
|
25
|
+
created_at: IDL.Nat64
|
|
26
|
+
});
|
|
27
|
+
const HttpRequest = IDL.Record({
|
|
28
|
+
url: IDL.Text,
|
|
29
|
+
method: IDL.Text,
|
|
30
|
+
body: IDL.Vec(IDL.Nat8),
|
|
31
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
|
|
32
|
+
});
|
|
33
|
+
const StreamingCallbackToken = IDL.Record({
|
|
34
|
+
token: IDL.Opt(IDL.Text),
|
|
35
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
36
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
37
|
+
index: IDL.Nat64,
|
|
38
|
+
encoding_type: IDL.Text,
|
|
39
|
+
full_path: IDL.Text
|
|
40
|
+
});
|
|
41
|
+
const StreamingStrategy = IDL.Variant({
|
|
42
|
+
Callback: IDL.Record({
|
|
43
|
+
token: StreamingCallbackToken,
|
|
44
|
+
callback: IDL.Func([], [], [])
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
const HttpResponse = IDL.Record({
|
|
48
|
+
body: IDL.Vec(IDL.Nat8),
|
|
49
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
50
|
+
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
51
|
+
status_code: IDL.Nat16
|
|
52
|
+
});
|
|
53
|
+
const StreamingCallbackHttpResponse = IDL.Record({
|
|
54
|
+
token: IDL.Opt(StreamingCallbackToken),
|
|
55
|
+
body: IDL.Vec(IDL.Nat8)
|
|
56
|
+
});
|
|
57
|
+
const InitAssetKey = IDL.Record({
|
|
58
|
+
token: IDL.Opt(IDL.Text),
|
|
59
|
+
collection: IDL.Text,
|
|
60
|
+
name: IDL.Text,
|
|
61
|
+
encoding_type: IDL.Opt(IDL.Text),
|
|
62
|
+
full_path: IDL.Text
|
|
63
|
+
});
|
|
64
|
+
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
65
|
+
const ListOrderField = IDL.Variant({
|
|
66
|
+
UpdatedAt: IDL.Null,
|
|
67
|
+
Keys: IDL.Null,
|
|
68
|
+
CreatedAt: IDL.Null
|
|
69
|
+
});
|
|
70
|
+
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
71
|
+
const ListPaginate = IDL.Record({
|
|
72
|
+
start_after: IDL.Opt(IDL.Text),
|
|
73
|
+
limit: IDL.Opt(IDL.Nat64)
|
|
74
|
+
});
|
|
75
|
+
const ListParams = IDL.Record({
|
|
76
|
+
order: IDL.Opt(ListOrder),
|
|
77
|
+
matcher: IDL.Opt(IDL.Text),
|
|
78
|
+
paginate: IDL.Opt(ListPaginate)
|
|
79
|
+
});
|
|
80
|
+
const AssetKey = IDL.Record({
|
|
81
|
+
token: IDL.Opt(IDL.Text),
|
|
82
|
+
collection: IDL.Text,
|
|
83
|
+
owner: IDL.Principal,
|
|
84
|
+
name: IDL.Text,
|
|
85
|
+
full_path: IDL.Text
|
|
86
|
+
});
|
|
87
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
88
|
+
modified: IDL.Nat64,
|
|
89
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
90
|
+
total_length: IDL.Nat
|
|
91
|
+
});
|
|
92
|
+
const AssetNoContent = IDL.Record({
|
|
93
|
+
key: AssetKey,
|
|
94
|
+
updated_at: IDL.Nat64,
|
|
95
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
96
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
97
|
+
created_at: IDL.Nat64
|
|
98
|
+
});
|
|
99
|
+
const ListResults = IDL.Record({
|
|
100
|
+
matches_length: IDL.Nat64,
|
|
101
|
+
length: IDL.Nat64,
|
|
102
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent))
|
|
103
|
+
});
|
|
104
|
+
const CustomDomain = IDL.Record({
|
|
105
|
+
updated_at: IDL.Nat64,
|
|
106
|
+
created_at: IDL.Nat64,
|
|
107
|
+
bn_id: IDL.Opt(IDL.Text)
|
|
108
|
+
});
|
|
109
|
+
const ListResults_1 = IDL.Record({
|
|
110
|
+
matches_length: IDL.Nat64,
|
|
111
|
+
length: IDL.Nat64,
|
|
112
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc))
|
|
113
|
+
});
|
|
114
|
+
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
115
|
+
const Permission = IDL.Variant({
|
|
116
|
+
Controllers: IDL.Null,
|
|
117
|
+
Private: IDL.Null,
|
|
118
|
+
Public: IDL.Null,
|
|
119
|
+
Managed: IDL.Null
|
|
120
|
+
});
|
|
121
|
+
const Rule = IDL.Record({
|
|
122
|
+
updated_at: IDL.Nat64,
|
|
123
|
+
max_size: IDL.Opt(IDL.Nat),
|
|
124
|
+
read: Permission,
|
|
125
|
+
created_at: IDL.Nat64,
|
|
126
|
+
write: Permission
|
|
127
|
+
});
|
|
128
|
+
const SetController = IDL.Record({
|
|
129
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
130
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
131
|
+
});
|
|
132
|
+
const SetControllersArgs = IDL.Record({
|
|
133
|
+
controller: SetController,
|
|
134
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
135
|
+
});
|
|
136
|
+
const SetDoc = IDL.Record({
|
|
137
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
138
|
+
data: IDL.Vec(IDL.Nat8)
|
|
139
|
+
});
|
|
140
|
+
const SetRule = IDL.Record({
|
|
141
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
142
|
+
max_size: IDL.Opt(IDL.Nat),
|
|
143
|
+
read: Permission,
|
|
144
|
+
write: Permission
|
|
145
|
+
});
|
|
146
|
+
const Chunk = IDL.Record({
|
|
147
|
+
content: IDL.Vec(IDL.Nat8),
|
|
148
|
+
batch_id: IDL.Nat
|
|
149
|
+
});
|
|
150
|
+
const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
|
|
151
|
+
return IDL.Service({
|
|
152
|
+
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
153
|
+
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
154
|
+
del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
|
|
155
|
+
del_controllers: IDL.Func(
|
|
156
|
+
[DeleteControllersArgs],
|
|
157
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
158
|
+
[]
|
|
159
|
+
),
|
|
160
|
+
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
161
|
+
del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
|
|
162
|
+
get_config: IDL.Func([], [Config], []),
|
|
163
|
+
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
164
|
+
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
165
|
+
http_request_streaming_callback: IDL.Func(
|
|
166
|
+
[StreamingCallbackToken],
|
|
167
|
+
[StreamingCallbackHttpResponse],
|
|
168
|
+
['query']
|
|
169
|
+
),
|
|
170
|
+
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
171
|
+
list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
|
|
172
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
|
|
173
|
+
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
174
|
+
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
175
|
+
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
176
|
+
set_config: IDL.Func([Config], [], []),
|
|
177
|
+
set_controllers: IDL.Func(
|
|
178
|
+
[SetControllersArgs],
|
|
179
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
180
|
+
[]
|
|
181
|
+
),
|
|
182
|
+
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
183
|
+
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
184
|
+
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
185
|
+
upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
|
|
186
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
export const init = ({IDL}) => {
|
|
190
|
+
return [];
|
|
191
|
+
};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
+
import type {IDL} from '@dfinity/candid';
|
|
3
|
+
import type {Principal} from '@dfinity/principal';
|
|
4
|
+
|
|
5
|
+
export interface Account {
|
|
6
|
+
owner: Principal;
|
|
7
|
+
subaccount: [] | [Uint8Array | number[]];
|
|
8
|
+
}
|
|
9
|
+
export interface Config {
|
|
10
|
+
monitoring: [] | [MonitoringConfig];
|
|
11
|
+
}
|
|
12
|
+
export interface Controller {
|
|
13
|
+
updated_at: bigint;
|
|
14
|
+
metadata: Array<[string, string]>;
|
|
15
|
+
created_at: bigint;
|
|
16
|
+
scope: ControllerScope;
|
|
17
|
+
expires_at: [] | [bigint];
|
|
18
|
+
}
|
|
19
|
+
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
|
|
20
|
+
export interface CreateCanisterConfig {
|
|
21
|
+
subnet_id: [] | [Principal];
|
|
22
|
+
name: [] | [string];
|
|
23
|
+
}
|
|
24
|
+
export interface CyclesBalance {
|
|
25
|
+
timestamp: bigint;
|
|
26
|
+
amount: bigint;
|
|
27
|
+
}
|
|
28
|
+
export interface CyclesMonitoring {
|
|
29
|
+
strategy: [] | [CyclesMonitoringStrategy];
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface CyclesMonitoringConfig {
|
|
33
|
+
notification: [] | [DepositedCyclesEmailNotification];
|
|
34
|
+
default_strategy: [] | [CyclesMonitoringStrategy];
|
|
35
|
+
}
|
|
36
|
+
export interface CyclesMonitoringStartConfig {
|
|
37
|
+
orbiters_strategy: [] | [SegmentsMonitoringStrategy];
|
|
38
|
+
mission_control_strategy: [] | [CyclesMonitoringStrategy];
|
|
39
|
+
satellites_strategy: [] | [SegmentsMonitoringStrategy];
|
|
40
|
+
}
|
|
41
|
+
export interface CyclesMonitoringStatus {
|
|
42
|
+
monitored_ids: Array<Principal>;
|
|
43
|
+
running: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface CyclesMonitoringStopConfig {
|
|
46
|
+
satellite_ids: [] | [Array<Principal>];
|
|
47
|
+
try_mission_control: [] | [boolean];
|
|
48
|
+
orbiter_ids: [] | [Array<Principal>];
|
|
49
|
+
}
|
|
50
|
+
export type CyclesMonitoringStrategy = {BelowThreshold: CyclesThreshold};
|
|
51
|
+
export interface CyclesThreshold {
|
|
52
|
+
fund_cycles: bigint;
|
|
53
|
+
min_cycles: bigint;
|
|
54
|
+
}
|
|
55
|
+
export interface DepositCyclesArgs {
|
|
56
|
+
cycles: bigint;
|
|
57
|
+
destination_id: Principal;
|
|
58
|
+
}
|
|
59
|
+
export interface DepositedCyclesEmailNotification {
|
|
60
|
+
to: [] | [string];
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
}
|
|
63
|
+
export type FundingErrorCode =
|
|
64
|
+
| {BalanceCheckFailed: null}
|
|
65
|
+
| {ObtainCyclesFailed: null}
|
|
66
|
+
| {DepositFailed: null}
|
|
67
|
+
| {InsufficientCycles: null}
|
|
68
|
+
| {Other: string};
|
|
69
|
+
export interface FundingFailure {
|
|
70
|
+
timestamp: bigint;
|
|
71
|
+
error_code: FundingErrorCode;
|
|
72
|
+
}
|
|
73
|
+
export interface GetMonitoringHistory {
|
|
74
|
+
to: [] | [bigint];
|
|
75
|
+
from: [] | [bigint];
|
|
76
|
+
segment_id: Principal;
|
|
77
|
+
}
|
|
78
|
+
export interface MissionControlSettings {
|
|
79
|
+
updated_at: bigint;
|
|
80
|
+
created_at: bigint;
|
|
81
|
+
monitoring: [] | [Monitoring];
|
|
82
|
+
}
|
|
83
|
+
export interface Monitoring {
|
|
84
|
+
cycles: [] | [CyclesMonitoring];
|
|
85
|
+
}
|
|
86
|
+
export interface MonitoringConfig {
|
|
87
|
+
cycles: [] | [CyclesMonitoringConfig];
|
|
88
|
+
}
|
|
89
|
+
export interface MonitoringHistory {
|
|
90
|
+
cycles: [] | [MonitoringHistoryCycles];
|
|
91
|
+
}
|
|
92
|
+
export interface MonitoringHistoryCycles {
|
|
93
|
+
deposited_cycles: [] | [CyclesBalance];
|
|
94
|
+
cycles: CyclesBalance;
|
|
95
|
+
funding_failure: [] | [FundingFailure];
|
|
96
|
+
}
|
|
97
|
+
export interface MonitoringHistoryKey {
|
|
98
|
+
segment_id: Principal;
|
|
99
|
+
created_at: bigint;
|
|
100
|
+
nonce: number;
|
|
101
|
+
}
|
|
102
|
+
export interface MonitoringStartConfig {
|
|
103
|
+
cycles_config: [] | [CyclesMonitoringStartConfig];
|
|
104
|
+
}
|
|
105
|
+
export interface MonitoringStatus {
|
|
106
|
+
cycles: [] | [CyclesMonitoringStatus];
|
|
107
|
+
}
|
|
108
|
+
export interface MonitoringStopConfig {
|
|
109
|
+
cycles_config: [] | [CyclesMonitoringStopConfig];
|
|
110
|
+
}
|
|
111
|
+
export interface Orbiter {
|
|
112
|
+
updated_at: bigint;
|
|
113
|
+
orbiter_id: Principal;
|
|
114
|
+
metadata: Array<[string, string]>;
|
|
115
|
+
created_at: bigint;
|
|
116
|
+
settings: [] | [Settings];
|
|
117
|
+
}
|
|
118
|
+
export type Result = {Ok: bigint} | {Err: TransferError};
|
|
119
|
+
export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
|
|
120
|
+
export interface Satellite {
|
|
121
|
+
updated_at: bigint;
|
|
122
|
+
metadata: Array<[string, string]>;
|
|
123
|
+
created_at: bigint;
|
|
124
|
+
satellite_id: Principal;
|
|
125
|
+
settings: [] | [Settings];
|
|
126
|
+
}
|
|
127
|
+
export interface SegmentsMonitoringStrategy {
|
|
128
|
+
ids: Array<Principal>;
|
|
129
|
+
strategy: CyclesMonitoringStrategy;
|
|
130
|
+
}
|
|
131
|
+
export interface SetController {
|
|
132
|
+
metadata: Array<[string, string]>;
|
|
133
|
+
scope: ControllerScope;
|
|
134
|
+
expires_at: [] | [bigint];
|
|
135
|
+
}
|
|
136
|
+
export interface Settings {
|
|
137
|
+
monitoring: [] | [Monitoring];
|
|
138
|
+
}
|
|
139
|
+
export interface Timestamp {
|
|
140
|
+
timestamp_nanos: bigint;
|
|
141
|
+
}
|
|
142
|
+
export interface Tokens {
|
|
143
|
+
e8s: bigint;
|
|
144
|
+
}
|
|
145
|
+
export interface TransferArg {
|
|
146
|
+
to: Account;
|
|
147
|
+
fee: [] | [bigint];
|
|
148
|
+
memo: [] | [Uint8Array | number[]];
|
|
149
|
+
from_subaccount: [] | [Uint8Array | number[]];
|
|
150
|
+
created_at_time: [] | [bigint];
|
|
151
|
+
amount: bigint;
|
|
152
|
+
}
|
|
153
|
+
export interface TransferArgs {
|
|
154
|
+
to: Uint8Array | number[];
|
|
155
|
+
fee: Tokens;
|
|
156
|
+
memo: bigint;
|
|
157
|
+
from_subaccount: [] | [Uint8Array | number[]];
|
|
158
|
+
created_at_time: [] | [Timestamp];
|
|
159
|
+
amount: Tokens;
|
|
160
|
+
}
|
|
161
|
+
export type TransferError =
|
|
162
|
+
| {
|
|
163
|
+
TxTooOld: {allowed_window_nanos: bigint};
|
|
164
|
+
}
|
|
165
|
+
| {BadFee: {expected_fee: Tokens}}
|
|
166
|
+
| {TxDuplicate: {duplicate_of: bigint}}
|
|
167
|
+
| {TxCreatedInFuture: null}
|
|
168
|
+
| {InsufficientFunds: {balance: Tokens}};
|
|
169
|
+
export type TransferError_1 =
|
|
170
|
+
| {
|
|
171
|
+
GenericError: {message: string; error_code: bigint};
|
|
172
|
+
}
|
|
173
|
+
| {TemporarilyUnavailable: null}
|
|
174
|
+
| {BadBurn: {min_burn_amount: bigint}}
|
|
175
|
+
| {Duplicate: {duplicate_of: bigint}}
|
|
176
|
+
| {BadFee: {expected_fee: bigint}}
|
|
177
|
+
| {CreatedInFuture: {ledger_time: bigint}}
|
|
178
|
+
| {TooOld: null}
|
|
179
|
+
| {InsufficientFunds: {balance: bigint}};
|
|
180
|
+
export interface User {
|
|
181
|
+
updated_at: bigint;
|
|
182
|
+
metadata: Array<[string, string]>;
|
|
183
|
+
user: [] | [Principal];
|
|
184
|
+
created_at: bigint;
|
|
185
|
+
config: [] | [Config];
|
|
186
|
+
}
|
|
187
|
+
export interface _SERVICE {
|
|
188
|
+
add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
189
|
+
add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
190
|
+
create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
|
|
191
|
+
create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
|
|
192
|
+
create_satellite: ActorMethod<[string], Satellite>;
|
|
193
|
+
create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
|
|
194
|
+
del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
195
|
+
del_orbiter: ActorMethod<[Principal, bigint], undefined>;
|
|
196
|
+
del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
197
|
+
del_satellite: ActorMethod<[Principal, bigint], undefined>;
|
|
198
|
+
del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
199
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
200
|
+
get_config: ActorMethod<[], [] | [Config]>;
|
|
201
|
+
get_metadata: ActorMethod<[], Array<[string, string]>>;
|
|
202
|
+
get_monitoring_history: ActorMethod<
|
|
203
|
+
[GetMonitoringHistory],
|
|
204
|
+
Array<[MonitoringHistoryKey, MonitoringHistory]>
|
|
205
|
+
>;
|
|
206
|
+
get_monitoring_status: ActorMethod<[], MonitoringStatus>;
|
|
207
|
+
get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
|
|
208
|
+
get_user: ActorMethod<[], Principal>;
|
|
209
|
+
get_user_data: ActorMethod<[], User>;
|
|
210
|
+
icp_transfer: ActorMethod<[TransferArgs], Result>;
|
|
211
|
+
icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
|
|
212
|
+
list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
213
|
+
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
|
|
214
|
+
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
215
|
+
remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
|
|
216
|
+
remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
|
|
217
|
+
set_config: ActorMethod<[[] | [Config]], undefined>;
|
|
218
|
+
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
219
|
+
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
|
|
220
|
+
set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
|
|
221
|
+
set_orbiter_metadata: ActorMethod<[Principal, Array<[string, string]>], Orbiter>;
|
|
222
|
+
set_orbiters_controllers: ActorMethod<
|
|
223
|
+
[Array<Principal>, Array<Principal>, SetController],
|
|
224
|
+
undefined
|
|
225
|
+
>;
|
|
226
|
+
set_satellite: ActorMethod<[Principal, [] | [string]], Satellite>;
|
|
227
|
+
set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
|
|
228
|
+
set_satellites_controllers: ActorMethod<
|
|
229
|
+
[Array<Principal>, Array<Principal>, SetController],
|
|
230
|
+
undefined
|
|
231
|
+
>;
|
|
232
|
+
start_monitoring: ActorMethod<[], undefined>;
|
|
233
|
+
stop_monitoring: ActorMethod<[], undefined>;
|
|
234
|
+
top_up: ActorMethod<[Principal, Tokens], undefined>;
|
|
235
|
+
unset_orbiter: ActorMethod<[Principal], undefined>;
|
|
236
|
+
unset_satellite: ActorMethod<[Principal], undefined>;
|
|
237
|
+
update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
|
|
238
|
+
update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
|
|
239
|
+
}
|
|
240
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
241
|
+
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const idlFactory = ({IDL}) => {
|
|
3
|
+
const CyclesThreshold = IDL.Record({
|
|
4
|
+
fund_cycles: IDL.Nat,
|
|
5
|
+
min_cycles: IDL.Nat
|
|
6
|
+
});
|
|
7
|
+
const CyclesMonitoringStrategy = IDL.Variant({
|
|
8
|
+
BelowThreshold: CyclesThreshold
|
|
9
|
+
});
|
|
10
|
+
const CyclesMonitoring = IDL.Record({
|
|
11
|
+
strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
12
|
+
enabled: IDL.Bool
|
|
13
|
+
});
|
|
14
|
+
const Monitoring = IDL.Record({cycles: IDL.Opt(CyclesMonitoring)});
|
|
15
|
+
const Settings = IDL.Record({monitoring: IDL.Opt(Monitoring)});
|
|
16
|
+
const Orbiter = IDL.Record({
|
|
17
|
+
updated_at: IDL.Nat64,
|
|
18
|
+
orbiter_id: IDL.Principal,
|
|
19
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
20
|
+
created_at: IDL.Nat64,
|
|
21
|
+
settings: IDL.Opt(Settings)
|
|
22
|
+
});
|
|
23
|
+
const CreateCanisterConfig = IDL.Record({
|
|
24
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
25
|
+
name: IDL.Opt(IDL.Text)
|
|
26
|
+
});
|
|
27
|
+
const Satellite = IDL.Record({
|
|
28
|
+
updated_at: IDL.Nat64,
|
|
29
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
30
|
+
created_at: IDL.Nat64,
|
|
31
|
+
satellite_id: IDL.Principal,
|
|
32
|
+
settings: IDL.Opt(Settings)
|
|
33
|
+
});
|
|
34
|
+
const DepositCyclesArgs = IDL.Record({
|
|
35
|
+
cycles: IDL.Nat,
|
|
36
|
+
destination_id: IDL.Principal
|
|
37
|
+
});
|
|
38
|
+
const DepositedCyclesEmailNotification = IDL.Record({
|
|
39
|
+
to: IDL.Opt(IDL.Text),
|
|
40
|
+
enabled: IDL.Bool
|
|
41
|
+
});
|
|
42
|
+
const CyclesMonitoringConfig = IDL.Record({
|
|
43
|
+
notification: IDL.Opt(DepositedCyclesEmailNotification),
|
|
44
|
+
default_strategy: IDL.Opt(CyclesMonitoringStrategy)
|
|
45
|
+
});
|
|
46
|
+
const MonitoringConfig = IDL.Record({
|
|
47
|
+
cycles: IDL.Opt(CyclesMonitoringConfig)
|
|
48
|
+
});
|
|
49
|
+
const Config = IDL.Record({monitoring: IDL.Opt(MonitoringConfig)});
|
|
50
|
+
const GetMonitoringHistory = IDL.Record({
|
|
51
|
+
to: IDL.Opt(IDL.Nat64),
|
|
52
|
+
from: IDL.Opt(IDL.Nat64),
|
|
53
|
+
segment_id: IDL.Principal
|
|
54
|
+
});
|
|
55
|
+
const MonitoringHistoryKey = IDL.Record({
|
|
56
|
+
segment_id: IDL.Principal,
|
|
57
|
+
created_at: IDL.Nat64,
|
|
58
|
+
nonce: IDL.Int32
|
|
59
|
+
});
|
|
60
|
+
const CyclesBalance = IDL.Record({
|
|
61
|
+
timestamp: IDL.Nat64,
|
|
62
|
+
amount: IDL.Nat
|
|
63
|
+
});
|
|
64
|
+
const FundingErrorCode = IDL.Variant({
|
|
65
|
+
BalanceCheckFailed: IDL.Null,
|
|
66
|
+
ObtainCyclesFailed: IDL.Null,
|
|
67
|
+
DepositFailed: IDL.Null,
|
|
68
|
+
InsufficientCycles: IDL.Null,
|
|
69
|
+
Other: IDL.Text
|
|
70
|
+
});
|
|
71
|
+
const FundingFailure = IDL.Record({
|
|
72
|
+
timestamp: IDL.Nat64,
|
|
73
|
+
error_code: FundingErrorCode
|
|
74
|
+
});
|
|
75
|
+
const MonitoringHistoryCycles = IDL.Record({
|
|
76
|
+
deposited_cycles: IDL.Opt(CyclesBalance),
|
|
77
|
+
cycles: CyclesBalance,
|
|
78
|
+
funding_failure: IDL.Opt(FundingFailure)
|
|
79
|
+
});
|
|
80
|
+
const MonitoringHistory = IDL.Record({
|
|
81
|
+
cycles: IDL.Opt(MonitoringHistoryCycles)
|
|
82
|
+
});
|
|
83
|
+
const CyclesMonitoringStatus = IDL.Record({
|
|
84
|
+
monitored_ids: IDL.Vec(IDL.Principal),
|
|
85
|
+
running: IDL.Bool
|
|
86
|
+
});
|
|
87
|
+
const MonitoringStatus = IDL.Record({
|
|
88
|
+
cycles: IDL.Opt(CyclesMonitoringStatus)
|
|
89
|
+
});
|
|
90
|
+
const MissionControlSettings = IDL.Record({
|
|
91
|
+
updated_at: IDL.Nat64,
|
|
92
|
+
created_at: IDL.Nat64,
|
|
93
|
+
monitoring: IDL.Opt(Monitoring)
|
|
94
|
+
});
|
|
95
|
+
const User = IDL.Record({
|
|
96
|
+
updated_at: IDL.Nat64,
|
|
97
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
98
|
+
user: IDL.Opt(IDL.Principal),
|
|
99
|
+
created_at: IDL.Nat64,
|
|
100
|
+
config: IDL.Opt(Config)
|
|
101
|
+
});
|
|
102
|
+
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
103
|
+
const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
|
|
104
|
+
const TransferArgs = IDL.Record({
|
|
105
|
+
to: IDL.Vec(IDL.Nat8),
|
|
106
|
+
fee: Tokens,
|
|
107
|
+
memo: IDL.Nat64,
|
|
108
|
+
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
109
|
+
created_at_time: IDL.Opt(Timestamp),
|
|
110
|
+
amount: Tokens
|
|
111
|
+
});
|
|
112
|
+
const TransferError = IDL.Variant({
|
|
113
|
+
TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
|
|
114
|
+
BadFee: IDL.Record({expected_fee: Tokens}),
|
|
115
|
+
TxDuplicate: IDL.Record({duplicate_of: IDL.Nat64}),
|
|
116
|
+
TxCreatedInFuture: IDL.Null,
|
|
117
|
+
InsufficientFunds: IDL.Record({balance: Tokens})
|
|
118
|
+
});
|
|
119
|
+
const Result = IDL.Variant({Ok: IDL.Nat64, Err: TransferError});
|
|
120
|
+
const Account = IDL.Record({
|
|
121
|
+
owner: IDL.Principal,
|
|
122
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
123
|
+
});
|
|
124
|
+
const TransferArg = IDL.Record({
|
|
125
|
+
to: Account,
|
|
126
|
+
fee: IDL.Opt(IDL.Nat),
|
|
127
|
+
memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
128
|
+
from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
129
|
+
created_at_time: IDL.Opt(IDL.Nat64),
|
|
130
|
+
amount: IDL.Nat
|
|
131
|
+
});
|
|
132
|
+
const TransferError_1 = IDL.Variant({
|
|
133
|
+
GenericError: IDL.Record({
|
|
134
|
+
message: IDL.Text,
|
|
135
|
+
error_code: IDL.Nat
|
|
136
|
+
}),
|
|
137
|
+
TemporarilyUnavailable: IDL.Null,
|
|
138
|
+
BadBurn: IDL.Record({min_burn_amount: IDL.Nat}),
|
|
139
|
+
Duplicate: IDL.Record({duplicate_of: IDL.Nat}),
|
|
140
|
+
BadFee: IDL.Record({expected_fee: IDL.Nat}),
|
|
141
|
+
CreatedInFuture: IDL.Record({ledger_time: IDL.Nat64}),
|
|
142
|
+
TooOld: IDL.Null,
|
|
143
|
+
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
144
|
+
});
|
|
145
|
+
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
146
|
+
const ControllerScope = IDL.Variant({
|
|
147
|
+
Write: IDL.Null,
|
|
148
|
+
Admin: IDL.Null,
|
|
149
|
+
Submit: IDL.Null
|
|
150
|
+
});
|
|
151
|
+
const Controller = IDL.Record({
|
|
152
|
+
updated_at: IDL.Nat64,
|
|
153
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
154
|
+
created_at: IDL.Nat64,
|
|
155
|
+
scope: ControllerScope,
|
|
156
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
157
|
+
});
|
|
158
|
+
const SetController = IDL.Record({
|
|
159
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
160
|
+
scope: ControllerScope,
|
|
161
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
162
|
+
});
|
|
163
|
+
const SegmentsMonitoringStrategy = IDL.Record({
|
|
164
|
+
ids: IDL.Vec(IDL.Principal),
|
|
165
|
+
strategy: CyclesMonitoringStrategy
|
|
166
|
+
});
|
|
167
|
+
const CyclesMonitoringStartConfig = IDL.Record({
|
|
168
|
+
orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
|
|
169
|
+
mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
|
|
170
|
+
satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
|
|
171
|
+
});
|
|
172
|
+
const MonitoringStartConfig = IDL.Record({
|
|
173
|
+
cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
|
|
174
|
+
});
|
|
175
|
+
const CyclesMonitoringStopConfig = IDL.Record({
|
|
176
|
+
satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
177
|
+
try_mission_control: IDL.Opt(IDL.Bool),
|
|
178
|
+
orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
|
|
179
|
+
});
|
|
180
|
+
const MonitoringStopConfig = IDL.Record({
|
|
181
|
+
cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
|
|
182
|
+
});
|
|
183
|
+
return IDL.Service({
|
|
184
|
+
add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
185
|
+
add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
186
|
+
create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
187
|
+
create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
|
|
188
|
+
create_satellite: IDL.Func([IDL.Text], [Satellite], []),
|
|
189
|
+
create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
|
|
190
|
+
del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
191
|
+
del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
192
|
+
del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
193
|
+
del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
|
|
194
|
+
del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
|
|
195
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
196
|
+
get_config: IDL.Func([], [IDL.Opt(Config)], []),
|
|
197
|
+
get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], []),
|
|
198
|
+
get_monitoring_history: IDL.Func(
|
|
199
|
+
[GetMonitoringHistory],
|
|
200
|
+
[IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
|
|
201
|
+
[]
|
|
202
|
+
),
|
|
203
|
+
get_monitoring_status: IDL.Func([], [MonitoringStatus], []),
|
|
204
|
+
get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], []),
|
|
205
|
+
get_user: IDL.Func([], [IDL.Principal], []),
|
|
206
|
+
get_user_data: IDL.Func([], [User], []),
|
|
207
|
+
icp_transfer: IDL.Func([TransferArgs], [Result], []),
|
|
208
|
+
icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
|
|
209
|
+
list_mission_control_controllers: IDL.Func(
|
|
210
|
+
[],
|
|
211
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
212
|
+
[]
|
|
213
|
+
),
|
|
214
|
+
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], []),
|
|
215
|
+
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], []),
|
|
216
|
+
remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
|
|
217
|
+
remove_satellites_controllers: IDL.Func(
|
|
218
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
|
|
219
|
+
[],
|
|
220
|
+
[]
|
|
221
|
+
),
|
|
222
|
+
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
223
|
+
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
224
|
+
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
|
|
225
|
+
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
226
|
+
set_orbiter_metadata: IDL.Func(
|
|
227
|
+
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
228
|
+
[Orbiter],
|
|
229
|
+
[]
|
|
230
|
+
),
|
|
231
|
+
set_orbiters_controllers: IDL.Func(
|
|
232
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
233
|
+
[],
|
|
234
|
+
[]
|
|
235
|
+
),
|
|
236
|
+
set_satellite: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Satellite], []),
|
|
237
|
+
set_satellite_metadata: IDL.Func(
|
|
238
|
+
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
239
|
+
[Satellite],
|
|
240
|
+
[]
|
|
241
|
+
),
|
|
242
|
+
set_satellites_controllers: IDL.Func(
|
|
243
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
|
|
244
|
+
[],
|
|
245
|
+
[]
|
|
246
|
+
),
|
|
247
|
+
start_monitoring: IDL.Func([], [], []),
|
|
248
|
+
stop_monitoring: IDL.Func([], [], []),
|
|
249
|
+
top_up: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
250
|
+
unset_orbiter: IDL.Func([IDL.Principal], [], []),
|
|
251
|
+
unset_satellite: IDL.Func([IDL.Principal], [], []),
|
|
252
|
+
update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
|
|
253
|
+
update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], [])
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
// @ts-ignore
|
|
257
|
+
export const init = ({IDL}) => {
|
|
258
|
+
return [];
|
|
259
|
+
};
|