@xstoicunicornx/payjoin_test 0.1.8 → 0.1.9

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 (34) hide show
  1. package/README.md +4 -1
  2. package/dist/nodejs/{bindings → generated}/payjoin.d.ts +171 -171
  3. package/dist/nodejs/generated/payjoin.d.ts.map +1 -0
  4. package/dist/{web/bindings → nodejs/generated}/payjoin.js +100 -73
  5. package/dist/nodejs/generated/payjoin.js.map +1 -0
  6. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index.d.ts +170 -185
  7. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index.js +540 -609
  8. package/dist/nodejs/{bindings → generated}/wasm-bindgen/index_bg.wasm +0 -0
  9. package/dist/{web/bindings → nodejs/generated}/wasm-bindgen/index_bg.wasm.d.ts +20 -26
  10. package/dist/nodejs/index.d.ts +2 -2
  11. package/dist/nodejs/index.d.ts.map +1 -1
  12. package/dist/nodejs/index.js +3 -3
  13. package/dist/nodejs/index.js.map +1 -1
  14. package/dist/web/{bindings → generated}/payjoin.d.ts +171 -171
  15. package/dist/web/generated/payjoin.d.ts.map +1 -0
  16. package/dist/{nodejs/bindings → web/generated}/payjoin.js +100 -73
  17. package/dist/web/generated/payjoin.js.map +1 -0
  18. package/dist/web/{bindings → generated}/wasm-bindgen/index.d.ts +190 -211
  19. package/dist/web/{bindings → generated}/wasm-bindgen/index.js +540 -604
  20. package/dist/web/{bindings → generated}/wasm-bindgen/index_bg.wasm +0 -0
  21. package/dist/{nodejs/bindings → web/generated}/wasm-bindgen/index_bg.wasm.d.ts +20 -26
  22. package/dist/web/index.d.ts +2 -2
  23. package/dist/web/index.d.ts.map +1 -1
  24. package/dist/web/index.js +4 -4
  25. package/dist/web/index.js.map +1 -1
  26. package/dist/web/vite.index.d.ts +2 -2
  27. package/dist/web/vite.index.d.ts.map +1 -1
  28. package/dist/web/vite.index.js +4 -4
  29. package/dist/web/vite.index.js.map +1 -1
  30. package/package.json +6 -5
  31. package/dist/nodejs/bindings/payjoin.d.ts.map +0 -1
  32. package/dist/nodejs/bindings/payjoin.js.map +0 -1
  33. package/dist/web/bindings/payjoin.d.ts.map +0 -1
  34. package/dist/web/bindings/payjoin.js.map +0 -1
