@junobuild/functions 0.4.1 → 0.5.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 (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
@@ -0,0 +1,583 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
+ // You should NOT make any changes in this file as it will be overwritten.
7
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
+
9
+ import type { ActorMethod } from '@icp-sdk/core/agent';
10
+ import type { IDL } from '@icp-sdk/core/candid';
11
+ import type { Principal } from '@icp-sdk/core/principal';
12
+
13
+ export type bitcoin_address = string;
14
+ export type bitcoin_block_hash = Uint8Array;
15
+ export type bitcoin_block_header = Uint8Array;
16
+ export type bitcoin_block_height = number;
17
+ export interface bitcoin_get_balance_args {
18
+ 'network' : bitcoin_network,
19
+ 'address' : bitcoin_address,
20
+ 'min_confirmations' : [] | [number],
21
+ }
22
+ export type bitcoin_get_balance_result = satoshi;
23
+ export interface bitcoin_get_block_headers_args {
24
+ 'start_height' : bitcoin_block_height,
25
+ 'end_height' : [] | [bitcoin_block_height],
26
+ 'network' : bitcoin_network,
27
+ }
28
+ export interface bitcoin_get_block_headers_result {
29
+ 'tip_height' : bitcoin_block_height,
30
+ 'block_headers' : Array<bitcoin_block_header>,
31
+ }
32
+ export interface bitcoin_get_current_fee_percentiles_args {
33
+ 'network' : bitcoin_network,
34
+ }
35
+ export type bitcoin_get_current_fee_percentiles_result = BigUint64Array;
36
+ export interface bitcoin_get_utxos_args {
37
+ 'network' : bitcoin_network,
38
+ 'filter' : [] | [{ 'page' : Uint8Array } | { 'min_confirmations' : number }],
39
+ 'address' : bitcoin_address,
40
+ }
41
+ export interface bitcoin_get_utxos_result {
42
+ 'next_page' : [] | [Uint8Array],
43
+ 'tip_height' : bitcoin_block_height,
44
+ 'tip_block_hash' : bitcoin_block_hash,
45
+ 'utxos' : Array<utxo>,
46
+ }
47
+ export type bitcoin_network = { 'mainnet' : null } |
48
+ { 'testnet' : null };
49
+ export interface bitcoin_send_transaction_args {
50
+ 'transaction' : Uint8Array,
51
+ 'network' : bitcoin_network,
52
+ }
53
+ export type canister_id = Principal;
54
+ export interface canister_info_args {
55
+ 'canister_id' : canister_id,
56
+ 'num_requested_changes' : [] | [bigint],
57
+ }
58
+ export interface canister_info_result {
59
+ 'controllers' : Array<Principal>,
60
+ 'module_hash' : [] | [Uint8Array],
61
+ 'recent_changes' : Array<change>,
62
+ 'total_num_changes' : bigint,
63
+ }
64
+ export type canister_install_mode = { 'reinstall' : null } |
65
+ {
66
+ 'upgrade' : [] | [
67
+ {
68
+ 'wasm_memory_persistence' : [] | [
69
+ { 'keep' : null } |
70
+ { 'replace' : null }
71
+ ],
72
+ 'skip_pre_upgrade' : [] | [boolean],
73
+ }
74
+ ]
75
+ } |
76
+ { 'install' : null };
77
+ export interface canister_log_record {
78
+ 'idx' : bigint,
79
+ 'timestamp_nanos' : bigint,
80
+ 'content' : Uint8Array,
81
+ }
82
+ export interface canister_metadata_args {
83
+ 'name' : string,
84
+ 'canister_id' : canister_id,
85
+ }
86
+ export interface canister_metadata_result { 'value' : Uint8Array }
87
+ export interface canister_settings {
88
+ 'freezing_threshold' : [] | [bigint],
89
+ 'wasm_memory_threshold' : [] | [bigint],
90
+ 'environment_variables' : [] | [Array<environment_variable>],
91
+ 'controllers' : [] | [Array<Principal>],
92
+ 'reserved_cycles_limit' : [] | [bigint],
93
+ 'log_visibility' : [] | [log_visibility],
94
+ 'wasm_memory_limit' : [] | [bigint],
95
+ 'memory_allocation' : [] | [bigint],
96
+ 'compute_allocation' : [] | [bigint],
97
+ }
98
+ export interface canister_status_args { 'canister_id' : canister_id }
99
+ export interface canister_status_result {
100
+ 'memory_metrics' : {
101
+ 'wasm_binary_size' : bigint,
102
+ 'wasm_chunk_store_size' : bigint,
103
+ 'canister_history_size' : bigint,
104
+ 'stable_memory_size' : bigint,
105
+ 'snapshots_size' : bigint,
106
+ 'wasm_memory_size' : bigint,
107
+ 'global_memory_size' : bigint,
108
+ 'custom_sections_size' : bigint,
109
+ },
110
+ 'status' : { 'stopped' : null } |
111
+ { 'stopping' : null } |
112
+ { 'running' : null },
113
+ 'memory_size' : bigint,
114
+ 'ready_for_migration' : boolean,
115
+ 'version' : bigint,
116
+ 'cycles' : bigint,
117
+ 'settings' : definite_canister_settings,
118
+ 'query_stats' : {
119
+ 'response_payload_bytes_total' : bigint,
120
+ 'num_instructions_total' : bigint,
121
+ 'num_calls_total' : bigint,
122
+ 'request_payload_bytes_total' : bigint,
123
+ },
124
+ 'idle_cycles_burned_per_day' : bigint,
125
+ 'module_hash' : [] | [Uint8Array],
126
+ 'reserved_cycles' : bigint,
127
+ }
128
+ export interface change {
129
+ 'timestamp_nanos' : bigint,
130
+ 'canister_version' : bigint,
131
+ 'origin' : change_origin,
132
+ 'details' : change_details,
133
+ }
134
+ export type change_details = {
135
+ 'creation' : {
136
+ 'controllers' : Array<Principal>,
137
+ 'environment_variables_hash' : [] | [Uint8Array],
138
+ }
139
+ } |
140
+ {
141
+ 'code_deployment' : {
142
+ 'mode' : { 'reinstall' : null } |
143
+ { 'upgrade' : null } |
144
+ { 'install' : null },
145
+ 'module_hash' : Uint8Array,
146
+ }
147
+ } |
148
+ {
149
+ 'load_snapshot' : {
150
+ 'canister_version' : bigint,
151
+ 'source' : { 'metadata_upload' : any } |
152
+ { 'taken_from_canister' : any },
153
+ 'from_canister_id' : [] | [Principal],
154
+ 'taken_at_timestamp' : bigint,
155
+ 'snapshot_id' : snapshot_id,
156
+ }
157
+ } |
158
+ { 'controllers_change' : { 'controllers' : Array<Principal> } } |
159
+ { 'code_uninstall' : null };
160
+ export type change_origin = { 'from_user' : { 'user_id' : Principal } } |
161
+ {
162
+ 'from_canister' : {
163
+ 'canister_version' : [] | [bigint],
164
+ 'canister_id' : Principal,
165
+ }
166
+ };
167
+ export interface chunk_hash { 'hash' : Uint8Array }
168
+ export interface clear_chunk_store_args { 'canister_id' : canister_id }
169
+ export interface create_canister_args {
170
+ 'settings' : [] | [canister_settings],
171
+ 'sender_canister_version' : [] | [bigint],
172
+ }
173
+ export interface create_canister_result { 'canister_id' : canister_id }
174
+ export interface definite_canister_settings {
175
+ 'freezing_threshold' : bigint,
176
+ 'wasm_memory_threshold' : bigint,
177
+ 'environment_variables' : Array<environment_variable>,
178
+ 'controllers' : Array<Principal>,
179
+ 'reserved_cycles_limit' : bigint,
180
+ 'log_visibility' : log_visibility,
181
+ 'wasm_memory_limit' : bigint,
182
+ 'memory_allocation' : bigint,
183
+ 'compute_allocation' : bigint,
184
+ }
185
+ export interface delete_canister_args { 'canister_id' : canister_id }
186
+ export interface delete_canister_snapshot_args {
187
+ 'canister_id' : canister_id,
188
+ 'snapshot_id' : snapshot_id,
189
+ }
190
+ export interface deposit_cycles_args { 'canister_id' : canister_id }
191
+ export type ecdsa_curve = { 'secp256k1' : null };
192
+ export interface ecdsa_public_key_args {
193
+ 'key_id' : { 'name' : string, 'curve' : ecdsa_curve },
194
+ 'canister_id' : [] | [canister_id],
195
+ 'derivation_path' : Array<Uint8Array>,
196
+ }
197
+ export interface ecdsa_public_key_result {
198
+ 'public_key' : Uint8Array,
199
+ 'chain_code' : Uint8Array,
200
+ }
201
+ export interface environment_variable { 'value' : string, 'name' : string }
202
+ export interface fetch_canister_logs_args { 'canister_id' : canister_id }
203
+ export interface fetch_canister_logs_result {
204
+ 'canister_log_records' : Array<canister_log_record>,
205
+ }
206
+ export interface http_header { 'value' : string, 'name' : string }
207
+ export interface http_request_args {
208
+ 'url' : string,
209
+ 'method' : { 'get' : null } |
210
+ { 'head' : null } |
211
+ { 'post' : null },
212
+ 'max_response_bytes' : [] | [bigint],
213
+ 'body' : [] | [Uint8Array],
214
+ 'transform' : [] | [
215
+ { 'function' : [Principal, string], 'context' : Uint8Array }
216
+ ],
217
+ 'headers' : Array<http_header>,
218
+ 'is_replicated' : [] | [boolean],
219
+ }
220
+ export interface http_request_result {
221
+ 'status' : bigint,
222
+ 'body' : Uint8Array,
223
+ 'headers' : Array<http_header>,
224
+ }
225
+ export interface install_chunked_code_args {
226
+ 'arg' : Uint8Array,
227
+ 'wasm_module_hash' : Uint8Array,
228
+ 'mode' : canister_install_mode,
229
+ 'chunk_hashes_list' : Array<chunk_hash>,
230
+ 'target_canister' : canister_id,
231
+ 'store_canister' : [] | [canister_id],
232
+ 'sender_canister_version' : [] | [bigint],
233
+ }
234
+ export interface install_code_args {
235
+ 'arg' : Uint8Array,
236
+ 'wasm_module' : wasm_module,
237
+ 'mode' : canister_install_mode,
238
+ 'canister_id' : canister_id,
239
+ 'sender_canister_version' : [] | [bigint],
240
+ }
241
+ export interface list_canister_snapshots_args { 'canister_id' : canister_id }
242
+ export type list_canister_snapshots_result = Array<snapshot>;
243
+ export interface load_canister_snapshot_args {
244
+ 'canister_id' : canister_id,
245
+ 'sender_canister_version' : [] | [bigint],
246
+ 'snapshot_id' : snapshot_id,
247
+ }
248
+ export type log_visibility = { 'controllers' : null } |
249
+ { 'public' : null } |
250
+ { 'allowed_viewers' : Array<Principal> };
251
+ export type millisatoshi_per_byte = bigint;
252
+ export interface node_metrics {
253
+ 'num_block_failures_total' : bigint,
254
+ 'node_id' : Principal,
255
+ 'num_blocks_proposed_total' : bigint,
256
+ }
257
+ export interface node_metrics_history_args {
258
+ 'start_at_timestamp_nanos' : bigint,
259
+ 'subnet_id' : Principal,
260
+ }
261
+ export type node_metrics_history_result = Array<
262
+ { 'timestamp_nanos' : bigint, 'node_metrics' : Array<node_metrics> }
263
+ >;
264
+ export interface outpoint { 'txid' : Uint8Array, 'vout' : number }
265
+ export interface provisional_create_canister_with_cycles_args {
266
+ 'settings' : [] | [canister_settings],
267
+ 'specified_id' : [] | [canister_id],
268
+ 'amount' : [] | [bigint],
269
+ 'sender_canister_version' : [] | [bigint],
270
+ }
271
+ export interface provisional_create_canister_with_cycles_result {
272
+ 'canister_id' : canister_id,
273
+ }
274
+ export interface provisional_top_up_canister_args {
275
+ 'canister_id' : canister_id,
276
+ 'amount' : bigint,
277
+ }
278
+ export type raw_rand_result = Uint8Array;
279
+ export interface read_canister_snapshot_data_args {
280
+ 'kind' : { 'wasm_module' : { 'size' : bigint, 'offset' : bigint } } |
281
+ { 'wasm_memory' : { 'size' : bigint, 'offset' : bigint } } |
282
+ { 'stable_memory' : { 'size' : bigint, 'offset' : bigint } } |
283
+ { 'wasm_chunk' : { 'hash' : Uint8Array } },
284
+ 'canister_id' : canister_id,
285
+ 'snapshot_id' : snapshot_id,
286
+ }
287
+ export interface read_canister_snapshot_data_response { 'chunk' : Uint8Array }
288
+ export interface read_canister_snapshot_metadata_args {
289
+ 'canister_id' : canister_id,
290
+ 'snapshot_id' : snapshot_id,
291
+ }
292
+ export interface read_canister_snapshot_metadata_response {
293
+ 'globals' : Array<
294
+ { 'f32' : number } |
295
+ { 'f64' : number } |
296
+ { 'i32' : number } |
297
+ { 'i64' : bigint } |
298
+ { 'v128' : bigint }
299
+ >,
300
+ 'canister_version' : bigint,
301
+ 'source' : { 'metadata_upload' : any } |
302
+ { 'taken_from_canister' : any },
303
+ 'certified_data' : Uint8Array,
304
+ 'global_timer' : [] | [{ 'active' : bigint } | { 'inactive' : null }],
305
+ 'on_low_wasm_memory_hook_status' : [] | [
306
+ { 'condition_not_satisfied' : null } |
307
+ { 'executed' : null } |
308
+ { 'ready' : null }
309
+ ],
310
+ 'wasm_module_size' : bigint,
311
+ 'stable_memory_size' : bigint,
312
+ 'wasm_chunk_store' : Array<{ 'hash' : Uint8Array }>,
313
+ 'taken_at_timestamp' : bigint,
314
+ 'wasm_memory_size' : bigint,
315
+ }
316
+ export type satoshi = bigint;
317
+ export type schnorr_algorithm = { 'ed25519' : null } |
318
+ { 'bip340secp256k1' : null };
319
+ export type schnorr_aux = { 'bip341' : { 'merkle_root_hash' : Uint8Array } };
320
+ export interface schnorr_public_key_args {
321
+ 'key_id' : { 'algorithm' : schnorr_algorithm, 'name' : string },
322
+ 'canister_id' : [] | [canister_id],
323
+ 'derivation_path' : Array<Uint8Array>,
324
+ }
325
+ export interface schnorr_public_key_result {
326
+ 'public_key' : Uint8Array,
327
+ 'chain_code' : Uint8Array,
328
+ }
329
+ export interface sign_with_ecdsa_args {
330
+ 'key_id' : { 'name' : string, 'curve' : ecdsa_curve },
331
+ 'derivation_path' : Array<Uint8Array>,
332
+ 'message_hash' : Uint8Array,
333
+ }
334
+ export interface sign_with_ecdsa_result { 'signature' : Uint8Array }
335
+ export interface sign_with_schnorr_args {
336
+ 'aux' : [] | [schnorr_aux],
337
+ 'key_id' : { 'algorithm' : schnorr_algorithm, 'name' : string },
338
+ 'derivation_path' : Array<Uint8Array>,
339
+ 'message' : Uint8Array,
340
+ }
341
+ export interface sign_with_schnorr_result { 'signature' : Uint8Array }
342
+ export interface snapshot {
343
+ 'id' : snapshot_id,
344
+ 'total_size' : bigint,
345
+ 'taken_at_timestamp' : bigint,
346
+ }
347
+ export type snapshot_id = Uint8Array;
348
+ export interface start_canister_args { 'canister_id' : canister_id }
349
+ export interface stop_canister_args { 'canister_id' : canister_id }
350
+ export interface stored_chunks_args { 'canister_id' : canister_id }
351
+ export type stored_chunks_result = Array<chunk_hash>;
352
+ export interface subnet_info_args { 'subnet_id' : Principal }
353
+ export interface subnet_info_result {
354
+ 'replica_version' : string,
355
+ 'registry_version' : bigint,
356
+ }
357
+ export interface take_canister_snapshot_args {
358
+ 'replace_snapshot' : [] | [snapshot_id],
359
+ 'canister_id' : canister_id,
360
+ }
361
+ export type take_canister_snapshot_result = snapshot;
362
+ export interface uninstall_code_args {
363
+ 'canister_id' : canister_id,
364
+ 'sender_canister_version' : [] | [bigint],
365
+ }
366
+ export interface update_settings_args {
367
+ 'canister_id' : Principal,
368
+ 'settings' : canister_settings,
369
+ 'sender_canister_version' : [] | [bigint],
370
+ }
371
+ export interface upload_canister_snapshot_data_args {
372
+ 'chunk' : Uint8Array,
373
+ 'kind' : { 'wasm_module' : { 'offset' : bigint } } |
374
+ { 'wasm_memory' : { 'offset' : bigint } } |
375
+ { 'stable_memory' : { 'offset' : bigint } } |
376
+ { 'wasm_chunk' : null },
377
+ 'canister_id' : canister_id,
378
+ 'snapshot_id' : snapshot_id,
379
+ }
380
+ export interface upload_canister_snapshot_metadata_args {
381
+ 'globals' : Array<
382
+ { 'f32' : number } |
383
+ { 'f64' : number } |
384
+ { 'i32' : number } |
385
+ { 'i64' : bigint } |
386
+ { 'v128' : bigint }
387
+ >,
388
+ 'replace_snapshot' : [] | [snapshot_id],
389
+ 'certified_data' : Uint8Array,
390
+ 'global_timer' : [] | [{ 'active' : bigint } | { 'inactive' : null }],
391
+ 'on_low_wasm_memory_hook_status' : [] | [
392
+ { 'condition_not_satisfied' : null } |
393
+ { 'executed' : null } |
394
+ { 'ready' : null }
395
+ ],
396
+ 'wasm_module_size' : bigint,
397
+ 'canister_id' : canister_id,
398
+ 'stable_memory_size' : bigint,
399
+ 'wasm_memory_size' : bigint,
400
+ }
401
+ export interface upload_canister_snapshot_metadata_response {
402
+ 'snapshot_id' : snapshot_id,
403
+ }
404
+ export interface upload_chunk_args {
405
+ 'chunk' : Uint8Array,
406
+ 'canister_id' : Principal,
407
+ }
408
+ export type upload_chunk_result = chunk_hash;
409
+ export interface utxo {
410
+ 'height' : number,
411
+ 'value' : satoshi,
412
+ 'outpoint' : outpoint,
413
+ }
414
+ export type vetkd_curve = { 'bls12_381_g2' : null };
415
+ export interface vetkd_derive_key_args {
416
+ 'context' : Uint8Array,
417
+ 'key_id' : { 'name' : string, 'curve' : vetkd_curve },
418
+ 'input' : Uint8Array,
419
+ 'transport_public_key' : Uint8Array,
420
+ }
421
+ export interface vetkd_derive_key_result { 'encrypted_key' : Uint8Array }
422
+ export interface vetkd_public_key_args {
423
+ 'context' : Uint8Array,
424
+ 'key_id' : { 'name' : string, 'curve' : vetkd_curve },
425
+ 'canister_id' : [] | [canister_id],
426
+ }
427
+ export interface vetkd_public_key_result { 'public_key' : Uint8Array }
428
+ export type wasm_module = Uint8Array;
429
+ export interface _SERVICE {
430
+ /**
431
+ * bitcoin interface
432
+ */
433
+ 'bitcoin_get_balance' : ActorMethod<
434
+ [bitcoin_get_balance_args],
435
+ bitcoin_get_balance_result
436
+ >,
437
+ 'bitcoin_get_block_headers' : ActorMethod<
438
+ [bitcoin_get_block_headers_args],
439
+ bitcoin_get_block_headers_result
440
+ >,
441
+ 'bitcoin_get_current_fee_percentiles' : ActorMethod<
442
+ [bitcoin_get_current_fee_percentiles_args],
443
+ bitcoin_get_current_fee_percentiles_result
444
+ >,
445
+ 'bitcoin_get_utxos' : ActorMethod<
446
+ [bitcoin_get_utxos_args],
447
+ bitcoin_get_utxos_result
448
+ >,
449
+ 'bitcoin_send_transaction' : ActorMethod<
450
+ [bitcoin_send_transaction_args],
451
+ undefined
452
+ >,
453
+ /**
454
+ * Public canister data
455
+ */
456
+ 'canister_info' : ActorMethod<[canister_info_args], canister_info_result>,
457
+ 'canister_metadata' : ActorMethod<
458
+ [canister_metadata_args],
459
+ canister_metadata_result
460
+ >,
461
+ 'canister_status' : ActorMethod<
462
+ [canister_status_args],
463
+ canister_status_result
464
+ >,
465
+ 'clear_chunk_store' : ActorMethod<[clear_chunk_store_args], undefined>,
466
+ 'create_canister' : ActorMethod<
467
+ [create_canister_args],
468
+ create_canister_result
469
+ >,
470
+ 'delete_canister' : ActorMethod<[delete_canister_args], undefined>,
471
+ 'delete_canister_snapshot' : ActorMethod<
472
+ [delete_canister_snapshot_args],
473
+ undefined
474
+ >,
475
+ 'deposit_cycles' : ActorMethod<[deposit_cycles_args], undefined>,
476
+ /**
477
+ * Threshold ECDSA signature
478
+ */
479
+ 'ecdsa_public_key' : ActorMethod<
480
+ [ecdsa_public_key_args],
481
+ ecdsa_public_key_result
482
+ >,
483
+ /**
484
+ * canister logging
485
+ */
486
+ 'fetch_canister_logs' : ActorMethod<
487
+ [fetch_canister_logs_args],
488
+ fetch_canister_logs_result
489
+ >,
490
+ 'http_request' : ActorMethod<[http_request_args], http_request_result>,
491
+ 'install_chunked_code' : ActorMethod<[install_chunked_code_args], undefined>,
492
+ 'install_code' : ActorMethod<[install_code_args], undefined>,
493
+ 'list_canister_snapshots' : ActorMethod<
494
+ [list_canister_snapshots_args],
495
+ list_canister_snapshots_result
496
+ >,
497
+ 'load_canister_snapshot' : ActorMethod<
498
+ [load_canister_snapshot_args],
499
+ undefined
500
+ >,
501
+ /**
502
+ * metrics interface
503
+ */
504
+ 'node_metrics_history' : ActorMethod<
505
+ [node_metrics_history_args],
506
+ node_metrics_history_result
507
+ >,
508
+ /**
509
+ * provisional interfaces for the pre-ledger world
510
+ */
511
+ 'provisional_create_canister_with_cycles' : ActorMethod<
512
+ [provisional_create_canister_with_cycles_args],
513
+ provisional_create_canister_with_cycles_result
514
+ >,
515
+ 'provisional_top_up_canister' : ActorMethod<
516
+ [provisional_top_up_canister_args],
517
+ undefined
518
+ >,
519
+ 'raw_rand' : ActorMethod<[], raw_rand_result>,
520
+ 'read_canister_snapshot_data' : ActorMethod<
521
+ [read_canister_snapshot_data_args],
522
+ read_canister_snapshot_data_response
523
+ >,
524
+ 'read_canister_snapshot_metadata' : ActorMethod<
525
+ [read_canister_snapshot_metadata_args],
526
+ read_canister_snapshot_metadata_response
527
+ >,
528
+ /**
529
+ * Threshold Schnorr signature
530
+ */
531
+ 'schnorr_public_key' : ActorMethod<
532
+ [schnorr_public_key_args],
533
+ schnorr_public_key_result
534
+ >,
535
+ 'sign_with_ecdsa' : ActorMethod<
536
+ [sign_with_ecdsa_args],
537
+ sign_with_ecdsa_result
538
+ >,
539
+ 'sign_with_schnorr' : ActorMethod<
540
+ [sign_with_schnorr_args],
541
+ sign_with_schnorr_result
542
+ >,
543
+ 'start_canister' : ActorMethod<[start_canister_args], undefined>,
544
+ 'stop_canister' : ActorMethod<[stop_canister_args], undefined>,
545
+ 'stored_chunks' : ActorMethod<[stored_chunks_args], stored_chunks_result>,
546
+ /**
547
+ * subnet info
548
+ */
549
+ 'subnet_info' : ActorMethod<[subnet_info_args], subnet_info_result>,
550
+ /**
551
+ * Canister snapshots
552
+ */
553
+ 'take_canister_snapshot' : ActorMethod<
554
+ [take_canister_snapshot_args],
555
+ take_canister_snapshot_result
556
+ >,
557
+ 'uninstall_code' : ActorMethod<[uninstall_code_args], undefined>,
558
+ 'update_settings' : ActorMethod<[update_settings_args], undefined>,
559
+ 'upload_canister_snapshot_data' : ActorMethod<
560
+ [upload_canister_snapshot_data_args],
561
+ undefined
562
+ >,
563
+ 'upload_canister_snapshot_metadata' : ActorMethod<
564
+ [upload_canister_snapshot_metadata_args],
565
+ upload_canister_snapshot_metadata_response
566
+ >,
567
+ 'upload_chunk' : ActorMethod<[upload_chunk_args], upload_chunk_result>,
568
+ 'vetkd_derive_key' : ActorMethod<
569
+ [vetkd_derive_key_args],
570
+ vetkd_derive_key_result
571
+ >,
572
+ /**
573
+ * Threshold key derivation
574
+ */
575
+ 'vetkd_public_key' : ActorMethod<
576
+ [vetkd_public_key_args],
577
+ vetkd_public_key_result
578
+ >,
579
+ }
580
+ export declare const idlService: IDL.ServiceClass;
581
+ export declare const idlInitArgs: IDL.Type[];
582
+ export declare const idlFactory: IDL.InterfaceFactory;
583
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];