@breeztech/breez-sdk-spark-react-native 0.12.2-dev3 → 0.12.3-dev1
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/lib/commonjs/generated/breez_sdk_spark.js +3 -3
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +3 -3
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +29 -12
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +29 -12
- 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.ts +40 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3-dev1",
|
|
4
4
|
"description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"version": "0.49.0"
|
|
198
198
|
},
|
|
199
199
|
"checksums": {
|
|
200
|
-
"android": "
|
|
201
|
-
"ios": "
|
|
200
|
+
"android": "389ed1edf0e6da301b38de3441ae068370ee8a5c951afd2ec1258ce4fa7d5a14",
|
|
201
|
+
"ios": "3131337859dffa5ab83faabbdf4bc77e477a0c80da79e9c15a2f2690791d9058"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -2476,12 +2476,19 @@ export type ConversionEstimate = {
|
|
|
2476
2476
|
*/
|
|
2477
2477
|
options: ConversionOptions;
|
|
2478
2478
|
/**
|
|
2479
|
-
* The
|
|
2480
|
-
*
|
|
2479
|
+
* The input amount for the conversion.
|
|
2480
|
+
* For `FromBitcoin`: the satoshis required to produce the desired token output.
|
|
2481
|
+
* For `ToBitcoin`: the token amount being converted.
|
|
2481
2482
|
*/
|
|
2482
|
-
|
|
2483
|
+
amountIn: U128;
|
|
2484
|
+
/**
|
|
2485
|
+
* The estimated output amount from the conversion.
|
|
2486
|
+
* For `FromBitcoin`: the estimated token amount received.
|
|
2487
|
+
* For `ToBitcoin`: the estimated satoshis received.
|
|
2488
|
+
*/
|
|
2489
|
+
amountOut: U128;
|
|
2483
2490
|
/**
|
|
2484
|
-
* The fee estimated for the conversion
|
|
2491
|
+
* The fee estimated for the conversion.
|
|
2485
2492
|
* Denominated in satoshis if converting from Bitcoin, otherwise in the token base units.
|
|
2486
2493
|
*/
|
|
2487
2494
|
fee: U128;
|
|
@@ -2527,7 +2534,8 @@ const FfiConverterTypeConversionEstimate = (() => {
|
|
|
2527
2534
|
read(from: RustBuffer): TypeName {
|
|
2528
2535
|
return {
|
|
2529
2536
|
options: FfiConverterTypeConversionOptions.read(from),
|
|
2530
|
-
|
|
2537
|
+
amountIn: FfiConverterTypeu128.read(from),
|
|
2538
|
+
amountOut: FfiConverterTypeu128.read(from),
|
|
2531
2539
|
fee: FfiConverterTypeu128.read(from),
|
|
2532
2540
|
amountAdjustment:
|
|
2533
2541
|
FfiConverterOptionalTypeAmountAdjustmentReason.read(from),
|
|
@@ -2535,7 +2543,8 @@ const FfiConverterTypeConversionEstimate = (() => {
|
|
|
2535
2543
|
}
|
|
2536
2544
|
write(value: TypeName, into: RustBuffer): void {
|
|
2537
2545
|
FfiConverterTypeConversionOptions.write(value.options, into);
|
|
2538
|
-
FfiConverterTypeu128.write(value.
|
|
2546
|
+
FfiConverterTypeu128.write(value.amountIn, into);
|
|
2547
|
+
FfiConverterTypeu128.write(value.amountOut, into);
|
|
2539
2548
|
FfiConverterTypeu128.write(value.fee, into);
|
|
2540
2549
|
FfiConverterOptionalTypeAmountAdjustmentReason.write(
|
|
2541
2550
|
value.amountAdjustment,
|
|
@@ -2545,7 +2554,8 @@ const FfiConverterTypeConversionEstimate = (() => {
|
|
|
2545
2554
|
allocationSize(value: TypeName): number {
|
|
2546
2555
|
return (
|
|
2547
2556
|
FfiConverterTypeConversionOptions.allocationSize(value.options) +
|
|
2548
|
-
FfiConverterTypeu128.allocationSize(value.
|
|
2557
|
+
FfiConverterTypeu128.allocationSize(value.amountIn) +
|
|
2558
|
+
FfiConverterTypeu128.allocationSize(value.amountOut) +
|
|
2549
2559
|
FfiConverterTypeu128.allocationSize(value.fee) +
|
|
2550
2560
|
FfiConverterOptionalTypeAmountAdjustmentReason.allocationSize(
|
|
2551
2561
|
value.amountAdjustment
|
|
@@ -7569,12 +7579,17 @@ const FfiConverterTypePaymentRequestSource = (() => {
|
|
|
7569
7579
|
|
|
7570
7580
|
export type PrepareLnurlPayRequest = {
|
|
7571
7581
|
/**
|
|
7572
|
-
* The amount to send in satoshis
|
|
7582
|
+
* The amount to send. Denominated in satoshis, or in token base units
|
|
7583
|
+
* when `token_identifier` is set.
|
|
7573
7584
|
*/
|
|
7574
|
-
|
|
7585
|
+
amount: U128;
|
|
7575
7586
|
payRequest: LnurlPayRequestDetails;
|
|
7576
7587
|
comment: string | undefined;
|
|
7577
7588
|
validateSuccessActionUrl: boolean | undefined;
|
|
7589
|
+
/**
|
|
7590
|
+
* The token identifier when sending a token amount with conversion.
|
|
7591
|
+
*/
|
|
7592
|
+
tokenIdentifier: string | undefined;
|
|
7578
7593
|
/**
|
|
7579
7594
|
* If provided, the payment will include a token conversion step before sending the payment
|
|
7580
7595
|
*/
|
|
@@ -7592,6 +7607,7 @@ export const PrepareLnurlPayRequest = (() => {
|
|
|
7592
7607
|
const defaults = () => ({
|
|
7593
7608
|
comment: undefined,
|
|
7594
7609
|
validateSuccessActionUrl: undefined,
|
|
7610
|
+
tokenIdentifier: undefined,
|
|
7595
7611
|
conversionOptions: undefined,
|
|
7596
7612
|
feePolicy: undefined,
|
|
7597
7613
|
});
|
|
@@ -7627,19 +7643,21 @@ const FfiConverterTypePrepareLnurlPayRequest = (() => {
|
|
|
7627
7643
|
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
7628
7644
|
read(from: RustBuffer): TypeName {
|
|
7629
7645
|
return {
|
|
7630
|
-
|
|
7646
|
+
amount: FfiConverterTypeu128.read(from),
|
|
7631
7647
|
payRequest: FfiConverterTypeLnurlPayRequestDetails.read(from),
|
|
7632
7648
|
comment: FfiConverterOptionalString.read(from),
|
|
7633
7649
|
validateSuccessActionUrl: FfiConverterOptionalBool.read(from),
|
|
7650
|
+
tokenIdentifier: FfiConverterOptionalString.read(from),
|
|
7634
7651
|
conversionOptions: FfiConverterOptionalTypeConversionOptions.read(from),
|
|
7635
7652
|
feePolicy: FfiConverterOptionalTypeFeePolicy.read(from),
|
|
7636
7653
|
};
|
|
7637
7654
|
}
|
|
7638
7655
|
write(value: TypeName, into: RustBuffer): void {
|
|
7639
|
-
|
|
7656
|
+
FfiConverterTypeu128.write(value.amount, into);
|
|
7640
7657
|
FfiConverterTypeLnurlPayRequestDetails.write(value.payRequest, into);
|
|
7641
7658
|
FfiConverterOptionalString.write(value.comment, into);
|
|
7642
7659
|
FfiConverterOptionalBool.write(value.validateSuccessActionUrl, into);
|
|
7660
|
+
FfiConverterOptionalString.write(value.tokenIdentifier, into);
|
|
7643
7661
|
FfiConverterOptionalTypeConversionOptions.write(
|
|
7644
7662
|
value.conversionOptions,
|
|
7645
7663
|
into
|
|
@@ -7648,7 +7666,7 @@ const FfiConverterTypePrepareLnurlPayRequest = (() => {
|
|
|
7648
7666
|
}
|
|
7649
7667
|
allocationSize(value: TypeName): number {
|
|
7650
7668
|
return (
|
|
7651
|
-
|
|
7669
|
+
FfiConverterTypeu128.allocationSize(value.amount) +
|
|
7652
7670
|
FfiConverterTypeLnurlPayRequestDetails.allocationSize(
|
|
7653
7671
|
value.payRequest
|
|
7654
7672
|
) +
|
|
@@ -7656,6 +7674,7 @@ const FfiConverterTypePrepareLnurlPayRequest = (() => {
|
|
|
7656
7674
|
FfiConverterOptionalBool.allocationSize(
|
|
7657
7675
|
value.validateSuccessActionUrl
|
|
7658
7676
|
) +
|
|
7677
|
+
FfiConverterOptionalString.allocationSize(value.tokenIdentifier) +
|
|
7659
7678
|
FfiConverterOptionalTypeConversionOptions.allocationSize(
|
|
7660
7679
|
value.conversionOptions
|
|
7661
7680
|
) +
|
|
@@ -7668,7 +7687,10 @@ const FfiConverterTypePrepareLnurlPayRequest = (() => {
|
|
|
7668
7687
|
|
|
7669
7688
|
export type PrepareLnurlPayResponse = {
|
|
7670
7689
|
/**
|
|
7671
|
-
* The amount
|
|
7690
|
+
* The amount for the payment, always denominated in sats, even when a
|
|
7691
|
+
* `token_identifier` and conversion are present.
|
|
7692
|
+
* When a conversion is present, the token input amount is available in
|
|
7693
|
+
* `conversion_estimate.amount_in`.
|
|
7672
7694
|
*/
|
|
7673
7695
|
amountSats: /*u64*/ bigint;
|
|
7674
7696
|
comment: string | undefined;
|
|
@@ -7876,8 +7898,10 @@ const FfiConverterTypePrepareSendPaymentRequest = (() => {
|
|
|
7876
7898
|
export type PrepareSendPaymentResponse = {
|
|
7877
7899
|
paymentMethod: SendPaymentMethod;
|
|
7878
7900
|
/**
|
|
7879
|
-
* The amount for
|
|
7880
|
-
*
|
|
7901
|
+
* The amount to be sent, denominated in satoshis for Bitcoin payments
|
|
7902
|
+
* (including token-to-Bitcoin conversions), or token base units for token payments.
|
|
7903
|
+
* When a conversion is present, the input amount is in
|
|
7904
|
+
* `conversion_estimate.amount_in`.
|
|
7881
7905
|
*/
|
|
7882
7906
|
amount: U128;
|
|
7883
7907
|
/**
|
|
@@ -10342,7 +10366,7 @@ export type StableBalanceConfig = {
|
|
|
10342
10366
|
/**
|
|
10343
10367
|
* Maximum slippage in basis points (1/100 of a percent).
|
|
10344
10368
|
*
|
|
10345
|
-
* Defaults to
|
|
10369
|
+
* Defaults to 10 bps (0.1%) if not set.
|
|
10346
10370
|
*/
|
|
10347
10371
|
maxSlippageBps: /*u32*/ number | undefined;
|
|
10348
10372
|
};
|