@breeztech/breez-sdk-spark-react-native 0.2.1 → 0.2.2-dev2
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 +217 -8
- package/cpp/generated/breez_sdk_spark.hpp +8 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +44 -2
- 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 +44 -2
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +7 -3
- 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 +6 -0
- 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 +7 -3
- 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 +6 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_spark-ffi.ts +14 -2
- package/src/generated/breez_sdk_spark.ts +98 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;AAAA;AACA;;AA4eA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AACzC,eAAeF,MAAM;;AAErB;;AAyPA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|
|
@@ -4504,6 +4504,19 @@ export class BitcoinChainServiceImpl extends UniffiAbstractObject {
|
|
|
4504
4504
|
throw __error;
|
|
4505
4505
|
}
|
|
4506
4506
|
}
|
|
4507
|
+
async getTransactionStatus(txid, asyncOpts_) /*throws*/{
|
|
4508
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4509
|
+
try {
|
|
4510
|
+
return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
4511
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(uniffiTypeBitcoinChainServiceImplObjectFactory.clonePointer(this), FfiConverterString.lower(txid));
|
|
4512
|
+
}, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeTxStatus.lift.bind(FfiConverterTypeTxStatus), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeChainServiceError.lift.bind(FfiConverterTypeChainServiceError));
|
|
4513
|
+
} catch (__error) {
|
|
4514
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
4515
|
+
__error.stack = __stack;
|
|
4516
|
+
}
|
|
4517
|
+
throw __error;
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4507
4520
|
async getTransactionHex(txid, asyncOpts_) /*throws*/{
|
|
4508
4521
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
4509
4522
|
try {
|
|
@@ -4614,6 +4627,32 @@ const uniffiCallbackInterfaceBitcoinChainService = {
|
|
|
4614
4627
|
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ChainServiceError.instanceOf, /*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError), /*lowerString:*/FfiConverterString.lower);
|
|
4615
4628
|
return UniffiResult.success(uniffiForeignFuture);
|
|
4616
4629
|
},
|
|
4630
|
+
getTransactionStatus: (uniffiHandle, txid, uniffiFutureCallback, uniffiCallbackData) => {
|
|
4631
|
+
const uniffiMakeCall = async signal => {
|
|
4632
|
+
const jsCallback = FfiConverterTypeBitcoinChainService.lift(uniffiHandle);
|
|
4633
|
+
return await jsCallback.getTransactionStatus(FfiConverterString.lift(txid), {
|
|
4634
|
+
signal
|
|
4635
|
+
});
|
|
4636
|
+
};
|
|
4637
|
+
const uniffiHandleSuccess = returnValue => {
|
|
4638
|
+
uniffiFutureCallback(uniffiCallbackData, /* UniffiForeignFutureStructRustBuffer */{
|
|
4639
|
+
returnValue: FfiConverterTypeTxStatus.lower(returnValue),
|
|
4640
|
+
callStatus: uniffiCaller.createCallStatus()
|
|
4641
|
+
});
|
|
4642
|
+
};
|
|
4643
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
4644
|
+
uniffiFutureCallback(uniffiCallbackData, /* UniffiForeignFutureStructRustBuffer */{
|
|
4645
|
+
returnValue: /*empty*/new Uint8Array(0),
|
|
4646
|
+
// TODO create callstatus with error.
|
|
4647
|
+
callStatus: {
|
|
4648
|
+
code,
|
|
4649
|
+
errorBuf
|
|
4650
|
+
}
|
|
4651
|
+
});
|
|
4652
|
+
};
|
|
4653
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ChainServiceError.instanceOf, /*lowerError:*/FfiConverterTypeChainServiceError.lower.bind(FfiConverterTypeChainServiceError), /*lowerString:*/FfiConverterString.lower);
|
|
4654
|
+
return UniffiResult.success(uniffiForeignFuture);
|
|
4655
|
+
},
|
|
4617
4656
|
getTransactionHex: (uniffiHandle, txid, uniffiFutureCallback, uniffiCallbackData) => {
|
|
4618
4657
|
const uniffiMakeCall = async signal => {
|
|
4619
4658
|
const jsCallback = FfiConverterTypeBitcoinChainService.lift(uniffiHandle);
|
|
@@ -5954,10 +5993,13 @@ function uniffiEnsureInitialized() {
|
|
|
5954
5993
|
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos() !== 20959) {
|
|
5955
5994
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos');
|
|
5956
5995
|
}
|
|
5957
|
-
if (nativeModule().
|
|
5996
|
+
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status() !== 23018) {
|
|
5997
|
+
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status');
|
|
5998
|
+
}
|
|
5999
|
+
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex() !== 59376) {
|
|
5958
6000
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex');
|
|
5959
6001
|
}
|
|
5960
|
-
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction() !==
|
|
6002
|
+
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction() !== 65179) {
|
|
5961
6003
|
throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction');
|
|
5962
6004
|
}
|
|
5963
6005
|
if (nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener() !== 61844) {
|