@junobuild/core-peer 1.0.3 → 1.1.0

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.
Files changed (53) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/node/index.mjs +1 -1
  4. package/dist/node/index.mjs.map +4 -4
  5. package/dist/types/api/actor.api.d.ts +1 -1
  6. package/dist/types/api/storage.api.d.ts +4 -4
  7. package/dist/types/services/storage.services.d.ts +3 -3
  8. package/dist/types/stores/actor.store.d.ts +1 -2
  9. package/dist/types/types/storage.types.d.ts +2 -2
  10. package/dist/types/utils/data.utils.d.ts +2 -2
  11. package/dist/types/utils/doc.utils.d.ts +4 -4
  12. package/dist/types/utils/list.utils.d.ts +2 -2
  13. package/package.json +6 -5
  14. package/dist/declarations/deprecated/console-0-0-14.did.d.ts +0 -267
  15. package/dist/declarations/deprecated/console-0-0-14.factory.did.js +0 -285
  16. package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +0 -75
  17. package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +0 -80
  18. package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +0 -246
  19. package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +0 -280
  20. package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +0 -241
  21. package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +0 -258
  22. package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +0 -80
  23. package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +0 -99
  24. package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +0 -70
  25. package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +0 -76
  26. package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +0 -161
  27. package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +0 -192
  28. package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +0 -166
  29. package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +0 -197
  30. package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +0 -245
  31. package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +0 -287
  32. package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +0 -277
  33. package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +0 -319
  34. package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +0 -240
  35. package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +0 -264
  36. package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +0 -254
  37. package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +0 -281
  38. package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +0 -299
  39. package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +0 -333
  40. package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +0 -290
  41. package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +0 -318
  42. package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +0 -183
  43. package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +0 -194
  44. package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +0 -199
  45. package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +0 -213
  46. package/dist/declarations/satellite/satellite.did.d.ts +0 -396
  47. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
  48. package/dist/declarations/satellite/satellite.factory.did.js +0 -419
  49. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
  50. package/dist/declarations/sputnik/sputnik.did.d.ts +0 -396
  51. package/dist/declarations/sputnik/sputnik.factory.certified.did.js +0 -419
  52. package/dist/declarations/sputnik/sputnik.factory.did.js +0 -419
  53. package/dist/types/api/_actor.factory.d.ts +0 -5
