@secondts/bark-react-native 0.26.1 → 0.28.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 +86 -32
- package/cpp/generated/bark.cpp +203 -19
- package/cpp/generated/bark.hpp +10 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +318 -70
- 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 +317 -69
- 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 +869 -79
- 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 +869 -79
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -9
- package/src/generated/bark-ffi.ts +16 -6
- package/src/generated/bark.ts +1470 -150
package/README.md
CHANGED
|
@@ -11,58 +11,112 @@ Bark is an implementation of the Ark protocol on bitcoin, led by [Second](https:
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
### Requirements
|
|
15
|
+
|
|
16
|
+
- React Native 0.75+, or Expo SDK 52+
|
|
17
|
+
- The New Architecture enabled
|
|
18
|
+
- Hermes, the default JavaScript engine
|
|
15
19
|
|
|
16
20
|
### Expo
|
|
17
21
|
|
|
18
22
|
1. Install the package:
|
|
19
23
|
|
|
20
|
-
```bash
|
|
21
|
-
npx expo install @secondts/bark-react-native
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Warning: If you are using pnpm v10+, run `pnpm approve-builds` and select `@secondts/bark-react-native` to allow the postinstall script to download the prebuilt native binaries.
|
|
24
|
+
```bash
|
|
25
|
+
npx expo install @secondts/bark-react-native
|
|
26
|
+
```
|
|
25
27
|
|
|
26
|
-
2.
|
|
28
|
+
2. Generate the native projects and run a development build:
|
|
27
29
|
|
|
28
|
-
```bash
|
|
29
|
-
npx expo prebuild
|
|
30
|
-
|
|
30
|
+
```bash
|
|
31
|
+
npx expo prebuild
|
|
32
|
+
npx expo run:ios # or: npx expo run:android
|
|
33
|
+
```
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
No config plugin is needed. If your `app.json` or `app.config.js` still lists `@secondts/bark-react-native` under `plugins`, the entry does nothing and can be removed.
|
|
35
|
+
The package contains native code, so it doesn't work in Expo Go. No config plugin is needed.
|
|
35
36
|
|
|
36
37
|
### Bare React Native
|
|
37
38
|
|
|
38
|
-
1. Install the package
|
|
39
|
+
1. Install the package:
|
|
39
40
|
|
|
40
|
-
```bash
|
|
41
|
-
npm install @secondts/bark-react-native
|
|
41
|
+
```bash
|
|
42
|
+
npm install @secondts/bark-react-native
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. On iOS, install the pods:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cd ios && pod install
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import {
|
|
55
|
+
generateMnemonic,
|
|
56
|
+
Network,
|
|
57
|
+
Wallet,
|
|
58
|
+
WalletOpenArgs,
|
|
59
|
+
type Config,
|
|
60
|
+
} from "@secondts/bark-react-native";
|
|
61
|
+
|
|
62
|
+
// datadir: a writable directory as a plain path (no file:// prefix),
|
|
63
|
+
// e.g. from expo-file-system or react-native-fs.
|
|
64
|
+
export async function quickStart(datadir: string) {
|
|
65
|
+
// Store the mnemonic securely: you need it to reopen the wallet.
|
|
66
|
+
const mnemonic = generateMnemonic();
|
|
67
|
+
|
|
68
|
+
const config: Config = {
|
|
69
|
+
serverAddress: "https://ark.signet.2nd.dev",
|
|
70
|
+
esploraAddress: "https://esplora.signet.2nd.dev",
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// Opens the wallet in datadir, creating it on first launch.
|
|
74
|
+
const wallet = await Wallet.open(
|
|
75
|
+
Network.Signet,
|
|
76
|
+
mnemonic,
|
|
77
|
+
config,
|
|
78
|
+
WalletOpenArgs.create({ datadir }),
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
await wallet.sync();
|
|
82
|
+
|
|
83
|
+
const { spendableSats } = await wallet.balance();
|
|
84
|
+
console.log(`Spendable: ${spendableSats} sats`);
|
|
85
|
+
|
|
86
|
+
const address = await wallet.newAddress();
|
|
87
|
+
console.log(`Ark address: ${address}`);
|
|
88
|
+
}
|
|
42
89
|
```
|
|
43
90
|
|
|
44
|
-
|
|
91
|
+
Amounts in sats are `bigint`.
|
|
45
92
|
|
|
46
|
-
|
|
93
|
+
## Example app
|
|
47
94
|
|
|
48
|
-
|
|
95
|
+
[bark-expo-example](https://gitlab.com/ark-bitcoin/labs/bark-expo-example) is an Expo wallet built on this package that sends and receives over Ark and Lightning, on signet or mainnet.
|
|
49
96
|
|
|
50
|
-
|
|
51
|
-
# Install latest beta
|
|
52
|
-
npx expo install @secondts/bark-react-native@beta
|
|
53
|
-
```
|
|
97
|
+
## Troubleshooting
|
|
54
98
|
|
|
55
|
-
|
|
56
|
-
# Or install a specific beta version
|
|
57
|
-
npx expo install @secondts/bark-react-native@0.26.1
|
|
58
|
-
```
|
|
99
|
+
### Native binaries missing after install
|
|
59
100
|
|
|
60
|
-
|
|
101
|
+
A `postinstall` script downloads the prebuilt native libraries from the GitLab release. If it didn't run, the app fails on startup:
|
|
61
102
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
103
|
+
- **pnpm v10+:** run `pnpm approve-builds` and select `@secondts/bark-react-native`.
|
|
104
|
+
- **Bun:** add `@secondts/bark-react-native` to `trustedDependencies` in your `package.json`.
|
|
105
|
+
- Installing with `--ignore-scripts` skips the download.
|
|
106
|
+
- The download needs network access to `gitlab.com`.
|
|
107
|
+
|
|
108
|
+
## Resources
|
|
109
|
+
|
|
110
|
+
- [React Native SDK guide](https://second.tech/docs/bark-sdk/react-native)
|
|
111
|
+
- [Bark SDK documentation](https://second.tech/docs/bark-sdk)
|
|
112
|
+
- [Learn about Ark](https://second.tech/docs/learn/intro)
|
|
113
|
+
- [bark source code](https://gitlab.com/ark-bitcoin/bark)
|
|
114
|
+
|
|
115
|
+
## Support
|
|
116
|
+
|
|
117
|
+
- [Community forum](https://chat.second.tech)
|
|
118
|
+
- [GitLab issues](https://gitlab.com/ark-bitcoin/bark-ffi-bindings/-/issues)
|
|
65
119
|
|
|
66
120
|
## License
|
|
67
121
|
|
|
68
|
-
Released under the
|
|
122
|
+
Released under the [MIT](https://gitlab.com/ark-bitcoin/bark-ffi-bindings/-/blob/master/LICENSE) license.
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -403,33 +403,37 @@ extern "C" {
|
|
|
403
403
|
RustBuffer options
|
|
404
404
|
);
|
|
405
405
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_all(
|
|
406
|
-
/*handle*/ uint64_t ptr
|
|
406
|
+
/*handle*/ uint64_t ptr,
|
|
407
|
+
RustBuffer expiry_height
|
|
407
408
|
);
|
|
408
409
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_amount(
|
|
409
410
|
/*handle*/ uint64_t ptr,
|
|
410
|
-
uint64_t amount_sats
|
|
411
|
+
uint64_t amount_sats,
|
|
412
|
+
RustBuffer expiry_height
|
|
411
413
|
);
|
|
412
414
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_funding_address(
|
|
413
|
-
/*handle*/ uint64_t ptr
|
|
415
|
+
/*handle*/ uint64_t ptr,
|
|
416
|
+
RustBuffer expiry_height
|
|
414
417
|
);
|
|
415
418
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_psbt(
|
|
416
419
|
/*handle*/ uint64_t ptr,
|
|
417
420
|
RustBuffer psbt_base64,
|
|
418
|
-
|
|
419
|
-
uint32_t expiry_height
|
|
421
|
+
RustBuffer funding
|
|
420
422
|
);
|
|
421
423
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
|
|
422
424
|
/*handle*/ uint64_t ptr,
|
|
423
425
|
uint64_t amount_sats,
|
|
424
426
|
RustBuffer description,
|
|
425
|
-
RustBuffer token
|
|
427
|
+
RustBuffer token,
|
|
428
|
+
RustBuffer expiry_secs
|
|
426
429
|
);
|
|
427
430
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(
|
|
428
431
|
/*handle*/ uint64_t ptr,
|
|
429
432
|
uint64_t amount_sats,
|
|
430
433
|
RustBuffer claim_destination,
|
|
431
434
|
RustBuffer description,
|
|
432
|
-
RustBuffer token
|
|
435
|
+
RustBuffer token,
|
|
436
|
+
RustBuffer expiry_secs
|
|
433
437
|
);
|
|
434
438
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_broadcast_tx(
|
|
435
439
|
/*handle*/ uint64_t ptr,
|
|
@@ -572,6 +576,11 @@ extern "C" {
|
|
|
572
576
|
/*handle*/ uint64_t ptr,
|
|
573
577
|
RustBuffer payment_hash
|
|
574
578
|
);
|
|
579
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address(
|
|
580
|
+
/*handle*/ uint64_t ptr,
|
|
581
|
+
uint32_t keypair_index,
|
|
582
|
+
uint32_t expiry_height
|
|
583
|
+
);
|
|
575
584
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(
|
|
576
585
|
/*handle*/ uint64_t ptr,
|
|
577
586
|
RustBuffer payment_hash
|
|
@@ -702,12 +711,20 @@ extern "C" {
|
|
|
702
711
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(
|
|
703
712
|
/*handle*/ uint64_t ptr
|
|
704
713
|
);
|
|
714
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pending_recovery(
|
|
715
|
+
/*handle*/ uint64_t ptr
|
|
716
|
+
);
|
|
705
717
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(
|
|
706
718
|
/*handle*/ uint64_t ptr
|
|
707
719
|
);
|
|
708
720
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_pending_round_states(
|
|
709
721
|
/*handle*/ uint64_t ptr
|
|
710
722
|
);
|
|
723
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit(
|
|
724
|
+
/*handle*/ uint64_t ptr,
|
|
725
|
+
RustBuffer vtxo_ids,
|
|
726
|
+
RustBuffer fee_rate_sat_per_vb
|
|
727
|
+
);
|
|
711
728
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_progress_exits(
|
|
712
729
|
/*handle*/ uint64_t ptr,
|
|
713
730
|
RustBuffer fee_rate_sat_per_vb
|
|
@@ -747,6 +764,10 @@ extern "C" {
|
|
|
747
764
|
RustBuffer vtxo_ids,
|
|
748
765
|
uint32_t scheduled_height
|
|
749
766
|
);
|
|
767
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions(
|
|
768
|
+
/*handle*/ uint64_t ptr,
|
|
769
|
+
RustBuffer vtxo_ids
|
|
770
|
+
);
|
|
750
771
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_run_daemon(
|
|
751
772
|
/*handle*/ uint64_t ptr
|
|
752
773
|
);
|
|
@@ -807,6 +828,9 @@ extern "C" {
|
|
|
807
828
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
|
|
808
829
|
/*handle*/ uint64_t ptr
|
|
809
830
|
);
|
|
831
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery(
|
|
832
|
+
/*handle*/ uint64_t ptr
|
|
833
|
+
);
|
|
810
834
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(
|
|
811
835
|
/*handle*/ uint64_t ptr,
|
|
812
836
|
int8_t wait
|
|
@@ -1239,6 +1263,8 @@ extern "C" {
|
|
|
1239
1263
|
);
|
|
1240
1264
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(
|
|
1241
1265
|
);
|
|
1266
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address(
|
|
1267
|
+
);
|
|
1242
1268
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(
|
|
1243
1269
|
);
|
|
1244
1270
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(
|
|
@@ -1301,10 +1327,14 @@ extern "C" {
|
|
|
1301
1327
|
);
|
|
1302
1328
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends(
|
|
1303
1329
|
);
|
|
1330
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_recovery(
|
|
1331
|
+
);
|
|
1304
1332
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos(
|
|
1305
1333
|
);
|
|
1306
1334
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_pending_round_states(
|
|
1307
1335
|
);
|
|
1336
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit(
|
|
1337
|
+
);
|
|
1308
1338
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_progress_exits(
|
|
1309
1339
|
);
|
|
1310
1340
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds(
|
|
@@ -1325,6 +1355,8 @@ extern "C" {
|
|
|
1325
1355
|
);
|
|
1326
1356
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(
|
|
1327
1357
|
);
|
|
1358
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions(
|
|
1359
|
+
);
|
|
1328
1360
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_run_daemon(
|
|
1329
1361
|
);
|
|
1330
1362
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(
|
|
@@ -1357,6 +1389,8 @@ extern "C" {
|
|
|
1357
1389
|
);
|
|
1358
1390
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(
|
|
1359
1391
|
);
|
|
1392
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery(
|
|
1393
|
+
);
|
|
1360
1394
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives(
|
|
1361
1395
|
);
|
|
1362
1396
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive(
|
|
@@ -5326,7 +5360,7 @@ NativeBark::NativeBark(
|
|
|
5326
5360
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_all"] = jsi::Function::createFromHostFunction(
|
|
5327
5361
|
rt,
|
|
5328
5362
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_all"),
|
|
5329
|
-
|
|
5363
|
+
2,
|
|
5330
5364
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5331
5365
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_all(rt, thisVal, args, count);
|
|
5332
5366
|
}
|
|
@@ -5334,7 +5368,7 @@ NativeBark::NativeBark(
|
|
|
5334
5368
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount"] = jsi::Function::createFromHostFunction(
|
|
5335
5369
|
rt,
|
|
5336
5370
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount"),
|
|
5337
|
-
|
|
5371
|
+
3,
|
|
5338
5372
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5339
5373
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(rt, thisVal, args, count);
|
|
5340
5374
|
}
|
|
@@ -5342,7 +5376,7 @@ NativeBark::NativeBark(
|
|
|
5342
5376
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
5343
5377
|
rt,
|
|
5344
5378
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"),
|
|
5345
|
-
|
|
5379
|
+
2,
|
|
5346
5380
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5347
5381
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(rt, thisVal, args, count);
|
|
5348
5382
|
}
|
|
@@ -5350,7 +5384,7 @@ NativeBark::NativeBark(
|
|
|
5350
5384
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"] = jsi::Function::createFromHostFunction(
|
|
5351
5385
|
rt,
|
|
5352
5386
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"),
|
|
5353
|
-
|
|
5387
|
+
3,
|
|
5354
5388
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5355
5389
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(rt, thisVal, args, count);
|
|
5356
5390
|
}
|
|
@@ -5358,7 +5392,7 @@ NativeBark::NativeBark(
|
|
|
5358
5392
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
5359
5393
|
rt,
|
|
5360
5394
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"),
|
|
5361
|
-
|
|
5395
|
+
5,
|
|
5362
5396
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5363
5397
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(rt, thisVal, args, count);
|
|
5364
5398
|
}
|
|
@@ -5366,7 +5400,7 @@ NativeBark::NativeBark(
|
|
|
5366
5400
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address"] = jsi::Function::createFromHostFunction(
|
|
5367
5401
|
rt,
|
|
5368
5402
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address"),
|
|
5369
|
-
|
|
5403
|
+
6,
|
|
5370
5404
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5371
5405
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(rt, thisVal, args, count);
|
|
5372
5406
|
}
|
|
@@ -5643,6 +5677,14 @@ NativeBark::NativeBark(
|
|
|
5643
5677
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
5644
5678
|
}
|
|
5645
5679
|
);
|
|
5680
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
5681
|
+
rt,
|
|
5682
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address"),
|
|
5683
|
+
3,
|
|
5684
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5685
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address(rt, thisVal, args, count);
|
|
5686
|
+
}
|
|
5687
|
+
);
|
|
5646
5688
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state"] = jsi::Function::createFromHostFunction(
|
|
5647
5689
|
rt,
|
|
5648
5690
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state"),
|
|
@@ -5891,6 +5933,14 @@ NativeBark::NativeBark(
|
|
|
5891
5933
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends(rt, thisVal, args, count);
|
|
5892
5934
|
}
|
|
5893
5935
|
);
|
|
5936
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_pending_recovery"] = jsi::Function::createFromHostFunction(
|
|
5937
|
+
rt,
|
|
5938
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pending_recovery"),
|
|
5939
|
+
1,
|
|
5940
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5941
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pending_recovery(rt, thisVal, args, count);
|
|
5942
|
+
}
|
|
5943
|
+
);
|
|
5894
5944
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos"] = jsi::Function::createFromHostFunction(
|
|
5895
5945
|
rt,
|
|
5896
5946
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos"),
|
|
@@ -5907,6 +5957,14 @@ NativeBark::NativeBark(
|
|
|
5907
5957
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_states(rt, thisVal, args, count);
|
|
5908
5958
|
}
|
|
5909
5959
|
);
|
|
5960
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit"] = jsi::Function::createFromHostFunction(
|
|
5961
|
+
rt,
|
|
5962
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit"),
|
|
5963
|
+
3,
|
|
5964
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5965
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit(rt, thisVal, args, count);
|
|
5966
|
+
}
|
|
5967
|
+
);
|
|
5910
5968
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits"] = jsi::Function::createFromHostFunction(
|
|
5911
5969
|
rt,
|
|
5912
5970
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits"),
|
|
@@ -5987,6 +6045,14 @@ NativeBark::NativeBark(
|
|
|
5987
6045
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_scheduled(rt, thisVal, args, count);
|
|
5988
6046
|
}
|
|
5989
6047
|
);
|
|
6048
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions"] = jsi::Function::createFromHostFunction(
|
|
6049
|
+
rt,
|
|
6050
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions"),
|
|
6051
|
+
2,
|
|
6052
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6053
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions(rt, thisVal, args, count);
|
|
6054
|
+
}
|
|
6055
|
+
);
|
|
5990
6056
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
|
|
5991
6057
|
rt,
|
|
5992
6058
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon"),
|
|
@@ -6115,6 +6181,14 @@ NativeBark::NativeBark(
|
|
|
6115
6181
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(rt, thisVal, args, count);
|
|
6116
6182
|
}
|
|
6117
6183
|
);
|
|
6184
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery"] = jsi::Function::createFromHostFunction(
|
|
6185
|
+
rt,
|
|
6186
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery"),
|
|
6187
|
+
1,
|
|
6188
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6189
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery(rt, thisVal, args, count);
|
|
6190
|
+
}
|
|
6191
|
+
);
|
|
6118
6192
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives"] = jsi::Function::createFromHostFunction(
|
|
6119
6193
|
rt,
|
|
6120
6194
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives"),
|
|
@@ -7307,6 +7381,14 @@ NativeBark::NativeBark(
|
|
|
7307
7381
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(rt, thisVal, args, count);
|
|
7308
7382
|
}
|
|
7309
7383
|
);
|
|
7384
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
7385
|
+
rt,
|
|
7386
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address"),
|
|
7387
|
+
0,
|
|
7388
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7389
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address(rt, thisVal, args, count);
|
|
7390
|
+
}
|
|
7391
|
+
);
|
|
7310
7392
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state"] = jsi::Function::createFromHostFunction(
|
|
7311
7393
|
rt,
|
|
7312
7394
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state"),
|
|
@@ -7555,6 +7637,14 @@ NativeBark::NativeBark(
|
|
|
7555
7637
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends(rt, thisVal, args, count);
|
|
7556
7638
|
}
|
|
7557
7639
|
);
|
|
7640
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_recovery"] = jsi::Function::createFromHostFunction(
|
|
7641
|
+
rt,
|
|
7642
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_recovery"),
|
|
7643
|
+
0,
|
|
7644
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7645
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pending_recovery(rt, thisVal, args, count);
|
|
7646
|
+
}
|
|
7647
|
+
);
|
|
7558
7648
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"] = jsi::Function::createFromHostFunction(
|
|
7559
7649
|
rt,
|
|
7560
7650
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos"),
|
|
@@ -7571,6 +7661,14 @@ NativeBark::NativeBark(
|
|
|
7571
7661
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_pending_round_states(rt, thisVal, args, count);
|
|
7572
7662
|
}
|
|
7573
7663
|
);
|
|
7664
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit"] = jsi::Function::createFromHostFunction(
|
|
7665
|
+
rt,
|
|
7666
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit"),
|
|
7667
|
+
0,
|
|
7668
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7669
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit(rt, thisVal, args, count);
|
|
7670
|
+
}
|
|
7671
|
+
);
|
|
7574
7672
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits"] = jsi::Function::createFromHostFunction(
|
|
7575
7673
|
rt,
|
|
7576
7674
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits"),
|
|
@@ -7651,6 +7749,14 @@ NativeBark::NativeBark(
|
|
|
7651
7749
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_scheduled(rt, thisVal, args, count);
|
|
7652
7750
|
}
|
|
7653
7751
|
);
|
|
7752
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions"] = jsi::Function::createFromHostFunction(
|
|
7753
|
+
rt,
|
|
7754
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions"),
|
|
7755
|
+
0,
|
|
7756
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7757
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions(rt, thisVal, args, count);
|
|
7758
|
+
}
|
|
7759
|
+
);
|
|
7654
7760
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"] = jsi::Function::createFromHostFunction(
|
|
7655
7761
|
rt,
|
|
7656
7762
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon"),
|
|
@@ -7779,6 +7885,14 @@ NativeBark::NativeBark(
|
|
|
7779
7885
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(rt, thisVal, args, count);
|
|
7780
7886
|
}
|
|
7781
7887
|
);
|
|
7888
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery"] = jsi::Function::createFromHostFunction(
|
|
7889
|
+
rt,
|
|
7890
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery"),
|
|
7891
|
+
0,
|
|
7892
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
7893
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery(rt, thisVal, args, count);
|
|
7894
|
+
}
|
|
7895
|
+
);
|
|
7782
7896
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"] = jsi::Function::createFromHostFunction(
|
|
7783
7897
|
rt,
|
|
7784
7898
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives"),
|
|
@@ -8525,42 +8639,42 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bip321_uri(jsi::Runt
|
|
|
8525
8639
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8526
8640
|
}
|
|
8527
8641
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8528
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8642
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_all(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8529
8643
|
);
|
|
8530
8644
|
|
|
8531
8645
|
|
|
8532
8646
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8533
8647
|
}
|
|
8534
8648
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8535
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1])
|
|
8649
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_amount(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
8536
8650
|
);
|
|
8537
8651
|
|
|
8538
8652
|
|
|
8539
8653
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8540
8654
|
}
|
|
8541
8655
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8542
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
8656
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
8543
8657
|
);
|
|
8544
8658
|
|
|
8545
8659
|
|
|
8546
8660
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8547
8661
|
}
|
|
8548
8662
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8549
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_board_psbt(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
8663
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_psbt(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
8550
8664
|
);
|
|
8551
8665
|
|
|
8552
8666
|
|
|
8553
8667
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8554
8668
|
}
|
|
8555
8669
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8556
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3])
|
|
8670
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4])
|
|
8557
8671
|
);
|
|
8558
8672
|
|
|
8559
8673
|
|
|
8560
8674
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8561
8675
|
}
|
|
8562
8676
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8563
|
-
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4])
|
|
8677
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_bolt11_invoice_for_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[3]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[4]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[5])
|
|
8564
8678
|
);
|
|
8565
8679
|
|
|
8566
8680
|
|
|
@@ -8805,6 +8919,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi:
|
|
|
8805
8919
|
);
|
|
8806
8920
|
|
|
8807
8921
|
|
|
8922
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8923
|
+
}
|
|
8924
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
8925
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_legacy_board_funding_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2])
|
|
8926
|
+
);
|
|
8927
|
+
|
|
8928
|
+
|
|
8808
8929
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
8809
8930
|
}
|
|
8810
8931
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9031,6 +9152,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_lightning_se
|
|
|
9031
9152
|
);
|
|
9032
9153
|
|
|
9033
9154
|
|
|
9155
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9156
|
+
}
|
|
9157
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_recovery(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9158
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_pending_recovery(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
9159
|
+
);
|
|
9160
|
+
|
|
9161
|
+
|
|
9034
9162
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9035
9163
|
}
|
|
9036
9164
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9045,6 +9173,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_pending_round_states
|
|
|
9045
9173
|
);
|
|
9046
9174
|
|
|
9047
9175
|
|
|
9176
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9177
|
+
}
|
|
9178
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9179
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_presign_emergency_exit(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[2])
|
|
9180
|
+
);
|
|
9181
|
+
|
|
9182
|
+
|
|
9048
9183
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9049
9184
|
}
|
|
9050
9185
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9121,6 +9256,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_schedu
|
|
|
9121
9256
|
);
|
|
9122
9257
|
|
|
9123
9258
|
|
|
9259
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9260
|
+
}
|
|
9261
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9262
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_remaining_exit_transactions(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
9263
|
+
);
|
|
9264
|
+
|
|
9265
|
+
|
|
9124
9266
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9125
9267
|
}
|
|
9126
9268
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -9233,6 +9375,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards(
|
|
|
9233
9375
|
);
|
|
9234
9376
|
|
|
9235
9377
|
|
|
9378
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9379
|
+
}
|
|
9380
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9381
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_sync_pending_recovery(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
9382
|
+
);
|
|
9383
|
+
|
|
9384
|
+
|
|
9236
9385
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
9237
9386
|
}
|
|
9238
9387
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -10341,6 +10490,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_pai
|
|
|
10341
10490
|
);
|
|
10342
10491
|
|
|
10343
10492
|
|
|
10493
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10494
|
+
}
|
|
10495
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10496
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_legacy_board_funding_address(
|
|
10497
|
+
);
|
|
10498
|
+
|
|
10499
|
+
|
|
10344
10500
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10345
10501
|
}
|
|
10346
10502
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -10558,6 +10714,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pending_lightn
|
|
|
10558
10714
|
);
|
|
10559
10715
|
|
|
10560
10716
|
|
|
10717
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10718
|
+
}
|
|
10719
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pending_recovery(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10720
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_pending_recovery(
|
|
10721
|
+
);
|
|
10722
|
+
|
|
10723
|
+
|
|
10561
10724
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10562
10725
|
}
|
|
10563
10726
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -10572,6 +10735,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_pending_round_
|
|
|
10572
10735
|
);
|
|
10573
10736
|
|
|
10574
10737
|
|
|
10738
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10739
|
+
}
|
|
10740
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10741
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_presign_emergency_exit(
|
|
10742
|
+
);
|
|
10743
|
+
|
|
10744
|
+
|
|
10575
10745
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10576
10746
|
}
|
|
10577
10747
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_progress_exits(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -10642,6 +10812,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_
|
|
|
10642
10812
|
);
|
|
10643
10813
|
|
|
10644
10814
|
|
|
10815
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10816
|
+
}
|
|
10817
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10818
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_remaining_exit_transactions(
|
|
10819
|
+
);
|
|
10820
|
+
|
|
10821
|
+
|
|
10645
10822
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10646
10823
|
}
|
|
10647
10824
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_run_daemon(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -10754,6 +10931,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_b
|
|
|
10754
10931
|
);
|
|
10755
10932
|
|
|
10756
10933
|
|
|
10934
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10935
|
+
}
|
|
10936
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
10937
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_sync_pending_recovery(
|
|
10938
|
+
);
|
|
10939
|
+
|
|
10940
|
+
|
|
10757
10941
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
10758
10942
|
}
|
|
10759
10943
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|