@breeztech/breez-sdk-spark 0.19.0 → 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>}
@@ -1063,6 +1146,23 @@ class PasskeyClient {
1063
1146
  const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
1064
1147
  return ret;
1065
1148
  }
1149
+ /**
1150
+ * Single-CTA onboarding: silent sign-in that falls through to
1151
+ * registration when no credential exists on the device. Pins
1152
+ * immediate mediation, so on web only use it where the browser
1153
+ * advertises it (`supportsImmediateMediation`); otherwise the silent
1154
+ * probe degrades to the standard picker and a dismiss does not fall
1155
+ * through to register, so
1156
+ * present an explicit create / sign-in choice instead. Called without
1157
+ * a `label`, the response `labels` lists a returning user's wallets
1158
+ * for a picker.
1159
+ * @param {ConnectWithPasskeyRequest} request
1160
+ * @returns {Promise<ConnectWithPasskeyResponse>}
1161
+ */
1162
+ connectWithPasskey(request) {
1163
+ const ret = wasm.passkeyclient_connectWithPasskey(this.__wbg_ptr, request);
1164
+ return ret;
1165
+ }
1066
1166
  /**
1067
1167
  * Label sub-object. List / publish labels for this passkey's identity.
1068
1168
  * @returns {PasskeyLabels}
@@ -1111,6 +1211,18 @@ class PasskeyClient {
1111
1211
  const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
1112
1212
  return ret;
1113
1213
  }
1214
+ /**
1215
+ * Whether this browser advertises WebAuthn immediate mediation: the
1216
+ * silent single-CTA probe (a no-credential sign-in fast-fails with no
1217
+ * UI) works here, so a web host can pick single- vs two-button
1218
+ * onboarding. Web-only and WASM-only: native does the silent probe
1219
+ * inherently, so there is nothing to query off-web.
1220
+ * @returns {Promise<boolean>}
1221
+ */
1222
+ supportsImmediateMediation() {
1223
+ const ret = wasm.passkeyclient_supportsImmediateMediation(this.__wbg_ptr);
1224
+ return ret;
1225
+ }
1114
1226
  }
1115
1227
  if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
1116
1228
  exports.PasskeyClient = PasskeyClient;
@@ -1800,6 +1912,22 @@ function postgresStorage(config) {
1800
1912
  }
1801
1913
  exports.postgresStorage = postgresStorage;
