@secondts/bark-react-native 0.20.0 → 0.21.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 +73 -0
- package/cpp/generated/bark.hpp +4 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +81 -2
- 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 +80 -1
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +4 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +51 -0
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +4 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +51 -0
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/bark-ffi.ts +11 -0
- package/src/generated/bark.ts +173 -0
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ npx expo install @secondts/bark-react-native@beta
|
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
# Or install a specific beta version
|
|
63
|
-
npx expo install @secondts/bark-react-native@0.
|
|
63
|
+
npx expo install @secondts/bark-react-native@0.21.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -386,6 +386,15 @@ extern "C" {
|
|
|
386
386
|
/*handle*/ uint64_t ptr,
|
|
387
387
|
uint64_t amount_sats
|
|
388
388
|
);
|
|
389
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_funding_address(
|
|
390
|
+
/*handle*/ uint64_t ptr
|
|
391
|
+
);
|
|
392
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_board_psbt(
|
|
393
|
+
/*handle*/ uint64_t ptr,
|
|
394
|
+
RustBuffer psbt_base64,
|
|
395
|
+
uint32_t keypair_index,
|
|
396
|
+
uint32_t expiry_height
|
|
397
|
+
);
|
|
389
398
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(
|
|
390
399
|
/*handle*/ uint64_t ptr,
|
|
391
400
|
uint64_t amount_sats,
|
|
@@ -1031,6 +1040,10 @@ extern "C" {
|
|
|
1031
1040
|
);
|
|
1032
1041
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_amount(
|
|
1033
1042
|
);
|
|
1043
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_funding_address(
|
|
1044
|
+
);
|
|
1045
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_board_psbt(
|
|
1046
|
+
);
|
|
1034
1047
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(
|
|
1035
1048
|
);
|
|
1036
1049
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(
|
|
@@ -4947,6 +4960,22 @@ NativeBark::NativeBark(
|
|
|
4947
4960
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(rt, thisVal, args, count);
|
|
4948
4961
|
}
|
|
4949
4962
|
);
|
|
4963
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
4964
|
+
rt,
|
|
4965
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address"),
|
|
4966
|
+
1,
|
|
4967
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4968
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(rt, thisVal, args, count);
|
|
4969
|
+
}
|
|
4970
|
+
);
|
|
4971
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"] = jsi::Function::createFromHostFunction(
|
|
4972
|
+
rt,
|
|
4973
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt"),
|
|
4974
|
+
4,
|
|
4975
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4976
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(rt, thisVal, args, count);
|
|
4977
|
+
}
|
|
4978
|
+
);
|
|
4950
4979
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
4951
4980
|
rt,
|
|
4952
4981
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice"),
|
|
@@ -6379,6 +6408,22 @@ NativeBark::NativeBark(
|
|
|
6379
6408
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(rt, thisVal, args, count);
|
|
6380
6409
|
}
|
|
6381
6410
|
);
|
|
6411
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address"] = jsi::Function::createFromHostFunction(
|
|
6412
|
+
rt,
|
|
6413
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address"),
|
|
6414
|
+
0,
|
|
6415
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6416
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(rt, thisVal, args, count);
|
|
6417
|
+
}
|
|
6418
|
+
);
|
|
6419
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt"] = jsi::Function::createFromHostFunction(
|
|
6420
|
+
rt,
|
|
6421
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt"),
|
|
6422
|
+
0,
|
|
6423
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
6424
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(rt, thisVal, args, count);
|
|
6425
|
+
}
|
|
6426
|
+
);
|
|
6382
6427
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"] = jsi::Function::createFromHostFunction(
|
|
6383
6428
|
rt,
|
|
6384
6429
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice"),
|
|
@@ -7677,6 +7722,20 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Ru
|
|
|
7677
7722
|
);
|
|
7678
7723
|
|
|
7679
7724
|
|
|
7725
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7726
|
+
}
|
|
7727
|
+
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) {
|
|
7728
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0])
|
|
7729
|
+
);
|
|
7730
|
+
|
|
7731
|
+
|
|
7732
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7733
|
+
}
|
|
7734
|
+
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) {
|
|
7735
|
+
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_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[2]), uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[3])
|
|
7736
|
+
);
|
|
7737
|
+
|
|
7738
|
+
|
|
7680
7739
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
7681
7740
|
}
|
|
7682
7741
|
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) {
|
|
@@ -8995,6 +9054,20 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(j
|
|
|
8995
9054
|
);
|
|
8996
9055
|
|
|
8997
9056
|
|
|
9057
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9058
|
+
}
|
|
9059
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9060
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_board_funding_address(
|
|
9061
|
+
);
|
|
9062
|
+
|
|
9063
|
+
|
|
9064
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
9065
|
+
}
|
|
9066
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
9067
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_board_psbt(
|
|
9068
|
+
);
|
|
9069
|
+
|
|
9070
|
+
|
|
8998
9071
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
8999
9072
|
}
|
|
9000
9073
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -65,6 +65,8 @@ class NativeBark : public jsi::HostObject {
|
|
|
65
65
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
66
66
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
67
67
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
68
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
69
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
68
70
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
69
71
|
jsi::Value 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);
|
|
70
72
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -244,6 +246,8 @@ class NativeBark : public jsi::HostObject {
|
|
|
244
246
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_balance(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
245
247
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_all(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
246
248
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_amount(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
249
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_funding_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
250
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_board_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
247
251
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
248
252
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice_for_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
249
253
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(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;;AAwzBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AAwKA;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.Destination = exports.CustomOnchainWalletCallbacksImpl = exports.CpfpParams = exports.Config = 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.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;
|
|
7
7
|
exports.extractTxFromPsbt = extractTxFromPsbt;
|
|
8
8
|
exports.generateMnemonic = generateMnemonic;
|
|
9
9
|
exports.initWallet = initWallet;
|
|
@@ -162,6 +162,7 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
162
162
|
roundIntervalSecs: _uniffiBindgenReactNative.FfiConverterUInt64.read(from),
|
|
163
163
|
nbRoundNonces: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
164
164
|
vtxoExitDelta: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
165
|
+
vtxoLifetime: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
165
166
|
vtxoExpiryDelta: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
166
167
|
htlcSendExpiryDelta: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
167
168
|
htlcExpiryDelta: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
@@ -180,6 +181,7 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
180
181
|
_uniffiBindgenReactNative.FfiConverterUInt64.write(value.roundIntervalSecs, into);
|
|
181
182
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.nbRoundNonces, into);
|
|
182
183
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.vtxoExitDelta, into);
|
|
184
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.vtxoLifetime, into);
|
|
183
185
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.vtxoExpiryDelta, into);
|
|
184
186
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.htlcSendExpiryDelta, into);
|
|
185
187
|
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.htlcExpiryDelta, into);
|
|
@@ -192,7 +194,7 @@ const FfiConverterTypeArkInfo = (() => {
|
|
|
192
194
|
_uniffiBindgenReactNative.FfiConverterUInt16.write(value.maxVtxoExitDepth, into);
|
|
193
195
|
}
|
|
194
196
|
allocationSize(value) {
|
|
195
|
-
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.nbRoundNonces) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.minBoardAmountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired) + FfiConverterTypeFeeSchedule.allocationSize(value.feeSchedule) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth);
|
|
197
|
+
return FfiConverterTypeNetwork.allocationSize(value.network) + FfiConverterString.allocationSize(value.serverPubkey) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.roundIntervalSecs) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.nbRoundNonces) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExitDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoLifetime) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.vtxoExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcSendExpiryDelta) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.htlcExpiryDelta) + FfiConverterOptionalUInt64.allocationSize(value.maxVtxoAmountSats) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.requiredBoardConfirmations) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxUserInvoiceCltvDelta) + _uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(value.minBoardAmountSats) + _uniffiBindgenReactNative.FfiConverterBool.allocationSize(value.lnReceiveAntiDosRequired) + FfiConverterTypeFeeSchedule.allocationSize(value.feeSchedule) + _uniffiBindgenReactNative.FfiConverterUInt16.allocationSize(value.maxVtxoExitDepth);
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
return new FFIConverter();
|
|
@@ -313,6 +315,50 @@ const FfiConverterTypeBoardFees = (() => {
|
|
|
313
315
|
}
|
|
314
316
|
return new FFIConverter();
|
|
315
317
|
})();
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Destination for an externally funded board (e.g. a payjoin receive).
|
|
321
|
+
*
|
|
322
|
+
* The funding script commits to the derived keypair and expiry height, so
|
|
323
|
+
* `keypair_index` and `expiry_height` must be passed back unchanged to
|
|
324
|
+
* `board_psbt` once the funding PSBT is available — including on retries
|
|
325
|
+
* after the sender changes the transaction.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Generated factory for {@link BoardFundingInfo} record objects.
|
|
330
|
+
*/
|
|
331
|
+
const BoardFundingInfo = exports.BoardFundingInfo = (() => {
|
|
332
|
+
const defaults = () => ({});
|
|
333
|
+
const create = (() => {
|
|
334
|
+
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
335
|
+
})();
|
|
336
|
+
return Object.freeze({
|
|
337
|
+
create,
|
|
338
|
+
new: create,
|
|
339
|
+
defaults: () => Object.freeze(defaults())
|
|
340
|
+
});
|
|
341
|
+
})();
|
|
342
|
+
const FfiConverterTypeBoardFundingInfo = (() => {
|
|
343
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
344
|
+
read(from) {
|
|
345
|
+
return {
|
|
346
|
+
address: FfiConverterString.read(from),
|
|
347
|
+
expiryHeight: _uniffiBindgenReactNative.FfiConverterUInt32.read(from),
|
|
348
|
+
keypairIndex: _uniffiBindgenReactNative.FfiConverterUInt32.read(from)
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
write(value, into) {
|
|
352
|
+
FfiConverterString.write(value.address, into);
|
|
353
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.expiryHeight, into);
|
|
354
|
+
_uniffiBindgenReactNative.FfiConverterUInt32.write(value.keypairIndex, into);
|
|
355
|
+
}
|
|
356
|
+
allocationSize(value) {
|
|
357
|
+
return FfiConverterString.allocationSize(value.address) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.expiryHeight) + _uniffiBindgenReactNative.FfiConverterUInt32.allocationSize(value.keypairIndex);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return new FFIConverter();
|
|
361
|
+
})();
|
|
316
362
|
/**
|
|
317
363
|
* Generated factory for {@link Config} record objects.
|
|
318
364
|
*/
|
|
@@ -4690,6 +4736,32 @@ class Wallet extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
4690
4736
|
throw __error;
|
|
4691
4737
|
}
|
|
4692
4738
|
}
|
|
4739
|
+
async boardFundingAddress(asyncOpts_) /*throws*/{
|
|
4740
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4741
|
+
try {
|
|
4742
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4743
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_funding_address(uniffiTypeWalletObjectFactory.clonePointer(this));
|
|
4744
|
+
}, /*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:*/FfiConverterTypeBoardFundingInfo.lift.bind(FfiConverterTypeBoardFundingInfo), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4745
|
+
} catch (__error) {
|
|
4746
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4747
|
+
__error.stack = __stack;
|
|
4748
|
+
}
|
|
4749
|
+
throw __error;
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4752
|
+
async boardPsbt(psbtBase64, keypairIndex, expiryHeight, asyncOpts_) /*throws*/{
|
|
4753
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4754
|
+
try {
|
|
4755
|
+
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4756
|
+
return (0, _barkFfi.default)().ubrn_uniffi_bark_ffi_fn_method_wallet_board_psbt(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(psbtBase64), _uniffiBindgenReactNative.FfiConverterUInt32.lower(keypairIndex), _uniffiBindgenReactNative.FfiConverterUInt32.lower(expiryHeight));
|
|
4757
|
+
}, /*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:*/FfiConverterTypePendingBoard.lift.bind(FfiConverterTypePendingBoard), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeError.lift.bind(FfiConverterTypeError));
|
|
4758
|
+
} catch (__error) {
|
|
4759
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4760
|
+
__error.stack = __stack;
|
|
4761
|
+
}
|
|
4762
|
+
throw __error;
|
|
4763
|
+
}
|
|
4764
|
+
}
|
|
4693
4765
|
async bolt11Invoice(amountSats, description, token = undefined, asyncOpts_) /*throws*/{
|
|
4694
4766
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4695
4767
|
try {
|
|
@@ -6178,6 +6250,12 @@ function uniffiEnsureInitialized() {
|
|
|
6178
6250
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount() !== 54692) {
|
|
6179
6251
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_amount");
|
|
6180
6252
|
}
|
|
6253
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_funding_address() !== 8961) {
|
|
6254
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_funding_address");
|
|
6255
|
+
}
|
|
6256
|
+
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_board_psbt() !== 28300) {
|
|
6257
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_board_psbt");
|
|
6258
|
+
}
|
|
6181
6259
|
if ((0, _barkFfi.default)().ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice() !== 54959) {
|
|
6182
6260
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice");
|
|
6183
6261
|
}
|
|
@@ -6469,6 +6547,7 @@ var _default = exports.default = Object.freeze({
|
|
|
6469
6547
|
FfiConverterTypeBarkLogger,
|
|
6470
6548
|
FfiConverterTypeBlockRef,
|
|
6471
6549
|
FfiConverterTypeBoardFees,
|
|
6550
|
+
FfiConverterTypeBoardFundingInfo,
|
|
6472
6551
|
FfiConverterTypeConfig,
|
|
6473
6552
|
FfiConverterTypeCpfpParams,
|
|
6474
6553
|
FfiConverterTypeCustomOnchainWalletCallbacks,
|