@junobuild/functions 0.8.3 → 0.8.4-next-2026-04-17

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 (76) hide show
  1. package/canisters/ckbtc/index.js +1 -1
  2. package/canisters/cketh/index.js +1 -1
  3. package/canisters/cmc/index.js +1 -1
  4. package/canisters/declarations/_idl.d.ts +2 -1
  5. package/canisters/declarations/_types.d.ts +2 -1
  6. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  7. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +2 -0
  8. package/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  9. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +9 -0
  10. package/canisters/declarations/cketh/minter.did.d.ts +140 -0
  11. package/canisters/declarations/cketh/minter.did.idl.d.ts +8 -0
  12. package/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  13. package/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.d.ts +82 -0
  14. package/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  15. package/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  16. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +5 -1
  17. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  19. package/canisters/declarations/nns/governance.did.d.ts +100 -0
  20. package/canisters/declarations/nns/governance.did.idl.d.ts +11 -0
  21. package/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  22. package/canisters/declarations/nns/governance_test.did.idl.d.ts +11 -0
  23. package/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  24. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +1 -0
  25. package/canisters/declarations/sns/governance.did.d.ts +4 -0
  26. package/canisters/declarations/sns/governance.did.idl.d.ts +1 -0
  27. package/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  28. package/canisters/declarations/sns/governance_test.did.idl.d.ts +1 -0
  29. package/canisters/ic-management/index.js +1 -1
  30. package/canisters/ledger/cycles/index.d.ts +1 -0
  31. package/canisters/ledger/cycles/index.js +2 -0
  32. package/canisters/ledger/cycles/index.js.map +7 -0
  33. package/canisters/ledger/icp/index.d.ts +1 -0
  34. package/canisters/ledger/icp/index.js +1 -1
  35. package/canisters/ledger/icp/index.js.map +4 -4
  36. package/canisters/ledger/icp/ledger.canister.d.ts +5 -5
  37. package/canisters/ledger/icp/schema.d.ts +152 -0
  38. package/canisters/ledger/icrc/index.d.ts +1 -1
  39. package/canisters/ledger/icrc/index.js +1 -1
  40. package/canisters/ledger/icrc/index.js.map +4 -4
  41. package/canisters/ledger/icrc/ledger.canister.d.ts +13 -14
  42. package/canisters/ledger/icrc/schema.d.ts +351 -0
  43. package/canisters/nns/index.js +1 -1
  44. package/canisters/sns/index.js +1 -1
  45. package/chunk-I3WMKZTG.js +2 -0
  46. package/chunk-I3WMKZTG.js.map +7 -0
  47. package/package.json +10 -6
  48. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  49. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +16 -0
  50. package/src/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  51. package/src/canisters/declarations/ckbtc/minter.did.idl.js +118 -0
  52. package/src/canisters/declarations/cketh/minter.did.d.ts +140 -0
  53. package/src/canisters/declarations/cketh/minter.did.idl.js +78 -0
  54. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  55. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.js +806 -0
  56. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  57. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +32 -8
  58. package/src/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  59. package/src/canisters/declarations/ledger-icp/index.did.idl.js +32 -5
  60. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  61. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +2 -0
  62. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  63. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +2 -0
  64. package/src/canisters/declarations/nns/governance.did.d.ts +100 -0
  65. package/src/canisters/declarations/nns/governance.did.idl.js +132 -0
  66. package/src/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  67. package/src/canisters/declarations/nns/governance_test.did.idl.js +132 -0
  68. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  69. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +8 -0
  70. package/src/canisters/declarations/sns/governance.did.d.ts +4 -0
  71. package/src/canisters/declarations/sns/governance.did.idl.js +12 -0
  72. package/src/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  73. package/src/canisters/declarations/sns/governance_test.did.idl.js +12 -0
  74. package/canisters/ledger/icrc/schemas.d.ts +0 -11
  75. package/chunk-I4MVAQHI.js +0 -2
  76. package/chunk-I4MVAQHI.js.map +0 -7
