@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
|
@@ -948,12 +948,19 @@ export type ConversionEstimate = {
|
|
|
948
948
|
*/
|
|
949
949
|
options: ConversionOptions;
|
|
950
950
|
/**
|
|
951
|
-
* The
|
|
952
|
-
*
|
|
951
|
+
* The input amount for the conversion.
|
|
952
|
+
* For `FromBitcoin`: the satoshis required to produce the desired token output.
|
|
953
|
+
* For `ToBitcoin`: the token amount being converted.
|
|
953
954
|
*/
|
|
954
|
-
|
|
955
|
+
amountIn: U128;
|
|
955
956
|
/**
|
|
956
|
-
* The
|
|
957
|
+
* The estimated output amount from the conversion.
|
|
958
|
+
* For `FromBitcoin`: the estimated token amount received.
|
|
959
|
+
* For `ToBitcoin`: the estimated satoshis received.
|
|
960
|
+
*/
|
|
961
|
+
amountOut: U128;
|
|
962
|
+
/**
|
|
963
|
+
* The fee estimated for the conversion.
|
|
957
964
|
* Denominated in satoshis if converting from Bitcoin, otherwise in the token base units.
|
|
958
965
|
*/
|
|
959
966
|
fee: U128;
|
|
@@ -3166,12 +3173,17 @@ export declare const PaymentRequestSource: Readonly<{
|
|
|
3166
3173
|
}>;
|
|
3167
3174
|
export type PrepareLnurlPayRequest = {
|
|
3168
3175
|
/**
|
|
3169
|
-
* The amount to send in satoshis
|
|
3176
|
+
* The amount to send. Denominated in satoshis, or in token base units
|
|
3177
|
+
* when `token_identifier` is set.
|
|
3170
3178
|
*/
|
|
3171
|
-
|
|
3179
|
+
amount: U128;
|
|
3172
3180
|
payRequest: LnurlPayRequestDetails;
|
|
3173
3181
|
comment: string | undefined;
|
|
3174
3182
|
validateSuccessActionUrl: boolean | undefined;
|
|
3183
|
+
/**
|
|
3184
|
+
* The token identifier when sending a token amount with conversion.
|
|
3185
|
+
*/
|
|
3186
|
+
tokenIdentifier: string | undefined;
|
|
3175
3187
|
/**
|
|
3176
3188
|
* If provided, the payment will include a token conversion step before sending the payment
|
|
3177
3189
|
*/
|
|
@@ -3189,12 +3201,12 @@ export declare const PrepareLnurlPayRequest: Readonly<{
|
|
|
3189
3201
|
* Create a frozen instance of {@link PrepareLnurlPayRequest}, with defaults specified
|
|
3190
3202
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
3191
3203
|
*/
|
|
3192
|
-
create: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "comment" | "validateSuccessActionUrl" | "conversionOptions" | "feePolicy">>) => PrepareLnurlPayRequest;
|
|
3204
|
+
create: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "tokenIdentifier" | "comment" | "validateSuccessActionUrl" | "conversionOptions" | "feePolicy">>) => PrepareLnurlPayRequest;
|
|
3193
3205
|
/**
|
|
3194
3206
|
* Create a frozen instance of {@link PrepareLnurlPayRequest}, with defaults specified
|
|
3195
3207
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
3196
3208
|
*/
|
|
3197
|
-
new: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "comment" | "validateSuccessActionUrl" | "conversionOptions" | "feePolicy">>) => PrepareLnurlPayRequest;
|
|
3209
|
+
new: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "tokenIdentifier" | "comment" | "validateSuccessActionUrl" | "conversionOptions" | "feePolicy">>) => PrepareLnurlPayRequest;
|
|
3198
3210
|
/**
|
|
3199
3211
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
3200
3212
|
*/
|
|
@@ -3202,7 +3214,10 @@ export declare const PrepareLnurlPayRequest: Readonly<{
|
|
|
3202
3214
|
}>;
|
|
3203
3215
|
export type PrepareLnurlPayResponse = {
|
|
3204
3216
|
/**
|
|
3205
|
-
* The amount
|
|
3217
|
+
* The amount for the payment, always denominated in sats, even when a
|
|
3218
|
+
* `token_identifier` and conversion are present.
|
|
3219
|
+
* When a conversion is present, the token input amount is available in
|
|
3220
|
+
* `conversion_estimate.amount_in`.
|
|
3206
3221
|
*/
|
|
3207
3222
|
amountSats: bigint;
|
|
3208
3223
|
comment: string | undefined;
|
|
@@ -3287,8 +3302,10 @@ export declare const PrepareSendPaymentRequest: Readonly<{
|
|
|
3287
3302
|
export type PrepareSendPaymentResponse = {
|
|
3288
3303
|
paymentMethod: SendPaymentMethod;
|
|
3289
3304
|
/**
|
|
3290
|
-
* The amount for
|
|
3291
|
-
*
|
|
3305
|
+
* The amount to be sent, denominated in satoshis for Bitcoin payments
|
|
3306
|
+
* (including token-to-Bitcoin conversions), or token base units for token payments.
|
|
3307
|
+
* When a conversion is present, the input amount is in
|
|
3308
|
+
* `conversion_estimate.amount_in`.
|
|
3292
3309
|
*/
|
|
3293
3310
|
amount: U128;
|
|
3294
3311
|
/**
|
|
@@ -4367,7 +4384,7 @@ export type StableBalanceConfig = {
|
|
|
4367
4384
|
/**
|
|
4368
4385
|
* Maximum slippage in basis points (1/100 of a percent).
|
|
4369
4386
|
*
|
|
4370
|
-
* Defaults to
|
|
4387
|
+
* Defaults to 10 bps (0.1%) if not set.
|
|
4371
4388
|
*/
|
|
4372
4389
|
maxSlippageBps: /*u32*/ number | undefined;
|
|
4373
4390
|
};
|