@breeztech/breez-sdk-spark-react-native 0.13.5 → 0.13.10-dev
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 +9 -4
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +9 -4
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +7 -7
- 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 +7 -7
- 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 +16 -11
|
@@ -1919,8 +1919,13 @@ export let BuyBitcoinRequest_Tags=/*#__PURE__*/function(BuyBitcoinRequest_Tags){
|
|
|
1919
1919
|
* This field is private and should not be used, use `tag` instead.
|
|
1920
1920
|
*/[uniffiTypeNameSymbol]='BuyBitcoinRequest';tag=BuyBitcoinRequest_Tags.Moonpay;constructor(inner){super('BuyBitcoinRequest','Moonpay');this.inner=Object.freeze(inner);}static new(inner){return new Moonpay_(inner);}static instanceOf(obj){return obj.tag===BuyBitcoinRequest_Tags.Moonpay;}}/**
|
|
1921
1921
|
* `CashApp`: Pay via the Lightning Network.
|
|
1922
|
-
* Generates a bolt11 invoice and returns a
|
|
1923
|
-
* Only available on mainnet.
|
|
1922
|
+
* Generates a bolt11 invoice for the given amount and returns a
|
|
1923
|
+
* `cash.app` deep link. Only available on mainnet.
|
|
1924
|
+
*
|
|
1925
|
+
* The amount is required. With an amountless invoice, Cash App only
|
|
1926
|
+
* lets the payer fund from their existing Cash App BTC balance. With
|
|
1927
|
+
* a fixed-amount invoice, Cash App opens up funding via fiat balance
|
|
1928
|
+
* and debit card.
|
|
1924
1929
|
*/class CashApp_ extends UniffiEnum{/**
|
|
1925
1930
|
* @private
|
|
1926
1931
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -1930,8 +1935,8 @@ export let BuyBitcoinRequest_Tags=/*#__PURE__*/function(BuyBitcoinRequest_Tags){
|
|
|
1930
1935
|
*
|
|
1931
1936
|
* Each variant carries only the parameters relevant to that provider.
|
|
1932
1937
|
*/// FfiConverter for enum BuyBitcoinRequest
|
|
1933
|
-
const FfiConverterTypeBuyBitcoinRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new BuyBitcoinRequest.Moonpay({lockedAmountSat:FfiConverterOptionalUInt64.read(from),redirectUrl:FfiConverterOptionalString.read(from)});case 2:return new BuyBitcoinRequest.CashApp({amountSats:
|
|
1934
|
-
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.lockedAmountSat);size+=FfiConverterOptionalString.allocationSize(inner.redirectUrl);return size;}case BuyBitcoinRequest_Tags.CashApp:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=
|
|
1938
|
+
const FfiConverterTypeBuyBitcoinRequest=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return new BuyBitcoinRequest.Moonpay({lockedAmountSat:FfiConverterOptionalUInt64.read(from),redirectUrl:FfiConverterOptionalString.read(from)});case 2:return new BuyBitcoinRequest.CashApp({amountSats:FfiConverterUInt64.read(from)});default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{ordinalConverter.write(1,into);const inner=value.inner;FfiConverterOptionalUInt64.write(inner.lockedAmountSat,into);FfiConverterOptionalString.write(inner.redirectUrl,into);return;}case BuyBitcoinRequest_Tags.CashApp:{ordinalConverter.write(2,into);const inner=value.inner;FfiConverterUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that BuyBitcoinRequest_Tags hasn't matched an ordinal.
|
|
1939
|
+
throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value){switch(value.tag){case BuyBitcoinRequest_Tags.Moonpay:{const inner=value.inner;let size=ordinalConverter.allocationSize(1);size+=FfiConverterOptionalUInt64.allocationSize(inner.lockedAmountSat);size+=FfiConverterOptionalString.allocationSize(inner.redirectUrl);return size;}case BuyBitcoinRequest_Tags.CashApp:{const inner=value.inner;let size=ordinalConverter.allocationSize(2);size+=FfiConverterUInt64.allocationSize(inner.amountSats);return size;}default:throw new UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();export let ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=FfiConverterInt32;class FFIConverter extends AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new UniffiInternalError.UnexpectedEnumCase();}}write(value,into){switch(value){case ChainApiType.Esplora:return ordinalConverter.write(1,into);case ChainApiType.MempoolSpace:return ordinalConverter.write(2,into);}}allocationSize(value){return ordinalConverter.allocationSize(0);}}return new FFIConverter();})();// Error type: ChainServiceError
|
|
1935
1940
|
// Enum: ChainServiceError
|
|
1936
1941
|
export let ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){ChainServiceError_Tags["InvalidAddress"]="InvalidAddress";ChainServiceError_Tags["ServiceConnectivity"]="ServiceConnectivity";ChainServiceError_Tags["Generic"]="Generic";return ChainServiceError_Tags;}({});export const ChainServiceError=(()=>{class InvalidAddress_ extends UniffiError{/**
|
|
1937
1942
|
* @private
|