@breeztech/breez-sdk-spark 0.19.2 → 0.20.0-dev1

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.
@@ -35,6 +35,16 @@ class BitcoinChainServiceHandle {
35
35
  const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
36
36
  return ret;
37
37
  }
38
+ /**
39
+ * @param {string} address
40
+ * @returns {Promise<any>}
41
+ */
42
+ getAddressTxos(address) {
43
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
44
+ const len0 = WASM_VECTOR_LEN;
45
+ const ret = wasm.bitcoinchainservicehandle_getAddressTxos(this.__wbg_ptr, ptr0, len0);
46
+ return ret;
47
+ }
38
48
  /**
39
49
  * @param {string} address
40
50
  * @returns {Promise<any>}
@@ -45,6 +55,17 @@ class BitcoinChainServiceHandle {
45
55
  const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
46
56
  return ret;
47
57
  }
58
+ /**
59
+ * @param {string} txid
60
+ * @param {number} vout
61
+ * @returns {Promise<any>}
62
+ */
63
+ getOutspend(txid, vout) {
64
+ const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
65
+ const len0 = WASM_VECTOR_LEN;
66
+ const ret = wasm.bitcoinchainservicehandle_getOutspend(this.__wbg_ptr, ptr0, len0, vout);
67
+ return ret;
68
+ }
48
69
  /**
49
70
  * @param {string} txid
50
71
  * @returns {Promise<any>}
@@ -369,6 +390,14 @@ class BreezSdk {
369
390
  const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
370
391
  return ret;
371
392
  }
393
+ /**
394
+ * @param {PrepareUnilateralExitRequest} request
395
+ * @returns {Promise<PrepareUnilateralExitResponse>}
396
+ */
397
+ prepareUnilateralExit(request) {
398
+ const ret = wasm.breezsdk_prepareUnilateralExit(this.__wbg_ptr, request);
399
+ return ret;
400
+ }
372
401
  /**
373
402
  * @param {PublishSignedLnurlPayPackageRequest} request
374
403
  * @returns {Promise<PublishSignedLnurlPayResponse>}
@@ -409,7 +438,7 @@ class BreezSdk {
409
438
  return ret;
410
439
  }
411
440
  /**
412
- * @returns {Promise<void>}
441
+ * @returns {Promise<RefundPendingConversionsResponse>}
413
442
  */
