@secondts/bark-react-native 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +357 -27
- package/cpp/generated/bark.hpp +10 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +468 -20
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +467 -19
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +18 -6
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +391 -20
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +18 -6
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +391 -20
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +35 -5
- package/src/generated/bark.ts +738 -30
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WalletTransaction = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.VtxoState_Tags = exports.VtxoState = exports.VtxoLockHolder_Tags = exports.VtxoLockHolder = exports.Vtxo = exports.RoundState = exports.RefreshFees = exports.RecoveryReport = exports.RecoveryBucket = exports.PpmExpiryFeeEntry = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainUtxo_Tags = exports.OnchainUtxo = exports.OnchainBalance = exports.OffboardResult = exports.OffboardFees = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSendFees = exports.LightningSend = exports.LightningReceiveFees = exports.LightningReceive = exports.LightningInvoice = exports.FeeSchedule = exports.FeeRates = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTxStatus_Tags = exports.ExitTxStatus = exports.ExitTxOrigin_Tags = exports.ExitTxOrigin = exports.ExitTx = exports.ExitTransactionStatus = exports.ExitState_Tags = exports.ExitStateKind = exports.ExitState = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.ExitCancelResult = exports.ExitCancelFailure_Tags = exports.ExitCancelFailure = exports.Exception_Tags = exports.Exception = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BoardFundingInfo = exports.BoardFees = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
6
|
+
exports.default = exports.WalletTransaction = exports.WalletProperties = exports.WalletOpenArgs = exports.WalletNotification_Tags = exports.WalletNotification = exports.Wallet = exports.VtxoState_Tags = exports.VtxoState = exports.VtxoLockHolder_Tags = exports.VtxoLockHolder = exports.Vtxo = exports.RoundState = exports.RoundFlowKind = exports.RefreshFees = exports.RecoveryStatus_Tags = exports.RecoveryStatus = exports.RecoveryReport = exports.RecoveryBucket = exports.PpmExpiryFeeEntry = exports.PendingBoard = exports.OutPoint = exports.OnchainWallet = exports.OnchainUtxo_Tags = exports.OnchainUtxo = exports.OnchainBalance = exports.OffboardResult = exports.OffboardFees = exports.NotificationHolder = exports.Network = exports.Movement = exports.LogLevel = exports.LightningSendStatus_Tags = exports.LightningSendStatus = exports.LightningSendFees = exports.LightningSend = exports.LightningReceiveFees = exports.LightningReceive = exports.LightningInvoice = exports.FeeSchedule = exports.FeeRates = exports.FeeEstimate = exports.ExitVtxo = exports.ExitTxStatus_Tags = exports.ExitTxStatus = exports.ExitTxOrigin_Tags = exports.ExitTxOrigin = exports.ExitTx = exports.ExitTransactionStatus = exports.ExitState_Tags = exports.ExitStateKind = exports.ExitState = exports.ExitProgressStatus = exports.ExitClaimTransaction = exports.ExitCancelResult = exports.ExitCancelFailure_Tags = exports.ExitCancelFailure = exports.Exception_Tags = exports.Exception = exports.EmergencyExitFeeEstimate = exports.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = exports.BoardFundingInfo = exports.BoardFees = exports.BlockRef = exports.BarkLoggerImpl = exports.Balance = exports.ArkInfo = exports.AddressWithIndex = void 0;
|
|
7
7
|
exports.extractTxFromPsbt = extractTxFromPsbt;
|
|
8
8
|
exports.generateMnemonic = generateMnemonic;
|
|
9
9
|
exports.initWallet = initWallet;
|
|
@@ -384,7 +384,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
384
384
|
bitcoindCookiefile: FfiConverterOptionalString.read(from),
|
|
385
385
|
bitcoindUser: FfiConverterOptionalString.read(from),
|
|
386
386
|
bitcoindPass: FfiConverterOptionalString.read(from),
|
|
387
|
-
vtxoRefreshExpiryThreshold:
|
|
387
|
+
vtxoRefreshExpiryThreshold: FfiConverterOptionalUInt16.read(from),
|
|
388
388
|
vtxoExitMargin: FfiConverterOptionalUInt16.read(from),
|
|
389
389
|
htlcRecvClaimDelta: FfiConverterOptionalUInt16.read(from),
|
|
390
390
|
fallbackFeeRate: FfiConverterOptionalUInt64.read(from),
|
|
@@ -404,7 +404,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
404
404
|
FfiConverterOptionalString.write(value.bitcoindCookiefile, into);
|
|
405
405
|
FfiConverterOptionalString.write(value.bitcoindUser, into);
|
|
406
406
|
FfiConverterOptionalString.write(value.bitcoindPass, into);
|
|
407
|
-
|
|
407
|
+
FfiConverterOptionalUInt16.write(value.vtxoRefreshExpiryThreshold, into);
|
|
408
408
|
FfiConverterOptionalUInt16.write(value.vtxoExitMargin, into);
|
|
409
409
|
FfiConverterOptionalUInt16.write(value.htlcRecvClaimDelta, into);
|
|
410
410
|
FfiConverterOptionalUInt64.write(value.fallbackFeeRate, into);
|
|
@@ -416,7 +416,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
416
416
|
FfiConverterOptionalString.write(value.userAgent, into);
|
|
417
417
|
}
|
|
418
418
|
allocationSize(value) {
|
|
419
|
-
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) +
|
|
419
|
+
return FfiConverterString.allocationSize(value.serverAddress) + FfiConverterOptionalString.allocationSize(value.serverAccessToken) + FfiConverterOptionalString.allocationSize(value.esploraAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindAddress) + FfiConverterOptionalString.allocationSize(value.bitcoindCookiefile) + FfiConverterOptionalString.allocationSize(value.bitcoindUser) + FfiConverterOptionalString.allocationSize(value.bitcoindPass) + FfiConverterOptionalUInt16.allocationSize(value.vtxoRefreshExpiryThreshold) + FfiConverterOptionalUInt16.allocationSize(value.vtxoExitMargin) + FfiConverterOptionalUInt16.allocationSize(value.htlcRecvClaimDelta) + FfiConverterOptionalUInt64.allocationSize(value.fallbackFeeRate) + FfiConverterOptionalUInt32.allocationSize(value.roundTxRequiredConfirmations) + FfiConverterOptionalUInt64.allocationSize(value.daemonSyncIntervalSecs) + FfiConverterOptionalUInt32.allocationSize(value.offboardRequiredConfirmations) + FfiConverterOptionalBool.allocationSize(value.daemonManualSync) + FfiConverterOptionalUInt8.allocationSize(value.lightningReceiveClaimRetries) + FfiConverterOptionalString.allocationSize(value.userAgent);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
return new FFIConverter();
|
|
@@ -500,6 +500,57 @@ const FfiConverterTypeDestination = (() => {
|
|
|
500
500
|
return new FFIConverter();
|
|
501
501
|
})();
|
|
502
502
|
|
|
503
|
+
/**
|
|
504
|
+
* Estimated onchain cost of unilaterally (emergency) exiting a set of VTXOs.
|
|
505
|
+
*
|
|
506
|
+
* Mirrors bark-rest's `GET /exits/fee` response. The two legs are paid from
|
|
507
|
+
* different pockets: `exit_broadcast_fee_sats` is spent now out of confirmed
|
|
508
|
+
* onchain funds to CPFP-bump every not-yet-confirmed exit transaction, while
|
|
509
|
+
* `claim_fee_sats` is deducted later from the recovered value when the
|
|
510
|
+
* matured outputs are drained.
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Generated factory for {@link EmergencyExitFeeEstimate} record objects.
|
|
515
|
+
*/
|
|
516
|
+
const EmergencyExitFeeEstimate = exports.EmergencyExitFeeEstimate = (() => {
|
|
517
|
+
const defaults = () => ({});
|
|
518
|
+
const create = (() => {
|
|
519
|
+
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
520
|
+
})();
|
|
521
|
+
return Object.freeze({
|
|
522
|
+
create,
|
|
523
|
+
new: create,
|
|
524
|
+
defaults: () => Object.freeze(defaults())
|
|
525
|
+
});
|
|
526
|
+
})();
|
|
527
|
+
const FfiConverterTypeEmergencyExitFeeEstimate = (() => {
|
|
528
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
529
|
+
read(from) {
|
|
530
|
+
return {
|
|
531
|
+
exitBroadcastFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
532
|
+
claimFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
533
|
+
totalFeeSats: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
534
|
+
feeRateSatPerVb: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
535
|
+
txsToBroadcast: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
536
|
+
fundable: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
write(value, into) {
|
|
540
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.exitBroadcastFeeSats, into);
|
|
541
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.claimFeeSats, into);
|
|
542
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.totalFeeSats, into);
|
|
543
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.feeRateSatPerVb, into);
|
|
544
|
+
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.txsToBroadcast, into);
|
|
545
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(value.fundable, into);
|
|
546
|
+
}
|
|
547
|
+
allocationSize(value) {
|
|
548
|
+
return _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.exitBroadcastFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.claimFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.totalFeeSats) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.feeRateSatPerVb) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.txsToBroadcast) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.fundable);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return new FFIConverter();
|
|
552
|
+
})();
|
|
553
|
+
|
|
503
554
|
/**
|
|
504
555
|
* Outcome of a cancellation request.
|
|
505
556
|
*
|
|
@@ -1481,15 +1532,19 @@ const FfiConverterTypeRoundState = (() => {
|
|
|
1481
1532
|
read(from) {
|
|
1482
1533
|
return {
|
|
1483
1534
|
id: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
1484
|
-
ongoing: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
1535
|
+
ongoing: _uniffiBindgenReactNative.FfiConverterBool.read(from),
|
|
1536
|
+
state: FfiConverterTypeRoundFlowKind.read(from),
|
|
1537
|
+
scheduledHeight: FfiConverterOptionalUInt32.read(from)
|
|
1485
1538
|
};
|
|
1486
1539
|
}
|
|
1487
1540
|
write(value, into) {
|
|
1488
1541
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.id, into);
|
|
1489
1542
|
_uniffiBindgenReactNative.FfiConverterBool.write(value.ongoing, into);
|
|
1543
|
+
FfiConverterTypeRoundFlowKind.write(value.state, into);
|
|
1544
|
+
FfiConverterOptionalUInt32.write(value.scheduledHeight, into);
|
|
1490
1545
|
}
|
|
1491
1546
|
allocationSize(value) {
|
|
1492
|
-
return _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.ongoing);
|
|
1547
|
+
return _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.id) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.ongoing) + FfiConverterTypeRoundFlowKind.allocationSize(value.state) + FfiConverterOptionalUInt32.allocationSize(value.scheduledHeight);
|
|
1493
1548
|
}
|
|
1494
1549
|
}
|
|
1495
1550
|
return new FFIConverter();
|
|
@@ -3230,6 +3285,266 @@ const FfiConverterTypeOnchainUtxo = (() => {
|
|
|
3230
3285
|
return new FFIConverter();
|
|
3231
3286
|
})();
|
|
3232
3287
|
|
|
3288
|
+
// Enum: RecoveryStatus
|
|
3289
|
+
let RecoveryStatus_Tags = exports.RecoveryStatus_Tags = /*#__PURE__*/function (RecoveryStatus_Tags) {
|
|
3290
|
+
RecoveryStatus_Tags["NotRun"] = "NotRun";
|
|
3291
|
+
RecoveryStatus_Tags["Failed"] = "Failed";
|
|
3292
|
+
RecoveryStatus_Tags["Completed"] = "Completed";
|
|
3293
|
+
return RecoveryStatus_Tags;
|
|
3294
|
+
}({});
|
|
3295
|
+
/**
|
|
3296
|
+
* Outcome of the seed-recovery scan `Wallet::open` runs, mirroring
|
|
3297
|
+
* `bark::RecoveryStatus`.
|
|
3298
|
+
*
|
|
3299
|
+
* The three variants are distinguishable on purpose: `NotRun` means nothing
|
|
3300
|
+
* was attempted (wallet already existed locally, or `skip_recovery` was set),
|
|
3301
|
+
* `Failed` means the scan errored before producing a report so funds may be
|
|
3302
|
+
* missing until a retry succeeds, and `Completed` carries the report — whose
|
|
3303
|
+
* `is_complete` can still be `false` for individual VTXOs.
|
|
3304
|
+
*
|
|
3305
|
+
* Serde/TS tags: `"not-run"` | `"failed"` | `"completed"`.
|
|
3306
|
+
*/
|
|
3307
|
+
const RecoveryStatus = exports.RecoveryStatus = (() => {
|
|
3308
|
+
/**
|
|
3309
|
+
* No scan was attempted.
|
|
3310
|
+
*/
|
|
3311
|
+
class NotRun_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
3312
|
+
/**
|
|
3313
|
+
* @private
|
|
3314
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3315
|
+
*/
|
|
3316
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "RecoveryStatus";
|
|
3317
|
+
tag = RecoveryStatus_Tags.NotRun;
|
|
3318
|
+
constructor() {
|
|
3319
|
+
super("RecoveryStatus", "NotRun");
|
|
3320
|
+
}
|
|
3321
|
+
static new() {
|
|
3322
|
+
return new NotRun_();
|
|
3323
|
+
}
|
|
3324
|
+
static instanceOf(obj) {
|
|
3325
|
+
return obj.tag === RecoveryStatus_Tags.NotRun;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
/**
|
|
3329
|
+
* The scan errored before it could produce a report.
|
|
3330
|
+
*/
|
|
3331
|
+
class Failed_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
3332
|
+
/**
|
|
3333
|
+
* @private
|
|
3334
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3335
|
+
*/
|
|
3336
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "RecoveryStatus";
|
|
3337
|
+
tag = RecoveryStatus_Tags.Failed;
|
|
3338
|
+
constructor(inner) {
|
|
3339
|
+
super("RecoveryStatus", "Failed");
|
|
3340
|
+
this.inner = Object.freeze(inner);
|
|
3341
|
+
}
|
|
3342
|
+
static new(inner) {
|
|
3343
|
+
return new Failed_(inner);
|
|
3344
|
+
}
|
|
3345
|
+
static instanceOf(obj) {
|
|
3346
|
+
return obj.tag === RecoveryStatus_Tags.Failed;
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
/**
|
|
3350
|
+
* The scan ran to the end.
|
|
3351
|
+
*/
|
|
3352
|
+
class Completed_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
3353
|
+
/**
|
|
3354
|
+
* @private
|
|
3355
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3356
|
+
*/
|
|
3357
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "RecoveryStatus";
|
|
3358
|
+
tag = RecoveryStatus_Tags.Completed;
|
|
3359
|
+
constructor(inner) {
|
|
3360
|
+
super("RecoveryStatus", "Completed");
|
|
3361
|
+
this.inner = Object.freeze(inner);
|
|
3362
|
+
}
|
|
3363
|
+
static new(inner) {
|
|
3364
|
+
return new Completed_(inner);
|
|
3365
|
+
}
|
|
3366
|
+
static instanceOf(obj) {
|
|
3367
|
+
return obj.tag === RecoveryStatus_Tags.Completed;
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
function instanceOf(obj) {
|
|
3371
|
+
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "RecoveryStatus";
|
|
3372
|
+
}
|
|
3373
|
+
return Object.freeze({
|
|
3374
|
+
instanceOf,
|
|
3375
|
+
NotRun: NotRun_,
|
|
3376
|
+
Failed: Failed_,
|
|
3377
|
+
Completed: Completed_
|
|
3378
|
+
});
|
|
3379
|
+
})();
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Outcome of the seed-recovery scan `Wallet::open` runs, mirroring
|
|
3383
|
+
* `bark::RecoveryStatus`.
|
|
3384
|
+
*
|
|
3385
|
+
* The three variants are distinguishable on purpose: `NotRun` means nothing
|
|
3386
|
+
* was attempted (wallet already existed locally, or `skip_recovery` was set),
|
|
3387
|
+
* `Failed` means the scan errored before producing a report so funds may be
|
|
3388
|
+
* missing until a retry succeeds, and `Completed` carries the report — whose
|
|
3389
|
+
* `is_complete` can still be `false` for individual VTXOs.
|
|
3390
|
+
*
|
|
3391
|
+
* Serde/TS tags: `"not-run"` | `"failed"` | `"completed"`.
|
|
3392
|
+
*/
|
|
3393
|
+
|
|
3394
|
+
// FfiConverter for enum RecoveryStatus
|
|
3395
|
+
const FfiConverterTypeRecoveryStatus = (() => {
|
|
3396
|
+
const ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
3397
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
3398
|
+
read(from) {
|
|
3399
|
+
switch (ordinalConverter.read(from)) {
|
|
3400
|
+
case 1:
|
|
3401
|
+
return new RecoveryStatus.NotRun();
|
|
3402
|
+
case 2:
|
|
3403
|
+
return new RecoveryStatus.Failed({
|
|
3404
|
+
message: FfiConverterString.read(from)
|
|
3405
|
+
});
|
|
3406
|
+
case 3:
|
|
3407
|
+
return new RecoveryStatus.Completed({
|
|
3408
|
+
report: FfiConverterTypeRecoveryReport.read(from)
|
|
3409
|
+
});
|
|
3410
|
+
default:
|
|
3411
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
write(value, into) {
|
|
3415
|
+
switch (value.tag) {
|
|
3416
|
+
case RecoveryStatus_Tags.NotRun:
|
|
3417
|
+
{
|
|
3418
|
+
ordinalConverter.write(1, into);
|
|
3419
|
+
return;
|
|
3420
|
+
}
|
|
3421
|
+
case RecoveryStatus_Tags.Failed:
|
|
3422
|
+
{
|
|
3423
|
+
ordinalConverter.write(2, into);
|
|
3424
|
+
const inner = value.inner;
|
|
3425
|
+
FfiConverterString.write(inner.message, into);
|
|
3426
|
+
return;
|
|
3427
|
+
}
|
|
3428
|
+
case RecoveryStatus_Tags.Completed:
|
|
3429
|
+
{
|
|
3430
|
+
ordinalConverter.write(3, into);
|
|
3431
|
+
const inner = value.inner;
|
|
3432
|
+
FfiConverterTypeRecoveryReport.write(inner.report, into);
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
default:
|
|
3436
|
+
// Throwing from here means that RecoveryStatus_Tags hasn't matched an ordinal.
|
|
3437
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
allocationSize(value) {
|
|
3441
|
+
switch (value.tag) {
|
|
3442
|
+
case RecoveryStatus_Tags.NotRun:
|
|
3443
|
+
{
|
|
3444
|
+
return ordinalConverter.allocationSize(1);
|
|
3445
|
+
}
|
|
3446
|
+
case RecoveryStatus_Tags.Failed:
|
|
3447
|
+
{
|
|
3448
|
+
const inner = value.inner;
|
|
3449
|
+
let size = ordinalConverter.allocationSize(2);
|
|
3450
|
+
size += FfiConverterString.allocationSize(inner.message);
|
|
3451
|
+
return size;
|
|
3452
|
+
}
|
|
3453
|
+
case RecoveryStatus_Tags.Completed:
|
|
3454
|
+
{
|
|
3455
|
+
const inner = value.inner;
|
|
3456
|
+
let size = ordinalConverter.allocationSize(3);
|
|
3457
|
+
size += FfiConverterTypeRecoveryReport.allocationSize(inner.report);
|
|
3458
|
+
return size;
|
|
3459
|
+
}
|
|
3460
|
+
default:
|
|
3461
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
return new FFIConverter();
|
|
3466
|
+
})();
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* Lifecycle phase of a round participation, mirroring
|
|
3470
|
+
* `bark::round::RoundFlowKind`.
|
|
3471
|
+
*
|
|
3472
|
+
* Serde/TS tags match upstream's `Display` form: `"delegated-pending"` |
|
|
3473
|
+
* `"pending"` | `"ongoing"` | `"awaiting-confirmations"` | `"failed"` |
|
|
3474
|
+
* `"canceled"`.
|
|
3475
|
+
*/
|
|
3476
|
+
let RoundFlowKind = exports.RoundFlowKind = /*#__PURE__*/function (RoundFlowKind) {
|
|
3477
|
+
/**
|
|
3478
|
+
* Delegated participation waiting for its scheduled round. See
|
|
3479
|
+
* [`RoundState::scheduled_height`].
|
|
3480
|
+
*/
|
|
3481
|
+
RoundFlowKind[RoundFlowKind["DelegatedPending"] = 0] = "DelegatedPending";
|
|
3482
|
+
/**
|
|
3483
|
+
* Interactive participation waiting for its round.
|
|
3484
|
+
*/
|
|
3485
|
+
RoundFlowKind[RoundFlowKind["Pending"] = 1] = "Pending";
|
|
3486
|
+
/**
|
|
3487
|
+
* The interactive part is being played out with the server.
|
|
3488
|
+
*/
|
|
3489
|
+
RoundFlowKind[RoundFlowKind["Ongoing"] = 2] = "Ongoing";
|
|
3490
|
+
/**
|
|
3491
|
+
* The round finished; waiting for its funding tx to confirm.
|
|
3492
|
+
*/
|
|
3493
|
+
RoundFlowKind[RoundFlowKind["AwaitingConfirmations"] = 3] = "AwaitingConfirmations";
|
|
3494
|
+
/**
|
|
3495
|
+
* The participation failed.
|
|
3496
|
+
*/
|
|
3497
|
+
RoundFlowKind[RoundFlowKind["Failed"] = 4] = "Failed";
|
|
3498
|
+
/**
|
|
3499
|
+
* The user canceled the participation.
|
|
3500
|
+
*/
|
|
3501
|
+
RoundFlowKind[RoundFlowKind["Canceled"] = 5] = "Canceled";
|
|
3502
|
+
return RoundFlowKind;
|
|
3503
|
+
}({});
|
|
3504
|
+
const FfiConverterTypeRoundFlowKind = (() => {
|
|
3505
|
+
const ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
3506
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
3507
|
+
read(from) {
|
|
3508
|
+
switch (ordinalConverter.read(from)) {
|
|
3509
|
+
case 1:
|
|
3510
|
+
return RoundFlowKind.DelegatedPending;
|
|
3511
|
+
case 2:
|
|
3512
|
+
return RoundFlowKind.Pending;
|
|
3513
|
+
case 3:
|
|
3514
|
+
return RoundFlowKind.Ongoing;
|
|
3515
|
+
case 4:
|
|
3516
|
+
return RoundFlowKind.AwaitingConfirmations;
|
|
3517
|
+
case 5:
|
|
3518
|
+
return RoundFlowKind.Failed;
|
|
3519
|
+
case 6:
|
|
3520
|
+
return RoundFlowKind.Canceled;
|
|
3521
|
+
default:
|
|
3522
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3523
|
+
}
|
|
3524
|
+
}
|
|
3525
|
+
write(value, into) {
|
|
3526
|
+
switch (value) {
|
|
3527
|
+
case RoundFlowKind.DelegatedPending:
|
|
3528
|
+
return ordinalConverter.write(1, into);
|
|
3529
|
+
case RoundFlowKind.Pending:
|
|
3530
|
+
return ordinalConverter.write(2, into);
|
|
3531
|
+
case RoundFlowKind.Ongoing:
|
|
3532
|
+
return ordinalConverter.write(3, into);
|
|
3533
|
+
case RoundFlowKind.AwaitingConfirmations:
|
|
3534
|
+
return ordinalConverter.write(4, into);
|
|
3535
|
+
case RoundFlowKind.Failed:
|
|
3536
|
+
return ordinalConverter.write(5, into);
|
|
3537
|
+
case RoundFlowKind.Canceled:
|
|
3538
|
+
return ordinalConverter.write(6, into);
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
allocationSize(value) {
|
|
3542
|
+
return ordinalConverter.allocationSize(0);
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
return new FFIConverter();
|
|
3546
|
+
})();
|
|
3547
|
+
|
|
3233
3548
|
// Enum: VtxoLockHolder
|
|
3234
3549
|
let VtxoLockHolder_Tags = exports.VtxoLockHolder_Tags = /*#__PURE__*/function (VtxoLockHolder_Tags) {
|
|
3235
3550
|
VtxoLockHolder_Tags["Action"] = "Action";
|
|
@@ -3947,6 +4262,23 @@ class CustomOnchainWalletCallbacksImpl extends _uniffiBindgenReactNative.UniffiA
|
|
|
3947
4262
|
}, /*liftString:*/FfiConverterString.lift);
|
|
3948
4263
|
}
|
|
3949
4264
|
|
|
4265
|
+
/**
|
|
4266
|
+
* Mark a wallet-known transaction as evicted from the mempool
|
|
4267
|
+
*
|
|
4268
|
+
* Bark calls this when a CPFP it broadcast was RBF-replaced by a competing
|
|
4269
|
+
* party, so the tx's inputs should return to coin selection immediately
|
|
4270
|
+
* instead of waiting for the sync eviction grace period. Only ever called
|
|
4271
|
+
* for a tx that has definitively been superseded on-chain.
|
|
4272
|
+
*
|
|
4273
|
+
* # Arguments
|
|
4274
|
+
* * `txid` - Hex-encoded transaction id
|
|
4275
|
+
*/
|
|
4276
|
+
evictTx(txid) /*throws*/{
|
|
4277
|
+
uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError), /*caller:*/callStatus => {
|
|
4278
|
+
(0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(uniffiTypeCustomOnchainWalletCallbacksImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid), callStatus);
|
|
4279
|
+
}, /*liftString:*/FfiConverterString.lift);
|
|
4280
|
+
}
|
|
4281
|
+
|
|
3950
4282
|
/**
|
|
3951
4283
|
* Create a signed P2A CPFP transaction
|
|
3952
4284
|
*
|
|
@@ -4136,6 +4468,19 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
4136
4468
|
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
4137
4469
|
return uniffiResult;
|
|
4138
4470
|
},
|
|
4471
|
+
evictTx: (uniffiHandle, txid) => {
|
|
4472
|
+
const uniffiMakeCall = () => {
|
|
4473
|
+
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
4474
|
+
return jsCallback.evictTx(FfiConverterString.lift(txid));
|
|
4475
|
+
};
|
|
4476
|
+
const uniffiResult = _uniffiBindgenReactNative.UniffiResult.ready();
|
|
4477
|
+
const uniffiHandleSuccess = obj => {};
|
|
4478
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
4479
|
+
_uniffiBindgenReactNative.UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
4480
|
+
};
|
|
4481
|
+
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
4482
|
+
return uniffiResult;
|
|
4483
|
+
},
|
|
4139
4484
|
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
4140
4485
|
const uniffiMakeCall = () => {
|
|
4141
4486
|
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
@@ -4391,6 +4736,26 @@ class OnchainWallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4391
4736
|
}
|
|
4392
4737
|
}
|
|
4393
4738
|
|
|
4739
|
+
/**
|
|
4740
|
+
* Mark a wallet-known transaction as evicted from the mempool, so its
|
|
4741
|
+
* inputs return to coin selection immediately. Only for a tx that has
|
|
4742
|
+
* definitively been superseded on-chain (e.g. an RBF-replaced exit CPFP);
|
|
4743
|
+
* evicting a still-in-flight tx invites a self-inflicted double-spend.
|
|
4744
|
+
*/
|
|
4745
|
+
async evictTx(txid, asyncOpts_) /*throws*/{
|
|
4746
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4747
|
+
try {
|
|
4748
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4749
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(uniffiTypeOnchainWalletObjectFactory.clonePointer(this), FfiConverterString.lower(txid));
|
|
4750
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4751
|
+
} catch (__error) {
|
|
4752
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4753
|
+
__error.stack = __stack;
|
|
4754
|
+
}
|
|
4755
|
+
throw __error;
|
|
4756
|
+
}
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4394
4759
|
/**
|
|
4395
4760
|
* Cached network fee-rate estimates from the wallet's chain source.
|
|
4396
4761
|
*/
|
|
@@ -4948,6 +5313,34 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4948
5313
|
throw __error;
|
|
4949
5314
|
}
|
|
4950
5315
|
}
|
|
5316
|
+
|
|
5317
|
+
/**
|
|
5318
|
+
* Estimate the onchain cost of unilaterally (emergency) exiting VTXOs.
|
|
5319
|
+
* Mirrors bark-rest `GET /exits/fee`.
|
|
5320
|
+
*
|
|
5321
|
+
* Pass an empty `vtxo_ids` to price exiting the whole wallet (every
|
|
5322
|
+
* spendable VTXO). `fee_rate_sat_per_vb` applies to both legs; omit it to
|
|
5323
|
+
* use the chain's fast rate for the broadcast leg and regular rate for
|
|
5324
|
+
* the claim leg. `destination` only affects the claim transaction's weight.
|
|
5325
|
+
*
|
|
5326
|
+
* The onchain wallet is synced first so `fundable` reflects the current
|
|
5327
|
+
* confirmed balance. Requires a BDK onchain wallet: callback-backed
|
|
5328
|
+
* wallets (`CustomOnchainWalletCallbacks`) cannot simulate the CPFP walk
|
|
5329
|
+
* and return an error.
|
|
5330
|
+
*/
|
|
5331
|
+
async estimateEmergencyExitFee(vtxoIds, feeRateSatPerVb, destination, asyncOpts_) /*throws*/{
|
|
5332
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5333
|
+
try {
|
|
5334
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
5335
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_emergency_exit_fee(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterArrayString.lower(vtxoIds), FfiConverterOptionalUInt64.lower(feeRateSatPerVb), FfiConverterOptionalString.lower(destination));
|
|
5336
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeEmergencyExitFeeEstimate.lift.bind(FfiConverterTypeEmergencyExitFeeEstimate), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
5337
|
+
} catch (__error) {
|
|
5338
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
5339
|
+
__error.stack = __stack;
|
|
5340
|
+
}
|
|
5341
|
+
throw __error;
|
|
5342
|
+
}
|
|
5343
|
+
}
|
|
4951
5344
|
async estimateLightningReceiveFee(amountSats, asyncOpts_) /*throws*/{
|
|
4952
5345
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4953
5346
|
try {
|
|
@@ -5624,21 +6017,32 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
5624
6017
|
}
|
|
5625
6018
|
|
|
5626
6019
|
/**
|
|
5627
|
-
*
|
|
5628
|
-
* if
|
|
5629
|
-
*
|
|
5630
|
-
* Recovery only runs on the open that creates the wallet locally, and not
|
|
5631
|
-
* at all when `WalletOpenArgs.skip_recovery` is set, so this is empty on
|
|
5632
|
-
* every subsequent open. It is also empty when the scan itself failed
|
|
5633
|
-
* outright — bark logs that and lets open succeed, so an empty result does
|
|
5634
|
-
* not prove no funds are missing. `isComplete == false` means funds may
|
|
5635
|
-
* still be missing; retry the report's `failed` ids with `recoverVtxos`.
|
|
6020
|
+
* The report of the seed-recovery scan that ran during `Wallet::open`, or
|
|
6021
|
+
* none if the scan did not complete. Use `recovery_status` to tell a scan
|
|
6022
|
+
* that failed apart from one that never ran.
|
|
5636
6023
|
*/
|
|
5637
6024
|
recoveryReport() {
|
|
5638
6025
|
return FfiConverterOptionalTypeRecoveryReport.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
5639
6026
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
5640
6027
|
}, /*liftString:*/FfiConverterString.lift));
|
|
5641
6028
|
}
|
|
6029
|
+
|
|
6030
|
+
/**
|
|
6031
|
+
* Outcome of the seed-recovery scan that ran during `Wallet::open`.
|
|
6032
|
+
*
|
|
6033
|
+
* Recovery only runs on the open that creates the wallet locally, and not
|
|
6034
|
+
* at all when `WalletOpenArgs.skip_recovery` is set, so this is `NotRun`
|
|
6035
|
+
* on every subsequent open. `Failed` means the scan errored before
|
|
6036
|
+
* producing a report — bark logs that and lets open succeed — so funds
|
|
6037
|
+
* may be missing until a retry; `Completed` carries the report, and
|
|
6038
|
+
* `isComplete == false` there means funds may still be missing. Retry the
|
|
6039
|
+
* report's `failed` ids with `recoverVtxos`.
|
|
6040
|
+
*/
|
|
6041
|
+
recoveryStatus() {
|
|
6042
|
+
return FfiConverterTypeRecoveryStatus.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
6043
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_status(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
6044
|
+
}, /*liftString:*/FfiConverterString.lift));
|
|
6045
|
+
}
|
|
5642
6046
|
async refreshServer(asyncOpts_) /*throws*/{
|
|
5643
6047
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5644
6048
|
try {
|
|
@@ -5820,6 +6224,25 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
5820
6224
|
throw __error;
|
|
5821
6225
|
}
|
|
5822
6226
|
}
|
|
6227
|
+
|
|
6228
|
+
/**
|
|
6229
|
+
* Stop the background daemon and wait until its tasks have finished, so
|
|
6230
|
+
* nothing runs in the background afterwards (e.g. before deleting the
|
|
6231
|
+
* wallet's datadir). No-op when no daemon is running.
|
|
6232
|
+
*/
|
|
6233
|
+
async stopDaemonWait(asyncOpts_) /*throws*/{
|
|
6234
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6235
|
+
try {
|
|
6236
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
6237
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
6238
|
+
}, /*pollFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_poll_void, /*cancelFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_cancel_void, /*completeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_complete_void, /*freeFunc:*/(0, _barkFfi.default)().ubrn_ffi_bark_ffi_rust_future_free_void, /*liftFunc:*/_v => {}, /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
6239
|
+
} catch (__error) {
|
|
6240
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
6241
|
+
__error.stack = __stack;
|
|
6242
|
+
}
|
|
6243
|
+
throw __error;
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
5823
6246
|
async stuckFailedLightningSends(asyncOpts_) /*throws*/{
|
|
5824
6247
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5825
6248
|
try {
|
|
@@ -5932,6 +6355,13 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
5932
6355
|
throw __error;
|
|
5933
6356
|
}
|
|
5934
6357
|
}
|
|
6358
|
+
|
|
6359
|
+
/**
|
|
6360
|
+
* Whether this wallet can pay `address` out-of-round: same network and
|
|
6361
|
+
* server, a supported VTXO policy, and only delivery mechanisms this bark
|
|
6362
|
+
* supports. An address listing no delivery mechanism is valid. Errors only
|
|
6363
|
+
* when the address does not parse.
|
|
6364
|
+
*/
|
|
5935
6365
|
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
5936
6366
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5937
6367
|
try {
|
|
@@ -6187,13 +6617,16 @@ function uniffiEnsureInitialized() {
|
|
|
6187
6617
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx() !== 17970) {
|
|
6188
6618
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx");
|
|
6189
6619
|
}
|
|
6190
|
-
if ((0, _barkFfi.default)().
|
|
6620
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx() !== 36298) {
|
|
6621
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx");
|
|
6622
|
+
}
|
|
6623
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp() !== 58200) {
|
|
6191
6624
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
6192
6625
|
}
|
|
6193
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !==
|
|
6626
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp() !== 64815) {
|
|
6194
6627
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
6195
6628
|
}
|
|
6196
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !==
|
|
6629
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync() !== 29018) {
|
|
6197
6630
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");
|
|
6198
6631
|
}
|
|
6199
6632
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 30279) {
|
|
@@ -6202,6 +6635,9 @@ function uniffiEnsureInitialized() {
|
|
|
6202
6635
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 39213) {
|
|
6203
6636
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
6204
6637
|
}
|
|
6638
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx() !== 26786) {
|
|
6639
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx");
|
|
6640
|
+
}
|
|
6205
6641
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates() !== 30741) {
|
|
6206
6642
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates");
|
|
6207
6643
|
}
|
|
@@ -6295,6 +6731,9 @@ function uniffiEnsureInitialized() {
|
|
|
6295
6731
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee() !== 55967) {
|
|
6296
6732
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee");
|
|
6297
6733
|
}
|
|
6734
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee() !== 44713) {
|
|
6735
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_emergency_exit_fee");
|
|
6736
|
+
}
|
|
6298
6737
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee() !== 33637) {
|
|
6299
6738
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee");
|
|
6300
6739
|
}
|
|
@@ -6451,9 +6890,12 @@ function uniffiEnsureInitialized() {
|
|
|
6451
6890
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos() !== 640) {
|
|
6452
6891
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");
|
|
6453
6892
|
}
|
|
6454
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report() !==
|
|
6893
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_report() !== 10331) {
|
|
6455
6894
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");
|
|
6456
6895
|
}
|
|
6896
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recovery_status() !== 14132) {
|
|
6897
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_status");
|
|
6898
|
+
}
|
|
6457
6899
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 41162) {
|
|
6458
6900
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
6459
6901
|
}
|
|
@@ -6493,6 +6935,9 @@ function uniffiEnsureInitialized() {
|
|
|
6493
6935
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 7109) {
|
|
6494
6936
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
6495
6937
|
}
|
|
6938
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait() !== 1734) {
|
|
6939
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait");
|
|
6940
|
+
}
|
|
6496
6941
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 31451) {
|
|
6497
6942
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
|
|
6498
6943
|
}
|
|
@@ -6517,7 +6962,7 @@ function uniffiEnsureInitialized() {
|
|
|
6517
6962
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos() !== 42168) {
|
|
6518
6963
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos");
|
|
6519
6964
|
}
|
|
6520
|
-
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !==
|
|
6965
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address() !== 30498) {
|
|
6521
6966
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
6522
6967
|
}
|
|
6523
6968
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded() !== 25637) {
|
|
@@ -6552,6 +6997,7 @@ var _default = exports.default = Object.freeze({
|
|
|
6552
6997
|
FfiConverterTypeCpfpParams,
|
|
6553
6998
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|
|
6554
6999
|
FfiConverterTypeDestination,
|
|
7000
|
+
FfiConverterTypeEmergencyExitFeeEstimate,
|
|
6555
7001
|
FfiConverterTypeError,
|
|
6556
7002
|
FfiConverterTypeExitCancelFailure,
|
|
6557
7003
|
FfiConverterTypeExitCancelResult,
|
|
@@ -6587,7 +7033,9 @@ var _default = exports.default = Object.freeze({
|
|
|
6587
7033
|
FfiConverterTypePpmExpiryFeeEntry,
|
|
6588
7034
|
FfiConverterTypeRecoveryBucket,
|
|
6589
7035
|
FfiConverterTypeRecoveryReport,
|
|
7036
|
+
FfiConverterTypeRecoveryStatus,
|
|
6590
7037
|
FfiConverterTypeRefreshFees,
|
|
7038
|
+
FfiConverterTypeRoundFlowKind,
|
|
6591
7039
|
FfiConverterTypeRoundState,
|
|
6592
7040
|
FfiConverterTypeVtxo,
|
|
6593
7041
|
FfiConverterTypeVtxoLockHolder,
|