@breeztech/breez-sdk-spark-react-native 0.23.1 → 0.24.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/cpp/generated/breez_sdk_spark.cpp +298 -42
- package/cpp/generated/breez_sdk_spark.hpp +16 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +192 -71
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +191 -70
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +16 -10
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +837 -202
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +16 -10
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +837 -202
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +27 -9
- package/src/generated/breez_sdk_spark.ts +1245 -298
|
@@ -120,18 +120,22 @@ typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod2)(
|
|
|
120
120
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
121
121
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
122
122
|
typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod3)(
|
|
123
|
+
uint64_t uniffi_handle,
|
|
124
|
+
UniffiForeignFutureCompleteU32 uniffi_future_callback,
|
|
125
|
+
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
126
|
+
typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod4)(
|
|
123
127
|
uint64_t uniffi_handle, RustBuffer txid,
|
|
124
128
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
125
129
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
126
|
-
typedef void (*
|
|
130
|
+
typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod5)(
|
|
127
131
|
uint64_t uniffi_handle, RustBuffer txid, uint32_t vout,
|
|
128
132
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
129
133
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
130
|
-
typedef void (*
|
|
134
|
+
typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod6)(
|
|
131
135
|
uint64_t uniffi_handle, RustBuffer tx,
|
|
132
136
|
UniffiForeignFutureCompleteVoid uniffi_future_callback,
|
|
133
137
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
134
|
-
typedef void (*
|
|
138
|
+
typedef void (*UniffiCallbackInterfaceBitcoinChainServiceMethod7)(
|
|
135
139
|
uint64_t uniffi_handle,
|
|
136
140
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
137
141
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
@@ -439,10 +443,11 @@ typedef struct UniffiVTableCallbackInterfaceBitcoinChainService {
|
|
|
439
443
|
UniffiCallbackInterfaceBitcoinChainServiceMethod0 get_address_utxos;
|
|
440
444
|
UniffiCallbackInterfaceBitcoinChainServiceMethod1 get_address_txos;
|
|
441
445
|
UniffiCallbackInterfaceBitcoinChainServiceMethod2 get_transaction_status;
|
|
442
|
-
UniffiCallbackInterfaceBitcoinChainServiceMethod3
|
|
443
|
-
UniffiCallbackInterfaceBitcoinChainServiceMethod4
|
|
444
|
-
UniffiCallbackInterfaceBitcoinChainServiceMethod5
|
|
445
|
-
UniffiCallbackInterfaceBitcoinChainServiceMethod6
|
|
446
|
+
UniffiCallbackInterfaceBitcoinChainServiceMethod3 tip_height;
|
|
447
|
+
UniffiCallbackInterfaceBitcoinChainServiceMethod4 get_transaction_hex;
|
|
448
|
+
UniffiCallbackInterfaceBitcoinChainServiceMethod5 get_outspend;
|
|
449
|
+
UniffiCallbackInterfaceBitcoinChainServiceMethod6 broadcast_transaction;
|
|
450
|
+
UniffiCallbackInterfaceBitcoinChainServiceMethod7 recommended_fees;
|
|
446
451
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
447
452
|
} UniffiVTableCallbackInterfaceBitcoinChainService;
|
|
448
453
|
typedef struct UniffiVTableCallbackInterfaceCpfpSigner {
|
|
@@ -571,6 +576,8 @@ uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_txos(
|
|
|
571
576
|
uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(
|
|
572
577
|
void *ptr, RustBuffer txid);
|
|
573
578
|
/*handle*/ uint64_t
|
|
579
|
+
uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_height(void *ptr);
|
|
580
|
+
/*handle*/ uint64_t
|
|
574
581
|
uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_hex(
|
|
575
582
|
void *ptr, RustBuffer txid);
|
|
576
583
|
/*handle*/ uint64_t
|
|
@@ -633,6 +640,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_disconnect(void *ptr);
|
|
|
633
640
|
uniffi_breez_sdk_spark_fn_method_breezsdk_export_unilateral_exit_state(
|
|
634
641
|
void *ptr);
|
|
635
642
|
/*handle*/ uint64_t
|
|
643
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_quote(
|
|
644
|
+
void *ptr, RustBuffer request);
|
|
645
|
+
/*handle*/ uint64_t
|
|
636
646
|
uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
637
647
|
void *ptr, RustBuffer request);
|
|
638
648
|
/*handle*/ uint64_t
|
|
@@ -1167,13 +1177,14 @@ RustBuffer uniffi_breez_sdk_spark_fn_func_default_server_config(
|
|
|
1167
1177
|
void *
|
|
1168
1178
|
uniffi_breez_sdk_spark_fn_func_default_storage(RustBuffer storage_dir,
|
|
1169
1179
|
RustCallStatus *uniffi_out_err);
|
|
1170
|
-
/*handle*/ uint64_t
|
|
1180
|
+
/*handle*/ uint64_t
|
|
1181
|
+
uniffi_breez_sdk_spark_fn_func_get_spark_status(RustBuffer request);
|
|
1171
1182
|
void uniffi_breez_sdk_spark_fn_func_init_logging(
|
|
1172
1183
|
RustBuffer log_dir, RustBuffer app_logger, RustBuffer log_filter,
|
|
1173
1184
|
RustCallStatus *uniffi_out_err);
|
|
1174
1185
|
/*handle*/ uint64_t uniffi_breez_sdk_spark_fn_func_new_rest_chain_service(
|
|
1175
1186
|
RustBuffer url, RustBuffer network, RustBuffer api_type,
|
|
1176
|
-
RustBuffer credentials);
|
|
1187
|
+
RustBuffer credentials, RustBuffer request);
|
|
1177
1188
|
/*handle*/ uint64_t
|
|
1178
1189
|
uniffi_breez_sdk_spark_fn_func_new_shared_sdk_context(RustBuffer config);
|
|
1179
1190
|
void *uniffi_breez_sdk_spark_fn_func_single_key_cpfp_signer(
|
|
@@ -1330,6 +1341,8 @@ uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos();
|
|
|
1330
1341
|
uint16_t
|
|
1331
1342
|
uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status();
|
|
1332
1343
|
uint16_t
|
|
1344
|
+
uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height();
|
|
1345
|
+
uint16_t
|
|
1333
1346
|
uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex();
|
|
1334
1347
|
uint16_t
|
|
1335
1348
|
uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend();
|
|
@@ -1362,6 +1375,8 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect();
|
|
|
1362
1375
|
uint16_t
|
|
1363
1376
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state();
|
|
1364
1377
|
uint16_t
|
|
1378
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote();
|
|
1379
|
+
uint16_t
|
|
1365
1380
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits();
|
|
1366
1381
|
uint16_t
|
|
1367
1382
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes();
|
|
@@ -5255,6 +5270,147 @@ namespace uniffi::breez_sdk_spark::cb::
|
|
|
5255
5270
|
callbackinterfacebitcoinchainservicemethod3 {
|
|
5256
5271
|
using namespace facebook;
|
|
5257
5272
|
|
|
5273
|
+
// We need to store a lambda in a global so we can call it from
|
|
5274
|
+
// a function pointer. The function pointer is passed to Rust.
|
|
5275
|
+
static std::function<void(uint64_t, UniffiForeignFutureCompleteU32, uint64_t,
|
|
5276
|
+
UniffiForeignFuture *)>
|
|
5277
|
+
rsLambda = nullptr;
|
|
5278
|
+
|
|
5279
|
+
// This is the main body of the callback. It's called from the lambda,
|
|
5280
|
+
// which itself is called from the callback function which is passed to Rust.
|
|
5281
|
+
static void body(jsi::Runtime &rt,
|
|
5282
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5283
|
+
std::shared_ptr<jsi::Value> callbackValue,
|
|
5284
|
+
uint64_t rs_uniffiHandle,
|
|
5285
|
+
UniffiForeignFutureCompleteU32 rs_uniffiFutureCallback,
|
|
5286
|
+
uint64_t rs_uniffiCallbackData,
|
|
5287
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5288
|
+
|
|
5289
|
+
// Convert the arguments from Rust, into jsi::Values.
|
|
5290
|
+
// We'll use the Bridging class to do this…
|
|
5291
|
+
auto js_uniffiHandle =
|
|
5292
|
+
uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
|
|
5293
|
+
auto js_uniffiFutureCallback =
|
|
5294
|
+
uniffi::breez_sdk_spark::Bridging<UniffiForeignFutureCompleteU32>::toJs(
|
|
5295
|
+
rt, callInvoker, rs_uniffiFutureCallback);
|
|
5296
|
+
auto js_uniffiCallbackData = uniffi_jsi::Bridging<uint64_t>::toJs(
|
|
5297
|
+
rt, callInvoker, rs_uniffiCallbackData);
|
|
5298
|
+
|
|
5299
|
+
// Now we are ready to call the callback.
|
|
5300
|
+
// We are already on the JS thread, because this `body` function was
|
|
5301
|
+
// invoked from the CallInvoker.
|
|
5302
|
+
try {
|
|
5303
|
+
// Getting the callback function
|
|
5304
|
+
auto cb = callbackValue->asObject(rt).asFunction(rt);
|
|
5305
|
+
auto uniffiResult = cb.call(rt, js_uniffiHandle, js_uniffiFutureCallback,
|
|
5306
|
+
js_uniffiCallbackData);
|
|
5307
|
+
|
|
5308
|
+
// return type is MutReference(Struct("ForeignFuture"))
|
|
5309
|
+
// Finally, we need to copy the return value back into the Rust pointer.
|
|
5310
|
+
*rs_uniffiOutReturn =
|
|
5311
|
+
uniffi::breez_sdk_spark::Bridging<UniffiForeignFuture>::fromJs(
|
|
5312
|
+
rt, callInvoker, uniffiResult);
|
|
5313
|
+
} catch (const jsi::JSError &error) {
|
|
5314
|
+
std::cout << "Error in callback "
|
|
5315
|
+
"UniffiCallbackInterfaceBitcoinChainServiceMethod3: "
|
|
5316
|
+
<< error.what() << std::endl;
|
|
5317
|
+
throw error;
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5321
|
+
static void callback(uint64_t rs_uniffiHandle,
|
|
5322
|
+
UniffiForeignFutureCompleteU32 rs_uniffiFutureCallback,
|
|
5323
|
+
uint64_t rs_uniffiCallbackData,
|
|
5324
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5325
|
+
// If the runtime has shutdown, then there is no point in trying to
|
|
5326
|
+
// call into Javascript. BUT how do we tell if the runtime has shutdown?
|
|
5327
|
+
//
|
|
5328
|
+
// Answer: the module destructor calls into callback `cleanup` method,
|
|
5329
|
+
// which nulls out the rsLamda.
|
|
5330
|
+
//
|
|
5331
|
+
// If rsLamda is null, then there is no runtime to call into.
|
|
5332
|
+
if (rsLambda == nullptr) {
|
|
5333
|
+
// This only occurs when destructors are calling into Rust free/drop,
|
|
5334
|
+
// which causes the JS callback to be dropped.
|
|
5335
|
+
return;
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
// The runtime, the actual callback jsi::funtion, and the callInvoker
|
|
5339
|
+
// are all in the lambda.
|
|
5340
|
+
rsLambda(rs_uniffiHandle, rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
5341
|
+
rs_uniffiOutReturn);
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5344
|
+
static UniffiCallbackInterfaceBitcoinChainServiceMethod3
|
|
5345
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod3
|
|
5346
|
+
jsi::Runtime &rt,
|
|
5347
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5348
|
+
const jsi::Value &value) {
|
|
5349
|
+
if (rsLambda != nullptr) {
|
|
5350
|
+
// `makeCallbackFunction` is called in two circumstances:
|
|
5351
|
+
//
|
|
5352
|
+
// 1. at startup, when initializing callback interface vtables.
|
|
5353
|
+
// 2. when polling futures. This happens at least once per future that is
|
|
5354
|
+
// exposed to Javascript. We know that this is always the same function,
|
|
5355
|
+
// `uniffiFutureContinuationCallback` in `async-rust-calls.ts`.
|
|
5356
|
+
//
|
|
5357
|
+
// We can therefore return the callback function without making anything
|
|
5358
|
+
// new if we've been initialized already.
|
|
5359
|
+
return callback;
|
|
5360
|
+
}
|
|
5361
|
+
auto callbackFunction = value.asObject(rt).asFunction(rt);
|
|
5362
|
+
auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
|
|
5363
|
+
rsLambda = [&rt, callInvoker, callbackValue](
|
|
5364
|
+
uint64_t rs_uniffiHandle,
|
|
5365
|
+
UniffiForeignFutureCompleteU32 rs_uniffiFutureCallback,
|
|
5366
|
+
uint64_t rs_uniffiCallbackData,
|
|
5367
|
+
UniffiForeignFuture *rs_uniffiOutReturn) {
|
|
5368
|
+
// We immediately make a lambda which will do the work of transforming the
|
|
5369
|
+
// arguments into JSI values and calling the callback.
|
|
5370
|
+
uniffi_runtime::UniffiCallFunc jsLambda =
|
|
5371
|
+
[callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiFutureCallback,
|
|
5372
|
+
rs_uniffiCallbackData, rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
|
|
5373
|
+
body(rt, callInvoker, callbackValue, rs_uniffiHandle,
|
|
5374
|
+
rs_uniffiFutureCallback, rs_uniffiCallbackData,
|
|
5375
|
+
rs_uniffiOutReturn);
|
|
5376
|
+
};
|
|
5377
|
+
// We'll then call that lambda from the callInvoker which will
|
|
5378
|
+
// look after calling it on the correct thread.
|
|
5379
|
+
callInvoker->invokeBlocking(rt, jsLambda);
|
|
5380
|
+
};
|
|
5381
|
+
return callback;
|
|
5382
|
+
}
|
|
5383
|
+
|
|
5384
|
+
// This method is called from the destructor of NativeBreezSdkSpark, which only
|
|
5385
|
+
// happens when the jsi::Runtime is being destroyed.
|
|
5386
|
+
static void cleanup() {
|
|
5387
|
+
// The lambda holds a reference to the the Runtime, so when this is nulled
|
|
5388
|
+
// out, then the pointer will no longer be left dangling.
|
|
5389
|
+
rsLambda = nullptr;
|
|
5390
|
+
}
|
|
5391
|
+
} // namespace
|
|
5392
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod3
|
|
5393
|
+
// Implementation of callback function calling from Rust to JS
|
|
5394
|
+
// CallbackInterfaceBitcoinChainServiceMethod4
|
|
5395
|
+
|
|
5396
|
+
// Callback function:
|
|
5397
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod4::UniffiCallbackInterfaceBitcoinChainServiceMethod4
|
|
5398
|
+
//
|
|
5399
|
+
// We have the following constraints:
|
|
5400
|
+
// - we need to pass a function pointer to Rust.
|
|
5401
|
+
// - we need a jsi::Runtime and jsi::Function to call into JS.
|
|
5402
|
+
// - function pointers can't store state, so we can't use a lamda.
|
|
5403
|
+
//
|
|
5404
|
+
// For this, we store a lambda as a global, as `rsLambda`. The `callback`
|
|
5405
|
+
// function calls the lambda, which itself calls the `body` which then calls
|
|
5406
|
+
// into JS.
|
|
5407
|
+
//
|
|
5408
|
+
// We then give the `callback` function pointer to Rust which will call the
|
|
5409
|
+
// lambda sometime in the future.
|
|
5410
|
+
namespace uniffi::breez_sdk_spark::cb::
|
|
5411
|
+
callbackinterfacebitcoinchainservicemethod4 {
|
|
5412
|
+
using namespace facebook;
|
|
5413
|
+
|
|
5258
5414
|
// We need to store a lambda in a global so we can call it from
|
|
5259
5415
|
// a function pointer. The function pointer is passed to Rust.
|
|
5260
5416
|
static std::function<void(uint64_t, RustBuffer,
|
|
@@ -5300,7 +5456,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5300
5456
|
rt, callInvoker, uniffiResult);
|
|
5301
5457
|
} catch (const jsi::JSError &error) {
|
|
5302
5458
|
std::cout << "Error in callback "
|
|
5303
|
-
"
|
|
5459
|
+
"UniffiCallbackInterfaceBitcoinChainServiceMethod4: "
|
|
5304
5460
|
<< error.what() << std::endl;
|
|
5305
5461
|
throw error;
|
|
5306
5462
|
}
|
|
@@ -5330,8 +5486,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid,
|
|
|
5330
5486
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5331
5487
|
}
|
|
5332
5488
|
|
|
5333
|
-
static
|
|
5334
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5489
|
+
static UniffiCallbackInterfaceBitcoinChainServiceMethod4
|
|
5490
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod4
|
|
5335
5491
|
jsi::Runtime &rt,
|
|
5336
5492
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5337
5493
|
const jsi::Value &value) {
|
|
@@ -5379,12 +5535,12 @@ static void cleanup() {
|
|
|
5379
5535
|
rsLambda = nullptr;
|
|
5380
5536
|
}
|
|
5381
5537
|
} // namespace
|
|
5382
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5538
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod4
|
|
5383
5539
|
// Implementation of callback function calling from Rust to JS
|
|
5384
|
-
//
|
|
5540
|
+
// CallbackInterfaceBitcoinChainServiceMethod5
|
|
5385
5541
|
|
|
5386
5542
|
// Callback function:
|
|
5387
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5543
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod5::UniffiCallbackInterfaceBitcoinChainServiceMethod5
|
|
5388
5544
|
//
|
|
5389
5545
|
// We have the following constraints:
|
|
5390
5546
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5398,7 +5554,7 @@ static void cleanup() {
|
|
|
5398
5554
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5399
5555
|
// lambda sometime in the future.
|
|
5400
5556
|
namespace uniffi::breez_sdk_spark::cb::
|
|
5401
|
-
|
|
5557
|
+
callbackinterfacebitcoinchainservicemethod5 {
|
|
5402
5558
|
using namespace facebook;
|
|
5403
5559
|
|
|
5404
5560
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5447,7 +5603,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5447
5603
|
rt, callInvoker, uniffiResult);
|
|
5448
5604
|
} catch (const jsi::JSError &error) {
|
|
5449
5605
|
std::cout << "Error in callback "
|
|
5450
|
-
"
|
|
5606
|
+
"UniffiCallbackInterfaceBitcoinChainServiceMethod5: "
|
|
5451
5607
|
<< error.what() << std::endl;
|
|
5452
5608
|
throw error;
|
|
5453
5609
|
}
|
|
@@ -5477,8 +5633,8 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_txid, uint32_t rs_vout,
|
|
|
5477
5633
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5478
5634
|
}
|
|
5479
5635
|
|
|
5480
|
-
static
|
|
5481
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5636
|
+
static UniffiCallbackInterfaceBitcoinChainServiceMethod5
|
|
5637
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod5
|
|
5482
5638
|
jsi::Runtime &rt,
|
|
5483
5639
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5484
5640
|
const jsi::Value &value) {
|
|
@@ -5526,12 +5682,12 @@ static void cleanup() {
|
|
|
5526
5682
|
rsLambda = nullptr;
|
|
5527
5683
|
}
|
|
5528
5684
|
} // namespace
|
|
5529
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5685
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod5
|
|
5530
5686
|
// Implementation of callback function calling from Rust to JS
|
|
5531
|
-
//
|
|
5687
|
+
// CallbackInterfaceBitcoinChainServiceMethod6
|
|
5532
5688
|
|
|
5533
5689
|
// Callback function:
|
|
5534
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5690
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod6::UniffiCallbackInterfaceBitcoinChainServiceMethod6
|
|
5535
5691
|
//
|
|
5536
5692
|
// We have the following constraints:
|
|
5537
5693
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5545,7 +5701,7 @@ static void cleanup() {
|
|
|
5545
5701
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5546
5702
|
// lambda sometime in the future.
|
|
5547
5703
|
namespace uniffi::breez_sdk_spark::cb::
|
|
5548
|
-
|
|
5704
|
+
callbackinterfacebitcoinchainservicemethod6 {
|
|
5549
5705
|
using namespace facebook;
|
|
5550
5706
|
|
|
5551
5707
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5592,7 +5748,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5592
5748
|
rt, callInvoker, uniffiResult);
|
|
5593
5749
|
} catch (const jsi::JSError &error) {
|
|
5594
5750
|
std::cout << "Error in callback "
|
|
5595
|
-
"
|
|
5751
|
+
"UniffiCallbackInterfaceBitcoinChainServiceMethod6: "
|
|
5596
5752
|
<< error.what() << std::endl;
|
|
5597
5753
|
throw error;
|
|
5598
5754
|
}
|
|
@@ -5621,8 +5777,8 @@ static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_tx,
|
|
|
5621
5777
|
rs_uniffiCallbackData, rs_uniffiOutReturn);
|
|
5622
5778
|
}
|
|
5623
5779
|
|
|
5624
|
-
static
|
|
5625
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5780
|
+
static UniffiCallbackInterfaceBitcoinChainServiceMethod6
|
|
5781
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod6
|
|
5626
5782
|
jsi::Runtime &rt,
|
|
5627
5783
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5628
5784
|
const jsi::Value &value) {
|
|
@@ -5670,12 +5826,12 @@ static void cleanup() {
|
|
|
5670
5826
|
rsLambda = nullptr;
|
|
5671
5827
|
}
|
|
5672
5828
|
} // namespace
|
|
5673
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5829
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod6
|
|
5674
5830
|
// Implementation of callback function calling from Rust to JS
|
|
5675
|
-
//
|
|
5831
|
+
// CallbackInterfaceBitcoinChainServiceMethod7
|
|
5676
5832
|
|
|
5677
5833
|
// Callback function:
|
|
5678
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5834
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod7::UniffiCallbackInterfaceBitcoinChainServiceMethod7
|
|
5679
5835
|
//
|
|
5680
5836
|
// We have the following constraints:
|
|
5681
5837
|
// - we need to pass a function pointer to Rust.
|
|
@@ -5689,7 +5845,7 @@ static void cleanup() {
|
|
|
5689
5845
|
// We then give the `callback` function pointer to Rust which will call the
|
|
5690
5846
|
// lambda sometime in the future.
|
|
5691
5847
|
namespace uniffi::breez_sdk_spark::cb::
|
|
5692
|
-
|
|
5848
|
+
callbackinterfacebitcoinchainservicemethod7 {
|
|
5693
5849
|
using namespace facebook;
|
|
5694
5850
|
|
|
5695
5851
|
// We need to store a lambda in a global so we can call it from
|
|
@@ -5734,7 +5890,7 @@ static void body(jsi::Runtime &rt,
|
|
|
5734
5890
|
rt, callInvoker, uniffiResult);
|
|
5735
5891
|
} catch (const jsi::JSError &error) {
|
|
5736
5892
|
std::cout << "Error in callback "
|
|
5737
|
-
"
|
|
5893
|
+
"UniffiCallbackInterfaceBitcoinChainServiceMethod7: "
|
|
5738
5894
|
<< error.what() << std::endl;
|
|
5739
5895
|
throw error;
|
|
5740
5896
|
}
|
|
@@ -5764,8 +5920,8 @@ callback(uint64_t rs_uniffiHandle,
|
|
|
5764
5920
|
rs_uniffiOutReturn);
|
|
5765
5921
|
}
|
|
5766
5922
|
|
|
5767
|
-
static
|
|
5768
|
-
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::
|
|
5923
|
+
static UniffiCallbackInterfaceBitcoinChainServiceMethod7
|
|
5924
|
+
makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod7
|
|
5769
5925
|
jsi::Runtime &rt,
|
|
5770
5926
|
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
|
|
5771
5927
|
const jsi::Value &value) {
|
|
@@ -5812,7 +5968,7 @@ static void cleanup() {
|
|
|
5812
5968
|
rsLambda = nullptr;
|
|
5813
5969
|
}
|
|
5814
5970
|
} // namespace
|
|
5815
|
-
// uniffi::breez_sdk_spark::cb::
|
|
5971
|
+
// uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod7
|
|
5816
5972
|
// Implementation of callback function calling from Rust to JS
|
|
5817
5973
|
// CallbackInterfaceCpfpSignerMethod0
|
|
5818
5974
|
|
|
@@ -16486,17 +16642,20 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceBitcoinChainService> {
|
|
|
16486
16642
|
rsObject.get_transaction_status = uniffi::breez_sdk_spark::cb::
|
|
16487
16643
|
callbackinterfacebitcoinchainservicemethod2::makeCallbackFunction(
|
|
16488
16644
|
rt, callInvoker, jsObject.getProperty(rt, "getTransactionStatus"));
|
|
16489
|
-
rsObject.
|
|
16645
|
+
rsObject.tip_height = uniffi::breez_sdk_spark::cb::
|
|
16490
16646
|
callbackinterfacebitcoinchainservicemethod3::makeCallbackFunction(
|
|
16647
|
+
rt, callInvoker, jsObject.getProperty(rt, "tipHeight"));
|
|
16648
|
+
rsObject.get_transaction_hex = uniffi::breez_sdk_spark::cb::
|
|
16649
|
+
callbackinterfacebitcoinchainservicemethod4::makeCallbackFunction(
|
|
16491
16650
|
rt, callInvoker, jsObject.getProperty(rt, "getTransactionHex"));
|
|
16492
16651
|
rsObject.get_outspend = uniffi::breez_sdk_spark::cb::
|
|
16493
|
-
|
|
16652
|
+
callbackinterfacebitcoinchainservicemethod5::makeCallbackFunction(
|
|
16494
16653
|
rt, callInvoker, jsObject.getProperty(rt, "getOutspend"));
|
|
16495
16654
|
rsObject.broadcast_transaction = uniffi::breez_sdk_spark::cb::
|
|
16496
|
-
|
|
16655
|
+
callbackinterfacebitcoinchainservicemethod6::makeCallbackFunction(
|
|
16497
16656
|
rt, callInvoker, jsObject.getProperty(rt, "broadcastTransaction"));
|
|
16498
16657
|
rsObject.recommended_fees = uniffi::breez_sdk_spark::cb::
|
|
16499
|
-
|
|
16658
|
+
callbackinterfacebitcoinchainservicemethod7::makeCallbackFunction(
|
|
16500
16659
|
rt, callInvoker, jsObject.getProperty(rt, "recommendedFees"));
|
|
16501
16660
|
rsObject.uniffi_free = uniffi::breez_sdk_spark::st::
|
|
16502
16661
|
vtablecallbackinterfacebitcoinchainservice::
|
|
@@ -17223,6 +17382,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17223
17382
|
->cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(
|
|
17224
17383
|
rt, thisVal, args, count);
|
|
17225
17384
|
});
|
|
17385
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_"
|
|
17386
|
+
"height"] = jsi::Function::createFromHostFunction(
|
|
17387
|
+
rt,
|
|
17388
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17389
|
+
"bitcoinchainservice_tip_height"),
|
|
17390
|
+
1,
|
|
17391
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17392
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17393
|
+
return this
|
|
17394
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_height(
|
|
17395
|
+
rt, thisVal, args, count);
|
|
17396
|
+
});
|
|
17226
17397
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_"
|
|
17227
17398
|
"transaction_hex"] = jsi::Function::createFromHostFunction(
|
|
17228
17399
|
rt,
|
|
@@ -17493,6 +17664,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17493
17664
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_export_unilateral_exit_state(
|
|
17494
17665
|
rt, thisVal, args, count);
|
|
17495
17666
|
});
|
|
17667
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_"
|
|
17668
|
+
"quote"] = jsi::Function::createFromHostFunction(
|
|
17669
|
+
rt,
|
|
17670
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17671
|
+
"breezsdk_fetch_claim_deposit_quote"),
|
|
17672
|
+
2,
|
|
17673
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17674
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17675
|
+
return this
|
|
17676
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_quote(
|
|
17677
|
+
rt, thisVal, args, count);
|
|
17678
|
+
});
|
|
17496
17679
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_"
|
|
17497
17680
|
"limits"] = jsi::Function::createFromHostFunction(
|
|
17498
17681
|
rt,
|
|
@@ -19934,7 +20117,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
19934
20117
|
rt,
|
|
19935
20118
|
jsi::PropNameID::forAscii(
|
|
19936
20119
|
rt, "ubrn_uniffi_breez_sdk_spark_fn_func_get_spark_status"),
|
|
19937
|
-
|
|
20120
|
+
1,
|
|
19938
20121
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
19939
20122
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
19940
20123
|
return this->cpp_uniffi_breez_sdk_spark_fn_func_get_spark_status(
|
|
@@ -19956,7 +20139,7 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
19956
20139
|
rt,
|
|
19957
20140
|
jsi::PropNameID::forAscii(
|
|
19958
20141
|
rt, "ubrn_uniffi_breez_sdk_spark_fn_func_new_rest_chain_service"),
|
|
19959
|
-
|
|
20142
|
+
5,
|
|
19960
20143
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
19961
20144
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
19962
20145
|
return this
|
|
@@ -20790,6 +20973,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
20790
20973
|
->cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(
|
|
20791
20974
|
rt, thisVal, args, count);
|
|
20792
20975
|
});
|
|
20976
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_"
|
|
20977
|
+
"height"] = jsi::Function::createFromHostFunction(
|
|
20978
|
+
rt,
|
|
20979
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
20980
|
+
"method_bitcoinchainservice_tip_height"),
|
|
20981
|
+
0,
|
|
20982
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
20983
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
20984
|
+
return this
|
|
20985
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height(
|
|
20986
|
+
rt, thisVal, args, count);
|
|
20987
|
+
});
|
|
20793
20988
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_"
|
|
20794
20989
|
"transaction_hex"] = jsi::Function::createFromHostFunction(
|
|
20795
20990
|
rt,
|
|
@@ -21040,6 +21235,19 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
21040
21235
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_export_unilateral_exit_state(
|
|
21041
21236
|
rt, thisVal, args, count);
|
|
21042
21237
|
});
|
|
21238
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_"
|
|
21239
|
+
"deposit_quote"] = jsi::Function::createFromHostFunction(
|
|
21240
|
+
rt,
|
|
21241
|
+
jsi::PropNameID::forAscii(rt,
|
|
21242
|
+
"ubrn_uniffi_breez_sdk_spark_checksum_method_"
|
|
21243
|
+
"breezsdk_fetch_claim_deposit_quote"),
|
|
21244
|
+
0,
|
|
21245
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
21246
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
21247
|
+
return this
|
|
21248
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote(
|
|
21249
|
+
rt, thisVal, args, count);
|
|
21250
|
+
});
|
|
21043
21251
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_"
|
|
21044
21252
|
"limits"] = jsi::Function::createFromHostFunction(
|
|
21045
21253
|
rt,
|
|
@@ -23185,6 +23393,9 @@ NativeBreezSdkSpark::~NativeBreezSdkSpark() {
|
|
|
23185
23393
|
// Cleanup for callback function CallbackInterfaceBitcoinChainServiceMethod6
|
|
23186
23394
|
uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod6::
|
|
23187
23395
|
cleanup();
|
|
23396
|
+
// Cleanup for callback function CallbackInterfaceBitcoinChainServiceMethod7
|
|
23397
|
+
uniffi::breez_sdk_spark::cb::callbackinterfacebitcoinchainservicemethod7::
|
|
23398
|
+
cleanup();
|
|
23188
23399
|
// Cleanup for callback function CallbackInterfaceCpfpSignerMethod0
|
|
23189
23400
|
uniffi::breez_sdk_spark::cb::callbackinterfacecpfpsignermethod0::cleanup();
|
|
23190
23401
|
// Cleanup for callback function CallbackInterfaceExternalBreezSignerMethod0
|
|
@@ -23771,6 +23982,16 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
23771
23982
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23772
23983
|
value);
|
|
23773
23984
|
}
|
|
23985
|
+
jsi::Value NativeBreezSdkSpark::
|
|
23986
|
+
cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_height(
|
|
23987
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
23988
|
+
size_t count) {
|
|
23989
|
+
auto value = uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_height(
|
|
23990
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]));
|
|
23991
|
+
|
|
23992
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
23993
|
+
value);
|
|
23994
|
+
}
|
|
23774
23995
|
jsi::Value NativeBreezSdkSpark::
|
|
23775
23996
|
cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_hex(
|
|
23776
23997
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -24039,6 +24260,19 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
24039
24260
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24040
24261
|
value);
|
|
24041
24262
|
}
|
|
24263
|
+
jsi::Value NativeBreezSdkSpark::
|
|
24264
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_quote(
|
|
24265
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24266
|
+
size_t count) {
|
|
24267
|
+
auto value =
|
|
24268
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_quote(
|
|
24269
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
24270
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
24271
|
+
args[1]));
|
|
24272
|
+
|
|
24273
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24274
|
+
value);
|
|
24275
|
+
}
|
|
24042
24276
|
jsi::Value NativeBreezSdkSpark::
|
|
24043
24277
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
24044
24278
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -26612,7 +26846,9 @@ jsi::Value
|
|
|
26612
26846
|
NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_get_spark_status(
|
|
26613
26847
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
26614
26848
|
size_t count) {
|
|
26615
|
-
auto value = uniffi_breez_sdk_spark_fn_func_get_spark_status(
|
|
26849
|
+
auto value = uniffi_breez_sdk_spark_fn_func_get_spark_status(
|
|
26850
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
26851
|
+
args[0]));
|
|
26616
26852
|
|
|
26617
26853
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
26618
26854
|
value);
|
|
@@ -26647,7 +26883,9 @@ NativeBreezSdkSpark::cpp_uniffi_breez_sdk_spark_fn_func_new_rest_chain_service(
|
|
|
26647
26883
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
26648
26884
|
args[2]),
|
|
26649
26885
|
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
26650
|
-
args[3])
|
|
26886
|
+
args[3]),
|
|
26887
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
26888
|
+
args[4]));
|
|
26651
26889
|
|
|
26652
26890
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
26653
26891
|
value);
|
|
@@ -27451,6 +27689,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27451
27689
|
|
|
27452
27690
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27453
27691
|
}
|
|
27692
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27693
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height(
|
|
27694
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27695
|
+
size_t count) {
|
|
27696
|
+
auto value =
|
|
27697
|
+
uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height();
|
|
27698
|
+
|
|
27699
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27700
|
+
}
|
|
27454
27701
|
jsi::Value NativeBreezSdkSpark::
|
|
27455
27702
|
cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(
|
|
27456
27703
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -27625,6 +27872,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27625
27872
|
|
|
27626
27873
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27627
27874
|
}
|
|
27875
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27876
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote(
|
|
27877
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27878
|
+
size_t count) {
|
|
27879
|
+
auto value =
|
|
27880
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote();
|
|
27881
|
+
|
|
27882
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27883
|
+
}
|
|
27628
27884
|
jsi::Value NativeBreezSdkSpark::
|
|
27629
27885
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(
|
|
27630
27886
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -51,6 +51,10 @@ protected:
|
|
|
51
51
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
52
|
size_t count);
|
|
53
53
|
jsi::Value
|
|
54
|
+
cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_tip_height(
|
|
55
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
56
|
+
size_t count);
|
|
57
|
+
jsi::Value
|
|
54
58
|
cpp_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_hex(
|
|
55
59
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
56
60
|
size_t count);
|
|
@@ -129,6 +133,10 @@ protected:
|
|
|
129
133
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
130
134
|
size_t count);
|
|
131
135
|
jsi::Value
|
|
136
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_claim_deposit_quote(
|
|
137
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
|
+
size_t count);
|
|
139
|
+
jsi::Value
|
|
132
140
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_fetch_conversion_limits(
|
|
133
141
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
134
142
|
size_t count);
|
|
@@ -1038,6 +1046,10 @@ protected:
|
|
|
1038
1046
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1039
1047
|
size_t count);
|
|
1040
1048
|
jsi::Value
|
|
1049
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_tip_height(
|
|
1050
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1051
|
+
size_t count);
|
|
1052
|
+
jsi::Value
|
|
1041
1053
|
cpp_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(
|
|
1042
1054
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1043
1055
|
size_t count);
|
|
@@ -1112,6 +1124,10 @@ protected:
|
|
|
1112
1124
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1113
1125
|
size_t count);
|
|
1114
1126
|
jsi::Value
|
|
1127
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_claim_deposit_quote(
|
|
1128
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1129
|
+
size_t count);
|
|
1130
|
+
jsi::Value
|
|
1115
1131
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(
|
|
1116
1132
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1117
1133
|
size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAm2CA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AAgvBA;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":[]}
|