@junobuild/admin 0.0.53-next-2024-08-04.1 → 0.0.53-next-2024-08-09.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.0.53-next-2024-08-04.1",
3
+ "version": "0.0.53-next-2024-08-09.1",
4
4
  "description": "A library for interfacing with admin features of Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -23,8 +23,7 @@
23
23
  "files": [
24
24
  "dist",
25
25
  "README.md",
26
- "LICENSE",
27
- "declarations"
26
+ "LICENSE"
28
27
  ],
29
28
  "scripts": {
30
29
  "rmdir": "node ../../scripts/rmdir.mjs",
@@ -1,301 +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 type bitcoin_address = string;
6
- export interface bitcoin_get_balance_args {
7
- network: bitcoin_network;
8
- address: bitcoin_address;
9
- min_confirmations: [] | [number];
10
- }
11
- export interface bitcoin_get_balance_query_args {
12
- network: bitcoin_network;
13
- address: bitcoin_address;
14
- min_confirmations: [] | [number];
15
- }
16
- export type bitcoin_get_balance_query_result = satoshi;
17
- export type bitcoin_get_balance_result = satoshi;
18
- export interface bitcoin_get_current_fee_percentiles_args {
19
- network: bitcoin_network;
20
- }
21
- export type bitcoin_get_current_fee_percentiles_result = BigUint64Array | bigint[];
22
- export interface bitcoin_get_utxos_args {
23
- network: bitcoin_network;
24
- filter: [] | [{page: Uint8Array | number[]} | {min_confirmations: number}];
25
- address: bitcoin_address;
26
- }
27
- export interface bitcoin_get_utxos_query_args {
28
- network: bitcoin_network;
29
- filter: [] | [{page: Uint8Array | number[]} | {min_confirmations: number}];
30
- address: bitcoin_address;
31
- }
32
- export interface bitcoin_get_utxos_query_result {
33
- next_page: [] | [Uint8Array | number[]];
34
- tip_height: number;
35
- tip_block_hash: block_hash;
36
- utxos: Array<utxo>;
37
- }
38
- export interface bitcoin_get_utxos_result {
39
- next_page: [] | [Uint8Array | number[]];
40
- tip_height: number;
41
- tip_block_hash: block_hash;
42
- utxos: Array<utxo>;
43
- }
44
- export type bitcoin_network = {mainnet: null} | {testnet: null};
45
- export interface bitcoin_send_transaction_args {
46
- transaction: Uint8Array | number[];
47
- network: bitcoin_network;
48
- }
49
- export type block_hash = Uint8Array | number[];
50
- export type canister_id = Principal;
51
- export interface canister_info_args {
52
- canister_id: canister_id;
53
- num_requested_changes: [] | [bigint];
54
- }
55
- export interface canister_info_result {
56
- controllers: Array<Principal>;
57
- module_hash: [] | [Uint8Array | number[]];
58
- recent_changes: Array<change>;
59
- total_num_changes: bigint;
60
- }
61
- export interface canister_log_record {
62
- idx: bigint;
63
- timestamp_nanos: bigint;
64
- content: Uint8Array | number[];
65
- }
66
- export interface canister_settings {
67
- freezing_threshold: [] | [bigint];
68
- controllers: [] | [Array<Principal>];
69
- reserved_cycles_limit: [] | [bigint];
70
- log_visibility: [] | [log_visibility];
71
- memory_allocation: [] | [bigint];
72
- compute_allocation: [] | [bigint];
73
- }
74
- export interface canister_status_args {
75
- canister_id: canister_id;
76
- }
77
- export interface canister_status_result {
78
- status: {stopped: null} | {stopping: null} | {running: null};
79
- memory_size: bigint;
80
- cycles: bigint;
81
- settings: definite_canister_settings;
82
- idle_cycles_burned_per_day: bigint;
83
- module_hash: [] | [Uint8Array | number[]];
84
- reserved_cycles: bigint;
85
- }
86
- export interface change {
87
- timestamp_nanos: bigint;
88
- canister_version: bigint;
89
- origin: change_origin;
90
- details: change_details;
91
- }
92
- export type change_details =
93
- | {
94
- creation: {controllers: Array<Principal>};
95
- }
96
- | {
97
- code_deployment: {
98
- mode: {reinstall: null} | {upgrade: null} | {install: null};
99
- module_hash: Uint8Array | number[];
100
- };
101
- }
102
- | {controllers_change: {controllers: Array<Principal>}}
103
- | {code_uninstall: null};
104
- export type change_origin =
105
- | {from_user: {user_id: Principal}}
106
- | {
107
- from_canister: {
108
- canister_version: [] | [bigint];
109
- canister_id: Principal;
110
- };
111
- };
112
- export type chunk_hash = Uint8Array | number[];
113
- export interface clear_chunk_store_args {
114
- canister_id: canister_id;
115
- }
116
- export interface create_canister_args {
117
- settings: [] | [canister_settings];
118
- sender_canister_version: [] | [bigint];
119
- }
120
- export interface create_canister_result {
121
- canister_id: canister_id;
122
- }
123
- export interface definite_canister_settings {
124
- freezing_threshold: bigint;
125
- controllers: Array<Principal>;
126
- reserved_cycles_limit: bigint;
127
- log_visibility: log_visibility;
128
- memory_allocation: bigint;
129
- compute_allocation: bigint;
130
- }
131
- export interface delete_canister_args {
132
- canister_id: canister_id;
133
- }
134
- export interface deposit_cycles_args {
135
- canister_id: canister_id;
136
- }
137
- export type ecdsa_curve = {secp256k1: null};
138
- export interface ecdsa_public_key_args {
139
- key_id: {name: string; curve: ecdsa_curve};
140
- canister_id: [] | [canister_id];
141
- derivation_path: Array<Uint8Array | number[]>;
142
- }
143
- export interface ecdsa_public_key_result {
144
- public_key: Uint8Array | number[];
145
- chain_code: Uint8Array | number[];
146
- }
147
- export interface fetch_canister_logs_args {
148
- canister_id: canister_id;
149
- }
150
- export interface fetch_canister_logs_result {
151
- canister_log_records: Array<canister_log_record>;
152
- }
153
- export interface http_header {
154
- value: string;
155
- name: string;
156
- }
157
- export interface http_request_args {
158
- url: string;
159
- method: {get: null} | {head: null} | {post: null};
160
- max_response_bytes: [] | [bigint];
161
- body: [] | [Uint8Array | number[]];
162
- transform: [] | [{function: [Principal, string]; context: Uint8Array | number[]}];
163
- headers: Array<http_header>;
164
- }
165
- export interface http_request_result {
166
- status: bigint;
167
- body: Uint8Array | number[];
168
- headers: Array<http_header>;
169
- }
170
- export interface install_chunked_code_args {
171
- arg: Uint8Array | number[];
172
- wasm_module_hash: Uint8Array | number[];
173
- mode: {reinstall: null} | {upgrade: [] | [{skip_pre_upgrade: [] | [boolean]}]} | {install: null};
174
- chunk_hashes_list: Array<chunk_hash>;
175
- target_canister: canister_id;
176
- sender_canister_version: [] | [bigint];
177
- storage_canister: [] | [canister_id];
178
- }
179
- export interface install_code_args {
180
- arg: Uint8Array | number[];
181
- wasm_module: wasm_module;
182
- mode: {reinstall: null} | {upgrade: [] | [{skip_pre_upgrade: [] | [boolean]}]} | {install: null};
183
- canister_id: canister_id;
184
- sender_canister_version: [] | [bigint];
185
- }
186
- export type log_visibility = {controllers: null} | {public: null};
187
- export type millisatoshi_per_byte = bigint;
188
- export interface node_metrics {
189
- num_block_failures_total: bigint;
190
- node_id: Principal;
191
- num_blocks_total: bigint;
192
- }
193
- export interface node_metrics_history_args {
194
- start_at_timestamp_nanos: bigint;
195
- subnet_id: Principal;
196
- }
197
- export type node_metrics_history_result = Array<{
198
- timestamp_nanos: bigint;
199
- node_metrics: Array<node_metrics>;
200
- }>;
201
- export interface outpoint {
202
- txid: Uint8Array | number[];
203
- vout: number;
204
- }
205
- export interface provisional_create_canister_with_cycles_args {
206
- settings: [] | [canister_settings];
207
- specified_id: [] | [canister_id];
208
- amount: [] | [bigint];
209
- sender_canister_version: [] | [bigint];
210
- }
211
- export interface provisional_create_canister_with_cycles_result {
212
- canister_id: canister_id;
213
- }
214
- export interface provisional_top_up_canister_args {
215
- canister_id: canister_id;
216
- amount: bigint;
217
- }
218
- export type raw_rand_result = Uint8Array | number[];
219
- export type satoshi = bigint;
220
- export interface sign_with_ecdsa_args {
221
- key_id: {name: string; curve: ecdsa_curve};
222
- derivation_path: Array<Uint8Array | number[]>;
223
- message_hash: Uint8Array | number[];
224
- }
225
- export interface sign_with_ecdsa_result {
226
- signature: Uint8Array | number[];
227
- }
228
- export interface start_canister_args {
229
- canister_id: canister_id;
230
- }
231
- export interface stop_canister_args {
232
- canister_id: canister_id;
233
- }
234
- export interface stored_chunks_args {
235
- canister_id: canister_id;
236
- }
237
- export type stored_chunks_result = Array<chunk_hash>;
238
- export interface uninstall_code_args {
239
- canister_id: canister_id;
240
- sender_canister_version: [] | [bigint];
241
- }
242
- export interface update_settings_args {
243
- canister_id: Principal;
244
- settings: canister_settings;
245
- sender_canister_version: [] | [bigint];
246
- }
247
- export interface upload_chunk_args {
248
- chunk: Uint8Array | number[];
249
- canister_id: Principal;
250
- }
251
- export type upload_chunk_result = chunk_hash;
252
- export interface utxo {
253
- height: number;
254
- value: satoshi;
255
- outpoint: outpoint;
256
- }
257
- export type wasm_module = Uint8Array | number[];
258
- export interface _SERVICE {
259
- bitcoin_get_balance: ActorMethod<[bitcoin_get_balance_args], bitcoin_get_balance_result>;
260
- bitcoin_get_balance_query: ActorMethod<
261
- [bitcoin_get_balance_query_args],
262
- bitcoin_get_balance_query_result
263
- >;
264
- bitcoin_get_current_fee_percentiles: ActorMethod<
265
- [bitcoin_get_current_fee_percentiles_args],
266
- bitcoin_get_current_fee_percentiles_result
267
- >;
268
- bitcoin_get_utxos: ActorMethod<[bitcoin_get_utxos_args], bitcoin_get_utxos_result>;
269
- bitcoin_get_utxos_query: ActorMethod<
270
- [bitcoin_get_utxos_query_args],
271
- bitcoin_get_utxos_query_result
272
- >;
273
- bitcoin_send_transaction: ActorMethod<[bitcoin_send_transaction_args], undefined>;
274
- canister_info: ActorMethod<[canister_info_args], canister_info_result>;
275
- canister_status: ActorMethod<[canister_status_args], canister_status_result>;
276
- clear_chunk_store: ActorMethod<[clear_chunk_store_args], undefined>;
277
- create_canister: ActorMethod<[create_canister_args], create_canister_result>;
278
- delete_canister: ActorMethod<[delete_canister_args], undefined>;
279
- deposit_cycles: ActorMethod<[deposit_cycles_args], undefined>;
280
- ecdsa_public_key: ActorMethod<[ecdsa_public_key_args], ecdsa_public_key_result>;
281
- fetch_canister_logs: ActorMethod<[fetch_canister_logs_args], fetch_canister_logs_result>;
282
- http_request: ActorMethod<[http_request_args], http_request_result>;
283
- install_chunked_code: ActorMethod<[install_chunked_code_args], undefined>;
284
- install_code: ActorMethod<[install_code_args], undefined>;
285
- node_metrics_history: ActorMethod<[node_metrics_history_args], node_metrics_history_result>;
286
- provisional_create_canister_with_cycles: ActorMethod<
287
- [provisional_create_canister_with_cycles_args],
288
- provisional_create_canister_with_cycles_result
289
- >;
290
- provisional_top_up_canister: ActorMethod<[provisional_top_up_canister_args], undefined>;
291
- raw_rand: ActorMethod<[], raw_rand_result>;
292
- sign_with_ecdsa: ActorMethod<[sign_with_ecdsa_args], sign_with_ecdsa_result>;
293
- start_canister: ActorMethod<[start_canister_args], undefined>;
294
- stop_canister: ActorMethod<[stop_canister_args], undefined>;
295
- stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>;
296
- uninstall_code: ActorMethod<[uninstall_code_args], undefined>;
297
- update_settings: ActorMethod<[update_settings_args], undefined>;
298
- upload_chunk: ActorMethod<[upload_chunk_args], upload_chunk_result>;
299
- }
300
- export declare const idlFactory: IDL.InterfaceFactory;
301
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -1,339 +0,0 @@
1
- // @ts-ignore
2
- export const idlFactory = ({IDL}) => {
3
- const bitcoin_network = IDL.Variant({
4
- mainnet: IDL.Null,
5
- testnet: IDL.Null
6
- });
7
- const bitcoin_address = IDL.Text;
8
- const bitcoin_get_balance_args = IDL.Record({
9
- network: bitcoin_network,
10
- address: bitcoin_address,
11
- min_confirmations: IDL.Opt(IDL.Nat32)
12
- });
13
- const satoshi = IDL.Nat64;
14
- const bitcoin_get_balance_result = satoshi;
15
- const bitcoin_get_balance_query_args = IDL.Record({
16
- network: bitcoin_network,
17
- address: bitcoin_address,
18
- min_confirmations: IDL.Opt(IDL.Nat32)
19
- });
20
- const bitcoin_get_balance_query_result = satoshi;
21
- const bitcoin_get_current_fee_percentiles_args = IDL.Record({
22
- network: bitcoin_network
23
- });
24
- const millisatoshi_per_byte = IDL.Nat64;
25
- const bitcoin_get_current_fee_percentiles_result = IDL.Vec(millisatoshi_per_byte);
26
- const bitcoin_get_utxos_args = IDL.Record({
27
- network: bitcoin_network,
28
- filter: IDL.Opt(
29
- IDL.Variant({
30
- page: IDL.Vec(IDL.Nat8),
31
- min_confirmations: IDL.Nat32
32
- })
33
- ),
34
- address: bitcoin_address
35
- });
36
- const block_hash = IDL.Vec(IDL.Nat8);
37
- const outpoint = IDL.Record({
38
- txid: IDL.Vec(IDL.Nat8),
39
- vout: IDL.Nat32
40
- });
41
- const utxo = IDL.Record({
42
- height: IDL.Nat32,
43
- value: satoshi,
44
- outpoint: outpoint
45
- });
46
- const bitcoin_get_utxos_result = IDL.Record({
47
- next_page: IDL.Opt(IDL.Vec(IDL.Nat8)),
48
- tip_height: IDL.Nat32,
49
- tip_block_hash: block_hash,
50
- utxos: IDL.Vec(utxo)
51
- });
52
- const bitcoin_get_utxos_query_args = IDL.Record({
53
- network: bitcoin_network,
54
- filter: IDL.Opt(
55
- IDL.Variant({
56
- page: IDL.Vec(IDL.Nat8),
57
- min_confirmations: IDL.Nat32
58
- })
59
- ),
60
- address: bitcoin_address
61
- });
62
- const bitcoin_get_utxos_query_result = IDL.Record({
63
- next_page: IDL.Opt(IDL.Vec(IDL.Nat8)),
64
- tip_height: IDL.Nat32,
65
- tip_block_hash: block_hash,
66
- utxos: IDL.Vec(utxo)
67
- });
68
- const bitcoin_send_transaction_args = IDL.Record({
69
- transaction: IDL.Vec(IDL.Nat8),
70
- network: bitcoin_network
71
- });
72
- const canister_id = IDL.Principal;
73
- const canister_info_args = IDL.Record({
74
- canister_id: canister_id,
75
- num_requested_changes: IDL.Opt(IDL.Nat64)
76
- });
77
- const change_origin = IDL.Variant({
78
- from_user: IDL.Record({user_id: IDL.Principal}),
79
- from_canister: IDL.Record({
80
- canister_version: IDL.Opt(IDL.Nat64),
81
- canister_id: IDL.Principal
82
- })
83
- });
84
- const change_details = IDL.Variant({
85
- creation: IDL.Record({controllers: IDL.Vec(IDL.Principal)}),
86
- code_deployment: IDL.Record({
87
- mode: IDL.Variant({
88
- reinstall: IDL.Null,
89
- upgrade: IDL.Null,
90
- install: IDL.Null
91
- }),
92
- module_hash: IDL.Vec(IDL.Nat8)
93
- }),
94
- controllers_change: IDL.Record({
95
- controllers: IDL.Vec(IDL.Principal)
96
- }),
97
- code_uninstall: IDL.Null
98
- });
99
- const change = IDL.Record({
100
- timestamp_nanos: IDL.Nat64,
101
- canister_version: IDL.Nat64,
102
- origin: change_origin,
103
- details: change_details
104
- });
105
- const canister_info_result = IDL.Record({
106
- controllers: IDL.Vec(IDL.Principal),
107
- module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
108
- recent_changes: IDL.Vec(change),
109
- total_num_changes: IDL.Nat64
110
- });
111
- const canister_status_args = IDL.Record({canister_id: canister_id});
112
- const log_visibility = IDL.Variant({
113
- controllers: IDL.Null,
114
- public: IDL.Null
115
- });
116
- const definite_canister_settings = IDL.Record({
117
- freezing_threshold: IDL.Nat,
118
- controllers: IDL.Vec(IDL.Principal),
119
- reserved_cycles_limit: IDL.Nat,
120
- log_visibility: log_visibility,
121
- memory_allocation: IDL.Nat,
122
- compute_allocation: IDL.Nat
123
- });
124
- const canister_status_result = IDL.Record({
125
- status: IDL.Variant({
126
- stopped: IDL.Null,
127
- stopping: IDL.Null,
128
- running: IDL.Null
129
- }),
130
- memory_size: IDL.Nat,
131
- cycles: IDL.Nat,
132
- settings: definite_canister_settings,
133
- idle_cycles_burned_per_day: IDL.Nat,
134
- module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
135
- reserved_cycles: IDL.Nat
136
- });
137
- const clear_chunk_store_args = IDL.Record({canister_id: canister_id});
138
- const canister_settings = IDL.Record({
139
- freezing_threshold: IDL.Opt(IDL.Nat),
140
- controllers: IDL.Opt(IDL.Vec(IDL.Principal)),
141
- reserved_cycles_limit: IDL.Opt(IDL.Nat),
142
- log_visibility: IDL.Opt(log_visibility),
143
- memory_allocation: IDL.Opt(IDL.Nat),
144
- compute_allocation: IDL.Opt(IDL.Nat)
145
- });
146
- const create_canister_args = IDL.Record({
147
- settings: IDL.Opt(canister_settings),
148
- sender_canister_version: IDL.Opt(IDL.Nat64)
149
- });
150
- const create_canister_result = IDL.Record({canister_id: canister_id});
151
- const delete_canister_args = IDL.Record({canister_id: canister_id});
152
- const deposit_cycles_args = IDL.Record({canister_id: canister_id});
153
- const ecdsa_curve = IDL.Variant({secp256k1: IDL.Null});
154
- const ecdsa_public_key_args = IDL.Record({
155
- key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
156
- canister_id: IDL.Opt(canister_id),
157
- derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8))
158
- });
159
- const ecdsa_public_key_result = IDL.Record({
160
- public_key: IDL.Vec(IDL.Nat8),
161
- chain_code: IDL.Vec(IDL.Nat8)
162
- });
163
- const fetch_canister_logs_args = IDL.Record({canister_id: canister_id});
164
- const canister_log_record = IDL.Record({
165
- idx: IDL.Nat64,
166
- timestamp_nanos: IDL.Nat64,
167
- content: IDL.Vec(IDL.Nat8)
168
- });
169
- const fetch_canister_logs_result = IDL.Record({
170
- canister_log_records: IDL.Vec(canister_log_record)
171
- });
172
- const http_header = IDL.Record({value: IDL.Text, name: IDL.Text});
173
- const http_request_result = IDL.Record({
174
- status: IDL.Nat,
175
- body: IDL.Vec(IDL.Nat8),
176
- headers: IDL.Vec(http_header)
177
- });
178
- const http_request_args = IDL.Record({
179
- url: IDL.Text,
180
- method: IDL.Variant({
181
- get: IDL.Null,
182
- head: IDL.Null,
183
- post: IDL.Null
184
- }),
185
- max_response_bytes: IDL.Opt(IDL.Nat64),
186
- body: IDL.Opt(IDL.Vec(IDL.Nat8)),
187
- transform: IDL.Opt(
188
- IDL.Record({
189
- function: IDL.Func(
190
- [
191
- IDL.Record({
192
- context: IDL.Vec(IDL.Nat8),
193
- response: http_request_result
194
- })
195
- ],
196
- [http_request_result],
197
- ['query']
198
- ),
199
- context: IDL.Vec(IDL.Nat8)
200
- })
201
- ),
202
- headers: IDL.Vec(http_header)
203
- });
204
- const chunk_hash = IDL.Vec(IDL.Nat8);
205
- const install_chunked_code_args = IDL.Record({
206
- arg: IDL.Vec(IDL.Nat8),
207
- wasm_module_hash: IDL.Vec(IDL.Nat8),
208
- mode: IDL.Variant({
209
- reinstall: IDL.Null,
210
- upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
211
- install: IDL.Null
212
- }),
213
- chunk_hashes_list: IDL.Vec(chunk_hash),
214
- target_canister: canister_id,
215
- sender_canister_version: IDL.Opt(IDL.Nat64),
216
- storage_canister: IDL.Opt(canister_id)
217
- });
218
- const wasm_module = IDL.Vec(IDL.Nat8);
219
- const install_code_args = IDL.Record({
220
- arg: IDL.Vec(IDL.Nat8),
221
- wasm_module: wasm_module,
222
- mode: IDL.Variant({
223
- reinstall: IDL.Null,
224
- upgrade: IDL.Opt(IDL.Record({skip_pre_upgrade: IDL.Opt(IDL.Bool)})),
225
- install: IDL.Null
226
- }),
227
- canister_id: canister_id,
228
- sender_canister_version: IDL.Opt(IDL.Nat64)
229
- });
230
- const node_metrics_history_args = IDL.Record({
231
- start_at_timestamp_nanos: IDL.Nat64,
232
- subnet_id: IDL.Principal
233
- });
234
- const node_metrics = IDL.Record({
235
- num_block_failures_total: IDL.Nat64,
236
- node_id: IDL.Principal,
237
- num_blocks_total: IDL.Nat64
238
- });
239
- const node_metrics_history_result = IDL.Vec(
240
- IDL.Record({
241
- timestamp_nanos: IDL.Nat64,
242
- node_metrics: IDL.Vec(node_metrics)
243
- })
244
- );
245
- const provisional_create_canister_with_cycles_args = IDL.Record({
246
- settings: IDL.Opt(canister_settings),
247
- specified_id: IDL.Opt(canister_id),
248
- amount: IDL.Opt(IDL.Nat),
249
- sender_canister_version: IDL.Opt(IDL.Nat64)
250
- });
251
- const provisional_create_canister_with_cycles_result = IDL.Record({
252
- canister_id: canister_id
253
- });
254
- const provisional_top_up_canister_args = IDL.Record({
255
- canister_id: canister_id,
256
- amount: IDL.Nat
257
- });
258
- const raw_rand_result = IDL.Vec(IDL.Nat8);
259
- const sign_with_ecdsa_args = IDL.Record({
260
- key_id: IDL.Record({name: IDL.Text, curve: ecdsa_curve}),
261
- derivation_path: IDL.Vec(IDL.Vec(IDL.Nat8)),
262
- message_hash: IDL.Vec(IDL.Nat8)
263
- });
264
- const sign_with_ecdsa_result = IDL.Record({
265
- signature: IDL.Vec(IDL.Nat8)
266
- });
267
- const start_canister_args = IDL.Record({canister_id: canister_id});
268
- const stop_canister_args = IDL.Record({canister_id: canister_id});
269
- const stored_chunks_args = IDL.Record({canister_id: canister_id});
270
- const stored_chunks_result = IDL.Vec(chunk_hash);
271
- const uninstall_code_args = IDL.Record({
272
- canister_id: canister_id,
273
- sender_canister_version: IDL.Opt(IDL.Nat64)
274
- });
275
- const update_settings_args = IDL.Record({
276
- canister_id: IDL.Principal,
277
- settings: canister_settings,
278
- sender_canister_version: IDL.Opt(IDL.Nat64)
279
- });
280
- const upload_chunk_args = IDL.Record({
281
- chunk: IDL.Vec(IDL.Nat8),
282
- canister_id: IDL.Principal
283
- });
284
- const upload_chunk_result = chunk_hash;
285
- return IDL.Service({
286
- bitcoin_get_balance: IDL.Func([bitcoin_get_balance_args], [bitcoin_get_balance_result], []),
287
- bitcoin_get_balance_query: IDL.Func(
288
- [bitcoin_get_balance_query_args],
289
- [bitcoin_get_balance_query_result],
290
- ['query']
291
- ),
292
- bitcoin_get_current_fee_percentiles: IDL.Func(
293
- [bitcoin_get_current_fee_percentiles_args],
294
- [bitcoin_get_current_fee_percentiles_result],
295
- []
296
- ),
297
- bitcoin_get_utxos: IDL.Func([bitcoin_get_utxos_args], [bitcoin_get_utxos_result], []),
298
- bitcoin_get_utxos_query: IDL.Func(
299
- [bitcoin_get_utxos_query_args],
300
- [bitcoin_get_utxos_query_result],
301
- ['query']
302
- ),
303
- bitcoin_send_transaction: IDL.Func([bitcoin_send_transaction_args], [], []),
304
- canister_info: IDL.Func([canister_info_args], [canister_info_result], []),
305
- canister_status: IDL.Func([canister_status_args], [canister_status_result], []),
306
- clear_chunk_store: IDL.Func([clear_chunk_store_args], [], []),
307
- create_canister: IDL.Func([create_canister_args], [create_canister_result], []),
308
- delete_canister: IDL.Func([delete_canister_args], [], []),
309
- deposit_cycles: IDL.Func([deposit_cycles_args], [], []),
310
- ecdsa_public_key: IDL.Func([ecdsa_public_key_args], [ecdsa_public_key_result], []),
311
- fetch_canister_logs: IDL.Func(
312
- [fetch_canister_logs_args],
313
- [fetch_canister_logs_result],
314
- ['query']
315
- ),
316
- http_request: IDL.Func([http_request_args], [http_request_result], []),
317
- install_chunked_code: IDL.Func([install_chunked_code_args], [], []),
318
- install_code: IDL.Func([install_code_args], [], []),
319
- node_metrics_history: IDL.Func([node_metrics_history_args], [node_metrics_history_result], []),
320
- provisional_create_canister_with_cycles: IDL.Func(
321
- [provisional_create_canister_with_cycles_args],
322
- [provisional_create_canister_with_cycles_result],
323
- []
324
- ),
325
- provisional_top_up_canister: IDL.Func([provisional_top_up_canister_args], [], []),
326
- raw_rand: IDL.Func([], [raw_rand_result], []),
327
- sign_with_ecdsa: IDL.Func([sign_with_ecdsa_args], [sign_with_ecdsa_result], []),
328
- start_canister: IDL.Func([start_canister_args], [], []),
329
- stop_canister: IDL.Func([stop_canister_args], [], []),
330
- stored_chunks: IDL.Func([stored_chunks_args], [stored_chunks_result], []),
331
- uninstall_code: IDL.Func([uninstall_code_args], [], []),
332
- update_settings: IDL.Func([update_settings_args], [], []),
333
- upload_chunk: IDL.Func([upload_chunk_args], [upload_chunk_result], [])
334
- });
335
- };
336
- // @ts-ignore
337
- export const init = ({IDL}) => {
338
- return [];
339
- };