@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.
@@ -1919,8 +1919,13 @@ let BuyBitcoinRequest_Tags=exports.BuyBitcoinRequest_Tags=/*#__PURE__*/function(
1919
1919
  * This field is private and should not be used, use `tag` instead.
1920
1920
  */[_uniffiBindgenReactNative.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 `cash.app` deep link.
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 _uniffiBindgenReactNative.UniffiEnum{/**
1925
1930
  * @private
1926
1931
  * This field is private and should not be used, use `tag` instead.
@@ -1930,8 +1935,8 @@ let BuyBitcoinRequest_Tags=exports.BuyBitcoinRequest_Tags=/*#__PURE__*/function(
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=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.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:FfiConverterOptionalUInt64.read(from)});default:throw new _uniffiBindgenReactNative.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;FfiConverterOptionalUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that BuyBitcoinRequest_Tags hasn't matched an ordinal.
1934
- throw new _uniffiBindgenReactNative.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+=FfiConverterOptionalUInt64.allocationSize(inner.amountSats);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let ChainApiType=exports.ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new _uniffiBindgenReactNative.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
1938
+ const FfiConverterTypeBuyBitcoinRequest=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.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:_uniffiBindgenReactNative.FfiConverterUInt64.read(from)});default:throw new _uniffiBindgenReactNative.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;_uniffiBindgenReactNative.FfiConverterUInt64.write(inner.amountSats,into);return;}default:// Throwing from here means that BuyBitcoinRequest_Tags hasn't matched an ordinal.
1939
+ throw new _uniffiBindgenReactNative.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+=_uniffiBindgenReactNative.FfiConverterUInt64.allocationSize(inner.amountSats);return size;}default:throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();}}}return new FFIConverter();})();let ChainApiType=exports.ChainApiType=/*#__PURE__*/function(ChainApiType){ChainApiType[ChainApiType["Esplora"]=0]="Esplora";ChainApiType[ChainApiType["MempoolSpace"]=1]="MempoolSpace";return ChainApiType;}({});const FfiConverterTypeChainApiType=(()=>{const ordinalConverter=_uniffiBindgenReactNative.FfiConverterInt32;class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray{read(from){switch(ordinalConverter.read(from)){case 1:return ChainApiType.Esplora;case 2:return ChainApiType.MempoolSpace;default:throw new _uniffiBindgenReactNative.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
  let ChainServiceError_Tags=exports.ChainServiceError_Tags=/*#__PURE__*/function(ChainServiceError_Tags){ChainServiceError_Tags["InvalidAddress"]="InvalidAddress";ChainServiceError_Tags["ServiceConnectivity"]="ServiceConnectivity";ChainServiceError_Tags["Generic"]="Generic";return ChainServiceError_Tags;}({});const ChainServiceError=exports.ChainServiceError=(()=>{class InvalidAddress_ extends _uniffiBindgenReactNative.UniffiError{/**
1937
1942
  * @private