@@ -1,280 +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 GetMonitoringHistory = IDL.Record({
39
- to: IDL.Opt(IDL.Nat64),
40
- from: IDL.Opt(IDL.Nat64),
41
- segment_id: IDL.Principal
42
- });
43
- const MonitoringHistoryKey = IDL.Record({
44
- segment_id: IDL.Principal,
45
- created_at: IDL.Nat64
46
- });
47
- const CyclesBalance = IDL.Record({
48
- timestamp: IDL.Nat64,
49
- amount: IDL.Nat
50
- });
51
- const MonitoringHistoryCycles = IDL.Record({
52
- deposited_cycles: IDL.Opt(CyclesBalance),
53
- cycles: CyclesBalance
54
- });
55
- const MonitoringHistory = IDL.Record({
56
- cycles: IDL.Opt(MonitoringHistoryCycles)
57
- });
58
- const CyclesMonitoringStatus = IDL.Record({
59
- monitored_ids: IDL.Vec(IDL.Principal),
60
- running: IDL.Bool
61
- });
62
- const MonitoringStatus = IDL.Record({
63
- cycles: IDL.Opt(CyclesMonitoringStatus)
64
- });
65
- const MissionControlSettings = IDL.Record({
66
- updated_at: IDL.Nat64,
67
- created_at: IDL.Nat64,
68
- monitoring: IDL.Opt(Monitoring)
69
- });
70
- const Tokens = IDL.Record({e8s: IDL.Nat64});
71
- const Timestamp = IDL.Record({timestamp_nanos: IDL.Nat64});
72
- const TransferArgs = IDL.Record({
73
- to: IDL.Vec(IDL.Nat8),
74
- fee: Tokens,
75
- memo: IDL.Nat64,
76
- from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
77
- created_at_time: IDL.Opt(Timestamp),
78
- amount: Tokens
79
- });
80
- const TransferError = IDL.Variant({
81
- TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
82
- BadFee: IDL.Record({expected_fee: Tokens}),
83
- TxDuplicate: IDL.Record({duplicate_of: IDL.Nat64}),
84
- TxCreatedInFuture: IDL.Null,
85
- InsufficientFunds: IDL.Record({balance: Tokens})
86
- });
87
- const Result = IDL.Variant({Ok: IDL.Nat64, Err: TransferError});
88
- const Account = IDL.Record({
89
- owner: IDL.Principal,
90
- subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
91
- });
92
- const TransferArg = IDL.Record({
93
- to: Account,
94
- fee: IDL.Opt(IDL.Nat),
95
- memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
96
- from_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
97
- created_at_time: IDL.Opt(IDL.Nat64),
98
- amount: IDL.Nat
99
- });
100
- const TransferError_1 = IDL.Variant({
101
- GenericError: IDL.Record({
102
- message: IDL.Text,
103
- error_code: IDL.Nat
104
- }),
105
- TemporarilyUnavailable: IDL.Null,
106
- BadBurn: IDL.Record({min_burn_amount: IDL.Nat}),
107
- Duplicate: IDL.Record({duplicate_of: IDL.Nat}),
108
- BadFee: IDL.Record({expected_fee: IDL.Nat}),
109
- CreatedInFuture: IDL.Record({ledger_time: IDL.Nat64}),
110
- TooOld: IDL.Null,
111
- InsufficientFunds: IDL.Record({balance: IDL.Nat})
112
- });
113
- const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
114
- const ControllerScope = IDL.Variant({
115
- Write: IDL.Null,
116
- Admin: IDL.Null
117
- });
118
- const Controller = IDL.Record({
119
- updated_at: IDL.Nat64,
120
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
121
- created_at: IDL.Nat64,
122
- scope: ControllerScope,
123
- expires_at: IDL.Opt(IDL.Nat64)
124
- });
125
- const CanisterStatusType = IDL.Variant({
126
- stopped: IDL.Null,
127
- stopping: IDL.Null,
128
- running: IDL.Null
129
- });
130
- const SegmentCanisterSettings = IDL.Record({
131
- freezing_threshold: IDL.Nat,
132
- controllers: IDL.Vec(IDL.Principal),
133
- memory_allocation: IDL.Nat,
134
- compute_allocation: IDL.Nat
135
- });
136
- const SegmentCanisterStatus = IDL.Record({
137
- status: CanisterStatusType,
138
- memory_size: IDL.Nat,
139
- cycles: IDL.Nat,
140
- settings: SegmentCanisterSettings,
141
- idle_cycles_burned_per_day: IDL.Nat,
142
- module_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
143
- });
144
- const SegmentStatus = IDL.Record({
145
- id: IDL.Principal,
146
- status: SegmentCanisterStatus,
147
- metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
148
- status_at: IDL.Nat64
149
- });
150
- const Result_2 = IDL.Variant({Ok: SegmentStatus, Err: IDL.Text});
151
- const SetController = IDL.Record({
152
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
153
- scope: ControllerScope,
154
- expires_at: IDL.Opt(IDL.Nat64)
155
- });
156
- const CronJobStatusesConfig = IDL.Record({
157
- enabled: IDL.Bool,
158
- cycles_threshold: IDL.Opt(IDL.Nat64)
159
- });
160
- const StatusesArgs = IDL.Record({
161
- mission_control_cycles_threshold: IDL.Opt(IDL.Nat64),
162
- orbiters: IDL.Vec(IDL.Tuple(IDL.Principal, CronJobStatusesConfig)),
163
- satellites: IDL.Vec(IDL.Tuple(IDL.Principal, CronJobStatusesConfig)),
164
- cycles_threshold: IDL.Opt(IDL.Nat64)
165
- });
166
- const SegmentsStatuses = IDL.Record({
167
- orbiters: IDL.Opt(IDL.Vec(Result_2)),
168
- satellites: IDL.Opt(IDL.Vec(Result_2)),
169
- mission_control: Result_2
170
- });
171
- const SegmentsMonitoringStrategy = IDL.Record({
172
- ids: IDL.Vec(IDL.Principal),
173
- strategy: CyclesMonitoringStrategy
174
- });
175
- const CyclesMonitoringStartConfig = IDL.Record({
176
- orbiters_strategy: IDL.Opt(SegmentsMonitoringStrategy),
177
- mission_control_strategy: IDL.Opt(CyclesMonitoringStrategy),
178
- satellites_strategy: IDL.Opt(SegmentsMonitoringStrategy)
179
- });
180
- const MonitoringStartConfig = IDL.Record({
181
- cycles_config: IDL.Opt(CyclesMonitoringStartConfig)
182
- });
183
- const CyclesMonitoringStopConfig = IDL.Record({
184
- satellite_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
185
- try_mission_control: IDL.Opt(IDL.Bool),
186
- orbiter_ids: IDL.Opt(IDL.Vec(IDL.Principal))
187
- });
188
- const MonitoringStopConfig = IDL.Record({
189
- cycles_config: IDL.Opt(CyclesMonitoringStopConfig)
190
- });
191
- return IDL.Service({
192
- add_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
193
- add_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
194
- create_orbiter: IDL.Func([IDL.Opt(IDL.Text)], [Orbiter], []),
195
- create_orbiter_with_config: IDL.Func([CreateCanisterConfig], [Orbiter], []),
196
- create_satellite: IDL.Func([IDL.Text], [Satellite], []),
197
- create_satellite_with_config: IDL.Func([CreateCanisterConfig], [Satellite], []),
198
- del_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
199
- del_orbiter: IDL.Func([IDL.Principal, IDL.Nat], [], []),
200
- del_orbiters_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
201
- del_satellite: IDL.Func([IDL.Principal, IDL.Nat], [], []),
202
- del_satellites_controllers: IDL.Func([IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)], [], []),
203
- deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
204
- get_monitoring_history: IDL.Func(
205
- [GetMonitoringHistory],
206
- [IDL.Vec(IDL.Tuple(MonitoringHistoryKey, MonitoringHistory))],
207
- ['query']
208
- ),
209
- get_monitoring_status: IDL.Func([], [MonitoringStatus], ['query']),
210
- get_settings: IDL.Func([], [IDL.Opt(MissionControlSettings)], ['query']),
211
- get_user: IDL.Func([], [IDL.Principal], ['query']),
212
- icp_transfer: IDL.Func([TransferArgs], [Result], []),
213
- icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
214
- list_mission_control_controllers: IDL.Func(
215
- [],
216
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
217
- ['query']
218
- ),
219
- list_mission_control_statuses: IDL.Func(
220
- [],
221
- [IDL.Vec(IDL.Tuple(IDL.Nat64, Result_2))],
222
- ['query']
223
- ),
224
- list_orbiter_statuses: IDL.Func(
225
- [IDL.Principal],
226
- [IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Nat64, Result_2)))],
227
- ['query']
228
- ),
229
- list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
230
- list_satellite_statuses: IDL.Func(
231
- [IDL.Principal],
232
- [IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Nat64, Result_2)))],
233
- ['query']
234
- ),
235
- list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
236
- remove_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal)], [], []),
237
- remove_satellites_controllers: IDL.Func(
238
- [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal)],
239
- [],
240
- []
241
- ),
242
- set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
243
- set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetController], [], []),
244
- set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
245
- set_orbiter_metadata: IDL.Func(
246
- [IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
247
- [Orbiter],
248
- []
249
- ),
250
- set_orbiters_controllers: IDL.Func(
251
- [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
252
- [],
253
- []
254
- ),
255
- set_satellite: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Satellite], []),
256
- set_satellite_metadata: IDL.Func(
257
- [IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
258
- [Satellite],
259
- []
260
- ),
261
- set_satellites_controllers: IDL.Func(
262
- [IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetController],
263
- [],
264
- []
265
- ),
266
- start_monitoring: IDL.Func([], [], []),
267
- status: IDL.Func([StatusesArgs], [SegmentsStatuses], []),
268
- stop_monitoring: IDL.Func([], [], []),
269
- top_up: IDL.Func([IDL.Principal, Tokens], [], []),
270
- unset_orbiter: IDL.Func([IDL.Principal], [], []),
271
- unset_satellite: IDL.Func([IDL.Principal], [], []),
272
- update_and_start_monitoring: IDL.Func([MonitoringStartConfig], [], []),
273
- update_and_stop_monitoring: IDL.Func([MonitoringStopConfig], [], []),
274
- version: IDL.Func([], [IDL.Text], ['query'])
275
- });
276
- };
277
- // @ts-ignore
278
- export const init = ({IDL}) => {
279
- return [];
280
- };
@@ -1,241 +0,0 @@
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};
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[];