@dfinity/ckbtc 5.0.1-next-2025-11-17.1 → 6.0.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -11,8 +11,8 @@ import type { IDL } from "@icp-sdk/core/candid";
11
11
  import type { Principal } from "@icp-sdk/core/principal";
12
12
 
13
13
  export type address = string;
14
- export type block_hash = Uint8Array | number[];
15
- export type block_header = Uint8Array | number[];
14
+ export type block_hash = Uint8Array;
15
+ export type block_header = Uint8Array;
16
16
  export type block_height = number;
17
17
  export interface config {
18
18
  api_access: flag;
@@ -60,13 +60,11 @@ export interface get_current_fee_percentiles_request {
60
60
  }
61
61
  export interface get_utxos_request {
62
62
  network: network;
63
- filter:
64
- | []
65
- | [{ page: Uint8Array | number[] } | { min_confirmations: number }];
63
+ filter: [] | [{ page: Uint8Array } | { min_confirmations: number }];
66
64
  address: address;
67
65
  }
68
66
  export interface get_utxos_response {
69
- next_page: [] | [Uint8Array | number[]];
67
+ next_page: [] | [Uint8Array];
70
68
  tip_height: block_height;
71
69
  tip_block_hash: block_hash;
72
70
  utxos: Array<utxo>;
@@ -86,12 +84,12 @@ export interface init_config {
86
84
  export type millisatoshi_per_byte = bigint;
87
85
  export type network = { mainnet: null } | { regtest: null } | { testnet: null };
88
86
  export interface outpoint {
89
- txid: Uint8Array | number[];
87
+ txid: Uint8Array;
90
88
  vout: number;
91
89
  }
92
90
  export type satoshi = bigint;
93
91
  export interface send_transaction_request {
94
- transaction: Uint8Array | number[];
92
+ transaction: Uint8Array;
95
93
  network: network;
96
94
  }
97
95
  export interface set_config_request {
@@ -118,7 +116,7 @@ export interface _SERVICE {
118
116
  >;
119
117
  bitcoin_get_current_fee_percentiles: ActorMethod<
120
118
  [get_current_fee_percentiles_request],
121
- BigUint64Array | bigint[]
119
+ BigUint64Array
122
120
  >;
123
121
  bitcoin_get_utxos: ActorMethod<[get_utxos_request], get_utxos_response>;
124
122
  bitcoin_get_utxos_query: ActorMethod<[get_utxos_request], get_utxos_response>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -15,14 +15,14 @@ import type { Principal } from "@icp-sdk/core/principal";
15
15
  */
16
16
  export interface Account {
17
17
  owner: Principal;
18
- subaccount: [] | [Uint8Array | number[]];
18
+ subaccount: [] | [Uint8Array];
19
19
  }
20
20
  export type BitcoinAddress =
21
- | { p2wsh_v0: Uint8Array | number[] }
22
- | { p2tr_v1: Uint8Array | number[] }
23
- | { p2sh: Uint8Array | number[] }
24
- | { p2wpkh_v0: Uint8Array | number[] }
25
- | { p2pkh: Uint8Array | number[] };
21
+ | { p2wsh_v0: Uint8Array }
22
+ | { p2tr_v1: Uint8Array }
23
+ | { p2sh: Uint8Array }
24
+ | { p2wpkh_v0: Uint8Array }
25
+ | { p2pkh: Uint8Array };
26
26
  export type BtcNetwork =
27
27
  | {
28
28
  /**
@@ -50,7 +50,7 @@ export interface CanisterStatusResponse {
50
50
  settings: DefiniteCanisterSettings;
51
51
  query_stats: QueryStats;
52
52
  idle_cycles_burned_per_day: bigint;
53
- module_hash: [] | [Uint8Array | number[]];
53
+ module_hash: [] | [Uint8Array];
54
54
  reserved_cycles: bigint;
55
55
  }
56
56
  export type CanisterStatusType =
@@ -91,10 +91,10 @@ export type EventType =
91
91
  sent_transaction: {
92
92
  fee: [] | [bigint];
93
93
  change_output: [] | [{ value: bigint; vout: number }];
94
- txid: Uint8Array | number[];
94
+ txid: Uint8Array;
95
95
  withdrawal_fee: [] | [WithdrawalFee];
96
96
  utxos: Array<Utxo>;
97
- requests: BigUint64Array | bigint[];
97
+ requests: BigUint64Array;
98
98
  submitted_at: bigint;
99
99
  };
100
100
  }
@@ -152,15 +152,15 @@ export type EventType =
152
152
  }
153
153
  | { quarantined_withdrawal_reimbursement: { burn_block_index: bigint } }
154
154
  | { removed_retrieve_btc_request: { block_index: bigint } }
155
- | { confirmed_transaction: { txid: Uint8Array | number[] } }
155
+ | { confirmed_transaction: { txid: Uint8Array } }
156
156
  | {
157
157
  replaced_transaction: {
158
158
  fee: bigint;
159
159
  change_output: { value: bigint; vout: number };
160
160
  new_utxos: [] | [Array<Utxo>];
161
- old_txid: Uint8Array | number[];
161
+ old_txid: Uint8Array;
162
162
  withdrawal_fee: [] | [WithdrawalFee];
163
- new_txid: Uint8Array | number[];
163
+ new_txid: Uint8Array;
164
164
  submitted_at: bigint;
165
165
  reason: [] | [ReplacedReason];
166
166
  };
@@ -299,7 +299,7 @@ export type Mode =
299
299
  export interface PendingUtxo {
300
300
  confirmations: number;
301
301
  value: bigint;
302
- outpoint: { txid: Uint8Array | number[]; vout: number };
302
+ outpoint: { txid: Uint8Array; vout: number };
303
303
  }
304
304
  export interface QueryStats {
305
305
  response_payload_bytes_total: bigint;
@@ -397,14 +397,14 @@ export type RetrieveBtcStatus =
397
397
  * transaction for this request. The payload contains the
398
398
  * identifier of the transaction on the Bitcoin network.
399
399
  */
400
- Confirmed: { txid: Uint8Array | number[] };
400
+ Confirmed: { txid: Uint8Array };
401
401
  }
402
402
  | {
403
403
  /**
404
404
  * The minter signed the transaction and is waiting for a reply
405
405
  * from the Bitcoin canister.
406
406
  */
407
- Sending: { txid: Uint8Array | number[] };
407
+ Sending: { txid: Uint8Array };
408
408
  }
409
409
  | {
410
410
  /**
@@ -426,7 +426,7 @@ export type RetrieveBtcStatus =
426
426
  * The minter sent a transaction for the retrieve request.
427
427
  * The payload contains the identifier of the transaction on the Bitcoin network.
428
428
  */
429
- Submitted: { txid: Uint8Array | number[] };
429
+ Submitted: { txid: Uint8Array };
430
430
  }
431
431
  | {
432
432
  /**
@@ -448,14 +448,14 @@ export type RetrieveBtcStatusV2 =
448
448
  * transaction for this request. The payload contains the
449
449
  * identifier of the transaction on the Bitcoin network.
450
450
  */
451
- Confirmed: { txid: Uint8Array | number[] };
451
+ Confirmed: { txid: Uint8Array };
452
452
  }
453
453
  | {
454
454
  /**
455
455
  * The minter signed the transaction and is waiting for a reply
456
456
  * from the Bitcoin canister.
457
457
  */
458
- Sending: { txid: Uint8Array | number[] };
458
+ Sending: { txid: Uint8Array };
459
459
  }
460
460
  | {
461
461
  /**
@@ -483,7 +483,7 @@ export type RetrieveBtcStatusV2 =
483
483
  * The minter sent a transaction for the retrieve request.
484
484
  * The payload contains the identifier of the transaction on the Bitcoin network.
485
485
  */
486
- Submitted: { txid: Uint8Array | number[] };
486
+ Submitted: { txid: Uint8Array };
487
487
  }
488
488
  | {
489
489
  /**
@@ -501,7 +501,7 @@ export interface RetrieveBtcWithApprovalArgs {
501
501
  /**
502
502
  * The subaccount to burn ckBTC from.
503
503
  */
504
- from_subaccount: [] | [Uint8Array | number[]];
504
+ from_subaccount: [] | [Uint8Array];
505
505
  /**
506
506
  * The address to which the ckBTC minter should deposit BTC.
507
507
  */
@@ -657,7 +657,7 @@ export interface UpgradeArgs {
657
657
  export interface Utxo {
658
658
  height: number;
659
659
  value: bigint;
660
- outpoint: { txid: Uint8Array | number[]; vout: number };
660
+ outpoint: { txid: Uint8Array; vout: number };
661
661
  }
662
662
  /**
663
663
  * The result of an [update_balance] call.
@@ -719,12 +719,7 @@ export interface _SERVICE {
719
719
  * The resolved owner must be a non-anonymous principal.
720
720
  */
721
721
  get_btc_address: ActorMethod<
722
- [
723
- {
724
- owner: [] | [Principal];
725
- subaccount: [] | [Uint8Array | number[]];
726
- },
727
- ],
722
+ [{ owner: [] | [Principal]; subaccount: [] | [Uint8Array] }],
728
723
  string
729
724
  >;
730
725
  get_canister_status: ActorMethod<[], CanisterStatusResponse>;
@@ -751,12 +746,7 @@ export interface _SERVICE {
751
746
  * If the owner is not set, it defaults to the caller's principal.
752
747
  */
753
748
  get_known_utxos: ActorMethod<
754
- [
755
- {
756
- owner: [] | [Principal];
757
- subaccount: [] | [Uint8Array | number[]];
758
- },
759
- ],
749
+ [{ owner: [] | [Principal]; subaccount: [] | [Uint8Array] }],
760
750
  Array<Utxo>
761
751
  >;
762
752
  /**
@@ -845,12 +835,7 @@ export interface _SERVICE {
845
835
  * [get_btc_address] endpoint returns.
846
836
  */
847
837
  update_balance: ActorMethod<
848
- [
849
- {
850
- owner: [] | [Principal];
851
- subaccount: [] | [Uint8Array | number[]];
852
- },
853
- ],
838
+ [{ owner: [] | [Principal]; subaccount: [] | [Uint8Array] }],
854
839
  { Ok: Array<UtxoStatus> } | { Err: UpdateBalanceError }
855
840
  >;
856
841
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @module api/ckbtc
3
+ */
1
4
  export { BitcoinCanister } from "./bitcoin.canister";
2
5
  export type { block_hash, block_height, get_utxos_response, outpoint, satoshi, utxo, } from "./candid/bitcoin";
3
6
  export type { Account, MinterInfo, PendingUtxo, ReimbursedDeposit, ReimbursementRequest, RetrieveBtcOk, RetrieveBtcStatus, RetrieveBtcStatusV2, Utxo, UtxoStatus, Account as WithdrawalAccount, } from "./candid/minter";