@@ -32,13 +32,13 @@ export async function replayReceiverEventLogAsync(persister, asyncOpts_) {
32
32
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_func_replay_receiver_event_log_async(FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
33
33
  },
34
34
  /*pollFunc:*/ nativeModule()
35
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
35
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
36
36
  /*cancelFunc:*/ nativeModule()
37
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
37
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
38
38
  /*completeFunc:*/ nativeModule()
39
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
39
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
40
40
  /*freeFunc:*/ nativeModule()
41
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
41
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
42
42
  /*liftFunc:*/ FfiConverterTypeReplayResult.lift.bind(FfiConverterTypeReplayResult),
43
43
  /*liftString:*/ FfiConverterString.lift,
44
44
  /*asyncOpts:*/ asyncOpts_,
@@ -68,13 +68,13 @@ export async function replaySenderEventLogAsync(persister, asyncOpts_) {
68
68
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_func_replay_sender_event_log_async(FfiConverterTypeJsonSenderSessionPersisterAsync.lower(persister));
69
69
  },
70
70
  /*pollFunc:*/ nativeModule()
71
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
71
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
72
72
  /*cancelFunc:*/ nativeModule()
73
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
73
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
74
74
  /*completeFunc:*/ nativeModule()
75
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
75
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
76
76
  /*freeFunc:*/ nativeModule()
77
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
77
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
78
78
  /*liftFunc:*/ FfiConverterTypeSenderReplayResult.lift.bind(FfiConverterTypeSenderReplayResult),
79
79
  /*liftString:*/ FfiConverterString.lift,
80
80
  /*asyncOpts:*/ asyncOpts_,
@@ -3567,13 +3567,13 @@ export class AssumeInteractiveTransition extends UniffiAbstractObject {
3567
3567
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_assumeinteractivetransition_save_async(uniffiTypeAssumeInteractiveTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
3568
3568
  },
3569
3569
  /*pollFunc:*/ nativeModule()
3570
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
3570
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
3571
3571
  /*cancelFunc:*/ nativeModule()
3572
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
3572
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
3573
3573
  /*completeFunc:*/ nativeModule()
3574
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
3574
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
3575
3575
  /*freeFunc:*/ nativeModule()
3576
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
3576
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
3577
3577
  /*liftFunc:*/ FfiConverterTypeMaybeInputsOwned.lift.bind(FfiConverterTypeMaybeInputsOwned),
3578
3578
  /*liftString:*/ FfiConverterString.lift,
3579
3579
  /*asyncOpts:*/ asyncOpts_,
@@ -3904,6 +3904,9 @@ const uniffiCallbackInterfaceCanBroadcast = {
3904
3904
  // CanBroadcast: this will throw a stale handle error if the handle isn't found.
3905
3905
  FfiConverterTypeCanBroadcast.drop(uniffiHandle);
3906
3906
  },
3907
+ uniffiClone: (uniffiHandle) => {
3908
+ return FfiConverterTypeCanBroadcast.clone(uniffiHandle);
3909
+ },
3907
3910
  },
3908
3911
  register: () => {
3909
3912
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_canbroadcast(uniffiCallbackInterfaceCanBroadcast.vtable);
@@ -4835,13 +4838,13 @@ export class InitialReceiveTransition extends UniffiAbstractObject {
4835
4838
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_initialreceivetransition_save_async(uniffiTypeInitialReceiveTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
4836
4839
  },
4837
4840
  /*pollFunc:*/ nativeModule()
4838
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
4841
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
4839
4842
  /*cancelFunc:*/ nativeModule()
4840
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
4843
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
4841
4844
  /*completeFunc:*/ nativeModule()
4842
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
4845
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
4843
4846
  /*freeFunc:*/ nativeModule()
4844
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
4847
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
4845
4848
  /*liftFunc:*/ FfiConverterTypeInitialized.lift.bind(FfiConverterTypeInitialized),
4846
4849
  /*liftString:*/ FfiConverterString.lift,
4847
4850
  /*asyncOpts:*/ asyncOpts_,
@@ -4953,13 +4956,13 @@ export class InitialSendTransition extends UniffiAbstractObject {
4953
4956
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_initialsendtransition_save_async(uniffiTypeInitialSendTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonSenderSessionPersisterAsync.lower(persister));
4954
4957
  },
4955
4958
  /*pollFunc:*/ nativeModule()
4956
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
4959
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
4957
4960
  /*cancelFunc:*/ nativeModule()
4958
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
4961
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
4959
4962
  /*completeFunc:*/ nativeModule()
4960
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
4963
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
4961
4964
  /*freeFunc:*/ nativeModule()
4962
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
4965
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
4963
4966
  /*liftFunc:*/ FfiConverterTypeWithReplyKey.lift.bind(FfiConverterTypeWithReplyKey),
4964
4967
  /*liftString:*/ FfiConverterString.lift,
4965
4968
  /*asyncOpts:*/ asyncOpts_,
@@ -5722,6 +5725,9 @@ const uniffiCallbackInterfaceIsOutputKnown = {
5722
5725
  // IsOutputKnown: this will throw a stale handle error if the handle isn't found.
5723
5726
  FfiConverterTypeIsOutputKnown.drop(uniffiHandle);
5724
5727
  },
5728
+ uniffiClone: (uniffiHandle) => {
5729
+ return FfiConverterTypeIsOutputKnown.clone(uniffiHandle);
5730
+ },
5725
5731
  },
5726
5732
  register: () => {
5727
5733
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_isoutputknown(uniffiCallbackInterfaceIsOutputKnown.vtable);
@@ -5848,6 +5854,9 @@ const uniffiCallbackInterfaceIsScriptOwned = {
5848
5854
  // IsScriptOwned: this will throw a stale handle error if the handle isn't found.
5849
5855
  FfiConverterTypeIsScriptOwned.drop(uniffiHandle);
5850
5856
  },
5857
+ uniffiClone: (uniffiHandle) => {
5858
+ return FfiConverterTypeIsScriptOwned.clone(uniffiHandle);
5859
+ },
5851
5860
  },
5852
5861
  register: () => {
5853
5862
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_isscriptowned(uniffiCallbackInterfaceIsScriptOwned.vtable);
@@ -6033,6 +6042,9 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersister = {
6033
6042
  // JsonReceiverSessionPersister: this will throw a stale handle error if the handle isn't found.
6034
6043
  FfiConverterTypeJsonReceiverSessionPersister.drop(uniffiHandle);
6035
6044
  },
6045
+ uniffiClone: (uniffiHandle) => {
6046
+ return FfiConverterTypeJsonReceiverSessionPersister.clone(uniffiHandle);
6047
+ },
6036
6048
  },
6037
6049
  register: () => {
6038
6050
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonreceiversessionpersister(uniffiCallbackInterfaceJsonReceiverSessionPersister.vtable);
@@ -6224,13 +6236,13 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
6224
6236
  };
6225
6237
  const uniffiHandleSuccess = (returnValue) => {
6226
6238
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6227
- /* UniffiForeignFutureStructVoid */ {
6239
+ /* UniffiForeignFutureResultVoid */ {
6228
6240
  callStatus: uniffiCaller.createCallStatus(),
6229
6241
  });
6230
6242
  };
6231
6243
  const uniffiHandleError = (code, errorBuf) => {
6232
6244
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6233
- /* UniffiForeignFutureStructVoid */ {
6245
+ /* UniffiForeignFutureResultVoid */ {
6234
6246
  // TODO create callstatus with error.
6235
6247
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
6236
6248
  });
@@ -6251,14 +6263,14 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
6251
6263
  };
6252
6264
  const uniffiHandleSuccess = (returnValue) => {
6253
6265
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6254
- /* UniffiForeignFutureStructRustBuffer */ {
6266
+ /* UniffiForeignFutureResultRustBuffer */ {
6255
6267
  returnValue: FfiConverterArrayString.lower(returnValue),
6256
6268
  callStatus: uniffiCaller.createCallStatus(),
6257
6269
  });
6258
6270
  };
6259
6271
  const uniffiHandleError = (code, errorBuf) => {
6260
6272
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6261
- /* UniffiForeignFutureStructRustBuffer */ {
6273
+ /* UniffiForeignFutureResultRustBuffer */ {
6262
6274
  returnValue: /*empty*/ new Uint8Array(0),
6263
6275
  // TODO create callstatus with error.
6264
6276
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
@@ -6280,13 +6292,13 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
6280
6292
  };
6281
6293
  const uniffiHandleSuccess = (returnValue) => {
6282
6294
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6283
- /* UniffiForeignFutureStructVoid */ {
6295
+ /* UniffiForeignFutureResultVoid */ {
6284
6296
  callStatus: uniffiCaller.createCallStatus(),
6285
6297
  });
6286
6298
  };
6287
6299
  const uniffiHandleError = (code, errorBuf) => {
6288
6300
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6289
- /* UniffiForeignFutureStructVoid */ {
6301
+ /* UniffiForeignFutureResultVoid */ {
6290
6302
  // TODO create callstatus with error.
6291
6303
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
6292
6304
  });
@@ -6304,6 +6316,9 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
6304
6316
  // JsonReceiverSessionPersisterAsync: this will throw a stale handle error if the handle isn't found.
6305
6317
  FfiConverterTypeJsonReceiverSessionPersisterAsync.drop(uniffiHandle);
6306
6318
  },
6319
+ uniffiClone: (uniffiHandle) => {
6320
+ return FfiConverterTypeJsonReceiverSessionPersisterAsync.clone(uniffiHandle);
6321
+ },
6307
6322
  },
6308
6323
  register: () => {
6309
6324
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonreceiversessionpersisterasync(uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync.vtable);
@@ -6617,6 +6632,9 @@ const uniffiCallbackInterfaceJsonSenderSessionPersister = {
6617
6632
  // JsonSenderSessionPersister: this will throw a stale handle error if the handle isn't found.
6618
6633
  FfiConverterTypeJsonSenderSessionPersister.drop(uniffiHandle);
6619
6634
  },
6635
+ uniffiClone: (uniffiHandle) => {
6636
+ return FfiConverterTypeJsonSenderSessionPersister.clone(uniffiHandle);
6637
+ },
6620
6638
  },
6621
6639
  register: () => {
6622
6640
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonsendersessionpersister(uniffiCallbackInterfaceJsonSenderSessionPersister.vtable);
@@ -6808,13 +6826,13 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
6808
6826
  };
6809
6827
  const uniffiHandleSuccess = (returnValue) => {
6810
6828
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6811
- /* UniffiForeignFutureStructVoid */ {
6829
+ /* UniffiForeignFutureResultVoid */ {
6812
6830
  callStatus: uniffiCaller.createCallStatus(),
6813
6831
  });
6814
6832
  };
6815
6833
  const uniffiHandleError = (code, errorBuf) => {
6816
6834
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6817
- /* UniffiForeignFutureStructVoid */ {
6835
+ /* UniffiForeignFutureResultVoid */ {
6818
6836
  // TODO create callstatus with error.
6819
6837
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
6820
6838
  });
@@ -6835,14 +6853,14 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
6835
6853
  };
6836
6854
  const uniffiHandleSuccess = (returnValue) => {
6837
6855
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6838
- /* UniffiForeignFutureStructRustBuffer */ {
6856
+ /* UniffiForeignFutureResultRustBuffer */ {
6839
6857
  returnValue: FfiConverterArrayString.lower(returnValue),
6840
6858
  callStatus: uniffiCaller.createCallStatus(),
6841
6859
  });
6842
6860
  };
6843
6861
  const uniffiHandleError = (code, errorBuf) => {
6844
6862
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6845
- /* UniffiForeignFutureStructRustBuffer */ {
6863
+ /* UniffiForeignFutureResultRustBuffer */ {
6846
6864
  returnValue: /*empty*/ new Uint8Array(0),
6847
6865
  // TODO create callstatus with error.
6848
6866
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
@@ -6864,13 +6882,13 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
6864
6882
  };
6865
6883
  const uniffiHandleSuccess = (returnValue) => {
6866
6884
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6867
- /* UniffiForeignFutureStructVoid */ {
6885
+ /* UniffiForeignFutureResultVoid */ {
6868
6886
  callStatus: uniffiCaller.createCallStatus(),
6869
6887
  });
6870
6888
  };
6871
6889
  const uniffiHandleError = (code, errorBuf) => {
6872
6890
  uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData,
6873
- /* UniffiForeignFutureStructVoid */ {
6891
+ /* UniffiForeignFutureResultVoid */ {
6874
6892
  // TODO create callstatus with error.
6875
6893
  callStatus: uniffiCaller.createErrorStatus(code, errorBuf),
6876
6894
  });
@@ -6888,6 +6906,9 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
6888
6906
  // JsonSenderSessionPersisterAsync: this will throw a stale handle error if the handle isn't found.
6889
6907
  FfiConverterTypeJsonSenderSessionPersisterAsync.drop(uniffiHandle);
6890
6908
  },
6909
+ uniffiClone: (uniffiHandle) => {
6910
+ return FfiConverterTypeJsonSenderSessionPersisterAsync.clone(uniffiHandle);
6911
+ },
6891
6912
  },
6892
6913
  register: () => {
6893
6914
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonsendersessionpersisterasync(uniffiCallbackInterfaceJsonSenderSessionPersisterAsync.vtable);
@@ -7036,13 +7057,13 @@ export class MaybeInputsOwnedTransition extends UniffiAbstractObject {
7036
7057
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_maybeinputsownedtransition_save_async(uniffiTypeMaybeInputsOwnedTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
7037
7058
  },
7038
7059
  /*pollFunc:*/ nativeModule()
7039
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
7060
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
7040
7061
  /*cancelFunc:*/ nativeModule()
7041
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
7062
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
7042
7063
  /*completeFunc:*/ nativeModule()
7043
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
7064
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
7044
7065
  /*freeFunc:*/ nativeModule()
7045
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
7066
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
7046
7067
  /*liftFunc:*/ FfiConverterTypeMaybeInputsSeen.lift.bind(FfiConverterTypeMaybeInputsSeen),
7047
7068
  /*liftString:*/ FfiConverterString.lift,
7048
7069
  /*asyncOpts:*/ asyncOpts_,
@@ -7259,13 +7280,13 @@ export class MaybeInputsSeenTransition extends UniffiAbstractObject {
7259
7280
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_maybeinputsseentransition_save_async(uniffiTypeMaybeInputsSeenTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
7260
7281
  },
7261
7282
  /*pollFunc:*/ nativeModule()
7262
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
7283
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
7263
7284
  /*cancelFunc:*/ nativeModule()
7264
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
7285
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
7265
7286
  /*completeFunc:*/ nativeModule()
7266
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
7287
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
7267
7288
  /*freeFunc:*/ nativeModule()
7268
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
7289
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
7269
7290
  /*liftFunc:*/ FfiConverterTypeOutputsUnknown.lift.bind(FfiConverterTypeOutputsUnknown),
7270
7291
  /*liftString:*/ FfiConverterString.lift,
7271
7292
  /*asyncOpts:*/ asyncOpts_,
@@ -8033,13 +8054,13 @@ export class OutputsUnknownTransition extends UniffiAbstractObject {
8033
8054
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_outputsunknowntransition_save_async(uniffiTypeOutputsUnknownTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
8034
8055
  },
8035
8056
  /*pollFunc:*/ nativeModule()
8036
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
8057
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
8037
8058
  /*cancelFunc:*/ nativeModule()
8038
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
8059
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
8039
8060
  /*completeFunc:*/ nativeModule()
8040
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
8061
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
8041
8062
  /*freeFunc:*/ nativeModule()
8042
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
8063
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
8043
8064
  /*liftFunc:*/ FfiConverterTypeWantsOutputs.lift.bind(FfiConverterTypeWantsOutputs),
8044
8065
  /*liftString:*/ FfiConverterString.lift,
8045
8066
  /*asyncOpts:*/ asyncOpts_,
@@ -8288,13 +8309,13 @@ export class PayjoinProposalTransition extends UniffiAbstractObject {
8288
8309
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_payjoinproposaltransition_save_async(uniffiTypePayjoinProposalTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
8289
8310
  },
8290
8311
  /*pollFunc:*/ nativeModule()
8291
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
8312
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
8292
8313
  /*cancelFunc:*/ nativeModule()
8293
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
8314
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
8294
8315
  /*completeFunc:*/ nativeModule()
8295
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
8316
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
8296
8317
  /*freeFunc:*/ nativeModule()
8297
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
8318
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
8298
8319
  /*liftFunc:*/ FfiConverterTypeMonitor.lift.bind(FfiConverterTypeMonitor),
8299
8320
  /*liftString:*/ FfiConverterString.lift,
8300
8321
  /*asyncOpts:*/ asyncOpts_,
@@ -9201,6 +9222,9 @@ const uniffiCallbackInterfaceProcessPsbt = {
9201
9222
  // ProcessPsbt: this will throw a stale handle error if the handle isn't found.
9202
9223
  FfiConverterTypeProcessPsbt.drop(uniffiHandle);
9203
9224
  },
9225
+ uniffiClone: (uniffiHandle) => {
9226
+ return FfiConverterTypeProcessPsbt.clone(uniffiHandle);
9227
+ },
9204
9228
  },
9205
9229
  register: () => {
9206
9230
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_processpsbt(uniffiCallbackInterfaceProcessPsbt.vtable);
@@ -9463,13 +9487,13 @@ export class ProvisionalProposalTransition extends UniffiAbstractObject {
9463
9487
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_provisionalproposaltransition_save_async(uniffiTypeProvisionalProposalTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
9464
9488
  },
9465
9489
  /*pollFunc:*/ nativeModule()
9466
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
9490
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
9467
9491
  /*cancelFunc:*/ nativeModule()
9468
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
9492
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
9469
9493
  /*completeFunc:*/ nativeModule()
9470
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
9494
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
9471
9495
  /*freeFunc:*/ nativeModule()
9472
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
9496
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
9473
9497
  /*liftFunc:*/ FfiConverterTypePayjoinProposal.lift.bind(FfiConverterTypePayjoinProposal),
9474
9498
  /*liftString:*/ FfiConverterString.lift,
9475
9499
  /*asyncOpts:*/ asyncOpts_,
@@ -11760,6 +11784,9 @@ const uniffiCallbackInterfaceTransactionExists = {
11760
11784
  // TransactionExists: this will throw a stale handle error if the handle isn't found.
11761
11785
  FfiConverterTypeTransactionExists.drop(uniffiHandle);
11762
11786
  },
11787
+ uniffiClone: (uniffiHandle) => {
11788
+ return FfiConverterTypeTransactionExists.clone(uniffiHandle);
11789
+ },
11763
11790
  },
11764
11791
  register: () => {
11765
11792
  nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_transactionexists(uniffiCallbackInterfaceTransactionExists.vtable);
@@ -11913,13 +11940,13 @@ export class UncheckedOriginalPayloadTransition extends UniffiAbstractObject {
11913
11940
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_uncheckedoriginalpayloadtransition_save_async(uniffiTypeUncheckedOriginalPayloadTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
11914
11941
  },
11915
11942
  /*pollFunc:*/ nativeModule()
11916
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
11943
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
11917
11944
  /*cancelFunc:*/ nativeModule()
11918
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
11945
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
11919
11946
  /*completeFunc:*/ nativeModule()
11920
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
11947
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
11921
11948
  /*freeFunc:*/ nativeModule()
11922
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
11949
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
11923
11950
  /*liftFunc:*/ FfiConverterTypeMaybeInputsOwned.lift.bind(FfiConverterTypeMaybeInputsOwned),
11924
11951
  /*liftString:*/ FfiConverterString.lift,
11925
11952
  /*asyncOpts:*/ asyncOpts_,
@@ -12721,13 +12748,13 @@ export class WantsFeeRangeTransition extends UniffiAbstractObject {
12721
12748
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsfeerangetransition_save_async(uniffiTypeWantsFeeRangeTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
12722
12749
  },
12723
12750
  /*pollFunc:*/ nativeModule()
12724
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
12751
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
12725
12752
  /*cancelFunc:*/ nativeModule()
12726
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
12753
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
12727
12754
  /*completeFunc:*/ nativeModule()
12728
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
12755
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
12729
12756
  /*freeFunc:*/ nativeModule()
12730
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
12757
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
12731
12758
  /*liftFunc:*/ FfiConverterTypeProvisionalProposal.lift.bind(FfiConverterTypeProvisionalProposal),
12732
12759
  /*liftString:*/ FfiConverterString.lift,
12733
12760
  /*asyncOpts:*/ asyncOpts_,
@@ -12971,13 +12998,13 @@ export class WantsInputsTransition extends UniffiAbstractObject {
12971
12998
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsinputstransition_save_async(uniffiTypeWantsInputsTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
12972
12999
  },
12973
13000
  /*pollFunc:*/ nativeModule()
12974
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
13001
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
12975
13002
  /*cancelFunc:*/ nativeModule()
12976
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
13003
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
12977
13004
  /*completeFunc:*/ nativeModule()
12978
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
13005
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
12979
13006
  /*freeFunc:*/ nativeModule()
12980
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
13007
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
12981
13008
  /*liftFunc:*/ FfiConverterTypeWantsFeeRange.lift.bind(FfiConverterTypeWantsFeeRange),
12982
13009
  /*liftString:*/ FfiConverterString.lift,
12983
13010
  /*asyncOpts:*/ asyncOpts_,
@@ -13217,13 +13244,13 @@ export class WantsOutputsTransition extends UniffiAbstractObject {
13217
13244
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsoutputstransition_save_async(uniffiTypeWantsOutputsTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
13218
13245
  },
13219
13246
  /*pollFunc:*/ nativeModule()
13220
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
13247
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
13221
13248
  /*cancelFunc:*/ nativeModule()
13222
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
13249
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
13223
13250
  /*completeFunc:*/ nativeModule()
13224
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
13251
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
13225
13252
  /*freeFunc:*/ nativeModule()
13226
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
13253
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
13227
13254
  /*liftFunc:*/ FfiConverterTypeWantsInputs.lift.bind(FfiConverterTypeWantsInputs),
13228
13255
  /*liftString:*/ FfiConverterString.lift,
13229
13256
  /*asyncOpts:*/ asyncOpts_,
@@ -13569,13 +13596,13 @@ export class WithReplyKeyTransition extends UniffiAbstractObject {
13569
13596
  return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_withreplykeytransition_save_async(uniffiTypeWithReplyKeyTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonSenderSessionPersisterAsync.lower(persister));
13570
13597
  },
13571
13598
  /*pollFunc:*/ nativeModule()
13572
- .ubrn_ffi_payjoin_ffi_rust_future_poll_pointer,
13599
+ .ubrn_ffi_payjoin_ffi_rust_future_poll_u64,
13573
13600
  /*cancelFunc:*/ nativeModule()
13574
- .ubrn_ffi_payjoin_ffi_rust_future_cancel_pointer,
13601
+ .ubrn_ffi_payjoin_ffi_rust_future_cancel_u64,
13575
13602
  /*completeFunc:*/ nativeModule()
13576
- .ubrn_ffi_payjoin_ffi_rust_future_complete_pointer,
13603
+ .ubrn_ffi_payjoin_ffi_rust_future_complete_u64,
13577
13604
  /*freeFunc:*/ nativeModule()
13578
- .ubrn_ffi_payjoin_ffi_rust_future_free_pointer,
13605
+ .ubrn_ffi_payjoin_ffi_rust_future_free_u64,
13579
13606
  /*liftFunc:*/ FfiConverterTypePollingForProposal.lift.bind(FfiConverterTypePollingForProposal),
13580
13607
  /*liftString:*/ FfiConverterString.lift,
13581
13608
  /*asyncOpts:*/ asyncOpts_,
@@ -13693,7 +13720,7 @@ const FfiConverterArrayTypeInputPair = new FfiConverterArray(FfiConverterTypeInp
13693
13720
  */
13694
13721
  function uniffiEnsureInitialized() {
13695
13722
  // Get the bindings contract version from our ComponentInterface
13696
- const bindingsContractVersion = 29;
13723
+ const bindingsContractVersion = 30;
13697
13724
  // Get the scaffolding contract version by calling the into the dylib
13698
13725
  const scaffoldingContractVersion = nativeModule().ubrn_ffi_payjoin_ffi_uniffi_contract_version();
13699
13726
  if (bindingsContractVersion !== scaffoldingContractVersion) {