@junobuild/admin 0.6.8-next-2025-08-02.3 → 1.0.0-next-2025-08-11
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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/ic.api.d.ts +1 -1
- package/dist/types/api/mission-control.api.d.ts +2 -2
- package/dist/types/api/orbiter.api.d.ts +2 -2
- package/dist/types/api/satellite.api.d.ts +2 -2
- package/dist/types/constants/rules.constants.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/services/mission-control.controllers.services.d.ts +2 -2
- package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
- package/dist/types/services/mission-control.version.services.d.ts +1 -1
- package/dist/types/services/module.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.controllers.services.d.ts +2 -2
- package/dist/types/services/orbiter.memory.services.d.ts +2 -2
- package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
- package/dist/types/services/orbiter.version.services.d.ts +1 -1
- package/dist/types/services/package.services.d.ts +1 -1
- package/dist/types/services/satellite.assets.services.d.ts +1 -1
- package/dist/types/services/satellite.config.services.d.ts +1 -1
- package/dist/types/services/satellite.controllers.services.d.ts +2 -2
- package/dist/types/services/satellite.docs.services.d.ts +1 -1
- package/dist/types/services/satellite.domains.services.d.ts +1 -1
- package/dist/types/services/satellite.memory.services.d.ts +2 -2
- package/dist/types/services/satellite.rules.services.d.ts +1 -1
- package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
- package/dist/types/services/satellite.version.services.d.ts +1 -1
- package/dist/types/types/upgrade.d.ts +1 -1
- package/dist/types/utils/config.utils.d.ts +1 -1
- package/dist/types/utils/controllers.utils.d.ts +1 -1
- package/dist/types/utils/idl.utils.d.ts +1 -1
- package/dist/types/utils/memory.utils.d.ts +1 -1
- package/dist/types/utils/rule.utils.d.ts +1 -1
- package/package.json +3 -2
- package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
- package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
- package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
- package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
- package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
- package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
- package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
- package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
- package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
- package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
- package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
- package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
- package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
- package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
- package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
- package/dist/declarations/satellite/satellite.did.d.ts +0 -396
- package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
- package/dist/types/api/_actor.api.d.ts +0 -34
- package/dist/types/api/_actor.factory.d.ts +0 -19
- package/dist/types/api/_agent.api.d.ts +0 -3
- package/dist/types/types/actor.d.ts +0 -74
- package/dist/types/utils/agent.utils.d.ts +0 -6
|
@@ -1,259 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,259 +0,0 @@
|
|
|
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)], ['query']),
|
|
197
|
-
get_metadata: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], ['query']),
|
|
198
|
-
get_monitoring_history: IDL.Func(
|
|
199
|
-
[GetMonitoringHistory],
|
|
200
|
-
[IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
|
|
201
|
-
['query']
|
|
202
|
-
),
|
|
203
|
-
get_monitoring_status: IDL.Func([], [MonitoringStatus], ['query']),
|
|
204
|
-
get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], ['query']),
|
|
205
|
-
get_user: IDL.Func([], [IDL.Principal], ['query']),
|
|
206
|
-
get_user_data: IDL.Func([], [User], ['query']),
|
|
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
|
-
['query']
|
|
213
|
-
),
|
|
214
|
-
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
|
|
215
|
-
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
|
|
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
|
-
};
|