414
443
  refundPendingConversions() {
415
444
  const ret = wasm.breezsdk_refundPendingConversions(this.__wbg_ptr);
@@ -465,6 +494,15 @@ class BreezSdk {
465
494
  const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
466
495
  return ret;
467
496
  }
497
+ /**
498
+ * @param {UnilateralExitRequest} request
499
+ * @param {CpfpSigner} signer
500
+ * @returns {Promise<UnilateralExitResponse>}
501
+ */
502
+ unilateralExit(request, signer) {
503
+ const ret = wasm.breezsdk_unilateralExit(this.__wbg_ptr, request, signer);
504
+ return ret;
505
+ }
468
506
  /**
469
507
  * @param {UnregisterWebhookRequest} request
470
508
  * @returns {Promise<void>}
@@ -493,6 +531,40 @@ class BreezSdk {
493
531
  if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
494
532
  exports.BreezSdk = BreezSdk;
495
533
 
534
+ /**
535
+ * A CPFP signer matching the `CpfpSigner` TypeScript interface.
536
+ */
537
+ class DefaultCpfpSigner {
538
+ static __wrap(ptr) {
539
+ const obj = Object.create(DefaultCpfpSigner.prototype);
540
+ obj.__wbg_ptr = ptr;
541
+ DefaultCpfpSignerFinalization.register(obj, obj.__wbg_ptr, obj);
542
+ return obj;
543
+ }
544
+ __destroy_into_raw() {
545
+ const ptr = this.__wbg_ptr;
546
+ this.__wbg_ptr = 0;
547
+ DefaultCpfpSignerFinalization.unregister(this);
548
+ return ptr;
549
+ }
550
+ free() {
551
+ const ptr = this.__destroy_into_raw();
552
+ wasm.__wbg_defaultcpfpsigner_free(ptr, 0);
553
+ }
554
+ /**
555
+ * @param {Uint8Array} psbt_bytes
556
+ * @returns {Promise<Uint8Array>}
557
+ */
558
+ signPsbt(psbt_bytes) {
559
+ const ptr0 = passArray8ToWasm0(psbt_bytes, wasm.__wbindgen_malloc);
560
+ const len0 = WASM_VECTOR_LEN;
561
+ const ret = wasm.defaultcpfpsigner_signPsbt(this.__wbg_ptr, ptr0, len0);
562
+ return ret;
563
+ }
564
+ }
565
+ if (Symbol.dispose) DefaultCpfpSigner.prototype[Symbol.dispose] = DefaultCpfpSigner.prototype.free;
566
+ exports.DefaultCpfpSigner = DefaultCpfpSigner;
567
+
496
568
  /**
497
569
  * A JS handle to a backend's own session store (from `defaultSessionStore`),
498
570
  * exposing the same `getSession` / `setSession` interface. Wrap it in a JS
@@ -886,6 +958,17 @@ class ExternalSparkSignerHandle {
886
958
  const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
887
959
  return ret;
888
960
  }
961
+ /**
962
+ * @param {ExternalTreeNodeId} leaf_id
963
+ * @param {Uint8Array} sighash
964
+ * @returns {Promise<SchnorrSignatureBytes>}
965
+ */
966
+ signLeafRefundSpend(leaf_id, sighash) {
967
+ const ptr0 = passArray8ToWasm0(sighash, wasm.__wbindgen_malloc);
968
+ const len0 = WASM_VECTOR_LEN;
969
+ const ret = wasm.externalsparksignerhandle_signLeafRefundSpend(this.__wbg_ptr, leaf_id, ptr0, len0);
970
+ return ret;
971
+ }
889
972
  /**
890
973
  * @param {Uint8Array} message
891
974
  * @returns {Promise<EcdsaSignatureBytes>}
@@ -1829,6 +1912,22 @@ function postgresStorage(config) {
1829
1912
  }
1830
1913
  exports.postgresStorage = postgresStorage;
1831
1914
 
1915
+ /**
1916
+ * Creates a default CPFP signer backed by a single private key.
1917
+ * @param {Uint8Array} secret_key_bytes
1918
+ * @returns {DefaultCpfpSigner}
1919
+ */
1920
+ function singleKeyCpfpSigner(secret_key_bytes) {
1921
+ const ptr0 = passArray8ToWasm0(secret_key_bytes, wasm.__wbindgen_malloc);
1922
+ const len0 = WASM_VECTOR_LEN;
1923
+ const ret = wasm.singleKeyCpfpSigner(ptr0, len0);
1924
+ if (ret[2]) {
1925
+ throw takeFromExternrefTable0(ret[1]);
1926
+ }
1927
+ return DefaultCpfpSigner.__wrap(ret[0]);
1928
+ }
1929
+ exports.singleKeyCpfpSigner = singleKeyCpfpSigner;
1930
+
1832
1931
  /**
1833
1932
  * Runs automatically when the wasm module is instantiated. Installs the
1834
1933
  * panic hook so Rust panics surface as readable `console.error` output
@@ -2366,6 +2465,18 @@ function __wbg_get_imports() {
2366
2465
  const ret = Array.from(arg0);
2367
2466
  return ret;
2368
2467
  },
2468
+ __wbg_getAddressTxos_3ca1c4b39dd84911: function() { return handleError(function (arg0, arg1, arg2) {
2469
+ let deferred0_0;
2470
+ let deferred0_1;
2471
+ try {
2472
+ deferred0_0 = arg1;
2473
+ deferred0_1 = arg2;
2474
+ const ret = arg0.getAddressTxos(getStringFromWasm0(arg1, arg2));
2475
+ return ret;
2476
+ } finally {
2477
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2478
+ }
2479
+ }, arguments); },
2369
2480
  __wbg_getAddressUtxos_9526b6d8078b867e: function() { return handleError(function (arg0, arg1, arg2) {
2370
2481
  let deferred0_0;
2371
2482
  let deferred0_1;
@@ -2431,6 +2542,18 @@ function __wbg_get_imports() {
2431
2542
  const ret = arg0.getLeaves();
2432
2543
  return ret;
2433
2544
  }, arguments); },
2545
+ __wbg_getOutspend_4b3c117972515790: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2546
+ let deferred0_0;
2547
+ let deferred0_1;
2548
+ try {
2549
+ deferred0_0 = arg1;
2550
+ deferred0_1 = arg2;
2551
+ const ret = arg0.getOutspend(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
2552
+ return ret;
2553
+ } finally {
2554
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2555
+ }
2556
+ }, arguments); },
2434
2557
  __wbg_getPaymentById_6d677ada5879df99: function() { return handleError(function (arg0, arg1, arg2) {
2435
2558
  let deferred0_0;
2436
2559
  let deferred0_1;
@@ -3260,12 +3383,24 @@ function __wbg_get_imports() {
3260
3383
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3261
3384
  }
3262
3385
  }, arguments); },
3386
+ __wbg_signLeafRefundSpend_dc0eea305a0dde9c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
3387
+ var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
3388
+ wasm.__wbindgen_free(arg2, arg3 * 1, 1);
3389
+ const ret = arg0.signLeafRefundSpend(arg1, v0);
3390
+ return ret;
3391
+ }, arguments); },
3263
3392
  __wbg_signMessage_80ec0b0dfc7f00ee: function() { return handleError(function (arg0, arg1, arg2) {
3264
3393
  var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3265
3394
  wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3266
3395
  const ret = arg0.signMessage(v0);
3267
3396
  return ret;
3268
3397
  }, arguments); },
3398
+ __wbg_signPsbt_625c8cbdec488cc6: function() { return handleError(function (arg0, arg1, arg2) {
3399
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3400
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3401
+ const ret = arg0.signPsbt(v0);
3402
+ return ret;
3403
+ }, arguments); },
3269
3404
  __wbg_signSparkInvoice_cca6c7f35b5e85d2: function() { return handleError(function (arg0, arg1) {
3270
3405
  const ret = arg0.signSparkInvoice(arg1);
3271
3406
  return ret;
@@ -3477,62 +3612,62 @@ function __wbg_get_imports() {
3477
3612
  return ret;
3478
3613
  },
3479
3614
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3480
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3615
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3481
3616
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
3482
3617
  return ret;
3483
3618
  },
3484
3619
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
3485
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3620
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3486
3621
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
3487
3622
  return ret;
3488
3623
  },
3489
3624
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
3490
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3625
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3491
3626
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
3492
3627
  return ret;
3493
3628
  },
3494
3629
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
3495
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3630
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3496
3631
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
3497
3632
  return ret;
3498
3633
  },
3499
3634
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
3500
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3635
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3501
3636
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
3502
3637
  return ret;
3503
3638
  },
3504
3639
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
3505
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3640
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3506
3641
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
3507
3642
  return ret;
3508
3643
  },
3509
3644
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
3510
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3645
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3511
3646
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
3512
3647
  return ret;
3513
3648
  },
3514
3649
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
3515
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3650
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3516
3651
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
3517
3652
  return ret;
3518
3653
  },
3519
3654
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
3520
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3655
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3521
3656
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
3522
3657
  return ret;
3523
3658
  },
3524
3659
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
3525
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3660
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3526
3661
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
3527
3662
  return ret;
3528
3663
  },
3529
3664
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
3530
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 371, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3665
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3531
3666
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
3532
3667
  return ret;
3533
3668
  },
3534
3669
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
3535
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3670
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3536
3671
  const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
3537
3672
  return ret;
3538
3673
  },
@@ -3717,6 +3852,9 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
3717
3852
  const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
3718
3853
  ? { register: () => {}, unregister: () => {} }
3719
3854
  : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
3855
+ const DefaultCpfpSignerFinalization = (typeof FinalizationRegistry === 'undefined')
3856
+ ? { register: () => {}, unregister: () => {} }
3857
+ : new FinalizationRegistry(ptr => wasm.__wbg_defaultcpfpsigner_free(ptr, 1));
3720
3858
  const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
3721
3859
  ? { register: () => {}, unregister: () => {} }
3722
3860
  : new FinalizationRegistry(ptr => wasm.__wbg_defaultsessionstore_free(ptr, 1));
Binary file
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_bitcoinchainservicehandle_free: (a: number, b: number) => void;
5
5
  export const __wbg_breezsdk_free: (a: number, b: number) => void;
6
+ export const __wbg_defaultcpfpsigner_free: (a: number, b: number) => void;
6
7
  export const __wbg_externalsigners_free: (a: number, b: number) => void;
7
8
  export const __wbg_passkeyclient_free: (a: number, b: number) => void;
8
9
  export const __wbg_passkeylabels_free: (a: number, b: number) => void;
@@ -11,7 +12,9 @@ export const __wbg_tokenissuer_free: (a: number, b: number) => void;
11
12
  export const __wbg_wasmsdkcontext_free: (a: number, b: number) => void;
12
13
  export const __wbg_wasmstorageconfig_free: (a: number, b: number) => void;
13
14
  export const bitcoinchainservicehandle_broadcastTransaction: (a: number, b: number, c: number) => any;
15
+ export const bitcoinchainservicehandle_getAddressTxos: (a: number, b: number, c: number) => any;
14
16
  export const bitcoinchainservicehandle_getAddressUtxos: (a: number, b: number, c: number) => any;
17
+ export const bitcoinchainservicehandle_getOutspend: (a: number, b: number, c: number, d: number) => any;
15
18
  export const bitcoinchainservicehandle_getTransactionHex: (a: number, b: number, c: number) => any;
16
19
  export const bitcoinchainservicehandle_getTransactionStatus: (a: number, b: number, c: number) => any;
17
20
  export const bitcoinchainservicehandle_recommendedFees: (a: number) => any;
@@ -50,6 +53,7 @@ export const breezsdk_optimizeLeaves: (a: number, b: any) => any;
50
53
  export const breezsdk_parse: (a: number, b: number, c: number) => any;
51
54
  export const breezsdk_prepareLnurlPay: (a: number, b: any) => any;
52
55
  export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
56
+ export const breezsdk_prepareUnilateralExit: (a: number, b: any) => any;
53
57
  export const breezsdk_publishSignedLnurlPayPackage: (a: number, b: any) => any;
54
58
  export const breezsdk_publishSignedTransferPackage: (a: number, b: any) => any;
55
59
  export const breezsdk_receivePayment: (a: number, b: any) => any;
@@ -62,6 +66,7 @@ export const breezsdk_removeEventListener: (a: number, b: number, c: number) =>
62
66
  export const breezsdk_sendPayment: (a: number, b: any) => any;
63
67
  export const breezsdk_signMessage: (a: number, b: any) => any;
64
68
  export const breezsdk_syncWallet: (a: number, b: any) => any;
69
+ export const breezsdk_unilateralExit: (a: number, b: any, c: any) => any;
65
70
  export const breezsdk_unregisterWebhook: (a: number, b: any) => any;
66
71
  export const breezsdk_updateContact: (a: number, b: any) => any;
67
72
  export const breezsdk_updateUserSettings: (a: number, b: any) => any;
@@ -77,6 +82,7 @@ export const defaultPostgresStorageConfig: (a: number, b: number) => any;
77
82
  export const defaultServerConfig: (a: any) => any;
78
83
  export const defaultSessionStore: (a: number, b: any, c: number, d: number) => any;
79
84
  export const defaultStorage: (a: number, b: number) => number;
85
+ export const defaultcpfpsigner_signPsbt: (a: number, b: number, c: number) => any;
80
86
  export const defaultsessionstore_getSession: (a: number, b: number, c: number) => any;
81
87
  export const defaultsessionstore_setSession: (a: number, b: number, c: number, d: any) => any;
82
88
  export const externalbreezsignerhandle_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
@@ -103,6 +109,7 @@ export const externalsparksignerhandle_prepareTokenTransaction: (a: number, b: a
103
109
  export const externalsparksignerhandle_prepareTransfer: (a: number, b: any) => any;
104
110
  export const externalsparksignerhandle_signAuthenticationChallenge: (a: number, b: number, c: number) => any;
105
111
  export const externalsparksignerhandle_signFrost: (a: number, b: number, c: number) => any;
112
+ export const externalsparksignerhandle_signLeafRefundSpend: (a: number, b: any, c: number, d: number) => any;
106
113
  export const externalsparksignerhandle_signMessage: (a: number, b: number, c: number) => any;
107
114
  export const externalsparksignerhandle_signSparkInvoice: (a: number, b: any) => any;
108
115
  export const externalsparksignerhandle_signStaticDepositRefund: (a: number, b: any) => any;
@@ -139,6 +146,7 @@ export const sdkbuilder_withSessionStore: (a: number, b: any) => number;
139
146
  export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
140
147
  export const sdkbuilder_withStorage: (a: number, b: any) => number;
141
148
  export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
149
+ export const singleKeyCpfpSigner: (a: number, b: number) => [number, number, number];
142
150
  export const start: () => void;
143
151
  export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
144
152
  export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
package/nodejs/index.mjs CHANGED
@@ -22,10 +22,12 @@ export const {
22
22
  newRestChainService,
23
23
  newSharedSdkContext,
24
24
  postgresStorage,
25
+ singleKeyCpfpSigner,
25
26
  start,
26
27
  task_worker_entry_point,
27
28
  BitcoinChainServiceHandle,
28
29
  BreezSdk,
30
+ DefaultCpfpSigner,
29
31
  DefaultSessionStore,
30
32
  ExternalBreezSignerHandle,
31
33
  ExternalSigners,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.19.2",
3
+ "version": "0.20.0-dev1",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",
package/ssr/index.js CHANGED
@@ -113,6 +113,11 @@ export function postgresStorage(...args) {
113
113
  return _module.postgresStorage(...args);
114
114
  }
115
115
 
116
+ export function singleKeyCpfpSigner(...args) {
117
+ if (!_module) _notInitialized('singleKeyCpfpSigner');
118
+ return _module.singleKeyCpfpSigner(...args);
119
+ }
120
+
116
121
  export function start(...args) {
117
122
  if (!_module) _notInitialized('start');
118
123
  return _module.start(...args);
@@ -142,6 +147,13 @@ export class BreezSdk {
142
147
  }
143
148
  }
144
149
 
150
+ export class DefaultCpfpSigner {
151
+ constructor(...args) {
152
+ if (!_module) _notInitialized('new DefaultCpfpSigner');
153
+ return new _module.DefaultCpfpSigner(...args);
154
+ }
155
+ }
156
+
145
157
  export class DefaultSessionStore {
146
158
  constructor(...args) {
147
159
  if (!_module) _notInitialized('new DefaultSessionStore');