@xstoicunicornx/payjoin_test 0.1.5 → 0.1.7
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.
- package/dist/generated/payjoin.d.ts +843 -167
- package/dist/generated/payjoin.d.ts.map +1 -1
- package/dist/generated/payjoin.js +1267 -78
- package/dist/generated/payjoin.js.map +1 -1
- package/dist/generated/wasm-bindgen/index.d.ts +186 -0
- package/dist/generated/wasm-bindgen/index.js +1257 -82
- package/dist/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/generated/wasm-bindgen/index_bg.wasm.d.ts +200 -14
- package/package.json +2 -2
|
@@ -3444,6 +3444,30 @@ export class AddressParseError extends UniffiAbstractObject {
|
|
|
3444
3444
|
this[destructorGuardSymbol] =
|
|
3445
3445
|
uniffiTypeAddressParseErrorObjectFactory.bless(pointer);
|
|
3446
3446
|
}
|
|
3447
|
+
/**
|
|
3448
|
+
* Calls into the `Debug` string representation of `AddressParseErrorInterface` (the native Rust peer).
|
|
3449
|
+
*
|
|
3450
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
3451
|
+
*/
|
|
3452
|
+
toDebugString() {
|
|
3453
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
3454
|
+
/*caller:*/ (callStatus) => {
|
|
3455
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_addressparseerror_uniffi_trait_debug(uniffiTypeAddressParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
3456
|
+
},
|
|
3457
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* Calls into the `AddressParseErrorInterface::to_string()` method of the native Rust peer.
|
|
3461
|
+
*
|
|
3462
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
3463
|
+
*/
|
|
3464
|
+
toString() {
|
|
3465
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
3466
|
+
/*caller:*/ (callStatus) => {
|
|
3467
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_addressparseerror_uniffi_trait_display(uniffiTypeAddressParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
3468
|
+
},
|
|
3469
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3470
|
+
}
|
|
3447
3471
|
/**
|
|
3448
3472
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3449
3473
|
*/
|
|
@@ -3649,6 +3673,45 @@ export class BuildSenderError extends UniffiAbstractObject {
|
|
|
3649
3673
|
this[destructorGuardSymbol] =
|
|
3650
3674
|
uniffiTypeBuildSenderErrorObjectFactory.bless(pointer);
|
|
3651
3675
|
}
|
|
3676
|
+
/**
|
|
3677
|
+
* Calls into the `Debug` string representation of `BuildSenderErrorInterface` (the native Rust peer).
|
|
3678
|
+
*
|
|
3679
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
3680
|
+
*/
|
|
3681
|
+
toDebugString() {
|
|
3682
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
3683
|
+
/*caller:*/ (callStatus) => {
|
|
3684
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_buildsendererror_uniffi_trait_debug(uniffiTypeBuildSenderErrorObjectFactory.clonePointer(this), callStatus);
|
|
3685
|
+
},
|
|
3686
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3687
|
+
}
|
|
3688
|
+
/**
|
|
3689
|
+
* Calls into the `BuildSenderErrorInterface::to_string()` method of the native Rust peer.
|
|
3690
|
+
*
|
|
3691
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
3692
|
+
*/
|
|
3693
|
+
toString() {
|
|
3694
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
3695
|
+
/*caller:*/ (callStatus) => {
|
|
3696
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_buildsendererror_uniffi_trait_display(uniffiTypeBuildSenderErrorObjectFactory.clonePointer(this), callStatus);
|
|
3697
|
+
},
|
|
3698
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3699
|
+
}
|
|
3700
|
+
/**
|
|
3701
|
+
* Calls into the `==` method of `BuildSenderErrorInterface` (the native Rust peer).
|
|
3702
|
+
*
|
|
3703
|
+
* Returns `true` if and only if the two instance of `BuildSenderErrorInterface` are
|
|
3704
|
+
* equivalent on the Rust side.
|
|
3705
|
+
*
|
|
3706
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
3707
|
+
*/
|
|
3708
|
+
equals(other) {
|
|
3709
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall(
|
|
3710
|
+
/*caller:*/ (callStatus) => {
|
|
3711
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_buildsendererror_uniffi_trait_eq_eq(uniffiTypeBuildSenderErrorObjectFactory.clonePointer(this), FfiConverterTypeBuildSenderError.lower(other), callStatus);
|
|
3712
|
+
},
|
|
3713
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3714
|
+
}
|
|
3652
3715
|
/**
|
|
3653
3716
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3654
3717
|
*/
|
|
@@ -3841,11 +3904,142 @@ const uniffiCallbackInterfaceCanBroadcast = {
|
|
|
3841
3904
|
// CanBroadcast: this will throw a stale handle error if the handle isn't found.
|
|
3842
3905
|
FfiConverterTypeCanBroadcast.drop(uniffiHandle);
|
|
3843
3906
|
},
|
|
3907
|
+
uniffiClone: (uniffiHandle) => {
|
|
3908
|
+
return FfiConverterTypeCanBroadcast.clone(uniffiHandle);
|
|
3909
|
+
},
|
|
3844
3910
|
},
|
|
3845
3911
|
register: () => {
|
|
3846
3912
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_canbroadcast(uniffiCallbackInterfaceCanBroadcast.vtable);
|
|
3847
3913
|
},
|
|
3848
3914
|
};
|
|
3915
|
+
/**
|
|
3916
|
+
* A terminal transition produced by cancelling a receiver session.
|
|
3917
|
+
*/
|
|
3918
|
+
export class CancelTransition extends UniffiAbstractObject {
|
|
3919
|
+
[uniffiTypeNameSymbol] = "CancelTransition";
|
|
3920
|
+
[destructorGuardSymbol];
|
|
3921
|
+
[pointerLiteralSymbol];
|
|
3922
|
+
// No primary constructor declared for this class.
|
|
3923
|
+
constructor(pointer) {
|
|
3924
|
+
super();
|
|
3925
|
+
this[pointerLiteralSymbol] = pointer;
|
|
3926
|
+
this[destructorGuardSymbol] =
|
|
3927
|
+
uniffiTypeCancelTransitionObjectFactory.bless(pointer);
|
|
3928
|
+
}
|
|
3929
|
+
/**
|
|
3930
|
+
* Persist the cancellation and return the fallback transaction if available.
|
|
3931
|
+
*
|
|
3932
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes,
|
|
3933
|
+
* or `None` if the session was cancelled before the sender's original
|
|
3934
|
+
* proposal was received.
|
|
3935
|
+
*/
|
|
3936
|
+
save(persister) {
|
|
3937
|
+
return FfiConverterOptionalArrayBuffer.lift(uniffiCaller.rustCallWithError(
|
|
3938
|
+
/*liftError:*/ FfiConverterTypeReceiverPersistedError.lift.bind(FfiConverterTypeReceiverPersistedError),
|
|
3939
|
+
/*caller:*/ (callStatus) => {
|
|
3940
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_canceltransition_save(uniffiTypeCancelTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersister.lower(persister), callStatus);
|
|
3941
|
+
},
|
|
3942
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
3943
|
+
}
|
|
3944
|
+
async saveAsync(persister, asyncOpts_) {
|
|
3945
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3946
|
+
try {
|
|
3947
|
+
return await uniffiRustCallAsync(
|
|
3948
|
+
/*rustCaller:*/ uniffiCaller,
|
|
3949
|
+
/*rustFutureFunc:*/ () => {
|
|
3950
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_canceltransition_save_async(uniffiTypeCancelTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonReceiverSessionPersisterAsync.lower(persister));
|
|
3951
|
+
},
|
|
3952
|
+
/*pollFunc:*/ nativeModule()
|
|
3953
|
+
.ubrn_ffi_payjoin_ffi_rust_future_poll_rust_buffer,
|
|
3954
|
+
/*cancelFunc:*/ nativeModule()
|
|
3955
|
+
.ubrn_ffi_payjoin_ffi_rust_future_cancel_rust_buffer,
|
|
3956
|
+
/*completeFunc:*/ nativeModule()
|
|
3957
|
+
.ubrn_ffi_payjoin_ffi_rust_future_complete_rust_buffer,
|
|
3958
|
+
/*freeFunc:*/ nativeModule()
|
|
3959
|
+
.ubrn_ffi_payjoin_ffi_rust_future_free_rust_buffer,
|
|
3960
|
+
/*liftFunc:*/ FfiConverterOptionalArrayBuffer.lift.bind(FfiConverterOptionalArrayBuffer),
|
|
3961
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
3962
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
3963
|
+
/*errorHandler:*/ FfiConverterTypeReceiverPersistedError.lift.bind(FfiConverterTypeReceiverPersistedError));
|
|
3964
|
+
}
|
|
3965
|
+
catch (__error) {
|
|
3966
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
3967
|
+
__error.stack = __stack;
|
|
3968
|
+
}
|
|
3969
|
+
throw __error;
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
/**
|
|
3973
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3974
|
+
*/
|
|
3975
|
+
uniffiDestroy() {
|
|
3976
|
+
const ptr = this[destructorGuardSymbol];
|
|
3977
|
+
if (ptr !== undefined) {
|
|
3978
|
+
const pointer = uniffiTypeCancelTransitionObjectFactory.pointer(this);
|
|
3979
|
+
uniffiTypeCancelTransitionObjectFactory.freePointer(pointer);
|
|
3980
|
+
uniffiTypeCancelTransitionObjectFactory.unbless(ptr);
|
|
3981
|
+
delete this[destructorGuardSymbol];
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
static instanceOf(obj) {
|
|
3985
|
+
return uniffiTypeCancelTransitionObjectFactory.isConcreteType(obj);
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
const uniffiTypeCancelTransitionObjectFactory = (() => {
|
|
3989
|
+
/// <reference lib="es2021" />
|
|
3990
|
+
const registry = typeof FinalizationRegistry !== "undefined"
|
|
3991
|
+
? new FinalizationRegistry((heldValue) => {
|
|
3992
|
+
uniffiTypeCancelTransitionObjectFactory.freePointer(heldValue);
|
|
3993
|
+
})
|
|
3994
|
+
: null;
|
|
3995
|
+
return {
|
|
3996
|
+
create(pointer) {
|
|
3997
|
+
const instance = Object.create(CancelTransition.prototype);
|
|
3998
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
3999
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
4000
|
+
instance[uniffiTypeNameSymbol] = "CancelTransition";
|
|
4001
|
+
return instance;
|
|
4002
|
+
},
|
|
4003
|
+
bless(p) {
|
|
4004
|
+
const ptr = {
|
|
4005
|
+
p, // make sure this object doesn't get optimized away.
|
|
4006
|
+
markDestroyed: () => undefined,
|
|
4007
|
+
};
|
|
4008
|
+
if (registry) {
|
|
4009
|
+
registry.register(ptr, p, ptr);
|
|
4010
|
+
}
|
|
4011
|
+
return ptr;
|
|
4012
|
+
},
|
|
4013
|
+
unbless(ptr) {
|
|
4014
|
+
if (registry) {
|
|
4015
|
+
registry.unregister(ptr);
|
|
4016
|
+
}
|
|
4017
|
+
},
|
|
4018
|
+
pointer(obj) {
|
|
4019
|
+
if (obj[destructorGuardSymbol] === undefined) {
|
|
4020
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
4021
|
+
}
|
|
4022
|
+
return obj[pointerLiteralSymbol];
|
|
4023
|
+
},
|
|
4024
|
+
clonePointer(obj) {
|
|
4025
|
+
const pointer = this.pointer(obj);
|
|
4026
|
+
return uniffiCaller.rustCall(
|
|
4027
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_clone_canceltransition(pointer, callStatus),
|
|
4028
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
4029
|
+
},
|
|
4030
|
+
freePointer(pointer) {
|
|
4031
|
+
uniffiCaller.rustCall(
|
|
4032
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_free_canceltransition(pointer, callStatus),
|
|
4033
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
4034
|
+
},
|
|
4035
|
+
isConcreteType(obj) {
|
|
4036
|
+
return (obj[destructorGuardSymbol] &&
|
|
4037
|
+
obj[uniffiTypeNameSymbol] === "CancelTransition");
|
|
4038
|
+
},
|
|
4039
|
+
};
|
|
4040
|
+
})();
|
|
4041
|
+
// FfiConverter for CancelTransitionInterface
|
|
4042
|
+
const FfiConverterTypeCancelTransition = new FfiConverterObject(uniffiTypeCancelTransitionObjectFactory);
|
|
3849
4043
|
export class ClientResponse extends UniffiAbstractObject {
|
|
3850
4044
|
[uniffiTypeNameSymbol] = "ClientResponse";
|
|
3851
4045
|
[destructorGuardSymbol];
|
|
@@ -3946,6 +4140,30 @@ export class CreateRequestError extends UniffiAbstractObject {
|
|
|
3946
4140
|
this[destructorGuardSymbol] =
|
|
3947
4141
|
uniffiTypeCreateRequestErrorObjectFactory.bless(pointer);
|
|
3948
4142
|
}
|
|
4143
|
+
/**
|
|
4144
|
+
* Calls into the `Debug` string representation of `CreateRequestErrorInterface` (the native Rust peer).
|
|
4145
|
+
*
|
|
4146
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4147
|
+
*/
|
|
4148
|
+
toDebugString() {
|
|
4149
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4150
|
+
/*caller:*/ (callStatus) => {
|
|
4151
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_createrequesterror_uniffi_trait_debug(uniffiTypeCreateRequestErrorObjectFactory.clonePointer(this), callStatus);
|
|
4152
|
+
},
|
|
4153
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4154
|
+
}
|
|
4155
|
+
/**
|
|
4156
|
+
* Calls into the `CreateRequestErrorInterface::to_string()` method of the native Rust peer.
|
|
4157
|
+
*
|
|
4158
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4159
|
+
*/
|
|
4160
|
+
toString() {
|
|
4161
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4162
|
+
/*caller:*/ (callStatus) => {
|
|
4163
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_createrequesterror_uniffi_trait_display(uniffiTypeCreateRequestErrorObjectFactory.clonePointer(this), callStatus);
|
|
4164
|
+
},
|
|
4165
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4166
|
+
}
|
|
3949
4167
|
/**
|
|
3950
4168
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3951
4169
|
*/
|
|
@@ -4040,6 +4258,30 @@ export class EncapsulationError extends UniffiAbstractObject {
|
|
|
4040
4258
|
this[destructorGuardSymbol] =
|
|
4041
4259
|
uniffiTypeEncapsulationErrorObjectFactory.bless(pointer);
|
|
4042
4260
|
}
|
|
4261
|
+
/**
|
|
4262
|
+
* Calls into the `Debug` string representation of `EncapsulationErrorInterface` (the native Rust peer).
|
|
4263
|
+
*
|
|
4264
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4265
|
+
*/
|
|
4266
|
+
toDebugString() {
|
|
4267
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4268
|
+
/*caller:*/ (callStatus) => {
|
|
4269
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_encapsulationerror_uniffi_trait_debug(uniffiTypeEncapsulationErrorObjectFactory.clonePointer(this), callStatus);
|
|
4270
|
+
},
|
|
4271
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4272
|
+
}
|
|
4273
|
+
/**
|
|
4274
|
+
* Calls into the `EncapsulationErrorInterface::to_string()` method of the native Rust peer.
|
|
4275
|
+
*
|
|
4276
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4277
|
+
*/
|
|
4278
|
+
toString() {
|
|
4279
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4280
|
+
/*caller:*/ (callStatus) => {
|
|
4281
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_encapsulationerror_uniffi_trait_display(uniffiTypeEncapsulationErrorObjectFactory.clonePointer(this), callStatus);
|
|
4282
|
+
},
|
|
4283
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4284
|
+
}
|
|
4043
4285
|
/**
|
|
4044
4286
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4045
4287
|
*/
|
|
@@ -4122,6 +4364,30 @@ export class FeeRateError extends UniffiAbstractObject {
|
|
|
4122
4364
|
this[destructorGuardSymbol] =
|
|
4123
4365
|
uniffiTypeFeeRateErrorObjectFactory.bless(pointer);
|
|
4124
4366
|
}
|
|
4367
|
+
/**
|
|
4368
|
+
* Calls into the `Debug` string representation of `FeeRateErrorInterface` (the native Rust peer).
|
|
4369
|
+
*
|
|
4370
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4371
|
+
*/
|
|
4372
|
+
toDebugString() {
|
|
4373
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4374
|
+
/*caller:*/ (callStatus) => {
|
|
4375
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_feerateerror_uniffi_trait_debug(uniffiTypeFeeRateErrorObjectFactory.clonePointer(this), callStatus);
|
|
4376
|
+
},
|
|
4377
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4378
|
+
}
|
|
4379
|
+
/**
|
|
4380
|
+
* Calls into the `FeeRateErrorInterface::to_string()` method of the native Rust peer.
|
|
4381
|
+
*
|
|
4382
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4383
|
+
*/
|
|
4384
|
+
toString() {
|
|
4385
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4386
|
+
/*caller:*/ (callStatus) => {
|
|
4387
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_feerateerror_uniffi_trait_display(uniffiTypeFeeRateErrorObjectFactory.clonePointer(this), callStatus);
|
|
4388
|
+
},
|
|
4389
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4390
|
+
}
|
|
4125
4391
|
/**
|
|
4126
4392
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4127
4393
|
*/
|
|
@@ -4213,6 +4479,22 @@ export class HasReplyableError extends UniffiAbstractObject {
|
|
|
4213
4479
|
this[destructorGuardSymbol] =
|
|
4214
4480
|
uniffiTypeHasReplyableErrorObjectFactory.bless(pointer);
|
|
4215
4481
|
}
|
|
4482
|
+
/**
|
|
4483
|
+
* Cancel the Payjoin session immediately.
|
|
4484
|
+
*
|
|
4485
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4486
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4487
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4488
|
+
*
|
|
4489
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4490
|
+
*/
|
|
4491
|
+
cancel() {
|
|
4492
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
4493
|
+
/*caller:*/ (callStatus) => {
|
|
4494
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_hasreplyableerror_cancel(uniffiTypeHasReplyableErrorObjectFactory.clonePointer(this), callStatus);
|
|
4495
|
+
},
|
|
4496
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4497
|
+
}
|
|
4216
4498
|
createErrorRequest(ohttpRelay) {
|
|
4217
4499
|
return FfiConverterTypeRequestResponse.lift(uniffiCaller.rustCallWithError(
|
|
4218
4500
|
/*liftError:*/ FfiConverterTypeSessionError__as_error.lift.bind(FfiConverterTypeSessionError__as_error),
|
|
@@ -4433,6 +4715,30 @@ export class ImplementationError extends UniffiAbstractObject {
|
|
|
4433
4715
|
this[destructorGuardSymbol] =
|
|
4434
4716
|
uniffiTypeImplementationErrorObjectFactory.bless(pointer);
|
|
4435
4717
|
}
|
|
4718
|
+
/**
|
|
4719
|
+
* Calls into the `Debug` string representation of `ImplementationErrorInterface` (the native Rust peer).
|
|
4720
|
+
*
|
|
4721
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4722
|
+
*/
|
|
4723
|
+
toDebugString() {
|
|
4724
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4725
|
+
/*caller:*/ (callStatus) => {
|
|
4726
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_implementationerror_uniffi_trait_debug(uniffiTypeImplementationErrorObjectFactory.clonePointer(this), callStatus);
|
|
4727
|
+
},
|
|
4728
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4729
|
+
}
|
|
4730
|
+
/**
|
|
4731
|
+
* Calls into the `ImplementationErrorInterface::to_string()` method of the native Rust peer.
|
|
4732
|
+
*
|
|
4733
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4734
|
+
*/
|
|
4735
|
+
toString() {
|
|
4736
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
4737
|
+
/*caller:*/ (callStatus) => {
|
|
4738
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_implementationerror_uniffi_trait_display(uniffiTypeImplementationErrorObjectFactory.clonePointer(this), callStatus);
|
|
4739
|
+
},
|
|
4740
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
4741
|
+
}
|
|
4436
4742
|
/**
|
|
4437
4743
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4438
4744
|
*/
|
|
@@ -4751,6 +5057,22 @@ export class Initialized extends UniffiAbstractObject {
|
|
|
4751
5057
|
this[destructorGuardSymbol] =
|
|
4752
5058
|
uniffiTypeInitializedObjectFactory.bless(pointer);
|
|
4753
5059
|
}
|
|
5060
|
+
/**
|
|
5061
|
+
* Cancel the Payjoin session immediately.
|
|
5062
|
+
*
|
|
5063
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
5064
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
5065
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
5066
|
+
*
|
|
5067
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5068
|
+
*/
|
|
5069
|
+
cancel() {
|
|
5070
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
5071
|
+
/*caller:*/ (callStatus) => {
|
|
5072
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_initialized_cancel(uniffiTypeInitializedObjectFactory.clonePointer(this), callStatus);
|
|
5073
|
+
},
|
|
5074
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
5075
|
+
}
|
|
4754
5076
|
/**
|
|
4755
5077
|
* Construct an OHTTP encapsulated GET request, polling the mailbox for the Original PSBT
|
|
4756
5078
|
*/
|
|
@@ -4985,6 +5307,30 @@ export class InputContributionError extends UniffiAbstractObject {
|
|
|
4985
5307
|
this[destructorGuardSymbol] =
|
|
4986
5308
|
uniffiTypeInputContributionErrorObjectFactory.bless(pointer);
|
|
4987
5309
|
}
|
|
5310
|
+
/**
|
|
5311
|
+
* Calls into the `Debug` string representation of `InputContributionErrorInterface` (the native Rust peer).
|
|
5312
|
+
*
|
|
5313
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5314
|
+
*/
|
|
5315
|
+
toDebugString() {
|
|
5316
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
5317
|
+
/*caller:*/ (callStatus) => {
|
|
5318
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_inputcontributionerror_uniffi_trait_debug(uniffiTypeInputContributionErrorObjectFactory.clonePointer(this), callStatus);
|
|
5319
|
+
},
|
|
5320
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
5321
|
+
}
|
|
5322
|
+
/**
|
|
5323
|
+
* Calls into the `InputContributionErrorInterface::to_string()` method of the native Rust peer.
|
|
5324
|
+
*
|
|
5325
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5326
|
+
*/
|
|
5327
|
+
toString() {
|
|
5328
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
5329
|
+
/*caller:*/ (callStatus) => {
|
|
5330
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_inputcontributionerror_uniffi_trait_display(uniffiTypeInputContributionErrorObjectFactory.clonePointer(this), callStatus);
|
|
5331
|
+
},
|
|
5332
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
5333
|
+
}
|
|
4988
5334
|
/**
|
|
4989
5335
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4990
5336
|
*/
|
|
@@ -5163,6 +5509,30 @@ export class IntoUrlError extends UniffiAbstractObject {
|
|
|
5163
5509
|
this[destructorGuardSymbol] =
|
|
5164
5510
|
uniffiTypeIntoUrlErrorObjectFactory.bless(pointer);
|
|
5165
5511
|
}
|
|
5512
|
+
/**
|
|
5513
|
+
* Calls into the `Debug` string representation of `IntoUrlErrorInterface` (the native Rust peer).
|
|
5514
|
+
*
|
|
5515
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5516
|
+
*/
|
|
5517
|
+
toDebugString() {
|
|
5518
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
5519
|
+
/*caller:*/ (callStatus) => {
|
|
5520
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_intourlerror_uniffi_trait_debug(uniffiTypeIntoUrlErrorObjectFactory.clonePointer(this), callStatus);
|
|
5521
|
+
},
|
|
5522
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
5523
|
+
}
|
|
5524
|
+
/**
|
|
5525
|
+
* Calls into the `IntoUrlErrorInterface::to_string()` method of the native Rust peer.
|
|
5526
|
+
*
|
|
5527
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5528
|
+
*/
|
|
5529
|
+
toString() {
|
|
5530
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
5531
|
+
/*caller:*/ (callStatus) => {
|
|
5532
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_intourlerror_uniffi_trait_display(uniffiTypeIntoUrlErrorObjectFactory.clonePointer(this), callStatus);
|
|
5533
|
+
},
|
|
5534
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
5535
|
+
}
|
|
5166
5536
|
/**
|
|
5167
5537
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5168
5538
|
*/
|
|
@@ -5355,6 +5725,9 @@ const uniffiCallbackInterfaceIsOutputKnown = {
|
|
|
5355
5725
|
// IsOutputKnown: this will throw a stale handle error if the handle isn't found.
|
|
5356
5726
|
FfiConverterTypeIsOutputKnown.drop(uniffiHandle);
|
|
5357
5727
|
},
|
|
5728
|
+
uniffiClone: (uniffiHandle) => {
|
|
5729
|
+
return FfiConverterTypeIsOutputKnown.clone(uniffiHandle);
|
|
5730
|
+
},
|
|
5358
5731
|
},
|
|
5359
5732
|
register: () => {
|
|
5360
5733
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_isoutputknown(uniffiCallbackInterfaceIsOutputKnown.vtable);
|
|
@@ -5481,6 +5854,9 @@ const uniffiCallbackInterfaceIsScriptOwned = {
|
|
|
5481
5854
|
// IsScriptOwned: this will throw a stale handle error if the handle isn't found.
|
|
5482
5855
|
FfiConverterTypeIsScriptOwned.drop(uniffiHandle);
|
|
5483
5856
|
},
|
|
5857
|
+
uniffiClone: (uniffiHandle) => {
|
|
5858
|
+
return FfiConverterTypeIsScriptOwned.clone(uniffiHandle);
|
|
5859
|
+
},
|
|
5484
5860
|
},
|
|
5485
5861
|
register: () => {
|
|
5486
5862
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_isscriptowned(uniffiCallbackInterfaceIsScriptOwned.vtable);
|
|
@@ -5666,6 +6042,9 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersister = {
|
|
|
5666
6042
|
// JsonReceiverSessionPersister: this will throw a stale handle error if the handle isn't found.
|
|
5667
6043
|
FfiConverterTypeJsonReceiverSessionPersister.drop(uniffiHandle);
|
|
5668
6044
|
},
|
|
6045
|
+
uniffiClone: (uniffiHandle) => {
|
|
6046
|
+
return FfiConverterTypeJsonReceiverSessionPersister.clone(uniffiHandle);
|
|
6047
|
+
},
|
|
5669
6048
|
},
|
|
5670
6049
|
register: () => {
|
|
5671
6050
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonreceiversessionpersister(uniffiCallbackInterfaceJsonReceiverSessionPersister.vtable);
|
|
@@ -5848,7 +6227,7 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
|
|
|
5848
6227
|
// Create the VTable using a series of closures.
|
|
5849
6228
|
// ts automatically converts these into C callback functions.
|
|
5850
6229
|
vtable: {
|
|
5851
|
-
save: (uniffiHandle, event, uniffiFutureCallback, uniffiCallbackData
|
|
6230
|
+
save: (uniffiHandle, event, uniffiFutureCallback, uniffiCallbackData) => {
|
|
5852
6231
|
const uniffiMakeCall = async (signal) => {
|
|
5853
6232
|
const jsCallback = FfiConverterTypeJsonReceiverSessionPersisterAsync.lift(uniffiHandle);
|
|
5854
6233
|
return await jsCallback.save(FfiConverterString.lift(event), {
|
|
@@ -5877,7 +6256,7 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
|
|
|
5877
6256
|
/*lowerString:*/ FfiConverterString.lower);
|
|
5878
6257
|
return uniffiForeignFuture;
|
|
5879
6258
|
},
|
|
5880
|
-
load: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData
|
|
6259
|
+
load: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
5881
6260
|
const uniffiMakeCall = async (signal) => {
|
|
5882
6261
|
const jsCallback = FfiConverterTypeJsonReceiverSessionPersisterAsync.lift(uniffiHandle);
|
|
5883
6262
|
return await jsCallback.load({ signal });
|
|
@@ -5906,7 +6285,7 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
|
|
|
5906
6285
|
/*lowerString:*/ FfiConverterString.lower);
|
|
5907
6286
|
return uniffiForeignFuture;
|
|
5908
6287
|
},
|
|
5909
|
-
close: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData
|
|
6288
|
+
close: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
5910
6289
|
const uniffiMakeCall = async (signal) => {
|
|
5911
6290
|
const jsCallback = FfiConverterTypeJsonReceiverSessionPersisterAsync.lift(uniffiHandle);
|
|
5912
6291
|
return await jsCallback.close({ signal });
|
|
@@ -5937,6 +6316,9 @@ const uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync = {
|
|
|
5937
6316
|
// JsonReceiverSessionPersisterAsync: this will throw a stale handle error if the handle isn't found.
|
|
5938
6317
|
FfiConverterTypeJsonReceiverSessionPersisterAsync.drop(uniffiHandle);
|
|
5939
6318
|
},
|
|
6319
|
+
uniffiClone: (uniffiHandle) => {
|
|
6320
|
+
return FfiConverterTypeJsonReceiverSessionPersisterAsync.clone(uniffiHandle);
|
|
6321
|
+
},
|
|
5940
6322
|
},
|
|
5941
6323
|
register: () => {
|
|
5942
6324
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonreceiversessionpersisterasync(uniffiCallbackInterfaceJsonReceiverSessionPersisterAsync.vtable);
|
|
@@ -5964,6 +6346,41 @@ export class JsonReply extends UniffiAbstractObject {
|
|
|
5964
6346
|
this[destructorGuardSymbol] =
|
|
5965
6347
|
uniffiTypeJsonReplyObjectFactory.bless(pointer);
|
|
5966
6348
|
}
|
|
6349
|
+
/**
|
|
6350
|
+
* Calls into the `Debug` string representation of `JsonReplyInterface` (the native Rust peer).
|
|
6351
|
+
*
|
|
6352
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
6353
|
+
*/
|
|
6354
|
+
toDebugString() {
|
|
6355
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
6356
|
+
/*caller:*/ (callStatus) => {
|
|
6357
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_jsonreply_uniffi_trait_debug(uniffiTypeJsonReplyObjectFactory.clonePointer(this), callStatus);
|
|
6358
|
+
},
|
|
6359
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
6360
|
+
}
|
|
6361
|
+
/**
|
|
6362
|
+
* Calls into the `Debug` string representation of `JsonReplyInterface` (the native Rust peer).
|
|
6363
|
+
*
|
|
6364
|
+
* Generated by deriving the `Debug` trait in Rust, without deriving `Display`.
|
|
6365
|
+
*/
|
|
6366
|
+
toString() {
|
|
6367
|
+
return this.toDebugString();
|
|
6368
|
+
}
|
|
6369
|
+
/**
|
|
6370
|
+
* Calls into the `==` method of `JsonReplyInterface` (the native Rust peer).
|
|
6371
|
+
*
|
|
6372
|
+
* Returns `true` if and only if the two instance of `JsonReplyInterface` are
|
|
6373
|
+
* equivalent on the Rust side.
|
|
6374
|
+
*
|
|
6375
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
6376
|
+
*/
|
|
6377
|
+
equals(other) {
|
|
6378
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall(
|
|
6379
|
+
/*caller:*/ (callStatus) => {
|
|
6380
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_jsonreply_uniffi_trait_eq_eq(uniffiTypeJsonReplyObjectFactory.clonePointer(this), FfiConverterTypeJsonReply.lower(other), callStatus);
|
|
6381
|
+
},
|
|
6382
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
6383
|
+
}
|
|
5967
6384
|
/**
|
|
5968
6385
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5969
6386
|
*/
|
|
@@ -6215,6 +6632,9 @@ const uniffiCallbackInterfaceJsonSenderSessionPersister = {
|
|
|
6215
6632
|
// JsonSenderSessionPersister: this will throw a stale handle error if the handle isn't found.
|
|
6216
6633
|
FfiConverterTypeJsonSenderSessionPersister.drop(uniffiHandle);
|
|
6217
6634
|
},
|
|
6635
|
+
uniffiClone: (uniffiHandle) => {
|
|
6636
|
+
return FfiConverterTypeJsonSenderSessionPersister.clone(uniffiHandle);
|
|
6637
|
+
},
|
|
6218
6638
|
},
|
|
6219
6639
|
register: () => {
|
|
6220
6640
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonsendersessionpersister(uniffiCallbackInterfaceJsonSenderSessionPersister.vtable);
|
|
@@ -6397,7 +6817,7 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
|
|
|
6397
6817
|
// Create the VTable using a series of closures.
|
|
6398
6818
|
// ts automatically converts these into C callback functions.
|
|
6399
6819
|
vtable: {
|
|
6400
|
-
save: (uniffiHandle, event, uniffiFutureCallback, uniffiCallbackData
|
|
6820
|
+
save: (uniffiHandle, event, uniffiFutureCallback, uniffiCallbackData) => {
|
|
6401
6821
|
const uniffiMakeCall = async (signal) => {
|
|
6402
6822
|
const jsCallback = FfiConverterTypeJsonSenderSessionPersisterAsync.lift(uniffiHandle);
|
|
6403
6823
|
return await jsCallback.save(FfiConverterString.lift(event), {
|
|
@@ -6426,7 +6846,7 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
|
|
|
6426
6846
|
/*lowerString:*/ FfiConverterString.lower);
|
|
6427
6847
|
return uniffiForeignFuture;
|
|
6428
6848
|
},
|
|
6429
|
-
load: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData
|
|
6849
|
+
load: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
6430
6850
|
const uniffiMakeCall = async (signal) => {
|
|
6431
6851
|
const jsCallback = FfiConverterTypeJsonSenderSessionPersisterAsync.lift(uniffiHandle);
|
|
6432
6852
|
return await jsCallback.load({ signal });
|
|
@@ -6455,7 +6875,7 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
|
|
|
6455
6875
|
/*lowerString:*/ FfiConverterString.lower);
|
|
6456
6876
|
return uniffiForeignFuture;
|
|
6457
6877
|
},
|
|
6458
|
-
close: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData
|
|
6878
|
+
close: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
6459
6879
|
const uniffiMakeCall = async (signal) => {
|
|
6460
6880
|
const jsCallback = FfiConverterTypeJsonSenderSessionPersisterAsync.lift(uniffiHandle);
|
|
6461
6881
|
return await jsCallback.close({ signal });
|
|
@@ -6486,6 +6906,9 @@ const uniffiCallbackInterfaceJsonSenderSessionPersisterAsync = {
|
|
|
6486
6906
|
// JsonSenderSessionPersisterAsync: this will throw a stale handle error if the handle isn't found.
|
|
6487
6907
|
FfiConverterTypeJsonSenderSessionPersisterAsync.drop(uniffiHandle);
|
|
6488
6908
|
},
|
|
6909
|
+
uniffiClone: (uniffiHandle) => {
|
|
6910
|
+
return FfiConverterTypeJsonSenderSessionPersisterAsync.clone(uniffiHandle);
|
|
6911
|
+
},
|
|
6489
6912
|
},
|
|
6490
6913
|
register: () => {
|
|
6491
6914
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_jsonsendersessionpersisterasync(uniffiCallbackInterfaceJsonSenderSessionPersisterAsync.vtable);
|
|
@@ -6502,6 +6925,22 @@ export class MaybeInputsOwned extends UniffiAbstractObject {
|
|
|
6502
6925
|
this[destructorGuardSymbol] =
|
|
6503
6926
|
uniffiTypeMaybeInputsOwnedObjectFactory.bless(pointer);
|
|
6504
6927
|
}
|
|
6928
|
+
/**
|
|
6929
|
+
* Cancel the Payjoin session immediately.
|
|
6930
|
+
*
|
|
6931
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6932
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6933
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6934
|
+
*
|
|
6935
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6936
|
+
*/
|
|
6937
|
+
cancel() {
|
|
6938
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
6939
|
+
/*caller:*/ (callStatus) => {
|
|
6940
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_maybeinputsowned_cancel(uniffiTypeMaybeInputsOwnedObjectFactory.clonePointer(this), callStatus);
|
|
6941
|
+
},
|
|
6942
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
6943
|
+
}
|
|
6505
6944
|
checkInputsNotOwned(isOwned) {
|
|
6506
6945
|
return FfiConverterTypeMaybeInputsOwnedTransition.lift(uniffiCaller.rustCall(
|
|
6507
6946
|
/*caller:*/ (callStatus) => {
|
|
@@ -6719,6 +7158,22 @@ export class MaybeInputsSeen extends UniffiAbstractObject {
|
|
|
6719
7158
|
this[destructorGuardSymbol] =
|
|
6720
7159
|
uniffiTypeMaybeInputsSeenObjectFactory.bless(pointer);
|
|
6721
7160
|
}
|
|
7161
|
+
/**
|
|
7162
|
+
* Cancel the Payjoin session immediately.
|
|
7163
|
+
*
|
|
7164
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
7165
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
7166
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
7167
|
+
*
|
|
7168
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
7169
|
+
*/
|
|
7170
|
+
cancel() {
|
|
7171
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
7172
|
+
/*caller:*/ (callStatus) => {
|
|
7173
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_maybeinputsseen_cancel(uniffiTypeMaybeInputsSeenObjectFactory.clonePointer(this), callStatus);
|
|
7174
|
+
},
|
|
7175
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7176
|
+
}
|
|
6722
7177
|
checkNoInputsSeenBefore(isKnown) {
|
|
6723
7178
|
return FfiConverterTypeMaybeInputsSeenTransition.lift(uniffiCaller.rustCall(
|
|
6724
7179
|
/*caller:*/ (callStatus) => {
|
|
@@ -6926,6 +7381,22 @@ export class Monitor extends UniffiAbstractObject {
|
|
|
6926
7381
|
this[destructorGuardSymbol] =
|
|
6927
7382
|
uniffiTypeMonitorObjectFactory.bless(pointer);
|
|
6928
7383
|
}
|
|
7384
|
+
/**
|
|
7385
|
+
* Cancel the Payjoin session immediately.
|
|
7386
|
+
*
|
|
7387
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
7388
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
7389
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
7390
|
+
*
|
|
7391
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
7392
|
+
*/
|
|
7393
|
+
cancel() {
|
|
7394
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
7395
|
+
/*caller:*/ (callStatus) => {
|
|
7396
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_monitor_cancel(uniffiTypeMonitorObjectFactory.clonePointer(this), callStatus);
|
|
7397
|
+
},
|
|
7398
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7399
|
+
}
|
|
6929
7400
|
monitor(transactionExists) {
|
|
6930
7401
|
return FfiConverterTypeMonitorTransition.lift(uniffiCaller.rustCall(
|
|
6931
7402
|
/*caller:*/ (callStatus) => {
|
|
@@ -7133,6 +7604,30 @@ export class OhttpError extends UniffiAbstractObject {
|
|
|
7133
7604
|
this[destructorGuardSymbol] =
|
|
7134
7605
|
uniffiTypeOhttpErrorObjectFactory.bless(pointer);
|
|
7135
7606
|
}
|
|
7607
|
+
/**
|
|
7608
|
+
* Calls into the `Debug` string representation of `OhttpErrorInterface` (the native Rust peer).
|
|
7609
|
+
*
|
|
7610
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
7611
|
+
*/
|
|
7612
|
+
toDebugString() {
|
|
7613
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
7614
|
+
/*caller:*/ (callStatus) => {
|
|
7615
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_ohttperror_uniffi_trait_debug(uniffiTypeOhttpErrorObjectFactory.clonePointer(this), callStatus);
|
|
7616
|
+
},
|
|
7617
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7618
|
+
}
|
|
7619
|
+
/**
|
|
7620
|
+
* Calls into the `OhttpErrorInterface::to_string()` method of the native Rust peer.
|
|
7621
|
+
*
|
|
7622
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
7623
|
+
*/
|
|
7624
|
+
toString() {
|
|
7625
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
7626
|
+
/*caller:*/ (callStatus) => {
|
|
7627
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_ohttperror_uniffi_trait_display(uniffiTypeOhttpErrorObjectFactory.clonePointer(this), callStatus);
|
|
7628
|
+
},
|
|
7629
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7630
|
+
}
|
|
7136
7631
|
/**
|
|
7137
7632
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
7138
7633
|
*/
|
|
@@ -7320,6 +7815,30 @@ export class OutputSubstitutionProtocolError extends UniffiAbstractObject {
|
|
|
7320
7815
|
this[destructorGuardSymbol] =
|
|
7321
7816
|
uniffiTypeOutputSubstitutionProtocolErrorObjectFactory.bless(pointer);
|
|
7322
7817
|
}
|
|
7818
|
+
/**
|
|
7819
|
+
* Calls into the `Debug` string representation of `OutputSubstitutionProtocolErrorInterface` (the native Rust peer).
|
|
7820
|
+
*
|
|
7821
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
7822
|
+
*/
|
|
7823
|
+
toDebugString() {
|
|
7824
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
7825
|
+
/*caller:*/ (callStatus) => {
|
|
7826
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_outputsubstitutionprotocolerror_uniffi_trait_debug(uniffiTypeOutputSubstitutionProtocolErrorObjectFactory.clonePointer(this), callStatus);
|
|
7827
|
+
},
|
|
7828
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7829
|
+
}
|
|
7830
|
+
/**
|
|
7831
|
+
* Calls into the `OutputSubstitutionProtocolErrorInterface::to_string()` method of the native Rust peer.
|
|
7832
|
+
*
|
|
7833
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
7834
|
+
*/
|
|
7835
|
+
toString() {
|
|
7836
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
7837
|
+
/*caller:*/ (callStatus) => {
|
|
7838
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_outputsubstitutionprotocolerror_uniffi_trait_display(uniffiTypeOutputSubstitutionProtocolErrorObjectFactory.clonePointer(this), callStatus);
|
|
7839
|
+
},
|
|
7840
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7841
|
+
}
|
|
7323
7842
|
/**
|
|
7324
7843
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
7325
7844
|
*/
|
|
@@ -7410,6 +7929,22 @@ export class OutputsUnknown extends UniffiAbstractObject {
|
|
|
7410
7929
|
this[destructorGuardSymbol] =
|
|
7411
7930
|
uniffiTypeOutputsUnknownObjectFactory.bless(pointer);
|
|
7412
7931
|
}
|
|
7932
|
+
/**
|
|
7933
|
+
* Cancel the Payjoin session immediately.
|
|
7934
|
+
*
|
|
7935
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
7936
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
7937
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
7938
|
+
*
|
|
7939
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
7940
|
+
*/
|
|
7941
|
+
cancel() {
|
|
7942
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
7943
|
+
/*caller:*/ (callStatus) => {
|
|
7944
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_outputsunknown_cancel(uniffiTypeOutputsUnknownObjectFactory.clonePointer(this), callStatus);
|
|
7945
|
+
},
|
|
7946
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
7947
|
+
}
|
|
7413
7948
|
/**
|
|
7414
7949
|
* Find which outputs belong to the receiver
|
|
7415
7950
|
*/
|
|
@@ -7620,6 +8155,22 @@ export class PayjoinProposal extends UniffiAbstractObject {
|
|
|
7620
8155
|
this[destructorGuardSymbol] =
|
|
7621
8156
|
uniffiTypePayjoinProposalObjectFactory.bless(pointer);
|
|
7622
8157
|
}
|
|
8158
|
+
/**
|
|
8159
|
+
* Cancel the Payjoin session immediately.
|
|
8160
|
+
*
|
|
8161
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
8162
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
8163
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
8164
|
+
*
|
|
8165
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
8166
|
+
*/
|
|
8167
|
+
cancel() {
|
|
8168
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
8169
|
+
/*caller:*/ (callStatus) => {
|
|
8170
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_payjoinproposal_cancel(uniffiTypePayjoinProposalObjectFactory.clonePointer(this), callStatus);
|
|
8171
|
+
},
|
|
8172
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8173
|
+
}
|
|
7623
8174
|
/**
|
|
7624
8175
|
* Construct an OHTTP Encapsulated HTTP POST request for the Proposal PSBT
|
|
7625
8176
|
*/
|
|
@@ -7859,6 +8410,45 @@ export class PjNotSupported extends UniffiAbstractObject {
|
|
|
7859
8410
|
this[destructorGuardSymbol] =
|
|
7860
8411
|
uniffiTypePjNotSupportedObjectFactory.bless(pointer);
|
|
7861
8412
|
}
|
|
8413
|
+
/**
|
|
8414
|
+
* Calls into the `Debug` string representation of `PjNotSupportedInterface` (the native Rust peer).
|
|
8415
|
+
*
|
|
8416
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
8417
|
+
*/
|
|
8418
|
+
toDebugString() {
|
|
8419
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
8420
|
+
/*caller:*/ (callStatus) => {
|
|
8421
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjnotsupported_uniffi_trait_debug(uniffiTypePjNotSupportedObjectFactory.clonePointer(this), callStatus);
|
|
8422
|
+
},
|
|
8423
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8424
|
+
}
|
|
8425
|
+
/**
|
|
8426
|
+
* Calls into the `PjNotSupportedInterface::to_string()` method of the native Rust peer.
|
|
8427
|
+
*
|
|
8428
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
8429
|
+
*/
|
|
8430
|
+
toString() {
|
|
8431
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
8432
|
+
/*caller:*/ (callStatus) => {
|
|
8433
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjnotsupported_uniffi_trait_display(uniffiTypePjNotSupportedObjectFactory.clonePointer(this), callStatus);
|
|
8434
|
+
},
|
|
8435
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8436
|
+
}
|
|
8437
|
+
/**
|
|
8438
|
+
* Calls into the `==` method of `PjNotSupportedInterface` (the native Rust peer).
|
|
8439
|
+
*
|
|
8440
|
+
* Returns `true` if and only if the two instance of `PjNotSupportedInterface` are
|
|
8441
|
+
* equivalent on the Rust side.
|
|
8442
|
+
*
|
|
8443
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
8444
|
+
*/
|
|
8445
|
+
equals(other) {
|
|
8446
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall(
|
|
8447
|
+
/*caller:*/ (callStatus) => {
|
|
8448
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjnotsupported_uniffi_trait_eq_eq(uniffiTypePjNotSupportedObjectFactory.clonePointer(this), FfiConverterTypePjNotSupported.lower(other), callStatus);
|
|
8449
|
+
},
|
|
8450
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8451
|
+
}
|
|
7862
8452
|
/**
|
|
7863
8453
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
7864
8454
|
*/
|
|
@@ -8032,6 +8622,45 @@ export class PjParseError extends UniffiAbstractObject {
|
|
|
8032
8622
|
this[destructorGuardSymbol] =
|
|
8033
8623
|
uniffiTypePjParseErrorObjectFactory.bless(pointer);
|
|
8034
8624
|
}
|
|
8625
|
+
/**
|
|
8626
|
+
* Calls into the `Debug` string representation of `PjParseErrorInterface` (the native Rust peer).
|
|
8627
|
+
*
|
|
8628
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
8629
|
+
*/
|
|
8630
|
+
toDebugString() {
|
|
8631
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
8632
|
+
/*caller:*/ (callStatus) => {
|
|
8633
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjparseerror_uniffi_trait_debug(uniffiTypePjParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
8634
|
+
},
|
|
8635
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8636
|
+
}
|
|
8637
|
+
/**
|
|
8638
|
+
* Calls into the `PjParseErrorInterface::to_string()` method of the native Rust peer.
|
|
8639
|
+
*
|
|
8640
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
8641
|
+
*/
|
|
8642
|
+
toString() {
|
|
8643
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
8644
|
+
/*caller:*/ (callStatus) => {
|
|
8645
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjparseerror_uniffi_trait_display(uniffiTypePjParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
8646
|
+
},
|
|
8647
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8648
|
+
}
|
|
8649
|
+
/**
|
|
8650
|
+
* Calls into the `==` method of `PjParseErrorInterface` (the native Rust peer).
|
|
8651
|
+
*
|
|
8652
|
+
* Returns `true` if and only if the two instance of `PjParseErrorInterface` are
|
|
8653
|
+
* equivalent on the Rust side.
|
|
8654
|
+
*
|
|
8655
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
8656
|
+
*/
|
|
8657
|
+
equals(other) {
|
|
8658
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall(
|
|
8659
|
+
/*caller:*/ (callStatus) => {
|
|
8660
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pjparseerror_uniffi_trait_eq_eq(uniffiTypePjParseErrorObjectFactory.clonePointer(this), FfiConverterTypePjParseError.lower(other), callStatus);
|
|
8661
|
+
},
|
|
8662
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8663
|
+
}
|
|
8035
8664
|
/**
|
|
8036
8665
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
8037
8666
|
*/
|
|
@@ -8247,6 +8876,22 @@ export class PollingForProposal extends UniffiAbstractObject {
|
|
|
8247
8876
|
this[destructorGuardSymbol] =
|
|
8248
8877
|
uniffiTypePollingForProposalObjectFactory.bless(pointer);
|
|
8249
8878
|
}
|
|
8879
|
+
/**
|
|
8880
|
+
* Cancel the Payjoin session immediately.
|
|
8881
|
+
*
|
|
8882
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
8883
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
8884
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
8885
|
+
*
|
|
8886
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
8887
|
+
*/
|
|
8888
|
+
cancel() {
|
|
8889
|
+
return FfiConverterTypeSenderCancelTransition.lift(uniffiCaller.rustCall(
|
|
8890
|
+
/*caller:*/ (callStatus) => {
|
|
8891
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_pollingforproposal_cancel(uniffiTypePollingForProposalObjectFactory.clonePointer(this), callStatus);
|
|
8892
|
+
},
|
|
8893
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
8894
|
+
}
|
|
8250
8895
|
createPollRequest(ohttpRelay) {
|
|
8251
8896
|
return FfiConverterTypeRequestOhttpContext.lift(uniffiCaller.rustCallWithError(
|
|
8252
8897
|
/*liftError:*/ FfiConverterTypeCreateRequestError__as_error.lift.bind(FfiConverterTypeCreateRequestError__as_error),
|
|
@@ -8577,6 +9222,9 @@ const uniffiCallbackInterfaceProcessPsbt = {
|
|
|
8577
9222
|
// ProcessPsbt: this will throw a stale handle error if the handle isn't found.
|
|
8578
9223
|
FfiConverterTypeProcessPsbt.drop(uniffiHandle);
|
|
8579
9224
|
},
|
|
9225
|
+
uniffiClone: (uniffiHandle) => {
|
|
9226
|
+
return FfiConverterTypeProcessPsbt.clone(uniffiHandle);
|
|
9227
|
+
},
|
|
8580
9228
|
},
|
|
8581
9229
|
register: () => {
|
|
8582
9230
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_processpsbt(uniffiCallbackInterfaceProcessPsbt.vtable);
|
|
@@ -8604,6 +9252,30 @@ export class ProtocolError extends UniffiAbstractObject {
|
|
|
8604
9252
|
this[destructorGuardSymbol] =
|
|
8605
9253
|
uniffiTypeProtocolErrorObjectFactory.bless(pointer);
|
|
8606
9254
|
}
|
|
9255
|
+
/**
|
|
9256
|
+
* Calls into the `Debug` string representation of `ProtocolErrorInterface` (the native Rust peer).
|
|
9257
|
+
*
|
|
9258
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
9259
|
+
*/
|
|
9260
|
+
toDebugString() {
|
|
9261
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9262
|
+
/*caller:*/ (callStatus) => {
|
|
9263
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_protocolerror_uniffi_trait_debug(uniffiTypeProtocolErrorObjectFactory.clonePointer(this), callStatus);
|
|
9264
|
+
},
|
|
9265
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9266
|
+
}
|
|
9267
|
+
/**
|
|
9268
|
+
* Calls into the `ProtocolErrorInterface::to_string()` method of the native Rust peer.
|
|
9269
|
+
*
|
|
9270
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
9271
|
+
*/
|
|
9272
|
+
toString() {
|
|
9273
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9274
|
+
/*caller:*/ (callStatus) => {
|
|
9275
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_protocolerror_uniffi_trait_display(uniffiTypeProtocolErrorObjectFactory.clonePointer(this), callStatus);
|
|
9276
|
+
},
|
|
9277
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9278
|
+
}
|
|
8607
9279
|
/**
|
|
8608
9280
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
8609
9281
|
*/
|
|
@@ -8686,6 +9358,22 @@ export class ProvisionalProposal extends UniffiAbstractObject {
|
|
|
8686
9358
|
this[destructorGuardSymbol] =
|
|
8687
9359
|
uniffiTypeProvisionalProposalObjectFactory.bless(pointer);
|
|
8688
9360
|
}
|
|
9361
|
+
/**
|
|
9362
|
+
* Cancel the Payjoin session immediately.
|
|
9363
|
+
*
|
|
9364
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
9365
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
9366
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
9367
|
+
*
|
|
9368
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
9369
|
+
*/
|
|
9370
|
+
cancel() {
|
|
9371
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
9372
|
+
/*caller:*/ (callStatus) => {
|
|
9373
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_provisionalproposal_cancel(uniffiTypeProvisionalProposalObjectFactory.clonePointer(this), callStatus);
|
|
9374
|
+
},
|
|
9375
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9376
|
+
}
|
|
8689
9377
|
finalizeProposal(processPsbt) {
|
|
8690
9378
|
return FfiConverterTypeProvisionalProposalTransition.lift(uniffiCaller.rustCall(
|
|
8691
9379
|
/*caller:*/ (callStatus) => {
|
|
@@ -8905,6 +9593,30 @@ export class PsbtInputError extends UniffiAbstractObject {
|
|
|
8905
9593
|
this[destructorGuardSymbol] =
|
|
8906
9594
|
uniffiTypePsbtInputErrorObjectFactory.bless(pointer);
|
|
8907
9595
|
}
|
|
9596
|
+
/**
|
|
9597
|
+
* Calls into the `Debug` string representation of `PsbtInputErrorInterface` (the native Rust peer).
|
|
9598
|
+
*
|
|
9599
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
9600
|
+
*/
|
|
9601
|
+
toDebugString() {
|
|
9602
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9603
|
+
/*caller:*/ (callStatus) => {
|
|
9604
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_psbtinputerror_uniffi_trait_debug(uniffiTypePsbtInputErrorObjectFactory.clonePointer(this), callStatus);
|
|
9605
|
+
},
|
|
9606
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9607
|
+
}
|
|
9608
|
+
/**
|
|
9609
|
+
* Calls into the `PsbtInputErrorInterface::to_string()` method of the native Rust peer.
|
|
9610
|
+
*
|
|
9611
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
9612
|
+
*/
|
|
9613
|
+
toString() {
|
|
9614
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9615
|
+
/*caller:*/ (callStatus) => {
|
|
9616
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_psbtinputerror_uniffi_trait_display(uniffiTypePsbtInputErrorObjectFactory.clonePointer(this), callStatus);
|
|
9617
|
+
},
|
|
9618
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9619
|
+
}
|
|
8908
9620
|
/**
|
|
8909
9621
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
8910
9622
|
*/
|
|
@@ -9122,6 +9834,30 @@ export class ReceiverReplayError extends UniffiAbstractObject {
|
|
|
9122
9834
|
this[destructorGuardSymbol] =
|
|
9123
9835
|
uniffiTypeReceiverReplayErrorObjectFactory.bless(pointer);
|
|
9124
9836
|
}
|
|
9837
|
+
/**
|
|
9838
|
+
* Calls into the `Debug` string representation of `ReceiverReplayErrorInterface` (the native Rust peer).
|
|
9839
|
+
*
|
|
9840
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
9841
|
+
*/
|
|
9842
|
+
toDebugString() {
|
|
9843
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9844
|
+
/*caller:*/ (callStatus) => {
|
|
9845
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_receiverreplayerror_uniffi_trait_debug(uniffiTypeReceiverReplayErrorObjectFactory.clonePointer(this), callStatus);
|
|
9846
|
+
},
|
|
9847
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9848
|
+
}
|
|
9849
|
+
/**
|
|
9850
|
+
* Calls into the `ReceiverReplayErrorInterface::to_string()` method of the native Rust peer.
|
|
9851
|
+
*
|
|
9852
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
9853
|
+
*/
|
|
9854
|
+
toString() {
|
|
9855
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
9856
|
+
/*caller:*/ (callStatus) => {
|
|
9857
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_receiverreplayerror_uniffi_trait_display(uniffiTypeReceiverReplayErrorObjectFactory.clonePointer(this), callStatus);
|
|
9858
|
+
},
|
|
9859
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
9860
|
+
}
|
|
9125
9861
|
/**
|
|
9126
9862
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
9127
9863
|
*/
|
|
@@ -9690,6 +10426,30 @@ export class SelectionError extends UniffiAbstractObject {
|
|
|
9690
10426
|
this[destructorGuardSymbol] =
|
|
9691
10427
|
uniffiTypeSelectionErrorObjectFactory.bless(pointer);
|
|
9692
10428
|
}
|
|
10429
|
+
/**
|
|
10430
|
+
* Calls into the `Debug` string representation of `SelectionErrorInterface` (the native Rust peer).
|
|
10431
|
+
*
|
|
10432
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
10433
|
+
*/
|
|
10434
|
+
toDebugString() {
|
|
10435
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
10436
|
+
/*caller:*/ (callStatus) => {
|
|
10437
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_selectionerror_uniffi_trait_debug(uniffiTypeSelectionErrorObjectFactory.clonePointer(this), callStatus);
|
|
10438
|
+
},
|
|
10439
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10440
|
+
}
|
|
10441
|
+
/**
|
|
10442
|
+
* Calls into the `SelectionErrorInterface::to_string()` method of the native Rust peer.
|
|
10443
|
+
*
|
|
10444
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
10445
|
+
*/
|
|
10446
|
+
toString() {
|
|
10447
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
10448
|
+
/*caller:*/ (callStatus) => {
|
|
10449
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_selectionerror_uniffi_trait_display(uniffiTypeSelectionErrorObjectFactory.clonePointer(this), callStatus);
|
|
10450
|
+
},
|
|
10451
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10452
|
+
}
|
|
9693
10453
|
/**
|
|
9694
10454
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
9695
10455
|
*/
|
|
@@ -9787,75 +10547,203 @@ export class SenderBuilder extends UniffiAbstractObject {
|
|
|
9787
10547
|
*/
|
|
9788
10548
|
constructor(psbt, uri) {
|
|
9789
10549
|
super();
|
|
9790
|
-
const pointer = uniffiCaller.rustCallWithError(
|
|
9791
|
-
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
9792
|
-
/*caller:*/ (callStatus) => {
|
|
9793
|
-
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_constructor_senderbuilder_new(FfiConverterString.lower(psbt), FfiConverterTypePjUri.lower(uri), callStatus);
|
|
9794
|
-
},
|
|
9795
|
-
/*liftString:*/ FfiConverterString.lift);
|
|
10550
|
+
const pointer = uniffiCaller.rustCallWithError(
|
|
10551
|
+
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
10552
|
+
/*caller:*/ (callStatus) => {
|
|
10553
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_constructor_senderbuilder_new(FfiConverterString.lower(psbt), FfiConverterTypePjUri.lower(uri), callStatus);
|
|
10554
|
+
},
|
|
10555
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
10556
|
+
this[pointerLiteralSymbol] = pointer;
|
|
10557
|
+
this[destructorGuardSymbol] =
|
|
10558
|
+
uniffiTypeSenderBuilderObjectFactory.bless(pointer);
|
|
10559
|
+
}
|
|
10560
|
+
/**
|
|
10561
|
+
* Disable output substitution even if the receiver didn't.
|
|
10562
|
+
*
|
|
10563
|
+
* This forbids receiver switching output or decreasing amount.
|
|
10564
|
+
* It is generally **not** recommended to set this as it may prevent the receiver from
|
|
10565
|
+
* doing advanced operations such as opening LN channels and it also guarantees the
|
|
10566
|
+
* receiver will **not** reward the sender with a discount.
|
|
10567
|
+
*/
|
|
10568
|
+
alwaysDisableOutputSubstitution() {
|
|
10569
|
+
return FfiConverterTypeSenderBuilder.lift(uniffiCaller.rustCall(
|
|
10570
|
+
/*caller:*/ (callStatus) => {
|
|
10571
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_always_disable_output_substitution(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), callStatus);
|
|
10572
|
+
},
|
|
10573
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10574
|
+
}
|
|
10575
|
+
/**
|
|
10576
|
+
* Perform Payjoin without incentivizing the payee to cooperate.
|
|
10577
|
+
*
|
|
10578
|
+
* While it's generally better to offer some contribution some users may wish not to.
|
|
10579
|
+
* This function disables contribution.
|
|
10580
|
+
*/
|
|
10581
|
+
buildNonIncentivizing(minFeeRate) {
|
|
10582
|
+
return FfiConverterTypeInitialSendTransition.lift(uniffiCaller.rustCallWithError(
|
|
10583
|
+
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
10584
|
+
/*caller:*/ (callStatus) => {
|
|
10585
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_build_non_incentivizing(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), FfiConverterUInt64.lower(minFeeRate), callStatus);
|
|
10586
|
+
},
|
|
10587
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10588
|
+
}
|
|
10589
|
+
buildRecommended(minFeeRate) {
|
|
10590
|
+
return FfiConverterTypeInitialSendTransition.lift(uniffiCaller.rustCallWithError(
|
|
10591
|
+
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
10592
|
+
/*caller:*/ (callStatus) => {
|
|
10593
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_build_recommended(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), FfiConverterUInt64.lower(minFeeRate), callStatus);
|
|
10594
|
+
},
|
|
10595
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10596
|
+
}
|
|
10597
|
+
/**
|
|
10598
|
+
* Offer the receiver contribution to pay for his input.
|
|
10599
|
+
*
|
|
10600
|
+
* These parameters will allow the receiver to take `max_fee_contribution` from given change
|
|
10601
|
+
* output to pay for additional inputs. The recommended fee is `size_of_one_input * fee_rate`.
|
|
10602
|
+
*
|
|
10603
|
+
* `change_index` specifies which output can be used to pay fee. If `None` is provided, then
|
|
10604
|
+
* the output is auto-detected unless the supplied transaction has more than two outputs.
|
|
10605
|
+
*
|
|
10606
|
+
* `clamp_fee_contribution` decreases fee contribution instead of erroring.
|
|
10607
|
+
*
|
|
10608
|
+
* If this option is true and a transaction with change amount lower than fee
|
|
10609
|
+
* contribution is provided then instead of returning error the fee contribution will
|
|
10610
|
+
* be just lowered in the request to match the change amount.
|
|
10611
|
+
*/
|
|
10612
|
+
buildWithAdditionalFee(maxFeeContribution, changeIndex, minFeeRate, clampFeeContribution) {
|
|
10613
|
+
return FfiConverterTypeInitialSendTransition.lift(uniffiCaller.rustCallWithError(
|
|
10614
|
+
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
10615
|
+
/*caller:*/ (callStatus) => {
|
|
10616
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_build_with_additional_fee(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), FfiConverterUInt64.lower(maxFeeContribution), FfiConverterOptionalUInt8.lower(changeIndex), FfiConverterUInt64.lower(minFeeRate), FfiConverterBool.lower(clampFeeContribution), callStatus);
|
|
10617
|
+
},
|
|
10618
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10619
|
+
}
|
|
10620
|
+
/**
|
|
10621
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
10622
|
+
*/
|
|
10623
|
+
uniffiDestroy() {
|
|
10624
|
+
const ptr = this[destructorGuardSymbol];
|
|
10625
|
+
if (ptr !== undefined) {
|
|
10626
|
+
const pointer = uniffiTypeSenderBuilderObjectFactory.pointer(this);
|
|
10627
|
+
uniffiTypeSenderBuilderObjectFactory.freePointer(pointer);
|
|
10628
|
+
uniffiTypeSenderBuilderObjectFactory.unbless(ptr);
|
|
10629
|
+
delete this[destructorGuardSymbol];
|
|
10630
|
+
}
|
|
10631
|
+
}
|
|
10632
|
+
static instanceOf(obj) {
|
|
10633
|
+
return uniffiTypeSenderBuilderObjectFactory.isConcreteType(obj);
|
|
10634
|
+
}
|
|
10635
|
+
}
|
|
10636
|
+
const uniffiTypeSenderBuilderObjectFactory = (() => {
|
|
10637
|
+
/// <reference lib="es2021" />
|
|
10638
|
+
const registry = typeof FinalizationRegistry !== "undefined"
|
|
10639
|
+
? new FinalizationRegistry((heldValue) => {
|
|
10640
|
+
uniffiTypeSenderBuilderObjectFactory.freePointer(heldValue);
|
|
10641
|
+
})
|
|
10642
|
+
: null;
|
|
10643
|
+
return {
|
|
10644
|
+
create(pointer) {
|
|
10645
|
+
const instance = Object.create(SenderBuilder.prototype);
|
|
10646
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
10647
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
10648
|
+
instance[uniffiTypeNameSymbol] = "SenderBuilder";
|
|
10649
|
+
return instance;
|
|
10650
|
+
},
|
|
10651
|
+
bless(p) {
|
|
10652
|
+
const ptr = {
|
|
10653
|
+
p, // make sure this object doesn't get optimized away.
|
|
10654
|
+
markDestroyed: () => undefined,
|
|
10655
|
+
};
|
|
10656
|
+
if (registry) {
|
|
10657
|
+
registry.register(ptr, p, ptr);
|
|
10658
|
+
}
|
|
10659
|
+
return ptr;
|
|
10660
|
+
},
|
|
10661
|
+
unbless(ptr) {
|
|
10662
|
+
if (registry) {
|
|
10663
|
+
registry.unregister(ptr);
|
|
10664
|
+
}
|
|
10665
|
+
},
|
|
10666
|
+
pointer(obj) {
|
|
10667
|
+
if (obj[destructorGuardSymbol] === undefined) {
|
|
10668
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
10669
|
+
}
|
|
10670
|
+
return obj[pointerLiteralSymbol];
|
|
10671
|
+
},
|
|
10672
|
+
clonePointer(obj) {
|
|
10673
|
+
const pointer = this.pointer(obj);
|
|
10674
|
+
return uniffiCaller.rustCall(
|
|
10675
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_clone_senderbuilder(pointer, callStatus),
|
|
10676
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
10677
|
+
},
|
|
10678
|
+
freePointer(pointer) {
|
|
10679
|
+
uniffiCaller.rustCall(
|
|
10680
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_free_senderbuilder(pointer, callStatus),
|
|
10681
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
10682
|
+
},
|
|
10683
|
+
isConcreteType(obj) {
|
|
10684
|
+
return (obj[destructorGuardSymbol] &&
|
|
10685
|
+
obj[uniffiTypeNameSymbol] === "SenderBuilder");
|
|
10686
|
+
},
|
|
10687
|
+
};
|
|
10688
|
+
})();
|
|
10689
|
+
// FfiConverter for SenderBuilderInterface
|
|
10690
|
+
const FfiConverterTypeSenderBuilder = new FfiConverterObject(uniffiTypeSenderBuilderObjectFactory);
|
|
10691
|
+
/**
|
|
10692
|
+
* A terminal transition produced by cancelling a sender session.
|
|
10693
|
+
*/
|
|
10694
|
+
export class SenderCancelTransition extends UniffiAbstractObject {
|
|
10695
|
+
[uniffiTypeNameSymbol] = "SenderCancelTransition";
|
|
10696
|
+
[destructorGuardSymbol];
|
|
10697
|
+
[pointerLiteralSymbol];
|
|
10698
|
+
// No primary constructor declared for this class.
|
|
10699
|
+
constructor(pointer) {
|
|
10700
|
+
super();
|
|
9796
10701
|
this[pointerLiteralSymbol] = pointer;
|
|
9797
10702
|
this[destructorGuardSymbol] =
|
|
9798
|
-
|
|
9799
|
-
}
|
|
9800
|
-
/**
|
|
9801
|
-
* Disable output substitution even if the receiver didn't.
|
|
9802
|
-
*
|
|
9803
|
-
* This forbids receiver switching output or decreasing amount.
|
|
9804
|
-
* It is generally **not** recommended to set this as it may prevent the receiver from
|
|
9805
|
-
* doing advanced operations such as opening LN channels and it also guarantees the
|
|
9806
|
-
* receiver will **not** reward the sender with a discount.
|
|
9807
|
-
*/
|
|
9808
|
-
alwaysDisableOutputSubstitution() {
|
|
9809
|
-
return FfiConverterTypeSenderBuilder.lift(uniffiCaller.rustCall(
|
|
9810
|
-
/*caller:*/ (callStatus) => {
|
|
9811
|
-
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_always_disable_output_substitution(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), callStatus);
|
|
9812
|
-
},
|
|
9813
|
-
/*liftString:*/ FfiConverterString.lift));
|
|
10703
|
+
uniffiTypeSenderCancelTransitionObjectFactory.bless(pointer);
|
|
9814
10704
|
}
|
|
9815
10705
|
/**
|
|
9816
|
-
*
|
|
10706
|
+
* Persist the cancellation and return the fallback transaction.
|
|
9817
10707
|
*
|
|
9818
|
-
*
|
|
9819
|
-
*
|
|
10708
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes of
|
|
10709
|
+
* the sender's original transaction that should be broadcast to complete the
|
|
10710
|
+
* payment without Payjoin.
|
|
9820
10711
|
*/
|
|
9821
|
-
|
|
9822
|
-
return
|
|
9823
|
-
/*liftError:*/
|
|
9824
|
-
/*caller:*/ (callStatus) => {
|
|
9825
|
-
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderbuilder_build_non_incentivizing(uniffiTypeSenderBuilderObjectFactory.clonePointer(this), FfiConverterUInt64.lower(minFeeRate), callStatus);
|
|
9826
|
-
},
|
|
9827
|
-
/*liftString:*/ FfiConverterString.lift));
|
|
9828
|
-
}
|
|
9829
|
-
buildRecommended(minFeeRate) {
|
|
9830
|
-
return FfiConverterTypeInitialSendTransition.lift(uniffiCaller.rustCallWithError(
|
|
9831
|
-
/*liftError:*/ FfiConverterTypeSenderInputError.lift.bind(FfiConverterTypeSenderInputError),
|
|
10712
|
+
save(persister) {
|
|
10713
|
+
return FfiConverterArrayBuffer.lift(uniffiCaller.rustCallWithError(
|
|
10714
|
+
/*liftError:*/ FfiConverterTypeSenderPersistedError.lift.bind(FfiConverterTypeSenderPersistedError),
|
|
9832
10715
|
/*caller:*/ (callStatus) => {
|
|
9833
|
-
return nativeModule().
|
|
10716
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_sendercanceltransition_save(uniffiTypeSenderCancelTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonSenderSessionPersister.lower(persister), callStatus);
|
|
9834
10717
|
},
|
|
9835
10718
|
/*liftString:*/ FfiConverterString.lift));
|
|
9836
10719
|
}
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
}
|
|
9858
|
-
|
|
10720
|
+
async saveAsync(persister, asyncOpts_) {
|
|
10721
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
10722
|
+
try {
|
|
10723
|
+
return await uniffiRustCallAsync(
|
|
10724
|
+
/*rustCaller:*/ uniffiCaller,
|
|
10725
|
+
/*rustFutureFunc:*/ () => {
|
|
10726
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_sendercanceltransition_save_async(uniffiTypeSenderCancelTransitionObjectFactory.clonePointer(this), FfiConverterTypeJsonSenderSessionPersisterAsync.lower(persister));
|
|
10727
|
+
},
|
|
10728
|
+
/*pollFunc:*/ nativeModule()
|
|
10729
|
+
.ubrn_ffi_payjoin_ffi_rust_future_poll_rust_buffer,
|
|
10730
|
+
/*cancelFunc:*/ nativeModule()
|
|
10731
|
+
.ubrn_ffi_payjoin_ffi_rust_future_cancel_rust_buffer,
|
|
10732
|
+
/*completeFunc:*/ nativeModule()
|
|
10733
|
+
.ubrn_ffi_payjoin_ffi_rust_future_complete_rust_buffer,
|
|
10734
|
+
/*freeFunc:*/ nativeModule()
|
|
10735
|
+
.ubrn_ffi_payjoin_ffi_rust_future_free_rust_buffer,
|
|
10736
|
+
/*liftFunc:*/ FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),
|
|
10737
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
10738
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
10739
|
+
/*errorHandler:*/ FfiConverterTypeSenderPersistedError.lift.bind(FfiConverterTypeSenderPersistedError));
|
|
10740
|
+
}
|
|
10741
|
+
catch (__error) {
|
|
10742
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
10743
|
+
__error.stack = __stack;
|
|
10744
|
+
}
|
|
10745
|
+
throw __error;
|
|
10746
|
+
}
|
|
9859
10747
|
}
|
|
9860
10748
|
/**
|
|
9861
10749
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -9863,29 +10751,29 @@ export class SenderBuilder extends UniffiAbstractObject {
|
|
|
9863
10751
|
uniffiDestroy() {
|
|
9864
10752
|
const ptr = this[destructorGuardSymbol];
|
|
9865
10753
|
if (ptr !== undefined) {
|
|
9866
|
-
const pointer =
|
|
9867
|
-
|
|
9868
|
-
|
|
10754
|
+
const pointer = uniffiTypeSenderCancelTransitionObjectFactory.pointer(this);
|
|
10755
|
+
uniffiTypeSenderCancelTransitionObjectFactory.freePointer(pointer);
|
|
10756
|
+
uniffiTypeSenderCancelTransitionObjectFactory.unbless(ptr);
|
|
9869
10757
|
delete this[destructorGuardSymbol];
|
|
9870
10758
|
}
|
|
9871
10759
|
}
|
|
9872
10760
|
static instanceOf(obj) {
|
|
9873
|
-
return
|
|
10761
|
+
return uniffiTypeSenderCancelTransitionObjectFactory.isConcreteType(obj);
|
|
9874
10762
|
}
|
|
9875
10763
|
}
|
|
9876
|
-
const
|
|
10764
|
+
const uniffiTypeSenderCancelTransitionObjectFactory = (() => {
|
|
9877
10765
|
/// <reference lib="es2021" />
|
|
9878
10766
|
const registry = typeof FinalizationRegistry !== "undefined"
|
|
9879
10767
|
? new FinalizationRegistry((heldValue) => {
|
|
9880
|
-
|
|
10768
|
+
uniffiTypeSenderCancelTransitionObjectFactory.freePointer(heldValue);
|
|
9881
10769
|
})
|
|
9882
10770
|
: null;
|
|
9883
10771
|
return {
|
|
9884
10772
|
create(pointer) {
|
|
9885
|
-
const instance = Object.create(
|
|
10773
|
+
const instance = Object.create(SenderCancelTransition.prototype);
|
|
9886
10774
|
instance[pointerLiteralSymbol] = pointer;
|
|
9887
10775
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
9888
|
-
instance[uniffiTypeNameSymbol] = "
|
|
10776
|
+
instance[uniffiTypeNameSymbol] = "SenderCancelTransition";
|
|
9889
10777
|
return instance;
|
|
9890
10778
|
},
|
|
9891
10779
|
bless(p) {
|
|
@@ -9912,22 +10800,22 @@ const uniffiTypeSenderBuilderObjectFactory = (() => {
|
|
|
9912
10800
|
clonePointer(obj) {
|
|
9913
10801
|
const pointer = this.pointer(obj);
|
|
9914
10802
|
return uniffiCaller.rustCall(
|
|
9915
|
-
/*caller:*/ (callStatus) => nativeModule().
|
|
10803
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_clone_sendercanceltransition(pointer, callStatus),
|
|
9916
10804
|
/*liftString:*/ FfiConverterString.lift);
|
|
9917
10805
|
},
|
|
9918
10806
|
freePointer(pointer) {
|
|
9919
10807
|
uniffiCaller.rustCall(
|
|
9920
|
-
/*caller:*/ (callStatus) => nativeModule().
|
|
10808
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_payjoin_ffi_fn_free_sendercanceltransition(pointer, callStatus),
|
|
9921
10809
|
/*liftString:*/ FfiConverterString.lift);
|
|
9922
10810
|
},
|
|
9923
10811
|
isConcreteType(obj) {
|
|
9924
10812
|
return (obj[destructorGuardSymbol] &&
|
|
9925
|
-
obj[uniffiTypeNameSymbol] === "
|
|
10813
|
+
obj[uniffiTypeNameSymbol] === "SenderCancelTransition");
|
|
9926
10814
|
},
|
|
9927
10815
|
};
|
|
9928
10816
|
})();
|
|
9929
|
-
// FfiConverter for
|
|
9930
|
-
const
|
|
10817
|
+
// FfiConverter for SenderCancelTransitionInterface
|
|
10818
|
+
const FfiConverterTypeSenderCancelTransition = new FfiConverterObject(uniffiTypeSenderCancelTransitionObjectFactory);
|
|
9931
10819
|
/**
|
|
9932
10820
|
* Error that may occur when the sender session event log is replayed
|
|
9933
10821
|
*/
|
|
@@ -9942,6 +10830,30 @@ export class SenderReplayError extends UniffiAbstractObject {
|
|
|
9942
10830
|
this[destructorGuardSymbol] =
|
|
9943
10831
|
uniffiTypeSenderReplayErrorObjectFactory.bless(pointer);
|
|
9944
10832
|
}
|
|
10833
|
+
/**
|
|
10834
|
+
* Calls into the `Debug` string representation of `SenderReplayErrorInterface` (the native Rust peer).
|
|
10835
|
+
*
|
|
10836
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
10837
|
+
*/
|
|
10838
|
+
toDebugString() {
|
|
10839
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
10840
|
+
/*caller:*/ (callStatus) => {
|
|
10841
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderreplayerror_uniffi_trait_debug(uniffiTypeSenderReplayErrorObjectFactory.clonePointer(this), callStatus);
|
|
10842
|
+
},
|
|
10843
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10844
|
+
}
|
|
10845
|
+
/**
|
|
10846
|
+
* Calls into the `SenderReplayErrorInterface::to_string()` method of the native Rust peer.
|
|
10847
|
+
*
|
|
10848
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
10849
|
+
*/
|
|
10850
|
+
toString() {
|
|
10851
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
10852
|
+
/*caller:*/ (callStatus) => {
|
|
10853
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_senderreplayerror_uniffi_trait_display(uniffiTypeSenderReplayErrorObjectFactory.clonePointer(this), callStatus);
|
|
10854
|
+
},
|
|
10855
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
10856
|
+
}
|
|
9945
10857
|
/**
|
|
9946
10858
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
9947
10859
|
*/
|
|
@@ -10529,6 +11441,30 @@ export class SerdeJsonError extends UniffiAbstractObject {
|
|
|
10529
11441
|
this[destructorGuardSymbol] =
|
|
10530
11442
|
uniffiTypeSerdeJsonErrorObjectFactory.bless(pointer);
|
|
10531
11443
|
}
|
|
11444
|
+
/**
|
|
11445
|
+
* Calls into the `Debug` string representation of `SerdeJsonErrorInterface` (the native Rust peer).
|
|
11446
|
+
*
|
|
11447
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
11448
|
+
*/
|
|
11449
|
+
toDebugString() {
|
|
11450
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
11451
|
+
/*caller:*/ (callStatus) => {
|
|
11452
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_serdejsonerror_uniffi_trait_debug(uniffiTypeSerdeJsonErrorObjectFactory.clonePointer(this), callStatus);
|
|
11453
|
+
},
|
|
11454
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
11455
|
+
}
|
|
11456
|
+
/**
|
|
11457
|
+
* Calls into the `SerdeJsonErrorInterface::to_string()` method of the native Rust peer.
|
|
11458
|
+
*
|
|
11459
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
11460
|
+
*/
|
|
11461
|
+
toString() {
|
|
11462
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
11463
|
+
/*caller:*/ (callStatus) => {
|
|
11464
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_serdejsonerror_uniffi_trait_display(uniffiTypeSerdeJsonErrorObjectFactory.clonePointer(this), callStatus);
|
|
11465
|
+
},
|
|
11466
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
11467
|
+
}
|
|
10532
11468
|
/**
|
|
10533
11469
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
10534
11470
|
*/
|
|
@@ -10623,6 +11559,30 @@ export class SessionError extends UniffiAbstractObject {
|
|
|
10623
11559
|
this[destructorGuardSymbol] =
|
|
10624
11560
|
uniffiTypeSessionErrorObjectFactory.bless(pointer);
|
|
10625
11561
|
}
|
|
11562
|
+
/**
|
|
11563
|
+
* Calls into the `Debug` string representation of `SessionErrorInterface` (the native Rust peer).
|
|
11564
|
+
*
|
|
11565
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
11566
|
+
*/
|
|
11567
|
+
toDebugString() {
|
|
11568
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
11569
|
+
/*caller:*/ (callStatus) => {
|
|
11570
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_sessionerror_uniffi_trait_debug(uniffiTypeSessionErrorObjectFactory.clonePointer(this), callStatus);
|
|
11571
|
+
},
|
|
11572
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
11573
|
+
}
|
|
11574
|
+
/**
|
|
11575
|
+
* Calls into the `SessionErrorInterface::to_string()` method of the native Rust peer.
|
|
11576
|
+
*
|
|
11577
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
11578
|
+
*/
|
|
11579
|
+
toString() {
|
|
11580
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
11581
|
+
/*caller:*/ (callStatus) => {
|
|
11582
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_sessionerror_uniffi_trait_display(uniffiTypeSessionErrorObjectFactory.clonePointer(this), callStatus);
|
|
11583
|
+
},
|
|
11584
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
11585
|
+
}
|
|
10626
11586
|
/**
|
|
10627
11587
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
10628
11588
|
*/
|
|
@@ -10824,6 +11784,9 @@ const uniffiCallbackInterfaceTransactionExists = {
|
|
|
10824
11784
|
// TransactionExists: this will throw a stale handle error if the handle isn't found.
|
|
10825
11785
|
FfiConverterTypeTransactionExists.drop(uniffiHandle);
|
|
10826
11786
|
},
|
|
11787
|
+
uniffiClone: (uniffiHandle) => {
|
|
11788
|
+
return FfiConverterTypeTransactionExists.clone(uniffiHandle);
|
|
11789
|
+
},
|
|
10827
11790
|
},
|
|
10828
11791
|
register: () => {
|
|
10829
11792
|
nativeModule().ubrn_uniffi_payjoin_ffi_fn_init_callback_vtable_transactionexists(uniffiCallbackInterfaceTransactionExists.vtable);
|
|
@@ -10854,6 +11817,22 @@ export class UncheckedOriginalPayload extends UniffiAbstractObject {
|
|
|
10854
11817
|
},
|
|
10855
11818
|
/*liftString:*/ FfiConverterString.lift));
|
|
10856
11819
|
}
|
|
11820
|
+
/**
|
|
11821
|
+
* Cancel the Payjoin session immediately.
|
|
11822
|
+
*
|
|
11823
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
11824
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
11825
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
11826
|
+
*
|
|
11827
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
11828
|
+
*/
|
|
11829
|
+
cancel() {
|
|
11830
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
11831
|
+
/*caller:*/ (callStatus) => {
|
|
11832
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_uncheckedoriginalpayload_cancel(uniffiTypeUncheckedOriginalPayloadObjectFactory.clonePointer(this), callStatus);
|
|
11833
|
+
},
|
|
11834
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
11835
|
+
}
|
|
10857
11836
|
checkBroadcastSuitability(minFeeRate, canBroadcast) {
|
|
10858
11837
|
return FfiConverterTypeUncheckedOriginalPayloadTransition.lift(uniffiCaller.rustCallWithError(
|
|
10859
11838
|
/*liftError:*/ FfiConverterTypeFfiValidationError.lift.bind(FfiConverterTypeFfiValidationError),
|
|
@@ -11302,6 +12281,30 @@ export class UrlParseError extends UniffiAbstractObject {
|
|
|
11302
12281
|
this[destructorGuardSymbol] =
|
|
11303
12282
|
uniffiTypeUrlParseErrorObjectFactory.bless(pointer);
|
|
11304
12283
|
}
|
|
12284
|
+
/**
|
|
12285
|
+
* Calls into the `Debug` string representation of `UrlParseErrorInterface` (the native Rust peer).
|
|
12286
|
+
*
|
|
12287
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
12288
|
+
*/
|
|
12289
|
+
toDebugString() {
|
|
12290
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
12291
|
+
/*caller:*/ (callStatus) => {
|
|
12292
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_urlparseerror_uniffi_trait_debug(uniffiTypeUrlParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
12293
|
+
},
|
|
12294
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12295
|
+
}
|
|
12296
|
+
/**
|
|
12297
|
+
* Calls into the `UrlParseErrorInterface::to_string()` method of the native Rust peer.
|
|
12298
|
+
*
|
|
12299
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
12300
|
+
*/
|
|
12301
|
+
toString() {
|
|
12302
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
12303
|
+
/*caller:*/ (callStatus) => {
|
|
12304
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_urlparseerror_uniffi_trait_display(uniffiTypeUrlParseErrorObjectFactory.clonePointer(this), callStatus);
|
|
12305
|
+
},
|
|
12306
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12307
|
+
}
|
|
11305
12308
|
/**
|
|
11306
12309
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
11307
12310
|
*/
|
|
@@ -11494,6 +12497,30 @@ export class ValidationError extends UniffiAbstractObject {
|
|
|
11494
12497
|
this[destructorGuardSymbol] =
|
|
11495
12498
|
uniffiTypeValidationErrorObjectFactory.bless(pointer);
|
|
11496
12499
|
}
|
|
12500
|
+
/**
|
|
12501
|
+
* Calls into the `Debug` string representation of `ValidationErrorInterface` (the native Rust peer).
|
|
12502
|
+
*
|
|
12503
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
12504
|
+
*/
|
|
12505
|
+
toDebugString() {
|
|
12506
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
12507
|
+
/*caller:*/ (callStatus) => {
|
|
12508
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_validationerror_uniffi_trait_debug(uniffiTypeValidationErrorObjectFactory.clonePointer(this), callStatus);
|
|
12509
|
+
},
|
|
12510
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12511
|
+
}
|
|
12512
|
+
/**
|
|
12513
|
+
* Calls into the `ValidationErrorInterface::to_string()` method of the native Rust peer.
|
|
12514
|
+
*
|
|
12515
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
12516
|
+
*/
|
|
12517
|
+
toString() {
|
|
12518
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
12519
|
+
/*caller:*/ (callStatus) => {
|
|
12520
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_validationerror_uniffi_trait_display(uniffiTypeValidationErrorObjectFactory.clonePointer(this), callStatus);
|
|
12521
|
+
},
|
|
12522
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12523
|
+
}
|
|
11497
12524
|
/**
|
|
11498
12525
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
11499
12526
|
*/
|
|
@@ -11606,6 +12633,22 @@ export class WantsFeeRange extends UniffiAbstractObject {
|
|
|
11606
12633
|
},
|
|
11607
12634
|
/*liftString:*/ FfiConverterString.lift));
|
|
11608
12635
|
}
|
|
12636
|
+
/**
|
|
12637
|
+
* Cancel the Payjoin session immediately.
|
|
12638
|
+
*
|
|
12639
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
12640
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
12641
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
12642
|
+
*
|
|
12643
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
12644
|
+
*/
|
|
12645
|
+
cancel() {
|
|
12646
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
12647
|
+
/*caller:*/ (callStatus) => {
|
|
12648
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsfeerange_cancel(uniffiTypeWantsFeeRangeObjectFactory.clonePointer(this), callStatus);
|
|
12649
|
+
},
|
|
12650
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12651
|
+
}
|
|
11609
12652
|
/**
|
|
11610
12653
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
11611
12654
|
*/
|
|
@@ -11806,6 +12849,22 @@ export class WantsInputs extends UniffiAbstractObject {
|
|
|
11806
12849
|
this[destructorGuardSymbol] =
|
|
11807
12850
|
uniffiTypeWantsInputsObjectFactory.bless(pointer);
|
|
11808
12851
|
}
|
|
12852
|
+
/**
|
|
12853
|
+
* Cancel the Payjoin session immediately.
|
|
12854
|
+
*
|
|
12855
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
12856
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
12857
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
12858
|
+
*
|
|
12859
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
12860
|
+
*/
|
|
12861
|
+
cancel() {
|
|
12862
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
12863
|
+
/*caller:*/ (callStatus) => {
|
|
12864
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsinputs_cancel(uniffiTypeWantsInputsObjectFactory.clonePointer(this), callStatus);
|
|
12865
|
+
},
|
|
12866
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
12867
|
+
}
|
|
11809
12868
|
commitInputs() {
|
|
11810
12869
|
return FfiConverterTypeWantsInputsTransition.lift(uniffiCaller.rustCall(
|
|
11811
12870
|
/*caller:*/ (callStatus) => {
|
|
@@ -12040,6 +13099,22 @@ export class WantsOutputs extends UniffiAbstractObject {
|
|
|
12040
13099
|
this[destructorGuardSymbol] =
|
|
12041
13100
|
uniffiTypeWantsOutputsObjectFactory.bless(pointer);
|
|
12042
13101
|
}
|
|
13102
|
+
/**
|
|
13103
|
+
* Cancel the Payjoin session immediately.
|
|
13104
|
+
*
|
|
13105
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
13106
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
13107
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
13108
|
+
*
|
|
13109
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
13110
|
+
*/
|
|
13111
|
+
cancel() {
|
|
13112
|
+
return FfiConverterTypeCancelTransition.lift(uniffiCaller.rustCall(
|
|
13113
|
+
/*caller:*/ (callStatus) => {
|
|
13114
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wantsoutputs_cancel(uniffiTypeWantsOutputsObjectFactory.clonePointer(this), callStatus);
|
|
13115
|
+
},
|
|
13116
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
13117
|
+
}
|
|
12043
13118
|
commitOutputs() {
|
|
12044
13119
|
return FfiConverterTypeWantsOutputsTransition.lift(uniffiCaller.rustCall(
|
|
12045
13120
|
/*caller:*/ (callStatus) => {
|
|
@@ -12273,6 +13348,30 @@ export class WellKnownError extends UniffiAbstractObject {
|
|
|
12273
13348
|
this[destructorGuardSymbol] =
|
|
12274
13349
|
uniffiTypeWellKnownErrorObjectFactory.bless(pointer);
|
|
12275
13350
|
}
|
|
13351
|
+
/**
|
|
13352
|
+
* Calls into the `Debug` string representation of `WellKnownErrorInterface` (the native Rust peer).
|
|
13353
|
+
*
|
|
13354
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
13355
|
+
*/
|
|
13356
|
+
toDebugString() {
|
|
13357
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
13358
|
+
/*caller:*/ (callStatus) => {
|
|
13359
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wellknownerror_uniffi_trait_debug(uniffiTypeWellKnownErrorObjectFactory.clonePointer(this), callStatus);
|
|
13360
|
+
},
|
|
13361
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
13362
|
+
}
|
|
13363
|
+
/**
|
|
13364
|
+
* Calls into the `WellKnownErrorInterface::to_string()` method of the native Rust peer.
|
|
13365
|
+
*
|
|
13366
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
13367
|
+
*/
|
|
13368
|
+
toString() {
|
|
13369
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
13370
|
+
/*caller:*/ (callStatus) => {
|
|
13371
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_wellknownerror_uniffi_trait_display(uniffiTypeWellKnownErrorObjectFactory.clonePointer(this), callStatus);
|
|
13372
|
+
},
|
|
13373
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
13374
|
+
}
|
|
12276
13375
|
/**
|
|
12277
13376
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
12278
13377
|
*/
|
|
@@ -12355,6 +13454,22 @@ export class WithReplyKey extends UniffiAbstractObject {
|
|
|
12355
13454
|
this[destructorGuardSymbol] =
|
|
12356
13455
|
uniffiTypeWithReplyKeyObjectFactory.bless(pointer);
|
|
12357
13456
|
}
|
|
13457
|
+
/**
|
|
13458
|
+
* Cancel the Payjoin session immediately.
|
|
13459
|
+
*
|
|
13460
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
13461
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
13462
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
13463
|
+
*
|
|
13464
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
13465
|
+
*/
|
|
13466
|
+
cancel() {
|
|
13467
|
+
return FfiConverterTypeSenderCancelTransition.lift(uniffiCaller.rustCall(
|
|
13468
|
+
/*caller:*/ (callStatus) => {
|
|
13469
|
+
return nativeModule().ubrn_uniffi_payjoin_ffi_fn_method_withreplykey_cancel(uniffiTypeWithReplyKeyObjectFactory.clonePointer(this), callStatus);
|
|
13470
|
+
},
|
|
13471
|
+
/*liftString:*/ FfiConverterString.lift));
|
|
13472
|
+
}
|
|
12358
13473
|
/**
|
|
12359
13474
|
* Construct serialized Request and Context from a Payjoin Proposal.
|
|
12360
13475
|
*
|
|
@@ -12639,6 +13754,18 @@ function uniffiEnsureInitialized() {
|
|
|
12639
13754
|
3425) {
|
|
12640
13755
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_canbroadcast_callback");
|
|
12641
13756
|
}
|
|
13757
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_canceltransition_save() !==
|
|
13758
|
+
34405) {
|
|
13759
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_canceltransition_save");
|
|
13760
|
+
}
|
|
13761
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_canceltransition_save_async() !==
|
|
13762
|
+
53343) {
|
|
13763
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_canceltransition_save_async");
|
|
13764
|
+
}
|
|
13765
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_hasreplyableerror_cancel() !==
|
|
13766
|
+
63968) {
|
|
13767
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_hasreplyableerror_cancel");
|
|
13768
|
+
}
|
|
12642
13769
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_hasreplyableerror_create_error_request() !==
|
|
12643
13770
|
59218) {
|
|
12644
13771
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_hasreplyableerror_create_error_request");
|
|
@@ -12671,6 +13798,10 @@ function uniffiEnsureInitialized() {
|
|
|
12671
13798
|
44534) {
|
|
12672
13799
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_initialsendtransition_save_async");
|
|
12673
13800
|
}
|
|
13801
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_initialized_cancel() !==
|
|
13802
|
+
41860) {
|
|
13803
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_initialized_cancel");
|
|
13804
|
+
}
|
|
12674
13805
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_initialized_create_poll_request() !==
|
|
12675
13806
|
34224) {
|
|
12676
13807
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_initialized_create_poll_request");
|
|
@@ -12747,6 +13878,10 @@ function uniffiEnsureInitialized() {
|
|
|
12747
13878
|
26918) {
|
|
12748
13879
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_jsonsendersessionpersisterasync_close");
|
|
12749
13880
|
}
|
|
13881
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_maybeinputsowned_cancel() !==
|
|
13882
|
+
45096) {
|
|
13883
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsowned_cancel");
|
|
13884
|
+
}
|
|
12750
13885
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_maybeinputsowned_check_inputs_not_owned() !==
|
|
12751
13886
|
56355) {
|
|
12752
13887
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsowned_check_inputs_not_owned");
|
|
@@ -12763,6 +13898,10 @@ function uniffiEnsureInitialized() {
|
|
|
12763
13898
|
9689) {
|
|
12764
13899
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsownedtransition_save_async");
|
|
12765
13900
|
}
|
|
13901
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_maybeinputsseen_cancel() !==
|
|
13902
|
+
56133) {
|
|
13903
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsseen_cancel");
|
|
13904
|
+
}
|
|
12766
13905
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_maybeinputsseen_check_no_inputs_seen_before() !==
|
|
12767
13906
|
7497) {
|
|
12768
13907
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsseen_check_no_inputs_seen_before");
|
|
@@ -12775,6 +13914,10 @@ function uniffiEnsureInitialized() {
|
|
|
12775
13914
|
20203) {
|
|
12776
13915
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_maybeinputsseentransition_save_async");
|
|
12777
13916
|
}
|
|
13917
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_monitor_cancel() !==
|
|
13918
|
+
52085) {
|
|
13919
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_monitor_cancel");
|
|
13920
|
+
}
|
|
12778
13921
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_monitor_monitor() !==
|
|
12779
13922
|
60726) {
|
|
12780
13923
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_monitor_monitor");
|
|
@@ -12787,6 +13930,10 @@ function uniffiEnsureInitialized() {
|
|
|
12787
13930
|
25107) {
|
|
12788
13931
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_monitortransition_save_async");
|
|
12789
13932
|
}
|
|
13933
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_outputsunknown_cancel() !==
|
|
13934
|
+
6596) {
|
|
13935
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_outputsunknown_cancel");
|
|
13936
|
+
}
|
|
12790
13937
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_outputsunknown_identify_receiver_outputs() !==
|
|
12791
13938
|
29197) {
|
|
12792
13939
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_outputsunknown_identify_receiver_outputs");
|
|
@@ -12799,6 +13946,10 @@ function uniffiEnsureInitialized() {
|
|
|
12799
13946
|
49487) {
|
|
12800
13947
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_outputsunknowntransition_save_async");
|
|
12801
13948
|
}
|
|
13949
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_payjoinproposal_cancel() !==
|
|
13950
|
+
35062) {
|
|
13951
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_payjoinproposal_cancel");
|
|
13952
|
+
}
|
|
12802
13953
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_payjoinproposal_create_post_request() !==
|
|
12803
13954
|
32528) {
|
|
12804
13955
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_payjoinproposal_create_post_request");
|
|
@@ -12843,6 +13994,10 @@ function uniffiEnsureInitialized() {
|
|
|
12843
13994
|
44905) {
|
|
12844
13995
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_pjuri_set_amount_sats");
|
|
12845
13996
|
}
|
|
13997
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_pollingforproposal_cancel() !==
|
|
13998
|
+
43805) {
|
|
13999
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_pollingforproposal_cancel");
|
|
14000
|
+
}
|
|
12846
14001
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_pollingforproposal_create_poll_request() !==
|
|
12847
14002
|
62694) {
|
|
12848
14003
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_pollingforproposal_create_poll_request");
|
|
@@ -12863,6 +14018,10 @@ function uniffiEnsureInitialized() {
|
|
|
12863
14018
|
5949) {
|
|
12864
14019
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_processpsbt_callback");
|
|
12865
14020
|
}
|
|
14021
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_provisionalproposal_cancel() !==
|
|
14022
|
+
57483) {
|
|
14023
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_provisionalproposal_cancel");
|
|
14024
|
+
}
|
|
12866
14025
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_provisionalproposal_finalize_proposal() !==
|
|
12867
14026
|
31780) {
|
|
12868
14027
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_provisionalproposal_finalize_proposal");
|
|
@@ -12935,6 +14094,14 @@ function uniffiEnsureInitialized() {
|
|
|
12935
14094
|
17024) {
|
|
12936
14095
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_senderbuilder_build_with_additional_fee");
|
|
12937
14096
|
}
|
|
14097
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_sendercanceltransition_save() !==
|
|
14098
|
+
50090) {
|
|
14099
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_sendercanceltransition_save");
|
|
14100
|
+
}
|
|
14101
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_sendercanceltransition_save_async() !==
|
|
14102
|
+
24195) {
|
|
14103
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_sendercanceltransition_save_async");
|
|
14104
|
+
}
|
|
12938
14105
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_senderreplayresult_session_history() !==
|
|
12939
14106
|
38055) {
|
|
12940
14107
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_senderreplayresult_session_history");
|
|
@@ -12983,6 +14150,10 @@ function uniffiEnsureInitialized() {
|
|
|
12983
14150
|
12030) {
|
|
12984
14151
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_uncheckedoriginalpayload_assume_interactive_receiver");
|
|
12985
14152
|
}
|
|
14153
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_uncheckedoriginalpayload_cancel() !==
|
|
14154
|
+
19750) {
|
|
14155
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_uncheckedoriginalpayload_cancel");
|
|
14156
|
+
}
|
|
12986
14157
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_uncheckedoriginalpayload_check_broadcast_suitability() !==
|
|
12987
14158
|
3033) {
|
|
12988
14159
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_uncheckedoriginalpayload_check_broadcast_suitability");
|
|
@@ -13035,6 +14206,10 @@ function uniffiEnsureInitialized() {
|
|
|
13035
14206
|
51333) {
|
|
13036
14207
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsfeerange_apply_fee_range");
|
|
13037
14208
|
}
|
|
14209
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsfeerange_cancel() !==
|
|
14210
|
+
1496) {
|
|
14211
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsfeerange_cancel");
|
|
14212
|
+
}
|
|
13038
14213
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsfeerangetransition_save() !==
|
|
13039
14214
|
42631) {
|
|
13040
14215
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsfeerangetransition_save");
|
|
@@ -13043,6 +14218,10 @@ function uniffiEnsureInitialized() {
|
|
|
13043
14218
|
61703) {
|
|
13044
14219
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsfeerangetransition_save_async");
|
|
13045
14220
|
}
|
|
14221
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsinputs_cancel() !==
|
|
14222
|
+
21866) {
|
|
14223
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsinputs_cancel");
|
|
14224
|
+
}
|
|
13046
14225
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsinputs_commit_inputs() !==
|
|
13047
14226
|
63657) {
|
|
13048
14227
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsinputs_commit_inputs");
|
|
@@ -13063,6 +14242,10 @@ function uniffiEnsureInitialized() {
|
|
|
13063
14242
|
33457) {
|
|
13064
14243
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsinputstransition_save_async");
|
|
13065
14244
|
}
|
|
14245
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsoutputs_cancel() !==
|
|
14246
|
+
43082) {
|
|
14247
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsoutputs_cancel");
|
|
14248
|
+
}
|
|
13066
14249
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_wantsoutputs_commit_outputs() !==
|
|
13067
14250
|
52515) {
|
|
13068
14251
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsoutputs_commit_outputs");
|
|
@@ -13087,6 +14270,10 @@ function uniffiEnsureInitialized() {
|
|
|
13087
14270
|
3333) {
|
|
13088
14271
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_wantsoutputstransition_save_async");
|
|
13089
14272
|
}
|
|
14273
|
+
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_withreplykey_cancel() !==
|
|
14274
|
+
24751) {
|
|
14275
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_withreplykey_cancel");
|
|
14276
|
+
}
|
|
13090
14277
|
if (nativeModule().ubrn_uniffi_payjoin_ffi_checksum_method_withreplykey_create_v2_post_request() !==
|
|
13091
14278
|
9717) {
|
|
13092
14279
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_payjoin_ffi_checksum_method_withreplykey_create_v2_post_request");
|
|
@@ -13152,6 +14339,7 @@ export default Object.freeze({
|
|
|
13152
14339
|
FfiConverterTypeAssumeInteractiveTransition,
|
|
13153
14340
|
FfiConverterTypeBuildSenderError,
|
|
13154
14341
|
FfiConverterTypeCanBroadcast,
|
|
14342
|
+
FfiConverterTypeCancelTransition,
|
|
13155
14343
|
FfiConverterTypeClientResponse,
|
|
13156
14344
|
FfiConverterTypeCreateRequestError,
|
|
13157
14345
|
FfiConverterTypeCreateRequestError__as_error,
|
|
@@ -13237,6 +14425,7 @@ export default Object.freeze({
|
|
|
13237
14425
|
FfiConverterTypeSelectionError__as_error,
|
|
13238
14426
|
FfiConverterTypeSendSession,
|
|
13239
14427
|
FfiConverterTypeSenderBuilder,
|
|
14428
|
+
FfiConverterTypeSenderCancelTransition,
|
|
13240
14429
|
FfiConverterTypeSenderInputError,
|
|
13241
14430
|
FfiConverterTypeSenderPersistedError,
|
|
13242
14431
|
FfiConverterTypeSenderReplayError,
|