@breeztech/breez-sdk-spark-react-native 0.21.1 → 0.22.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/lib/commonjs/generated/breez_sdk_spark.js +19 -6
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +18 -5
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +41 -2
- 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 +41 -2
- 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 +81 -2
|
@@ -5338,8 +5338,8 @@ export type RefundPendingConversionsResponse = {
|
|
|
5338
5338
|
*/
|
|
5339
5339
|
refunded: number;
|
|
5340
5340
|
/**
|
|
5341
|
-
* Conversions
|
|
5342
|
-
*
|
|
5341
|
+
* Conversions not clawed back this pass: held back by a safety window, or
|
|
5342
|
+
* found to have executed after all. Only the former are retried.
|
|
5343
5343
|
*/
|
|
5344
5344
|
skipped: number;
|
|
5345
5345
|
/**
|
|
@@ -8824,6 +8824,10 @@ export declare const ConversionInfo: Readonly<{
|
|
|
8824
8824
|
/**
|
|
8825
8825
|
* The reason the conversion amount was adjusted, if applicable.
|
|
8826
8826
|
*/ amountAdjustment: AmountAdjustmentReason | undefined;
|
|
8827
|
+
/**
|
|
8828
|
+
* How the swap departed from the signed terms, if it did. Set on a
|
|
8829
|
+
* conversion that completed without delivering what was signed for.
|
|
8830
|
+
*/ degradation: SwapDegradation | undefined;
|
|
8827
8831
|
}): {
|
|
8828
8832
|
readonly tag: ConversionInfo_Tags.Amm;
|
|
8829
8833
|
readonly inner: Readonly<{
|
|
@@ -8833,6 +8837,7 @@ export declare const ConversionInfo: Readonly<{
|
|
|
8833
8837
|
fee: U128 | undefined;
|
|
8834
8838
|
purpose: ConversionPurpose | undefined;
|
|
8835
8839
|
amountAdjustment: AmountAdjustmentReason | undefined;
|
|
8840
|
+
degradation: SwapDegradation | undefined;
|
|
8836
8841
|
}>;
|
|
8837
8842
|
/**
|
|
8838
8843
|
* @private
|
|
@@ -8860,6 +8865,10 @@ export declare const ConversionInfo: Readonly<{
|
|
|
8860
8865
|
/**
|
|
8861
8866
|
* The reason the conversion amount was adjusted, if applicable.
|
|
8862
8867
|
*/ amountAdjustment: AmountAdjustmentReason | undefined;
|
|
8868
|
+
/**
|
|
8869
|
+
* How the swap departed from the signed terms, if it did. Set on a
|
|
8870
|
+
* conversion that completed without delivering what was signed for.
|
|
8871
|
+
*/ degradation: SwapDegradation | undefined;
|
|
8863
8872
|
}): {
|
|
8864
8873
|
readonly tag: ConversionInfo_Tags.Amm;
|
|
8865
8874
|
readonly inner: Readonly<{
|
|
@@ -8869,6 +8878,7 @@ export declare const ConversionInfo: Readonly<{
|
|
|
8869
8878
|
fee: U128 | undefined;
|
|
8870
8879
|
purpose: ConversionPurpose | undefined;
|
|
8871
8880
|
amountAdjustment: AmountAdjustmentReason | undefined;
|
|
8881
|
+
degradation: SwapDegradation | undefined;
|
|
8872
8882
|
}>;
|
|
8873
8883
|
/**
|
|
8874
8884
|
* @private
|
|
@@ -8885,6 +8895,7 @@ export declare const ConversionInfo: Readonly<{
|
|
|
8885
8895
|
fee: U128 | undefined;
|
|
8886
8896
|
purpose: ConversionPurpose | undefined;
|
|
8887
8897
|
amountAdjustment: AmountAdjustmentReason | undefined;
|
|
8898
|
+
degradation: SwapDegradation | undefined;
|
|
8888
8899
|
}>;
|
|
8889
8900
|
/**
|
|
8890
8901
|
* @private
|
|
@@ -19401,6 +19412,27 @@ export declare const SuccessActionProcessed: Readonly<{
|
|
|
19401
19412
|
* Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
|
|
19402
19413
|
*/
|
|
19403
19414
|
export type SuccessActionProcessed = InstanceType<(typeof SuccessActionProcessed)[keyof Omit<typeof SuccessActionProcessed, 'instanceOf'>]>;
|
|
19415
|
+
/**
|
|
19416
|
+
* How an executed swap departed from the terms the client signed.
|
|
19417
|
+
*
|
|
19418
|
+
* The input is spent either way, so the conversion completes rather than being
|
|
19419
|
+
* refunded. This records that it did not deliver what was signed for.
|
|
19420
|
+
*/
|
|
19421
|
+
export declare enum SwapDegradation {
|
|
19422
|
+
/**
|
|
19423
|
+
* Delivered less than the minimum the intent signed.
|
|
19424
|
+
*/
|
|
19425
|
+
BelowMinimum = 0,
|
|
19426
|
+
/**
|
|
19427
|
+
* Delivered an asset other than the one the intent named.
|
|
19428
|
+
*/
|
|
19429
|
+
UnexpectedAsset = 1,
|
|
19430
|
+
/**
|
|
19431
|
+
* Accepted without naming the amount, the asset, or the transfer carrying
|
|
19432
|
+
* it.
|
|
19433
|
+
*/
|
|
19434
|
+
MissingInfo = 2
|
|
19435
|
+
}
|
|
19404
19436
|
export declare enum TokenTransactionType {
|
|
19405
19437
|
Transfer = 0,
|
|
19406
19438
|
Mint = 1,
|
|
@@ -25557,6 +25589,13 @@ declare const _default: Readonly<{
|
|
|
25557
25589
|
lift(value: UniffiByteArray): SuccessActionProcessed;
|
|
25558
25590
|
lower(value: SuccessActionProcessed): UniffiByteArray;
|
|
25559
25591
|
};
|
|
25592
|
+
FfiConverterTypeSwapDegradation: {
|
|
25593
|
+
read(from: RustBuffer): SwapDegradation;
|
|
25594
|
+
write(value: SwapDegradation, into: RustBuffer): void;
|
|
25595
|
+
allocationSize(value: SwapDegradation): number;
|
|
25596
|
+
lift(value: UniffiByteArray): SwapDegradation;
|
|
25597
|
+
lower(value: SwapDegradation): UniffiByteArray;
|
|
25598
|
+
};
|
|
25560
25599
|
FfiConverterTypeSymbol: {
|
|
25561
25600
|
read(from: RustBuffer): Symbol;
|
|
25562
25601
|
write(value: Symbol, into: RustBuffer): void;
|