1802
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
+
1803
1931
  /**
1804
1932
  * Runs automatically when the wasm module is instantiated. Installs the
1805
1933
  * panic hook so Rust panics surface as readable `console.error` output
@@ -2337,6 +2465,18 @@ function __wbg_get_imports() {
2337
2465
  const ret = Array.from(arg0);
2338
2466
  return ret;
2339
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); },
2340
2480
  __wbg_getAddressUtxos_9526b6d8078b867e: function() { return handleError(function (arg0, arg1, arg2) {
2341
2481
  let deferred0_0;
2342
2482
  let deferred0_1;
@@ -2402,6 +2542,18 @@ function __wbg_get_imports() {
2402
2542
  const ret = arg0.getLeaves();
2403
2543
  return ret;
2404
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); },
2405
2557
  __wbg_getPaymentById_6d677ada5879df99: function() { return handleError(function (arg0, arg1, arg2) {
2406
2558
  let deferred0_0;
2407
2559
  let deferred0_1;
@@ -3231,12 +3383,24 @@ function __wbg_get_imports() {
3231
3383
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3232
3384
  }
3233
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); },
3234
3392
  __wbg_signMessage_80ec0b0dfc7f00ee: function() { return handleError(function (arg0, arg1, arg2) {
3235
3393
  var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3236
3394
  wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3237
3395
  const ret = arg0.signMessage(v0);
3238
3396
  return ret;
3239
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); },
3240
3404
  __wbg_signSparkInvoice_cca6c7f35b5e85d2: function() { return handleError(function (arg0, arg1) {
3241
3405
  const ret = arg0.signSparkInvoice(arg1);
3242
3406
  return ret;
@@ -3292,6 +3456,10 @@ function __wbg_get_imports() {
3292
3456
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3293
3457
  return ret;
3294
3458
  },
3459
+ __wbg_supportsImmediateMediation_a50b46b1cdfacd3d: function() { return handleError(function (arg0) {
3460
+ const ret = arg0.supportsImmediateMediation();
3461
+ return ret;
3462
+ }, arguments); },
3295
3463
  __wbg_syncAddOutgoingChange_69db2a1430cbd55a: function() { return handleError(function (arg0, arg1) {
3296
3464
  const ret = arg0.syncAddOutgoingChange(arg1);
3297
3465
  return ret;
@@ -3444,62 +3612,62 @@ function __wbg_get_imports() {
3444
3612
  return ret;
3445
3613
  },
3446
3614
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3447
- // 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`.
3448
3616
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
3449
3617
  return ret;
3450
3618
  },
3451
3619
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
3452
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 230, 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`.
3453
3621
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
3454
3622
  return ret;
3455
3623
  },
3456
3624
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
3457
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 230, 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`.
3458
3626
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
3459
3627
  return ret;
3460
3628
  },
3461
3629
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
3462
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 230, 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`.
3463
3631
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
3464
3632
  return ret;
3465
3633
  },
3466
3634
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
3467
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 230, 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`.
3468
3636
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
3469
3637
  return ret;
3470
3638
  },
3471
3639
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
3472
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 230, 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`.
3473
3641
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
3474
3642
  return ret;
3475
3643
  },
3476
3644
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
3477
- // 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`.
3478
3646
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
3479
3647
  return ret;
3480
3648
  },
3481
3649
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
3482
- // 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`.
3483
3651
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
3484
3652
  return ret;
3485
3653
  },
3486
3654
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
3487
- // 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`.
3488
3656
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
3489
3657
  return ret;
3490
3658
  },
3491
3659
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
3492
- // 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`.
3493
3661
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
3494
3662
  return ret;
3495
3663
  },
3496
3664
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
3497
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 392, 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`.
3498
3666
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
3499
3667
  return ret;
3500
3668
  },
3501
3669
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
3502
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 421, 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`.
3503
3671
  const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
3504
3672
  return ret;
3505
3673
  },
@@ -3684,6 +3852,9 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
3684
3852
  const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
3685
3853
  ? { register: () => {}, unregister: () => {} }
3686
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));
3687
3858
  const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
3688
3859
  ? { register: () => {}, unregister: () => {} }
3689
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;
@@ -113,10 +120,12 @@ export const mysqlStorage: (a: any) => number;
113
120
  export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
114
121
  export const newSharedSdkContext: (a: any) => any;
115
122
  export const passkeyclient_checkAvailability: (a: number) => any;
123
+ export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
116
124
  export const passkeyclient_labels: (a: number) => number;
117
125
  export const passkeyclient_new: (a: any, b: number, c: number, d: number) => number;
118
126
  export const passkeyclient_register: (a: number, b: any) => any;
119
127
  export const passkeyclient_signIn: (a: number, b: any) => any;
128
+ export const passkeyclient_supportsImmediateMediation: (a: number) => any;
120
129
  export const passkeylabels_list: (a: number) => any;
121
130
  export const passkeylabels_store: (a: number, b: number, c: number) => any;
122
131
  export const postgresStorage: (a: any) => number;
@@ -137,6 +146,7 @@ export const sdkbuilder_withSessionStore: (a: number, b: any) => number;
137
146
  export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
138
147
  export const sdkbuilder_withStorage: (a: number, b: any) => number;
139
148
  export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
149
+ export const singleKeyCpfpSigner: (a: number, b: number) => [number, number, number];
140
150
  export const start: () => void;
141
151
  export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
142
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.0",
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');