@secondts/bark-react-native 0.22.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 +319 -27
- package/cpp/generated/bark.hpp +8 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +385 -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 +384 -19
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +16 -6
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +298 -20
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +16 -6
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +298 -20
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +28 -5
- package/src/generated/bark.ts +555 -30
package/cpp/generated/bark.hpp
CHANGED
|
@@ -34,6 +34,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
34
34
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
35
35
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
36
36
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
37
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
37
38
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
38
39
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
39
40
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -46,6 +47,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
46
47
|
jsi::Value cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_custom(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
47
48
|
jsi::Value cpp_uniffi_bark_ffi_fn_constructor_onchainwallet_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
48
49
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_onchainwallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
50
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_onchainwallet_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
49
51
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_onchainwallet_fee_rates(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
50
52
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_onchainwallet_initial_scan(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
51
53
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_onchainwallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -134,6 +136,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
134
136
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_properties(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
135
137
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
136
138
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
139
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_recovery_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
137
140
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
138
141
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
139
142
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -147,6 +150,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
147
150
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
148
151
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos_including_non_standard(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
149
152
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
153
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stop_daemon_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
150
154
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
151
155
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
152
156
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -226,11 +230,13 @@ class NativeBark : public jsi::HostObject {
|
|
|
226
230
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
227
231
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_is_mine(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
228
232
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
233
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
229
234
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
230
235
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
231
236
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
232
237
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_barklogger_log(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
233
238
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
239
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_evict_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
234
240
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
235
241
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_initial_scan(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
236
242
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_onchainwallet_new_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -316,6 +322,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
316
322
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_properties(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
317
323
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
318
324
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_report(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
325
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_recovery_status(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
319
326
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_server(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
320
327
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
321
328
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -329,6 +336,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
329
336
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
330
337
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos_including_non_standard(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
331
338
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
339
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stop_daemon_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
332
340
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
333
341
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
334
342
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_sync_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAi1BA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AA6KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|
|
@@ -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.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;
|
|
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();
|
|
@@ -1532,15 +1532,19 @@ const FfiConverterTypeRoundState = (() => {
|
|
|
1532
1532
|
read(from) {
|
|
1533
1533
|
return {
|
|
1534
1534
|
id: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
1535
|
-
ongoing: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
1535
|
+
ongoing: _uniffiBindgenReactNative.FfiConverterBool.read(from),
|
|
1536
|
+
state: FfiConverterTypeRoundFlowKind.read(from),
|
|
1537
|
+
scheduledHeight: FfiConverterOptionalUInt32.read(from)
|
|
1536
1538
|
};
|
|
1537
1539
|
}
|
|
1538
1540
|
write(value, into) {
|
|
1539
1541
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.id, into);
|
|
1540
1542
|
_uniffiBindgenReactNative.FfiConverterBool.write(value.ongoing, into);
|
|
1543
|
+
FfiConverterTypeRoundFlowKind.write(value.state, into);
|
|
1544
|
+
FfiConverterOptionalUInt32.write(value.scheduledHeight, into);
|
|
1541
1545
|
}
|
|
1542
1546
|
allocationSize(value) {
|
|
1543
|
-
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);
|
|
1544
1548
|
}
|
|
1545
1549
|
}
|
|
1546
1550
|
return new FFIConverter();
|
|
@@ -3281,6 +3285,266 @@ const FfiConverterTypeOnchainUtxo = (() => {
|
|
|
3281
3285
|
return new FFIConverter();
|
|
3282
3286
|
})();
|
|
3283
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
|
+
|
|
3284
3548
|
// Enum: VtxoLockHolder
|
|
3285
3549
|
let VtxoLockHolder_Tags = exports.VtxoLockHolder_Tags = /*#__PURE__*/function (VtxoLockHolder_Tags) {
|
|
3286
3550
|
VtxoLockHolder_Tags["Action"] = "Action";
|
|
@@ -3998,6 +4262,23 @@ class CustomOnchainWalletCallbacksImpl extends _uniffiBindgenReactNative.UniffiA
|
|
|
3998
4262
|
}, /*liftString:*/FfiConverterString.lift);
|
|
3999
4263
|
}
|
|
4000
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
|
+
|
|
4001
4282
|
/**
|
|
4002
4283
|
* Create a signed P2A CPFP transaction
|
|
4003
4284
|
*
|
|
@@ -4187,6 +4468,19 @@ const uniffiCallbackInterfaceCustomOnchainWalletCallbacks = {
|
|
|
4187
4468
|
(0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/Exception.instanceOf, /*lowerError:*/FfiConverterTypeError.lower.bind(FfiConverterTypeError), /*lowerString:*/FfiConverterString.lower);
|
|
4188
4469
|
return uniffiResult;
|
|
4189
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
|
+
},
|
|
4190
4484
|
makeSignedP2aCpfp: (uniffiHandle, params) => {
|
|
4191
4485
|
const uniffiMakeCall = () => {
|
|
4192
4486
|
const jsCallback = FfiConverterTypeCustomOnchainWalletCallbacks.lift(uniffiHandle);
|
|
@@ -4442,6 +4736,26 @@ class OnchainWallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4442
4736
|
}
|
|
4443
4737
|
}
|
|
4444
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
|
+
|
|
4445
4759
|
/**
|
|
4446
4760
|
* Cached network fee-rate estimates from the wallet's chain source.
|
|
4447
4761
|
*/
|
|
@@ -5703,21 +6017,32 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
5703
6017
|
}
|
|
5704
6018
|
|
|
5705
6019
|
/**
|
|
5706
|
-
*
|
|
5707
|
-
* if
|
|
5708
|
-
*
|
|
5709
|
-
* Recovery only runs on the open that creates the wallet locally, and not
|
|
5710
|
-
* at all when `WalletOpenArgs.skip_recovery` is set, so this is empty on
|
|
5711
|
-
* every subsequent open. It is also empty when the scan itself failed
|
|
5712
|
-
* outright — bark logs that and lets open succeed, so an empty result does
|
|
5713
|
-
* not prove no funds are missing. `isComplete == false` means funds may
|
|
5714
|
-
* 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.
|
|
5715
6023
|
*/
|
|
5716
6024
|
recoveryReport() {
|
|
5717
6025
|
return FfiConverterOptionalTypeRecoveryReport.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
|
|
5718
6026
|
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_recovery_report(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
|
|
5719
6027
|
}, /*liftString:*/FfiConverterString.lift));
|
|
5720
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
|
+
}
|
|
5721
6046
|
async refreshServer(asyncOpts_) /*throws*/{
|
|
5722
6047
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5723
6048
|
try {
|
|
@@ -5899,6 +6224,25 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
5899
6224
|
throw __error;
|
|
5900
6225
|
}
|
|
5901
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
|
+
}
|
|
5902
6246
|
async stuckFailedLightningSends(asyncOpts_) /*throws*/{
|
|
5903
6247
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
5904
6248
|
try {
|
|
@@ -6011,6 +6355,13 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
6011
6355
|
throw __error;
|
|
6012
6356
|
}
|
|
6013
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
|
+
*/
|
|
6014
6365
|
async validateArkoorAddress(address, asyncOpts_) /*throws*/{
|
|
6015
6366
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
6016
6367
|
try {
|
|
@@ -6266,13 +6617,16 @@ function uniffiEnsureInitialized() {
|
|
|
6266
6617
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx() !== 17970) {
|
|
6267
6618
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_register_tx");
|
|
6268
6619
|
}
|
|
6269
|
-
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) {
|
|
6270
6624
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp");
|
|
6271
6625
|
}
|
|
6272
|
-
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) {
|
|
6273
6627
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp");
|
|
6274
6628
|
}
|
|
6275
|
-
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) {
|
|
6276
6630
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_sync");
|
|
6277
6631
|
}
|
|
6278
6632
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_barklogger_log() !== 30279) {
|
|
@@ -6281,6 +6635,9 @@ function uniffiEnsureInitialized() {
|
|
|
6281
6635
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 39213) {
|
|
6282
6636
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
|
|
6283
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
|
+
}
|
|
6284
6641
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates() !== 30741) {
|
|
6285
6642
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_fee_rates");
|
|
6286
6643
|
}
|
|
@@ -6533,9 +6890,12 @@ function uniffiEnsureInitialized() {
|
|
|
6533
6890
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_recover_vtxos() !== 640) {
|
|
6534
6891
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recover_vtxos");
|
|
6535
6892
|
}
|
|
6536
|
-
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) {
|
|
6537
6894
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_recovery_report");
|
|
6538
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
|
+
}
|
|
6539
6899
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server() !== 41162) {
|
|
6540
6900
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_refresh_server");
|
|
6541
6901
|
}
|
|
@@ -6575,6 +6935,9 @@ function uniffiEnsureInitialized() {
|
|
|
6575
6935
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon() !== 7109) {
|
|
6576
6936
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stop_daemon");
|
|
6577
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
|
+
}
|
|
6578
6941
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends() !== 31451) {
|
|
6579
6942
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends");
|
|
6580
6943
|
}
|
|
@@ -6599,7 +6962,7 @@ function uniffiEnsureInitialized() {
|
|
|
6599
6962
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos() !== 42168) {
|
|
6600
6963
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_unlock_vtxos");
|
|
6601
6964
|
}
|
|
6602
|
-
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) {
|
|
6603
6966
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address");
|
|
6604
6967
|
}
|
|
6605
6968
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxo_encoded() !== 25637) {
|
|
@@ -6670,7 +7033,9 @@ var _default = exports.default = Object.freeze({
|
|
|
6670
7033
|
FfiConverterTypePpmExpiryFeeEntry,
|
|
6671
7034
|
FfiConverterTypeRecoveryBucket,
|
|
6672
7035
|
FfiConverterTypeRecoveryReport,
|
|
7036
|
+
FfiConverterTypeRecoveryStatus,
|
|
6673
7037
|
FfiConverterTypeRefreshFees,
|
|
7038
|
+
FfiConverterTypeRoundFlowKind,
|
|
6674
7039
|
FfiConverterTypeRoundState,
|
|
6675
7040
|
FfiConverterTypeVtxo,
|
|
6676
7041
|
FfiConverterTypeVtxoLockHolder,
|