@breeztech/breez-sdk-spark-react-native 0.2.6 → 0.3.0-rc2
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 +66 -338
- package/cpp/generated/breez_sdk_spark.hpp +7 -45
- package/lib/commonjs/generated/breez_sdk_common.js +41 -4
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +504 -139
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +41 -4
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +504 -139
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +13 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
- 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 +373 -63
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +13 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
- 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 +373 -63
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common.ts +47 -4
- package/src/generated/breez_sdk_spark-ffi.ts +7 -42
- package/src/generated/breez_sdk_spark.ts +769 -365
|
@@ -1659,15 +1659,15 @@ const FfiConverterTypeTokensPaymentDetails = (() => {
|
|
|
1659
1659
|
read(from) {
|
|
1660
1660
|
return {
|
|
1661
1661
|
tokenIdentifier: FfiConverterOptionalString.read(from),
|
|
1662
|
-
amount:
|
|
1662
|
+
amount: FfiConverterOptionalTypecommon_u128.read(from)
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
1665
|
write(value, into) {
|
|
1666
1666
|
FfiConverterOptionalString.write(value.tokenIdentifier, into);
|
|
1667
|
-
|
|
1667
|
+
FfiConverterOptionalTypecommon_u128.write(value.amount, into);
|
|
1668
1668
|
}
|
|
1669
1669
|
allocationSize(value) {
|
|
1670
|
-
return FfiConverterOptionalString.allocationSize(value.tokenIdentifier) +
|
|
1670
|
+
return FfiConverterOptionalString.allocationSize(value.tokenIdentifier) + FfiConverterOptionalTypecommon_u128.allocationSize(value.amount);
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
return new FFIConverter();
|
|
@@ -1724,6 +1724,39 @@ const stringConverter = {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
1726
1726
|
|
|
1727
|
+
/**
|
|
1728
|
+
* Typealias from the type name used in the UDL file to the custom type. This
|
|
1729
|
+
* is needed because the UDL type name is used in function/method signatures.
|
|
1730
|
+
*/
|
|
1731
|
+
|
|
1732
|
+
// FfiConverter for CommonU128
|
|
1733
|
+
const FfiConverterTypecommon_u128 = (() => {
|
|
1734
|
+
const intermediateConverter = FfiConverterString;
|
|
1735
|
+
class FFIConverter {
|
|
1736
|
+
lift(value) {
|
|
1737
|
+
const intermediate = intermediateConverter.lift(value);
|
|
1738
|
+
return BigInt(intermediate);
|
|
1739
|
+
}
|
|
1740
|
+
lower(value) {
|
|
1741
|
+
const intermediate = value.toString();
|
|
1742
|
+
return intermediateConverter.lower(intermediate);
|
|
1743
|
+
}
|
|
1744
|
+
read(from) {
|
|
1745
|
+
const intermediate = intermediateConverter.read(from);
|
|
1746
|
+
return BigInt(intermediate);
|
|
1747
|
+
}
|
|
1748
|
+
write(value, into) {
|
|
1749
|
+
const intermediate = value.toString();
|
|
1750
|
+
intermediateConverter.write(intermediate, into);
|
|
1751
|
+
}
|
|
1752
|
+
allocationSize(value) {
|
|
1753
|
+
const intermediate = value.toString();
|
|
1754
|
+
return intermediateConverter.allocationSize(intermediate);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
return new FFIConverter();
|
|
1758
|
+
})();
|
|
1759
|
+
|
|
1727
1760
|
// Enum: AesSuccessActionDataResult
|
|
1728
1761
|
export let AesSuccessActionDataResult_Tags = /*#__PURE__*/function (AesSuccessActionDataResult_Tags) {
|
|
1729
1762
|
AesSuccessActionDataResult_Tags["Decrypted"] = "Decrypted";
|
|
@@ -4023,6 +4056,9 @@ const FfiConverterArrayTypeRate = new FfiConverterArray(FfiConverterTypeRate);
|
|
|
4023
4056
|
// FfiConverter for Array<string>
|
|
4024
4057
|
const FfiConverterArrayString = new FfiConverterArray(FfiConverterString);
|
|
4025
4058
|
|
|
4059
|
+
// FfiConverter for CommonU128 | undefined
|
|
4060
|
+
const FfiConverterOptionalTypecommon_u128 = new FfiConverterOptional(FfiConverterTypecommon_u128);
|
|
4061
|
+
|
|
4026
4062
|
// FfiConverter for Amount | undefined
|
|
4027
4063
|
const FfiConverterOptionalTypeAmount = new FfiConverterOptional(FfiConverterTypeAmount);
|
|
4028
4064
|
|
|
@@ -4119,7 +4155,8 @@ export default Object.freeze({
|
|
|
4119
4155
|
FfiConverterTypeSuccessActionProcessed,
|
|
4120
4156
|
FfiConverterTypeSymbol,
|
|
4121
4157
|
FfiConverterTypeTokensPaymentDetails,
|
|
4122
|
-
FfiConverterTypeUrlSuccessActionData
|
|
4158
|
+
FfiConverterTypeUrlSuccessActionData,
|
|
4159
|
+
FfiConverterTypecommon_u128
|
|
4123
4160
|
}
|
|
4124
4161
|
});
|
|
4125
4162
|
//# sourceMappingURL=breez_sdk_common.js.map
|