@@ -0,0 +1,413 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.3.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 interface Account {
14
+ 'owner' : Principal,
15
+ 'subaccount' : [] | [Uint8Array],
16
+ }
17
+ export interface Allowance {
18
+ 'allowance' : bigint,
19
+ 'expires_at' : [] | [bigint],
20
+ }
21
+ export interface AllowanceArgs { 'account' : Account, 'spender' : Account }
22
+ export type Allowances = Array<
23
+ {
24
+ 'from_account' : Account,
25
+ 'to_spender' : Account,
26
+ 'allowance' : bigint,
27
+ 'expires_at' : [] | [bigint],
28
+ }
29
+ >;
30
+ export interface ApproveArgs {
31
+ 'fee' : [] | [bigint],
32
+ 'memo' : [] | [Uint8Array],
33
+ 'from_subaccount' : [] | [Uint8Array],
34
+ 'created_at_time' : [] | [bigint],
35
+ 'amount' : bigint,
36
+ 'expected_allowance' : [] | [bigint],
37
+ 'expires_at' : [] | [bigint],
38
+ 'spender' : Account,
39
+ }
40
+ export type ApproveError = {
41
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
42
+ } |
43
+ { 'TemporarilyUnavailable' : null } |
44
+ { 'Duplicate' : { 'duplicate_of' : bigint } } |
45
+ { 'BadFee' : { 'expected_fee' : bigint } } |
46
+ { 'AllowanceChanged' : { 'current_allowance' : bigint } } |
47
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
48
+ { 'TooOld' : null } |
49
+ { 'Expired' : { 'ledger_time' : bigint } } |
50
+ { 'InsufficientFunds' : { 'balance' : bigint } };
51
+ export type BlockIndex = bigint;
52
+ export interface CanisterSettings {
53
+ 'freezing_threshold' : [] | [bigint],
54
+ 'controllers' : [] | [Array<Principal>],
55
+ 'reserved_cycles_limit' : [] | [bigint],
56
+ 'memory_allocation' : [] | [bigint],
57
+ 'compute_allocation' : [] | [bigint],
58
+ }
59
+ export type ChangeIndexId = { 'SetTo' : Principal } |
60
+ { 'Unset' : null };
61
+ export interface CmcCreateCanisterArgs {
62
+ /**
63
+ * Optional instructions to select on which subnet the new canister will be created on.
64
+ */
65
+ 'subnet_selection' : [] | [SubnetSelection],
66
+ /**
67
+ * Optional canister settings that, if set, are applied to the newly created canister.
68
+ * If not specified, the caller is the controller of the canister and the other settings are set to default values.
69
+ */
70
+ 'settings' : [] | [CanisterSettings],
71
+ }
72
+ export interface CreateCanisterArgs {
73
+ 'from_subaccount' : [] | [Uint8Array],
74
+ 'created_at_time' : [] | [bigint],
75
+ 'amount' : bigint,
76
+ 'creation_args' : [] | [CmcCreateCanisterArgs],
77
+ }
78
+ export type CreateCanisterError = {
79
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
80
+ } |
81
+ { 'TemporarilyUnavailable' : null } |
82
+ {
83
+ 'Duplicate' : {
84
+ 'duplicate_of' : bigint,
85
+ /**
86
+ * If the original transaction created a canister then this field will contain the canister id.
87
+ */
88
+ 'canister_id' : [] | [Principal],
89
+ }
90
+ } |
91
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
92
+ {
93
+ 'FailedToCreate' : {
94
+ 'error' : string,
95
+ 'refund_block' : [] | [BlockIndex],
96
+ 'fee_block' : [] | [BlockIndex],
97
+ }
98
+ } |
99
+ { 'TooOld' : null } |
100
+ { 'InsufficientFunds' : { 'balance' : bigint } };
101
+ export interface CreateCanisterFromArgs {
102
+ 'spender_subaccount' : [] | [Uint8Array],
103
+ 'from' : Account,
104
+ 'created_at_time' : [] | [bigint],
105
+ 'amount' : bigint,
106
+ 'creation_args' : [] | [CmcCreateCanisterArgs],
107
+ }
108
+ export type CreateCanisterFromError = {
109
+ 'FailedToCreateFrom' : {
110
+ 'create_from_block' : [] | [BlockIndex],
111
+ 'rejection_code' : RejectionCode,
112
+ 'refund_block' : [] | [BlockIndex],
113
+ 'approval_refund_block' : [] | [BlockIndex],
114
+ 'rejection_reason' : string,
115
+ }
116
+ } |
117
+ { 'GenericError' : { 'message' : string, 'error_code' : bigint } } |
118
+ { 'TemporarilyUnavailable' : null } |
119
+ { 'InsufficientAllowance' : { 'allowance' : bigint } } |
120
+ {
121
+ 'Duplicate' : {
122
+ 'duplicate_of' : bigint,
123
+ /**
124
+ * If the original transaction created a canister then this field will contain the canister id.
125
+ */
126
+ 'canister_id' : [] | [Principal],
127
+ }
128
+ } |
129
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
130
+ { 'TooOld' : null } |
131
+ { 'InsufficientFunds' : { 'balance' : bigint } };
132
+ export interface CreateCanisterSuccess {
133
+ 'block_id' : BlockIndex,
134
+ 'canister_id' : Principal,
135
+ }
136
+ export interface DataCertificate {
137
+ /**
138
+ * See https://internetcomputer.org/docs/current/references/ic-interface-spec#certification
139
+ */
140
+ 'certificate' : Uint8Array,
141
+ /**
142
+ * CBOR encoded hash_tree
143
+ */
144
+ 'hash_tree' : Uint8Array,
145
+ }
146
+ export interface DepositArgs { 'to' : Account, 'memo' : [] | [Uint8Array] }
147
+ export interface DepositResult {
148
+ 'balance' : bigint,
149
+ 'block_index' : BlockIndex,
150
+ }
151
+ export interface GetAllowancesArgs {
152
+ 'take' : [] | [bigint],
153
+ 'prev_spender' : [] | [Account],
154
+ 'from_account' : [] | [Account],
155
+ }
156
+ export type GetAllowancesError = {
157
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
158
+ } |
159
+ { 'AccessDenied' : { 'reason' : string } };
160
+ export interface GetArchivesArgs {
161
+ /**
162
+ * The last archive seen by the client.
163
+ * The ledger will return archives coming
164
+ * after this one if set, otherwise it
165
+ * will return the first archives.
166
+ */
167
+ 'from' : [] | [Principal],
168
+ }
169
+ export type GetArchivesResult = Array<
170
+ {
171
+ /**
172
+ * The last block in the archive
173
+ */
174
+ 'end' : bigint,
175
+ /**
176
+ * The id of the archive
177
+ */
178
+ 'canister_id' : Principal,
179
+ /**
180
+ * The first block in the archive
181
+ */
182
+ 'start' : bigint,
183
+ }
184
+ >;
185
+ export type GetBlocksArgs = Array<{ 'start' : bigint, 'length' : bigint }>;
186
+ export interface GetBlocksResult {
187
+ /**
188
+ * Total number of blocks in the
189
+ * block log.
190
+ */
191
+ 'log_length' : bigint,
192
+ 'blocks' : Array<{ 'id' : bigint, 'block' : Value }>,
193
+ /**
194
+ * The archived_blocks vector is always going to be empty
195
+ * for this ledger because there is no archive node.
196
+ */
197
+ 'archived_blocks' : Array<
198
+ { 'args' : GetBlocksArgs, 'callback' : [Principal, string] }
199
+ >,
200
+ }
201
+ export type GetIndexPrincipalError = {
202
+ /**
203
+ * Any error not covered by the above variants.
204
+ */
205
+ 'GenericError' : { 'description' : string, 'error_code' : bigint }
206
+ } |
207
+ { 'IndexPrincipalNotSet' : null };
208
+ export type GetIndexPrincipalResult = { 'Ok' : Principal } |
209
+ { 'Err' : GetIndexPrincipalError };
210
+ export interface HttpRequest {
211
+ 'url' : string,
212
+ 'method' : string,
213
+ 'body' : Uint8Array,
214
+ 'headers' : Array<[string, string]>,
215
+ }
216
+ export interface HttpResponse {
217
+ 'body' : Uint8Array,
218
+ 'headers' : Array<[string, string]>,
219
+ 'status_code' : number,
220
+ }
221
+ export type ICRC103GetAllowancesResponse = { 'Ok' : Allowances } |
222
+ { 'Err' : GetAllowancesError };
223
+ export interface InitArgs {
224
+ 'initial_balances' : [] | [Array<[Account, bigint]>],
225
+ 'index_id' : [] | [Principal],
226
+ 'max_blocks_per_request' : bigint,
227
+ }
228
+ export type LedgerArgs = { 'Upgrade' : [] | [UpgradeArgs] } |
229
+ { 'Init' : InitArgs };
230
+ export type MetadataValue = { 'Int' : bigint } |
231
+ { 'Nat' : bigint } |
232
+ { 'Blob' : Uint8Array } |
233
+ { 'Text' : string };
234
+ export type RejectionCode = { 'NoError' : null } |
235
+ { 'CanisterError' : null } |
236
+ { 'SysTransient' : null } |
237
+ { 'DestinationInvalid' : null } |
238
+ { 'Unknown' : null } |
239
+ { 'SysFatal' : null } |
240
+ { 'CanisterReject' : null };
241
+ export interface SubnetFilter { 'subnet_type' : [] | [string] }
242
+ export type SubnetSelection = {
243
+ /**
244
+ * Choose a random subnet that satisfies the specified properties.
245
+ */
246
+ 'Filter' : SubnetFilter
247
+ } |
248
+ {
249
+ /**
250
+ * / Choose a specific subnet
251
+ */
252
+ 'Subnet' : { 'subnet' : Principal }
253
+ };
254
+ export interface SupportedBlockType { 'url' : string, 'block_type' : string }
255
+ export interface SupportedStandard { 'url' : string, 'name' : string }
256
+ export interface TransferArgs {
257
+ 'to' : Account,
258
+ 'fee' : [] | [bigint],
259
+ 'memo' : [] | [Uint8Array],
260
+ 'from_subaccount' : [] | [Uint8Array],
261
+ 'created_at_time' : [] | [bigint],
262
+ 'amount' : bigint,
263
+ }
264
+ export type TransferError = {
265
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
266
+ } |
267
+ { 'TemporarilyUnavailable' : null } |
268
+ { 'BadBurn' : { 'min_burn_amount' : bigint } } |
269
+ { 'Duplicate' : { 'duplicate_of' : bigint } } |
270
+ { 'BadFee' : { 'expected_fee' : bigint } } |
271
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
272
+ { 'TooOld' : null } |
273
+ { 'InsufficientFunds' : { 'balance' : bigint } };
274
+ export interface TransferFromArgs {
275
+ 'to' : Account,
276
+ 'fee' : [] | [bigint],
277
+ 'spender_subaccount' : [] | [Uint8Array],
278
+ 'from' : Account,
279
+ 'memo' : [] | [Uint8Array],
280
+ 'created_at_time' : [] | [bigint],
281
+ 'amount' : bigint,
282
+ }
283
+ export type TransferFromError = {
284
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
285
+ } |
286
+ { 'TemporarilyUnavailable' : null } |
287
+ { 'InsufficientAllowance' : { 'allowance' : bigint } } |
288
+ { 'BadBurn' : { 'min_burn_amount' : bigint } } |
289
+ { 'Duplicate' : { 'duplicate_of' : bigint } } |
290
+ { 'BadFee' : { 'expected_fee' : bigint } } |
291
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
292
+ { 'TooOld' : null } |
293
+ { 'InsufficientFunds' : { 'balance' : bigint } };
294
+ export interface UpgradeArgs {
295
+ 'change_index_id' : [] | [ChangeIndexId],
296
+ 'max_blocks_per_request' : [] | [bigint],
297
+ }
298
+ export type Value = { 'Int' : bigint } |
299
+ { 'Map' : Array<[string, Value]> } |
300
+ { 'Nat' : bigint } |
301
+ { 'Nat64' : bigint } |
302
+ { 'Blob' : Uint8Array } |
303
+ { 'Text' : string } |
304
+ { 'Array' : Array<Value> };
305
+ export interface WithdrawArgs {
306
+ 'to' : Principal,
307
+ 'from_subaccount' : [] | [Uint8Array],
308
+ 'created_at_time' : [] | [bigint],
309
+ 'amount' : bigint,
310
+ }
311
+ export type WithdrawError = {
312
+ 'FailedToWithdraw' : {
313
+ 'rejection_code' : RejectionCode,
314
+ 'fee_block' : [] | [bigint],
315
+ 'rejection_reason' : string,
316
+ }
317
+ } |
318
+ { 'GenericError' : { 'message' : string, 'error_code' : bigint } } |
319
+ { 'TemporarilyUnavailable' : null } |
320
+ { 'Duplicate' : { 'duplicate_of' : bigint } } |
321
+ { 'BadFee' : { 'expected_fee' : bigint } } |
322
+ { 'InvalidReceiver' : { 'receiver' : Principal } } |
323
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
324
+ { 'TooOld' : null } |
325
+ { 'InsufficientFunds' : { 'balance' : bigint } };
326
+ export interface WithdrawFromArgs {
327
+ 'to' : Principal,
328
+ 'spender_subaccount' : [] | [Uint8Array],
329
+ 'from' : Account,
330
+ 'created_at_time' : [] | [bigint],
331
+ 'amount' : bigint,
332
+ }
333
+ export type WithdrawFromError = {
334
+ 'GenericError' : { 'message' : string, 'error_code' : bigint }
335
+ } |
336
+ { 'TemporarilyUnavailable' : null } |
337
+ { 'InsufficientAllowance' : { 'allowance' : bigint } } |
338
+ { 'Duplicate' : { 'duplicate_of' : BlockIndex } } |
339
+ { 'InvalidReceiver' : { 'receiver' : Principal } } |
340
+ { 'CreatedInFuture' : { 'ledger_time' : bigint } } |
341
+ { 'TooOld' : null } |
342
+ {
343
+ 'FailedToWithdrawFrom' : {
344
+ 'withdraw_from_block' : [] | [bigint],
345
+ 'rejection_code' : RejectionCode,
346
+ 'refund_block' : [] | [bigint],
347
+ 'approval_refund_block' : [] | [bigint],
348
+ 'rejection_reason' : string,
349
+ }
350
+ } |
351
+ { 'InsufficientFunds' : { 'balance' : bigint } };
352
+ export interface _SERVICE {
353
+ 'create_canister' : ActorMethod<
354
+ [CreateCanisterArgs],
355
+ { 'Ok' : CreateCanisterSuccess } |
356
+ { 'Err' : CreateCanisterError }
357
+ >,
358
+ 'create_canister_from' : ActorMethod<
359
+ [CreateCanisterFromArgs],
360
+ { 'Ok' : CreateCanisterSuccess } |
361
+ { 'Err' : CreateCanisterFromError }
362
+ >,
363
+ 'deposit' : ActorMethod<[DepositArgs], DepositResult>,
364
+ 'http_request' : ActorMethod<[HttpRequest], HttpResponse>,
365
+ 'icrc103_get_allowances' : ActorMethod<
366
+ [GetAllowancesArgs],
367
+ ICRC103GetAllowancesResponse
368
+ >,
369
+ 'icrc106_get_index_principal' : ActorMethod<[], GetIndexPrincipalResult>,
370
+ 'icrc1_balance_of' : ActorMethod<[Account], bigint>,
371
+ 'icrc1_decimals' : ActorMethod<[], number>,
372
+ 'icrc1_fee' : ActorMethod<[], bigint>,
373
+ 'icrc1_metadata' : ActorMethod<[], Array<[string, MetadataValue]>>,
374
+ 'icrc1_minting_account' : ActorMethod<[], [] | [Account]>,
375
+ 'icrc1_name' : ActorMethod<[], string>,
376
+ 'icrc1_supported_standards' : ActorMethod<[], Array<SupportedStandard>>,
377
+ 'icrc1_symbol' : ActorMethod<[], string>,
378
+ 'icrc1_total_supply' : ActorMethod<[], bigint>,
379
+ 'icrc1_transfer' : ActorMethod<
380
+ [TransferArgs],
381
+ { 'Ok' : BlockIndex } |
382
+ { 'Err' : TransferError }
383
+ >,
384
+ 'icrc2_allowance' : ActorMethod<[AllowanceArgs], Allowance>,
385
+ 'icrc2_approve' : ActorMethod<
386
+ [ApproveArgs],
387
+ { 'Ok' : bigint } |
388
+ { 'Err' : ApproveError }
389
+ >,
390
+ 'icrc2_transfer_from' : ActorMethod<
391
+ [TransferFromArgs],
392
+ { 'Ok' : bigint } |
393
+ { 'Err' : TransferFromError }
394
+ >,
395
+ 'icrc3_get_archives' : ActorMethod<[GetArchivesArgs], GetArchivesResult>,
396
+ 'icrc3_get_blocks' : ActorMethod<[GetBlocksArgs], GetBlocksResult>,
397
+ 'icrc3_get_tip_certificate' : ActorMethod<[], [] | [DataCertificate]>,
398
+ 'icrc3_supported_block_types' : ActorMethod<[], Array<SupportedBlockType>>,
399
+ 'withdraw' : ActorMethod<
400
+ [WithdrawArgs],
401
+ { 'Ok' : BlockIndex } |
402
+ { 'Err' : WithdrawError }
403
+ >,
404
+ 'withdraw_from' : ActorMethod<
405
+ [WithdrawFromArgs],
406
+ { 'Ok' : BlockIndex } |
407
+ { 'Err' : WithdrawFromError }
408
+ >,
409
+ }
410
+ export declare const idlService: IDL.ServiceClass;
411
+ export declare const idlInitArgs: IDL.Type[];
412
+ export declare const idlFactory: IDL.InterfaceFactory;
413
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -0,0 +1,82 @@
1
+ export const GetBlocksResult: IDL.RecClass<any>;
2
+ export const Value: IDL.RecClass<any>;
3
+ export const ChangeIndexId: IDL.VariantClass;
4
+ export const UpgradeArgs: IDL.RecordClass;
5
+ export const Account: IDL.RecordClass;
6
+ export const InitArgs: IDL.RecordClass;
7
+ export const LedgerArgs: IDL.VariantClass;
8
+ export const SubnetFilter: IDL.RecordClass;
9
+ export const SubnetSelection: IDL.VariantClass;
10
+ export const CanisterSettings: IDL.RecordClass;
11
+ export const CmcCreateCanisterArgs: IDL.RecordClass;
12
+ export const CreateCanisterArgs: IDL.RecordClass;
13
+ export const BlockIndex: IDL.NatClass;
14
+ export const CreateCanisterSuccess: IDL.RecordClass;
15
+ export const CreateCanisterError: IDL.VariantClass;
16
+ export const CreateCanisterFromArgs: IDL.RecordClass;
17
+ export const RejectionCode: IDL.VariantClass;
18
+ export const CreateCanisterFromError: IDL.VariantClass;
19
+ export const DepositArgs: IDL.RecordClass;
20
+ export const DepositResult: IDL.RecordClass;
21
+ export const HttpRequest: IDL.RecordClass;
22
+ export const HttpResponse: IDL.RecordClass;
23
+ export const GetAllowancesArgs: IDL.RecordClass;
24
+ export const Allowances: IDL.VecClass<Record<string, any>>;
25
+ export const GetAllowancesError: IDL.VariantClass;
26
+ export const ICRC103GetAllowancesResponse: IDL.VariantClass;
27
+ export const GetIndexPrincipalError: IDL.VariantClass;
28
+ export const GetIndexPrincipalResult: IDL.VariantClass;
29
+ export const MetadataValue: IDL.VariantClass;
30
+ export const SupportedStandard: IDL.RecordClass;
31
+ export const TransferArgs: IDL.RecordClass;
32
+ export const TransferError: IDL.VariantClass;
33
+ export const AllowanceArgs: IDL.RecordClass;
34
+ export const Allowance: IDL.RecordClass;
35
+ export const ApproveArgs: IDL.RecordClass;
36
+ export const ApproveError: IDL.VariantClass;
37
+ export const TransferFromArgs: IDL.RecordClass;
38
+ export const TransferFromError: IDL.VariantClass;
39
+ export const GetArchivesArgs: IDL.RecordClass;
40
+ export const GetArchivesResult: IDL.VecClass<Record<string, any>>;
41
+ export const GetBlocksArgs: IDL.VecClass<Record<string, any>>;
42
+ export const DataCertificate: IDL.RecordClass;
43
+ export const SupportedBlockType: IDL.RecordClass;
44
+ export const WithdrawArgs: IDL.RecordClass;
45
+ export const WithdrawError: IDL.VariantClass;
46
+ export const WithdrawFromArgs: IDL.RecordClass;
47
+ export const WithdrawFromError: IDL.VariantClass;
48
+ export const idlService: IDL.ServiceClass<string, {
49
+ create_canister: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
50
+ create_canister_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
51
+ deposit: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
52
+ http_request: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
53
+ icrc103_get_allowances: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
54
+ icrc106_get_index_principal: IDL.FuncClass<[], [IDL.VariantClass]>;
55
+ icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
56
+ icrc1_decimals: IDL.FuncClass<[], [IDL.FixedNatClass]>;
57
+ icrc1_fee: IDL.FuncClass<[], [IDL.NatClass]>;
58
+ icrc1_metadata: IDL.FuncClass<[], [IDL.VecClass<any[]>]>;
59
+ icrc1_minting_account: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
60
+ icrc1_name: IDL.FuncClass<[], [IDL.TextClass]>;
61
+ icrc1_supported_standards: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
62
+ icrc1_symbol: IDL.FuncClass<[], [IDL.TextClass]>;
63
+ icrc1_total_supply: IDL.FuncClass<[], [IDL.NatClass]>;
64
+ icrc1_transfer: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
65
+ icrc2_allowance: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
66
+ icrc2_approve: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
67
+ icrc2_transfer_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
68
+ icrc3_get_archives: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<Record<string, any>>]>;
69
+ icrc3_get_blocks: IDL.FuncClass<[IDL.VecClass<Record<string, any>>], [IDL.RecClass<any>]>;
70
+ icrc3_get_tip_certificate: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
71
+ icrc3_supported_block_types: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
72
+ withdraw: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
73
+ withdraw_from: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
74
+ }>;
75
+ export const idlInitArgs: IDL.VariantClass[];
76
+ export function idlFactory({ IDL }: {
77
+ IDL: any;
78
+ }): any;
79
+ export function init({ IDL }: {
80
+ IDL: any;
81
+ }): any[];
82
+ import { IDL } from '@icp-sdk/core/candid';
@@ -155,13 +155,25 @@ export type change_details = {
155
155
  'snapshot_id' : snapshot_id,
156
156
  }
