@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,267 @@
|
|
|
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 AssertMissionControlCenterArgs {
|
|
6
|
+
mission_control_id: Principal;
|
|
7
|
+
user: Principal;
|
|
8
|
+
}
|
|
9
|
+
export interface AssetEncodingNoContent {
|
|
10
|
+
modified: bigint;
|
|
11
|
+
sha256: Uint8Array | number[];
|
|
12
|
+
total_length: bigint;
|
|
13
|
+
}
|
|
14
|
+
export interface AssetKey {
|
|
15
|
+
token: [] | [string];
|
|
16
|
+
collection: string;
|
|
17
|
+
owner: Principal;
|
|
18
|
+
name: string;
|
|
19
|
+
description: [] | [string];
|
|
20
|
+
full_path: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AssetNoContent {
|
|
23
|
+
key: AssetKey;
|
|
24
|
+
updated_at: bigint;
|
|
25
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
26
|
+
headers: Array<[string, string]>;
|
|
27
|
+
created_at: bigint;
|
|
28
|
+
version: [] | [bigint];
|
|
29
|
+
}
|
|
30
|
+
export interface AssetsUpgradeOptions {
|
|
31
|
+
clear_existing_assets: [] | [boolean];
|
|
32
|
+
}
|
|
33
|
+
export interface CommitBatch {
|
|
34
|
+
batch_id: bigint;
|
|
35
|
+
headers: Array<[string, string]>;
|
|
36
|
+
chunk_ids: Array<bigint>;
|
|
37
|
+
}
|
|
38
|
+
export interface CommitProposal {
|
|
39
|
+
sha256: Uint8Array | number[];
|
|
40
|
+
proposal_id: bigint;
|
|
41
|
+
}
|
|
42
|
+
export interface Config {
|
|
43
|
+
storage: StorageConfig;
|
|
44
|
+
}
|
|
45
|
+
export interface ConfigMaxMemorySize {
|
|
46
|
+
stable: [] | [bigint];
|
|
47
|
+
heap: [] | [bigint];
|
|
48
|
+
}
|
|
49
|
+
export type ControllerScope = {Write: null} | {Admin: null};
|
|
50
|
+
export interface CreateCanisterArgs {
|
|
51
|
+
block_index: [] | [bigint];
|
|
52
|
+
subnet_id: [] | [Principal];
|
|
53
|
+
user: Principal;
|
|
54
|
+
}
|
|
55
|
+
export interface CustomDomain {
|
|
56
|
+
updated_at: bigint;
|
|
57
|
+
created_at: bigint;
|
|
58
|
+
version: [] | [bigint];
|
|
59
|
+
bn_id: [] | [string];
|
|
60
|
+
}
|
|
61
|
+
export interface DeleteControllersArgs {
|
|
62
|
+
controllers: Array<Principal>;
|
|
63
|
+
}
|
|
64
|
+
export interface DeleteProposalAssets {
|
|
65
|
+
proposal_ids: Array<bigint>;
|
|
66
|
+
}
|
|
67
|
+
export interface GetCreateCanisterFeeArgs {
|
|
68
|
+
user: Principal;
|
|
69
|
+
}
|
|
70
|
+
export interface HttpRequest {
|
|
71
|
+
url: string;
|
|
72
|
+
method: string;
|
|
73
|
+
body: Uint8Array | number[];
|
|
74
|
+
headers: Array<[string, string]>;
|
|
75
|
+
certificate_version: [] | [number];
|
|
76
|
+
}
|
|
77
|
+
export interface HttpResponse {
|
|
78
|
+
body: Uint8Array | number[];
|
|
79
|
+
headers: Array<[string, string]>;
|
|
80
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
81
|
+
status_code: number;
|
|
82
|
+
}
|
|
83
|
+
export interface InitAssetKey {
|
|
84
|
+
token: [] | [string];
|
|
85
|
+
collection: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: [] | [string];
|
|
88
|
+
encoding_type: [] | [string];
|
|
89
|
+
full_path: string;
|
|
90
|
+
}
|
|
91
|
+
export interface InitUploadResult {
|
|
92
|
+
batch_id: bigint;
|
|
93
|
+
}
|
|
94
|
+
export interface ListMatcher {
|
|
95
|
+
key: [] | [string];
|
|
96
|
+
updated_at: [] | [TimestampMatcher];
|
|
97
|
+
description: [] | [string];
|
|
98
|
+
created_at: [] | [TimestampMatcher];
|
|
99
|
+
}
|
|
100
|
+
export interface ListOrder {
|
|
101
|
+
field: ListOrderField;
|
|
102
|
+
desc: boolean;
|
|
103
|
+
}
|
|
104
|
+
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
105
|
+
export interface ListPaginate {
|
|
106
|
+
start_after: [] | [string];
|
|
107
|
+
limit: [] | [bigint];
|
|
108
|
+
}
|
|
109
|
+
export interface ListParams {
|
|
110
|
+
order: [] | [ListOrder];
|
|
111
|
+
owner: [] | [Principal];
|
|
112
|
+
matcher: [] | [ListMatcher];
|
|
113
|
+
paginate: [] | [ListPaginate];
|
|
114
|
+
}
|
|
115
|
+
export interface ListResults {
|
|
116
|
+
matches_pages: [] | [bigint];
|
|
117
|
+
matches_length: bigint;
|
|
118
|
+
items_page: [] | [bigint];
|
|
119
|
+
items: Array<[string, AssetNoContent]>;
|
|
120
|
+
items_length: bigint;
|
|
121
|
+
}
|
|
122
|
+
export type Memory = {Heap: null} | {Stable: null};
|
|
123
|
+
export interface MissionControl {
|
|
124
|
+
updated_at: bigint;
|
|
125
|
+
credits: Tokens;
|
|
126
|
+
mission_control_id: [] | [Principal];
|
|
127
|
+
owner: Principal;
|
|
128
|
+
created_at: bigint;
|
|
129
|
+
}
|
|
130
|
+
export interface Payment {
|
|
131
|
+
status: PaymentStatus;
|
|
132
|
+
updated_at: bigint;
|
|
133
|
+
block_index_payment: bigint;
|
|
134
|
+
mission_control_id: [] | [Principal];
|
|
135
|
+
created_at: bigint;
|
|
136
|
+
block_index_refunded: [] | [bigint];
|
|
137
|
+
}
|
|
138
|
+
export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
|
|
139
|
+
export interface Proposal {
|
|
140
|
+
status: ProposalStatus;
|
|
141
|
+
updated_at: bigint;
|
|
142
|
+
sha256: [] | [Uint8Array | number[]];
|
|
143
|
+
executed_at: [] | [bigint];
|
|
144
|
+
owner: Principal;
|
|
145
|
+
created_at: bigint;
|
|
146
|
+
version: [] | [bigint];
|
|
147
|
+
proposal_type: ProposalType;
|
|
148
|
+
}
|
|
149
|
+
export type ProposalStatus =
|
|
150
|
+
| {Initialized: null}
|
|
151
|
+
| {Failed: null}
|
|
152
|
+
| {Open: null}
|
|
153
|
+
| {Rejected: null}
|
|
154
|
+
| {Executed: null}
|
|
155
|
+
| {Accepted: null};
|
|
156
|
+
export type ProposalType =
|
|
157
|
+
| {AssetsUpgrade: AssetsUpgradeOptions}
|
|
158
|
+
| {SegmentsDeployment: SegmentsDeploymentOptions};
|
|
159
|
+
export interface RateConfig {
|
|
160
|
+
max_tokens: bigint;
|
|
161
|
+
time_per_token_ns: bigint;
|
|
162
|
+
}
|
|
163
|
+
export type SegmentType = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
164
|
+
export interface SegmentsDeploymentOptions {
|
|
165
|
+
orbiter: [] | [string];
|
|
166
|
+
mission_control_version: [] | [string];
|
|
167
|
+
satellite_version: [] | [string];
|
|
168
|
+
}
|
|
169
|
+
export interface SetController {
|
|
170
|
+
metadata: Array<[string, string]>;
|
|
171
|
+
scope: ControllerScope;
|
|
172
|
+
expires_at: [] | [bigint];
|
|
173
|
+
}
|
|
174
|
+
export interface SetControllersArgs {
|
|
175
|
+
controller: SetController;
|
|
176
|
+
controllers: Array<Principal>;
|
|
177
|
+
}
|
|
178
|
+
export interface StorageConfig {
|
|
179
|
+
iframe: [] | [StorageConfigIFrame];
|
|
180
|
+
rewrites: Array<[string, string]>;
|
|
181
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
182
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
183
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
184
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
185
|
+
}
|
|
186
|
+
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
187
|
+
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
188
|
+
export interface StorageConfigRedirect {
|
|
189
|
+
status_code: number;
|
|
190
|
+
location: string;
|
|
191
|
+
}
|
|
192
|
+
export interface StreamingCallbackHttpResponse {
|
|
193
|
+
token: [] | [StreamingCallbackToken];
|
|
194
|
+
body: Uint8Array | number[];
|
|
195
|
+
}
|
|
196
|
+
export interface StreamingCallbackToken {
|
|
197
|
+
memory: Memory;
|
|
198
|
+
token: [] | [string];
|
|
199
|
+
sha256: [] | [Uint8Array | number[]];
|
|
200
|
+
headers: Array<[string, string]>;
|
|
201
|
+
index: bigint;
|
|
202
|
+
encoding_type: string;
|
|
203
|
+
full_path: string;
|
|
204
|
+
}
|
|
205
|
+
export type StreamingStrategy = {
|
|
206
|
+
Callback: {
|
|
207
|
+
token: StreamingCallbackToken;
|
|
208
|
+
callback: [Principal, string];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
export type TimestampMatcher =
|
|
212
|
+
| {Equal: bigint}
|
|
213
|
+
| {Between: [bigint, bigint]}
|
|
214
|
+
| {GreaterThan: bigint}
|
|
215
|
+
| {LessThan: bigint};
|
|
216
|
+
export interface Tokens {
|
|
217
|
+
e8s: bigint;
|
|
218
|
+
}
|
|
219
|
+
export interface UploadChunk {
|
|
220
|
+
content: Uint8Array | number[];
|
|
221
|
+
batch_id: bigint;
|
|
222
|
+
order_id: [] | [bigint];
|
|
223
|
+
}
|
|
224
|
+
export interface UploadChunkResult {
|
|
225
|
+
chunk_id: bigint;
|
|
226
|
+
}
|
|
227
|
+
export interface _SERVICE {
|
|
228
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
229
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
230
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
231
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
232
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
233
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
234
|
+
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
235
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
236
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
237
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
238
|
+
get_config: ActorMethod<[], Config>;
|
|
239
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
240
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
241
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
242
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
243
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
244
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
245
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
246
|
+
http_request_streaming_callback: ActorMethod<
|
|
247
|
+
[StreamingCallbackToken],
|
|
248
|
+
StreamingCallbackHttpResponse
|
|
249
|
+
>;
|
|
250
|
+
init_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
251
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
252
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
253
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
254
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
255
|
+
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
256
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
257
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
258
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
259
|
+
set_fee: ActorMethod<[SegmentType, Tokens], undefined>;
|
|
260
|
+
set_storage_config: ActorMethod<[StorageConfig], undefined>;
|
|
261
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
262
|
+
update_rate_config: ActorMethod<[SegmentType, RateConfig], undefined>;
|
|
263
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
264
|
+
version: ActorMethod<[], string>;
|
|
265
|
+
}
|
|
266
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
267
|
+
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const idlFactory = ({IDL}) => {
|
|
3
|
+
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
4
|
+
const AssertMissionControlCenterArgs = IDL.Record({
|
|
5
|
+
mission_control_id: IDL.Principal,
|
|
6
|
+
user: IDL.Principal
|
|
7
|
+
});
|
|
8
|
+
const CommitBatch = IDL.Record({
|
|
9
|
+
batch_id: IDL.Nat,
|
|
10
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
11
|
+
chunk_ids: IDL.Vec(IDL.Nat)
|
|
12
|
+
});
|
|
13
|
+
const CommitProposal = IDL.Record({
|
|
14
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
15
|
+
proposal_id: IDL.Nat
|
|
16
|
+
});
|
|
17
|
+
const CreateCanisterArgs = IDL.Record({
|
|
18
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
19
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
|
+
user: IDL.Principal
|
|
21
|
+
});
|
|
22
|
+
const DeleteControllersArgs = IDL.Record({
|
|
23
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
24
|
+
});
|
|
25
|
+
const DeleteProposalAssets = IDL.Record({
|
|
26
|
+
proposal_ids: IDL.Vec(IDL.Nat)
|
|
27
|
+
});
|
|
28
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
29
|
+
Deny: IDL.Null,
|
|
30
|
+
AllowAny: IDL.Null,
|
|
31
|
+
SameOrigin: IDL.Null
|
|
32
|
+
});
|
|
33
|
+
const ConfigMaxMemorySize = IDL.Record({
|
|
34
|
+
stable: IDL.Opt(IDL.Nat64),
|
|
35
|
+
heap: IDL.Opt(IDL.Nat64)
|
|
36
|
+
});
|
|
37
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
38
|
+
Deny: IDL.Null,
|
|
39
|
+
Allow: IDL.Null
|
|
40
|
+
});
|
|
41
|
+
const StorageConfigRedirect = IDL.Record({
|
|
42
|
+
status_code: IDL.Nat16,
|
|
43
|
+
location: IDL.Text
|
|
44
|
+
});
|
|
45
|
+
const StorageConfig = IDL.Record({
|
|
46
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
47
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
48
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
49
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
50
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
51
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
52
|
+
});
|
|
53
|
+
const Config = IDL.Record({storage: StorageConfig});
|
|
54
|
+
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
55
|
+
const ProposalStatus = IDL.Variant({
|
|
56
|
+
Initialized: IDL.Null,
|
|
57
|
+
Failed: IDL.Null,
|
|
58
|
+
Open: IDL.Null,
|
|
59
|
+
Rejected: IDL.Null,
|
|
60
|
+
Executed: IDL.Null,
|
|
61
|
+
Accepted: IDL.Null
|
|
62
|
+
});
|
|
63
|
+
const AssetsUpgradeOptions = IDL.Record({
|
|
64
|
+
clear_existing_assets: IDL.Opt(IDL.Bool)
|
|
65
|
+
});
|
|
66
|
+
const SegmentsDeploymentOptions = IDL.Record({
|
|
67
|
+
orbiter: IDL.Opt(IDL.Text),
|
|
68
|
+
mission_control_version: IDL.Opt(IDL.Text),
|
|
69
|
+
satellite_version: IDL.Opt(IDL.Text)
|
|
70
|
+
});
|
|
71
|
+
const ProposalType = IDL.Variant({
|
|
72
|
+
AssetsUpgrade: AssetsUpgradeOptions,
|
|
73
|
+
SegmentsDeployment: SegmentsDeploymentOptions
|
|
74
|
+
});
|
|
75
|
+
const Proposal = IDL.Record({
|
|
76
|
+
status: ProposalStatus,
|
|
77
|
+
updated_at: IDL.Nat64,
|
|
78
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
79
|
+
executed_at: IDL.Opt(IDL.Nat64),
|
|
80
|
+
owner: IDL.Principal,
|
|
81
|
+
created_at: IDL.Nat64,
|
|
82
|
+
version: IDL.Opt(IDL.Nat64),
|
|
83
|
+
proposal_type: ProposalType
|
|
84
|
+
});
|
|
85
|
+
const MissionControl = IDL.Record({
|
|
86
|
+
updated_at: IDL.Nat64,
|
|
87
|
+
credits: Tokens,
|
|
88
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
89
|
+
owner: IDL.Principal,
|
|
90
|
+
created_at: IDL.Nat64
|
|
91
|
+
});
|
|
92
|
+
const HttpRequest = IDL.Record({
|
|
93
|
+
url: IDL.Text,
|
|
94
|
+
method: IDL.Text,
|
|
95
|
+
body: IDL.Vec(IDL.Nat8),
|
|
96
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
97
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
98
|
+
});
|
|
99
|
+
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
100
|
+
const StreamingCallbackToken = IDL.Record({
|
|
101
|
+
memory: Memory,
|
|
102
|
+
token: IDL.Opt(IDL.Text),
|
|
103
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
104
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
105
|
+
index: IDL.Nat64,
|
|
106
|
+
encoding_type: IDL.Text,
|
|
107
|
+
full_path: IDL.Text
|
|
108
|
+
});
|
|
109
|
+
const StreamingStrategy = IDL.Variant({
|
|
110
|
+
Callback: IDL.Record({
|
|
111
|
+
token: StreamingCallbackToken,
|
|
112
|
+
callback: IDL.Func([], [], ['query'])
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
const HttpResponse = IDL.Record({
|
|
116
|
+
body: IDL.Vec(IDL.Nat8),
|
|
117
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
118
|
+
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
119
|
+
status_code: IDL.Nat16
|
|
120
|
+
});
|
|
121
|
+
const StreamingCallbackHttpResponse = IDL.Record({
|
|
122
|
+
token: IDL.Opt(StreamingCallbackToken),
|
|
123
|
+
body: IDL.Vec(IDL.Nat8)
|
|
124
|
+
});
|
|
125
|
+
const InitAssetKey = IDL.Record({
|
|
126
|
+
token: IDL.Opt(IDL.Text),
|
|
127
|
+
collection: IDL.Text,
|
|
128
|
+
name: IDL.Text,
|
|
129
|
+
description: IDL.Opt(IDL.Text),
|
|
130
|
+
encoding_type: IDL.Opt(IDL.Text),
|
|
131
|
+
full_path: IDL.Text
|
|
132
|
+
});
|
|
133
|
+
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
134
|
+
const ListOrderField = IDL.Variant({
|
|
135
|
+
UpdatedAt: IDL.Null,
|
|
136
|
+
Keys: IDL.Null,
|
|
137
|
+
CreatedAt: IDL.Null
|
|
138
|
+
});
|
|
139
|
+
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
140
|
+
const TimestampMatcher = IDL.Variant({
|
|
141
|
+
Equal: IDL.Nat64,
|
|
142
|
+
Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
143
|
+
GreaterThan: IDL.Nat64,
|
|
144
|
+
LessThan: IDL.Nat64
|
|
145
|
+
});
|
|
146
|
+
const ListMatcher = IDL.Record({
|
|
147
|
+
key: IDL.Opt(IDL.Text),
|
|
148
|
+
updated_at: IDL.Opt(TimestampMatcher),
|
|
149
|
+
description: IDL.Opt(IDL.Text),
|
|
150
|
+
created_at: IDL.Opt(TimestampMatcher)
|
|
151
|
+
});
|
|
152
|
+
const ListPaginate = IDL.Record({
|
|
153
|
+
start_after: IDL.Opt(IDL.Text),
|
|
154
|
+
limit: IDL.Opt(IDL.Nat64)
|
|
155
|
+
});
|
|
156
|
+
const ListParams = IDL.Record({
|
|
157
|
+
order: IDL.Opt(ListOrder),
|
|
158
|
+
owner: IDL.Opt(IDL.Principal),
|
|
159
|
+
matcher: IDL.Opt(ListMatcher),
|
|
160
|
+
paginate: IDL.Opt(ListPaginate)
|
|
161
|
+
});
|
|
162
|
+
const AssetKey = IDL.Record({
|
|
163
|
+
token: IDL.Opt(IDL.Text),
|
|
164
|
+
collection: IDL.Text,
|
|
165
|
+
owner: IDL.Principal,
|
|
166
|
+
name: IDL.Text,
|
|
167
|
+
description: IDL.Opt(IDL.Text),
|
|
168
|
+
full_path: IDL.Text
|
|
169
|
+
});
|
|
170
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
171
|
+
modified: IDL.Nat64,
|
|
172
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
173
|
+
total_length: IDL.Nat
|
|
174
|
+
});
|
|
175
|
+
const AssetNoContent = IDL.Record({
|
|
176
|
+
key: AssetKey,
|
|
177
|
+
updated_at: IDL.Nat64,
|
|
178
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
179
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
180
|
+
created_at: IDL.Nat64,
|
|
181
|
+
version: IDL.Opt(IDL.Nat64)
|
|
182
|
+
});
|
|
183
|
+
const ListResults = IDL.Record({
|
|
184
|
+
matches_pages: IDL.Opt(IDL.Nat64),
|
|
185
|
+
matches_length: IDL.Nat64,
|
|
186
|
+
items_page: IDL.Opt(IDL.Nat64),
|
|
187
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
188
|
+
items_length: IDL.Nat64
|
|
189
|
+
});
|
|
190
|
+
const CustomDomain = IDL.Record({
|
|
191
|
+
updated_at: IDL.Nat64,
|
|
192
|
+
created_at: IDL.Nat64,
|
|
193
|
+
version: IDL.Opt(IDL.Nat64),
|
|
194
|
+
bn_id: IDL.Opt(IDL.Text)
|
|
195
|
+
});
|
|
196
|
+
const PaymentStatus = IDL.Variant({
|
|
197
|
+
Refunded: IDL.Null,
|
|
198
|
+
Acknowledged: IDL.Null,
|
|
199
|
+
Completed: IDL.Null
|
|
200
|
+
});
|
|
201
|
+
const Payment = IDL.Record({
|
|
202
|
+
status: PaymentStatus,
|
|
203
|
+
updated_at: IDL.Nat64,
|
|
204
|
+
block_index_payment: IDL.Nat64,
|
|
205
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
206
|
+
created_at: IDL.Nat64,
|
|
207
|
+
block_index_refunded: IDL.Opt(IDL.Nat64)
|
|
208
|
+
});
|
|
209
|
+
const ControllerScope = IDL.Variant({
|
|
210
|
+
Write: IDL.Null,
|
|
211
|
+
Admin: IDL.Null
|
|
212
|
+
});
|
|
213
|
+
const SetController = IDL.Record({
|
|
214
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
215
|
+
scope: ControllerScope,
|
|
216
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
217
|
+
});
|
|
218
|
+
const SetControllersArgs = IDL.Record({
|
|
219
|
+
controller: SetController,
|
|
220
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
221
|
+
});
|
|
222
|
+
const SegmentType = IDL.Variant({
|
|
223
|
+
Orbiter: IDL.Null,
|
|
224
|
+
MissionControl: IDL.Null,
|
|
225
|
+
Satellite: IDL.Null
|
|
226
|
+
});
|
|
227
|
+
const RateConfig = IDL.Record({
|
|
228
|
+
max_tokens: IDL.Nat64,
|
|
229
|
+
time_per_token_ns: IDL.Nat64
|
|
230
|
+
});
|
|
231
|
+
const UploadChunk = IDL.Record({
|
|
232
|
+
content: IDL.Vec(IDL.Nat8),
|
|
233
|
+
batch_id: IDL.Nat,
|
|
234
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
235
|
+
});
|
|
236
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
237
|
+
return IDL.Service({
|
|
238
|
+
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
239
|
+
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
240
|
+
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
241
|
+
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
242
|
+
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
243
|
+
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
244
|
+
create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
245
|
+
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
246
|
+
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
247
|
+
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
248
|
+
get_config: IDL.Func([], [Config], []),
|
|
249
|
+
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
250
|
+
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
251
|
+
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
252
|
+
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
253
|
+
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
254
|
+
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
255
|
+
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
256
|
+
http_request_streaming_callback: IDL.Func(
|
|
257
|
+
[StreamingCallbackToken],
|
|
258
|
+
[StreamingCallbackHttpResponse],
|
|
259
|
+
['query']
|
|
260
|
+
),
|
|
261
|
+
init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
262
|
+
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
263
|
+
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
|
|
264
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
265
|
+
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
266
|
+
list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
|
|
267
|
+
list_user_mission_control_centers: IDL.Func(
|
|
268
|
+
[],
|
|
269
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
270
|
+
['query']
|
|
271
|
+
),
|
|
272
|
+
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
273
|
+
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
274
|
+
set_fee: IDL.Func([SegmentType, Tokens], [], []),
|
|
275
|
+
set_storage_config: IDL.Func([StorageConfig], [], []),
|
|
276
|
+
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
277
|
+
update_rate_config: IDL.Func([SegmentType, RateConfig], [], []),
|
|
278
|
+
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
279
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
// @ts-ignore
|
|
283
|
+
export const init = ({IDL}) => {
|
|
284
|
+
return [];
|
|
285
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AssertMissionControlCenterArgs {
|
|
6
|
+
mission_control_id: Principal;
|
|
7
|
+
user: Principal;
|
|
8
|
+
}
|
|
9
|
+
export type ControllerScope = {Write: null} | {Admin: null};
|
|
10
|
+
export interface CreateCanisterArgs {
|
|
11
|
+
block_index: [] | [bigint];
|
|
12
|
+
user: Principal;
|
|
13
|
+
}
|
|
14
|
+
export interface DeleteControllersArgs {
|
|
15
|
+
controllers: Array<Principal>;
|
|
16
|
+
}
|
|
17
|
+
export interface GetCreateCanisterFeeArgs {
|
|
18
|
+
user: Principal;
|
|
19
|
+
}
|
|
20
|
+
export interface LoadRelease {
|
|
21
|
+
total: bigint;
|
|
22
|
+
chunks: bigint;
|
|
23
|
+
}
|
|
24
|
+
export interface MissionControl {
|
|
25
|
+
updated_at: bigint;
|
|
26
|
+
credits: Tokens;
|
|
27
|
+
mission_control_id: [] | [Principal];
|
|
28
|
+
owner: Principal;
|
|
29
|
+
created_at: bigint;
|
|
30
|
+
}
|
|
31
|
+
export interface RateConfig {
|
|
32
|
+
max_tokens: bigint;
|
|
33
|
+
time_per_token_ns: bigint;
|
|
34
|
+
}
|
|
35
|
+
export interface ReleasesVersion {
|
|
36
|
+
satellite: [] | [string];
|
|
37
|
+
orbiter: [] | [string];
|
|
38
|
+
mission_control: [] | [string];
|
|
39
|
+
}
|
|
40
|
+
export type Segment = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
41
|
+
export interface SetController {
|
|
42
|
+
metadata: Array<[string, string]>;
|
|
43
|
+
scope: ControllerScope;
|
|
44
|
+
expires_at: [] | [bigint];
|
|
45
|
+
}
|
|
46
|
+
export interface SetControllersArgs {
|
|
47
|
+
controller: SetController;
|
|
48
|
+
controllers: Array<Principal>;
|
|
49
|
+
}
|
|
50
|
+
export interface Tokens {
|
|
51
|
+
e8s: bigint;
|
|
52
|
+
}
|
|
53
|
+
export interface _SERVICE {
|
|
54
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
55
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
56
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
57
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
58
|
+
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
59
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
60
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
61
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
62
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
63
|
+
get_releases_version: ActorMethod<[], ReleasesVersion>;
|
|
64
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
65
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
66
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
67
|
+
load_release: ActorMethod<[Segment, Uint8Array | number[], string], LoadRelease>;
|
|
68
|
+
reset_release: ActorMethod<[Segment], undefined>;
|
|
69
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
70
|
+
set_fee: ActorMethod<[Segment, Tokens], undefined>;
|
|
71
|
+
update_rate_config: ActorMethod<[Segment, RateConfig], undefined>;
|
|
72
|
+
version: ActorMethod<[], string>;
|
|
73
|
+
}
|
|
74
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
75
|
+
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const idlFactory = ({IDL}) => {
|
|
3
|
+
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
4
|
+
const AssertMissionControlCenterArgs = IDL.Record({
|
|
5
|
+
mission_control_id: IDL.Principal,
|
|
6
|
+
user: IDL.Principal
|
|
7
|
+
});
|
|
8
|
+
const CreateCanisterArgs = IDL.Record({
|
|
9
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
10
|
+
user: IDL.Principal
|
|
11
|
+
});
|
|
12
|
+
const DeleteControllersArgs = IDL.Record({
|
|
13
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
14
|
+
});
|
|
15
|
+
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
16
|
+
const ReleasesVersion = IDL.Record({
|
|
17
|
+
satellite: IDL.Opt(IDL.Text),
|
|
18
|
+
orbiter: IDL.Opt(IDL.Text),
|
|
19
|
+
mission_control: IDL.Opt(IDL.Text)
|
|
20
|
+
});
|
|
21
|
+
const MissionControl = IDL.Record({
|
|
22
|
+
updated_at: IDL.Nat64,
|
|
23
|
+
credits: Tokens,
|
|
24
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
25
|
+
owner: IDL.Principal,
|
|
26
|
+
created_at: IDL.Nat64
|
|
27
|
+
});
|
|
28
|
+
const Segment = IDL.Variant({
|
|
29
|
+
Orbiter: IDL.Null,
|
|
30
|
+
MissionControl: IDL.Null,
|
|
31
|
+
Satellite: IDL.Null
|
|
32
|
+
});
|
|
33
|
+
const LoadRelease = IDL.Record({total: IDL.Nat64, chunks: IDL.Nat64});
|
|
34
|
+
const ControllerScope = IDL.Variant({
|
|
35
|
+
Write: IDL.Null,
|
|
36
|
+
Admin: IDL.Null
|
|
37
|
+
});
|
|
38
|
+
const SetController = IDL.Record({
|
|
39
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
40
|
+
scope: ControllerScope,
|
|
41
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
42
|
+
});
|
|
43
|
+
const SetControllersArgs = IDL.Record({
|
|
44
|
+
controller: SetController,
|
|
45
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
46
|
+
});
|
|
47
|
+
const RateConfig = IDL.Record({
|
|
48
|
+
max_tokens: IDL.Nat64,
|
|
49
|
+
time_per_token_ns: IDL.Nat64
|
|
50
|
+
});
|
|
51
|
+
return IDL.Service({
|
|
52
|
+
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
53
|
+
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
54
|
+
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
55
|
+
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
56
|
+
create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
57
|
+
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
58
|
+
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
59
|
+
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
60
|
+
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
61
|
+
get_releases_version: IDL.Func([], [ReleasesVersion], ['query']),
|
|
62
|
+
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
63
|
+
init_user_mission_control_center: IDL.Func([], [MissionControl], []),
|
|
64
|
+
list_user_mission_control_centers: IDL.Func(
|
|
65
|
+
[],
|
|
66
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
67
|
+
['query']
|
|
68
|
+
),
|
|
69
|
+
load_release: IDL.Func([Segment, IDL.Vec(IDL.Nat8), IDL.Text], [LoadRelease], []),
|
|
70
|
+
reset_release: IDL.Func([Segment], [], []),
|
|
71
|
+
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
72
|
+
set_fee: IDL.Func([Segment, Tokens], [], []),
|
|
73
|
+
update_rate_config: IDL.Func([Segment, RateConfig], [], []),
|
|
74
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
export const init = ({IDL}) => {
|
|
79
|
+
return [];
|
|
80
|
+
};
|