157
157
  } |
158
+ {
159
+ 'rename_canister' : {
160
+ 'rename_to' : {
161
+ 'canister_id' : canister_id,
162
+ 'version' : bigint,
163
+ 'total_num_changes' : bigint,
164
+ },
165
+ 'canister_id' : canister_id,
166
+ 'requested_by' : Principal,
167
+ 'total_num_changes' : bigint,
168
+ }
169
+ } |
158
170
  { 'controllers_change' : { 'controllers' : Array<Principal> } } |
159
171
  { 'code_uninstall' : null };
160
172
  export type change_origin = { 'from_user' : { 'user_id' : Principal } } |
161
173
  {
162
174
  'from_canister' : {
163
175
  'canister_version' : [] | [bigint],
164
- 'canister_id' : Principal,
176
+ 'canister_id' : canister_id,
165
177
  }
166
178
  };
167
179
  export interface chunk_hash { 'hash' : Uint8Array }
@@ -207,8 +219,10 @@ export interface http_header { 'value' : string, 'name' : string }
207
219
  export interface http_request_args {
208
220
  'url' : string,
209
221
  'method' : { 'get' : null } |
222
+ { 'put' : null } |
210
223
  { 'head' : null } |
211
- { 'post' : null },
224
+ { 'post' : null } |
225
+ { 'delete' : null },
212
226
  'max_response_bytes' : [] | [bigint],
213
227
  'body' : [] | [Uint8Array],
214
228
  'transform' : [] | [
@@ -366,7 +380,7 @@ export interface uninstall_code_args {
366
380
  'sender_canister_version' : [] | [bigint],
367
381
  }
368
382
  export interface update_settings_args {
369
- 'canister_id' : Principal,
383
+ 'canister_id' : canister_id,
370
384
  'settings' : canister_settings,
371
385
  'sender_canister_version' : [] | [bigint],
372
386
  }
@@ -405,7 +419,7 @@ export interface upload_canister_snapshot_metadata_response {
405
419
  }
406
420
  export interface upload_chunk_args {
407
421
  'chunk' : Uint8Array,
408
- 'canister_id' : Principal,
422
+ 'canister_id' : canister_id,
409
423
  }
410
424
  export type upload_chunk_result = chunk_hash;
411
425
  export interface utxo {
@@ -59,7 +59,17 @@ export interface HttpResponse {
59
59
  'headers' : Array<[string, string]>,
60
60
  'status_code' : number,
61
61
  }
62
- export interface InitArg { 'ledger_id' : Principal }
62
+ export type IndexArg = { 'Upgrade' : UpgradeArg } |
63
+ { 'Init' : InitArg };
64
+ export interface InitArg {
65
+ 'ledger_id' : Principal,
66
+ /**
67
+ * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
68
+ * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
69
+ * A higher values means that it takes longer for new blocks to show up in the index.
70
+ */
71
+ 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
72
+ }
63
73
  export type Operation = {
64
74
  'Approve' : {
65
75
  'fee' : Tokens,
@@ -97,6 +107,15 @@ export interface TransactionWithId {
97
107
  'id' : bigint,
98
108
  'transaction' : Transaction,
99
109
  }
110
+ export interface UpgradeArg {
111
+ 'ledger_id' : [] | [Principal],
112
+ /**
113
+ * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
114
+ * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
115
+ * A higher values means that it takes longer for new blocks to show up in the index.
116
+ */
117
+ 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
118
+ }
100
119
  export interface _SERVICE {
101
120
  'get_account_identifier_balance' : ActorMethod<[string], bigint>,
102
121
  'get_account_identifier_transactions' : ActorMethod<
@@ -1,4 +1,6 @@
1
+ export const UpgradeArg: IDL.RecordClass;
1
2
  export const InitArg: IDL.RecordClass;
3
+ export const IndexArg: IDL.VariantClass;
2
4
  export const GetAccountIdentifierTransactionsArgs: IDL.RecordClass;
3
5
  export const Tokens: IDL.RecordClass;
4
6
  export const TimeStamp: IDL.RecordClass;
@@ -25,7 +27,9 @@ export const idlService: IDL.ServiceClass<string, {
25
27
  ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
26
28
  status: IDL.FuncClass<[], [IDL.RecordClass]>;
27
29
  }>;
28
- export const idlInitArgs: IDL.RecordClass[];
30
+ export const idlInitArgs: IDL.OptClass<{
31
+ [x: string]: any;
32
+ }>[];
29
33
  export function idlFactory({ IDL }: {
30
34
  IDL: any;
31
35
  }): any;
@@ -36,6 +36,7 @@ export interface Burn {
36
36
  }
37
37
  export interface FeeCollector {
38
38
  'ts' : [] | [bigint],
39
+ 'mthd' : [] | [string],
39
40
  'fee_collector' : [] | [Account],
40
41
  'caller' : [] | [Principal],
41
42
  }
@@ -122,6 +122,7 @@ export type Duration = bigint;
122
122
  export interface FeatureFlags { 'icrc2' : boolean }
123
123
  export interface FeeCollector {
124
124
  'ts' : [] | [bigint],
125
+ 'mthd' : [] | [string],
125
126
  'fee_collector' : [] | [Account],
126
127
  'caller' : [] | [Principal],
127
128
  }