From 012b81d9beecda5ae8e042c526ae809f40b1fcf0 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Mon, 24 Jun 2024 15:13:16 +0300 Subject: [PATCH] Cleanup extracted generated files --- libs/sdk-flutter/lib/generated/fiat.dart | 164 -- .../lib/generated/input_parser.dart | 290 ---- .../lib/generated/input_parser.freezed.dart | 1492 ----------------- libs/sdk-flutter/lib/generated/invoice.dart | 143 -- libs/sdk-flutter/lib/sdk.dart | 2 +- 5 files changed, 1 insertion(+), 2090 deletions(-) delete mode 100644 libs/sdk-flutter/lib/generated/fiat.dart delete mode 100644 libs/sdk-flutter/lib/generated/input_parser.dart delete mode 100644 libs/sdk-flutter/lib/generated/input_parser.freezed.dart delete mode 100644 libs/sdk-flutter/lib/generated/invoice.dart diff --git a/libs/sdk-flutter/lib/generated/fiat.dart b/libs/sdk-flutter/lib/generated/fiat.dart deleted file mode 100644 index 3014f97b3..000000000 --- a/libs/sdk-flutter/lib/generated/fiat.dart +++ /dev/null @@ -1,164 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. - -// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import - -import 'frb_generated.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; - -/// Details about a supported currency in the fiat rate feed -class CurrencyInfo { - final String name; - final int fractionSize; - final int? spacing; - final Symbol? symbol; - final Symbol? uniqSymbol; - final List? localizedName; - final List? localeOverrides; - - const CurrencyInfo({ - required this.name, - required this.fractionSize, - this.spacing, - this.symbol, - this.uniqSymbol, - this.localizedName, - this.localeOverrides, - }); - - @override - int get hashCode => - name.hashCode ^ - fractionSize.hashCode ^ - spacing.hashCode ^ - symbol.hashCode ^ - uniqSymbol.hashCode ^ - localizedName.hashCode ^ - localeOverrides.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is CurrencyInfo && - runtimeType == other.runtimeType && - name == other.name && - fractionSize == other.fractionSize && - spacing == other.spacing && - symbol == other.symbol && - uniqSymbol == other.uniqSymbol && - localizedName == other.localizedName && - localeOverrides == other.localeOverrides; -} - -/// Wrapper around the [CurrencyInfo] of a fiat currency -class FiatCurrency { - final String id; - final CurrencyInfo info; - - const FiatCurrency({ - required this.id, - required this.info, - }); - - @override - int get hashCode => id.hashCode ^ info.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is FiatCurrency && runtimeType == other.runtimeType && id == other.id && info == other.info; -} - -/// Locale-specific settings for the representation of a currency -class LocaleOverrides { - final String locale; - final int? spacing; - final Symbol symbol; - - const LocaleOverrides({ - required this.locale, - this.spacing, - required this.symbol, - }); - - @override - int get hashCode => locale.hashCode ^ spacing.hashCode ^ symbol.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LocaleOverrides && - runtimeType == other.runtimeType && - locale == other.locale && - spacing == other.spacing && - symbol == other.symbol; -} - -/// Localized name of a currency -class LocalizedName { - final String locale; - final String name; - - const LocalizedName({ - required this.locale, - required this.name, - }); - - @override - int get hashCode => locale.hashCode ^ name.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LocalizedName && - runtimeType == other.runtimeType && - locale == other.locale && - name == other.name; -} - -/// Denominator in an exchange rate -class Rate { - final String coin; - final double value; - - const Rate({ - required this.coin, - required this.value, - }); - - @override - int get hashCode => coin.hashCode ^ value.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is Rate && runtimeType == other.runtimeType && coin == other.coin && value == other.value; -} - -/// Settings for the symbol representation of a currency -class Symbol { - final String? grapheme; - final String? template; - final bool? rtl; - final int? position; - - const Symbol({ - this.grapheme, - this.template, - this.rtl, - this.position, - }); - - @override - int get hashCode => grapheme.hashCode ^ template.hashCode ^ rtl.hashCode ^ position.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is Symbol && - runtimeType == other.runtimeType && - grapheme == other.grapheme && - template == other.template && - rtl == other.rtl && - position == other.position; -} diff --git a/libs/sdk-flutter/lib/generated/input_parser.dart b/libs/sdk-flutter/lib/generated/input_parser.dart deleted file mode 100644 index 0022fdae3..000000000 --- a/libs/sdk-flutter/lib/generated/input_parser.dart +++ /dev/null @@ -1,290 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. - -// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import - -import 'frb_generated.dart'; -import 'invoice.dart'; -import 'models.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -import 'package:freezed_annotation/freezed_annotation.dart' hide protected; -part 'input_parser.freezed.dart'; - -/// Wrapped in a [BitcoinAddress], this is the result of [parse] when given a plain or BIP-21 BTC address. -class BitcoinAddressData { - final String address; - final Network network; - final BigInt? amountSat; - final String? label; - final String? message; - - const BitcoinAddressData({ - required this.address, - required this.network, - this.amountSat, - this.label, - this.message, - }); - - @override - int get hashCode => - address.hashCode ^ network.hashCode ^ amountSat.hashCode ^ label.hashCode ^ message.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is BitcoinAddressData && - runtimeType == other.runtimeType && - address == other.address && - network == other.network && - amountSat == other.amountSat && - label == other.label && - message == other.message; -} - -@freezed -sealed class InputType with _$InputType { - const InputType._(); - - /// # Supported standards - /// - /// - plain on-chain BTC address - /// - BIP21 - const factory InputType.bitcoinAddress({ - required BitcoinAddressData address, - }) = InputType_BitcoinAddress; - - /// Also covers URIs like `bitcoin:...&lightning=bolt11`. In this case, it returns the BOLT11 - /// and discards all other data. - const factory InputType.bolt11({ - required LNInvoice invoice, - }) = InputType_Bolt11; - const factory InputType.nodeId({ - required String nodeId, - }) = InputType_NodeId; - const factory InputType.url({ - required String url, - }) = InputType_Url; - - /// # Supported standards - /// - /// - LUD-01 LNURL bech32 encoding - /// - LUD-06 `payRequest` spec - /// - LUD-16 LN Address - /// - LUD-17 Support for lnurlp prefix with non-bech32-encoded LNURL URLs - const factory InputType.lnUrlPay({ - required LnUrlPayRequestData data, - }) = InputType_LnUrlPay; - - /// # Supported standards - /// - /// - LUD-01 LNURL bech32 encoding - /// - LUD-03 `withdrawRequest` spec - /// - LUD-17 Support for lnurlw prefix with non-bech32-encoded LNURL URLs - /// - /// # Not supported (yet) - /// - /// - LUD-14 `balanceCheck`: reusable `withdrawRequest`s - /// - LUD-19 Pay link discoverable from withdraw link - const factory InputType.lnUrlWithdraw({ - required LnUrlWithdrawRequestData data, - }) = InputType_LnUrlWithdraw; - - /// # Supported standards - /// - /// - LUD-01 LNURL bech32 encoding - /// - LUD-04 `auth` base spec - /// - LUD-17 Support for keyauth prefix with non-bech32-encoded LNURL URLs - const factory InputType.lnUrlAuth({ - required LnUrlAuthRequestData data, - }) = InputType_LnUrlAuth; - const factory InputType.lnUrlError({ - required LnUrlErrorData data, - }) = InputType_LnUrlError; -} - -/// Wrapped in a [LnUrlAuth], this is the result of [parse] when given a LNURL-auth endpoint. -/// -/// It represents the endpoint's parameters for the LNURL workflow. -/// -/// See -class LnUrlAuthRequestData { - /// Hex encoded 32 bytes of challenge - final String k1; - - /// When available, one of: register, login, link, auth - final String? action; - - /// Indicates the domain of the LNURL-auth service, to be shown to the user when asking for - /// auth confirmation, as per LUD-04 spec. - final String domain; - - /// Indicates the URL of the LNURL-auth service, including the query arguments. This will be - /// extended with the signed challenge and the linking key, then called in the second step of the workflow. - final String url; - - const LnUrlAuthRequestData({ - required this.k1, - this.action, - required this.domain, - required this.url, - }); - - @override - int get hashCode => k1.hashCode ^ action.hashCode ^ domain.hashCode ^ url.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LnUrlAuthRequestData && - runtimeType == other.runtimeType && - k1 == other.k1 && - action == other.action && - domain == other.domain && - url == other.url; -} - -/// Wrapped in a [LnUrlError], this represents a LNURL-endpoint error. -class LnUrlErrorData { - final String reason; - - const LnUrlErrorData({ - required this.reason, - }); - - @override - int get hashCode => reason.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LnUrlErrorData && runtimeType == other.runtimeType && reason == other.reason; -} - -/// Wrapped in a [LnUrlPay], this is the result of [parse] when given a LNURL-pay endpoint. -/// -/// It represents the endpoint's parameters for the LNURL workflow. -/// -/// See -class LnUrlPayRequestData { - final String callback; - - /// The minimum amount, in millisats, that this LNURL-pay endpoint accepts - final BigInt minSendable; - - /// The maximum amount, in millisats, that this LNURL-pay endpoint accepts - final BigInt maxSendable; - - /// As per LUD-06, `metadata` is a raw string (e.g. a json representation of the inner map). - /// Use `metadata_vec()` to get the parsed items. - final String metadataStr; - - /// The comment length accepted by this endpoint - /// - /// See - final int commentAllowed; - - /// Indicates the domain of the LNURL-pay service, to be shown to the user when asking for - /// payment input, as per LUD-06 spec. - /// - /// Note: this is not the domain of the callback, but the domain of the LNURL-pay endpoint. - final String domain; - - /// Value indicating whether the recipient supports Nostr Zaps through NIP-57. - /// - /// See - final bool allowsNostr; - - /// Optional recipient's lnurl provider's Nostr pubkey for NIP-57. If it exists it should be a - /// valid BIP 340 public key in hex. - /// - /// See - /// See - final String? nostrPubkey; - - /// If sending to a LN Address, this will be filled. - final String? lnAddress; - - const LnUrlPayRequestData({ - required this.callback, - required this.minSendable, - required this.maxSendable, - required this.metadataStr, - required this.commentAllowed, - required this.domain, - required this.allowsNostr, - this.nostrPubkey, - this.lnAddress, - }); - - @override - int get hashCode => - callback.hashCode ^ - minSendable.hashCode ^ - maxSendable.hashCode ^ - metadataStr.hashCode ^ - commentAllowed.hashCode ^ - domain.hashCode ^ - allowsNostr.hashCode ^ - nostrPubkey.hashCode ^ - lnAddress.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LnUrlPayRequestData && - runtimeType == other.runtimeType && - callback == other.callback && - minSendable == other.minSendable && - maxSendable == other.maxSendable && - metadataStr == other.metadataStr && - commentAllowed == other.commentAllowed && - domain == other.domain && - allowsNostr == other.allowsNostr && - nostrPubkey == other.nostrPubkey && - lnAddress == other.lnAddress; -} - -/// Wrapped in a [LnUrlWithdraw], this is the result of [parse] when given a LNURL-withdraw endpoint. -/// -/// It represents the endpoint's parameters for the LNURL workflow. -/// -/// See -class LnUrlWithdrawRequestData { - final String callback; - final String k1; - final String defaultDescription; - - /// The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts - final BigInt minWithdrawable; - - /// The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts - final BigInt maxWithdrawable; - - const LnUrlWithdrawRequestData({ - required this.callback, - required this.k1, - required this.defaultDescription, - required this.minWithdrawable, - required this.maxWithdrawable, - }); - - @override - int get hashCode => - callback.hashCode ^ - k1.hashCode ^ - defaultDescription.hashCode ^ - minWithdrawable.hashCode ^ - maxWithdrawable.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LnUrlWithdrawRequestData && - runtimeType == other.runtimeType && - callback == other.callback && - k1 == other.k1 && - defaultDescription == other.defaultDescription && - minWithdrawable == other.minWithdrawable && - maxWithdrawable == other.maxWithdrawable; -} diff --git a/libs/sdk-flutter/lib/generated/input_parser.freezed.dart b/libs/sdk-flutter/lib/generated/input_parser.freezed.dart deleted file mode 100644 index bec050b19..000000000 --- a/libs/sdk-flutter/lib/generated/input_parser.freezed.dart +++ /dev/null @@ -1,1492 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'input_parser.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); - -/// @nodoc -mixin _$InputType { - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $InputTypeCopyWith<$Res> { - factory $InputTypeCopyWith(InputType value, $Res Function(InputType) then) = - _$InputTypeCopyWithImpl<$Res, InputType>; -} - -/// @nodoc -class _$InputTypeCopyWithImpl<$Res, $Val extends InputType> - implements $InputTypeCopyWith<$Res> { - _$InputTypeCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; -} - -/// @nodoc -abstract class _$$InputType_BitcoinAddressImplCopyWith<$Res> { - factory _$$InputType_BitcoinAddressImplCopyWith( - _$InputType_BitcoinAddressImpl value, - $Res Function(_$InputType_BitcoinAddressImpl) then) = - __$$InputType_BitcoinAddressImplCopyWithImpl<$Res>; - @useResult - $Res call({BitcoinAddressData address}); -} - -/// @nodoc -class __$$InputType_BitcoinAddressImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_BitcoinAddressImpl> - implements _$$InputType_BitcoinAddressImplCopyWith<$Res> { - __$$InputType_BitcoinAddressImplCopyWithImpl( - _$InputType_BitcoinAddressImpl _value, - $Res Function(_$InputType_BitcoinAddressImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? address = null, - }) { - return _then(_$InputType_BitcoinAddressImpl( - address: null == address - ? _value.address - : address // ignore: cast_nullable_to_non_nullable - as BitcoinAddressData, - )); - } -} - -/// @nodoc - -class _$InputType_BitcoinAddressImpl extends InputType_BitcoinAddress { - const _$InputType_BitcoinAddressImpl({required this.address}) : super._(); - - @override - final BitcoinAddressData address; - - @override - String toString() { - return 'InputType.bitcoinAddress(address: $address)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_BitcoinAddressImpl && - (identical(other.address, address) || other.address == address)); - } - - @override - int get hashCode => Object.hash(runtimeType, address); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> - get copyWith => __$$InputType_BitcoinAddressImplCopyWithImpl< - _$InputType_BitcoinAddressImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return bitcoinAddress(address); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return bitcoinAddress?.call(address); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (bitcoinAddress != null) { - return bitcoinAddress(address); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return bitcoinAddress(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return bitcoinAddress?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (bitcoinAddress != null) { - return bitcoinAddress(this); - } - return orElse(); - } -} - -abstract class InputType_BitcoinAddress extends InputType { - const factory InputType_BitcoinAddress( - {required final BitcoinAddressData address}) = - _$InputType_BitcoinAddressImpl; - const InputType_BitcoinAddress._() : super._(); - - BitcoinAddressData get address; - @JsonKey(ignore: true) - _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_Bolt11ImplCopyWith<$Res> { - factory _$$InputType_Bolt11ImplCopyWith(_$InputType_Bolt11Impl value, - $Res Function(_$InputType_Bolt11Impl) then) = - __$$InputType_Bolt11ImplCopyWithImpl<$Res>; - @useResult - $Res call({LNInvoice invoice}); -} - -/// @nodoc -class __$$InputType_Bolt11ImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_Bolt11Impl> - implements _$$InputType_Bolt11ImplCopyWith<$Res> { - __$$InputType_Bolt11ImplCopyWithImpl(_$InputType_Bolt11Impl _value, - $Res Function(_$InputType_Bolt11Impl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? invoice = null, - }) { - return _then(_$InputType_Bolt11Impl( - invoice: null == invoice - ? _value.invoice - : invoice // ignore: cast_nullable_to_non_nullable - as LNInvoice, - )); - } -} - -/// @nodoc - -class _$InputType_Bolt11Impl extends InputType_Bolt11 { - const _$InputType_Bolt11Impl({required this.invoice}) : super._(); - - @override - final LNInvoice invoice; - - @override - String toString() { - return 'InputType.bolt11(invoice: $invoice)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_Bolt11Impl && - (identical(other.invoice, invoice) || other.invoice == invoice)); - } - - @override - int get hashCode => Object.hash(runtimeType, invoice); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_Bolt11ImplCopyWith<_$InputType_Bolt11Impl> get copyWith => - __$$InputType_Bolt11ImplCopyWithImpl<_$InputType_Bolt11Impl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return bolt11(invoice); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return bolt11?.call(invoice); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (bolt11 != null) { - return bolt11(invoice); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return bolt11(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return bolt11?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (bolt11 != null) { - return bolt11(this); - } - return orElse(); - } -} - -abstract class InputType_Bolt11 extends InputType { - const factory InputType_Bolt11({required final LNInvoice invoice}) = - _$InputType_Bolt11Impl; - const InputType_Bolt11._() : super._(); - - LNInvoice get invoice; - @JsonKey(ignore: true) - _$$InputType_Bolt11ImplCopyWith<_$InputType_Bolt11Impl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_NodeIdImplCopyWith<$Res> { - factory _$$InputType_NodeIdImplCopyWith(_$InputType_NodeIdImpl value, - $Res Function(_$InputType_NodeIdImpl) then) = - __$$InputType_NodeIdImplCopyWithImpl<$Res>; - @useResult - $Res call({String nodeId}); -} - -/// @nodoc -class __$$InputType_NodeIdImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_NodeIdImpl> - implements _$$InputType_NodeIdImplCopyWith<$Res> { - __$$InputType_NodeIdImplCopyWithImpl(_$InputType_NodeIdImpl _value, - $Res Function(_$InputType_NodeIdImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? nodeId = null, - }) { - return _then(_$InputType_NodeIdImpl( - nodeId: null == nodeId - ? _value.nodeId - : nodeId // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -class _$InputType_NodeIdImpl extends InputType_NodeId { - const _$InputType_NodeIdImpl({required this.nodeId}) : super._(); - - @override - final String nodeId; - - @override - String toString() { - return 'InputType.nodeId(nodeId: $nodeId)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_NodeIdImpl && - (identical(other.nodeId, nodeId) || other.nodeId == nodeId)); - } - - @override - int get hashCode => Object.hash(runtimeType, nodeId); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_NodeIdImplCopyWith<_$InputType_NodeIdImpl> get copyWith => - __$$InputType_NodeIdImplCopyWithImpl<_$InputType_NodeIdImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return nodeId(this.nodeId); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return nodeId?.call(this.nodeId); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (nodeId != null) { - return nodeId(this.nodeId); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return nodeId(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return nodeId?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (nodeId != null) { - return nodeId(this); - } - return orElse(); - } -} - -abstract class InputType_NodeId extends InputType { - const factory InputType_NodeId({required final String nodeId}) = - _$InputType_NodeIdImpl; - const InputType_NodeId._() : super._(); - - String get nodeId; - @JsonKey(ignore: true) - _$$InputType_NodeIdImplCopyWith<_$InputType_NodeIdImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_UrlImplCopyWith<$Res> { - factory _$$InputType_UrlImplCopyWith( - _$InputType_UrlImpl value, $Res Function(_$InputType_UrlImpl) then) = - __$$InputType_UrlImplCopyWithImpl<$Res>; - @useResult - $Res call({String url}); -} - -/// @nodoc -class __$$InputType_UrlImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_UrlImpl> - implements _$$InputType_UrlImplCopyWith<$Res> { - __$$InputType_UrlImplCopyWithImpl( - _$InputType_UrlImpl _value, $Res Function(_$InputType_UrlImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? url = null, - }) { - return _then(_$InputType_UrlImpl( - url: null == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -/// @nodoc - -class _$InputType_UrlImpl extends InputType_Url { - const _$InputType_UrlImpl({required this.url}) : super._(); - - @override - final String url; - - @override - String toString() { - return 'InputType.url(url: $url)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_UrlImpl && - (identical(other.url, url) || other.url == url)); - } - - @override - int get hashCode => Object.hash(runtimeType, url); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_UrlImplCopyWith<_$InputType_UrlImpl> get copyWith => - __$$InputType_UrlImplCopyWithImpl<_$InputType_UrlImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return url(this.url); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return url?.call(this.url); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (url != null) { - return url(this.url); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return url(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return url?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (url != null) { - return url(this); - } - return orElse(); - } -} - -abstract class InputType_Url extends InputType { - const factory InputType_Url({required final String url}) = - _$InputType_UrlImpl; - const InputType_Url._() : super._(); - - String get url; - @JsonKey(ignore: true) - _$$InputType_UrlImplCopyWith<_$InputType_UrlImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_LnUrlPayImplCopyWith<$Res> { - factory _$$InputType_LnUrlPayImplCopyWith(_$InputType_LnUrlPayImpl value, - $Res Function(_$InputType_LnUrlPayImpl) then) = - __$$InputType_LnUrlPayImplCopyWithImpl<$Res>; - @useResult - $Res call({LnUrlPayRequestData data}); -} - -/// @nodoc -class __$$InputType_LnUrlPayImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlPayImpl> - implements _$$InputType_LnUrlPayImplCopyWith<$Res> { - __$$InputType_LnUrlPayImplCopyWithImpl(_$InputType_LnUrlPayImpl _value, - $Res Function(_$InputType_LnUrlPayImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? data = null, - }) { - return _then(_$InputType_LnUrlPayImpl( - data: null == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as LnUrlPayRequestData, - )); - } -} - -/// @nodoc - -class _$InputType_LnUrlPayImpl extends InputType_LnUrlPay { - const _$InputType_LnUrlPayImpl({required this.data}) : super._(); - - @override - final LnUrlPayRequestData data; - - @override - String toString() { - return 'InputType.lnUrlPay(data: $data)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_LnUrlPayImpl && - (identical(other.data, data) || other.data == data)); - } - - @override - int get hashCode => Object.hash(runtimeType, data); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_LnUrlPayImplCopyWith<_$InputType_LnUrlPayImpl> get copyWith => - __$$InputType_LnUrlPayImplCopyWithImpl<_$InputType_LnUrlPayImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return lnUrlPay(data); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return lnUrlPay?.call(data); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlPay != null) { - return lnUrlPay(data); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return lnUrlPay(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return lnUrlPay?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlPay != null) { - return lnUrlPay(this); - } - return orElse(); - } -} - -abstract class InputType_LnUrlPay extends InputType { - const factory InputType_LnUrlPay({required final LnUrlPayRequestData data}) = - _$InputType_LnUrlPayImpl; - const InputType_LnUrlPay._() : super._(); - - LnUrlPayRequestData get data; - @JsonKey(ignore: true) - _$$InputType_LnUrlPayImplCopyWith<_$InputType_LnUrlPayImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_LnUrlWithdrawImplCopyWith<$Res> { - factory _$$InputType_LnUrlWithdrawImplCopyWith( - _$InputType_LnUrlWithdrawImpl value, - $Res Function(_$InputType_LnUrlWithdrawImpl) then) = - __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res>; - @useResult - $Res call({LnUrlWithdrawRequestData data}); -} - -/// @nodoc -class __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlWithdrawImpl> - implements _$$InputType_LnUrlWithdrawImplCopyWith<$Res> { - __$$InputType_LnUrlWithdrawImplCopyWithImpl( - _$InputType_LnUrlWithdrawImpl _value, - $Res Function(_$InputType_LnUrlWithdrawImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? data = null, - }) { - return _then(_$InputType_LnUrlWithdrawImpl( - data: null == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as LnUrlWithdrawRequestData, - )); - } -} - -/// @nodoc - -class _$InputType_LnUrlWithdrawImpl extends InputType_LnUrlWithdraw { - const _$InputType_LnUrlWithdrawImpl({required this.data}) : super._(); - - @override - final LnUrlWithdrawRequestData data; - - @override - String toString() { - return 'InputType.lnUrlWithdraw(data: $data)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_LnUrlWithdrawImpl && - (identical(other.data, data) || other.data == data)); - } - - @override - int get hashCode => Object.hash(runtimeType, data); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> - get copyWith => __$$InputType_LnUrlWithdrawImplCopyWithImpl< - _$InputType_LnUrlWithdrawImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return lnUrlWithdraw(data); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return lnUrlWithdraw?.call(data); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlWithdraw != null) { - return lnUrlWithdraw(data); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return lnUrlWithdraw(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return lnUrlWithdraw?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlWithdraw != null) { - return lnUrlWithdraw(this); - } - return orElse(); - } -} - -abstract class InputType_LnUrlWithdraw extends InputType { - const factory InputType_LnUrlWithdraw( - {required final LnUrlWithdrawRequestData data}) = - _$InputType_LnUrlWithdrawImpl; - const InputType_LnUrlWithdraw._() : super._(); - - LnUrlWithdrawRequestData get data; - @JsonKey(ignore: true) - _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_LnUrlAuthImplCopyWith<$Res> { - factory _$$InputType_LnUrlAuthImplCopyWith(_$InputType_LnUrlAuthImpl value, - $Res Function(_$InputType_LnUrlAuthImpl) then) = - __$$InputType_LnUrlAuthImplCopyWithImpl<$Res>; - @useResult - $Res call({LnUrlAuthRequestData data}); -} - -/// @nodoc -class __$$InputType_LnUrlAuthImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlAuthImpl> - implements _$$InputType_LnUrlAuthImplCopyWith<$Res> { - __$$InputType_LnUrlAuthImplCopyWithImpl(_$InputType_LnUrlAuthImpl _value, - $Res Function(_$InputType_LnUrlAuthImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? data = null, - }) { - return _then(_$InputType_LnUrlAuthImpl( - data: null == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as LnUrlAuthRequestData, - )); - } -} - -/// @nodoc - -class _$InputType_LnUrlAuthImpl extends InputType_LnUrlAuth { - const _$InputType_LnUrlAuthImpl({required this.data}) : super._(); - - @override - final LnUrlAuthRequestData data; - - @override - String toString() { - return 'InputType.lnUrlAuth(data: $data)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_LnUrlAuthImpl && - (identical(other.data, data) || other.data == data)); - } - - @override - int get hashCode => Object.hash(runtimeType, data); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_LnUrlAuthImplCopyWith<_$InputType_LnUrlAuthImpl> get copyWith => - __$$InputType_LnUrlAuthImplCopyWithImpl<_$InputType_LnUrlAuthImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return lnUrlAuth(data); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return lnUrlAuth?.call(data); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlAuth != null) { - return lnUrlAuth(data); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return lnUrlAuth(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return lnUrlAuth?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlAuth != null) { - return lnUrlAuth(this); - } - return orElse(); - } -} - -abstract class InputType_LnUrlAuth extends InputType { - const factory InputType_LnUrlAuth( - {required final LnUrlAuthRequestData data}) = _$InputType_LnUrlAuthImpl; - const InputType_LnUrlAuth._() : super._(); - - LnUrlAuthRequestData get data; - @JsonKey(ignore: true) - _$$InputType_LnUrlAuthImplCopyWith<_$InputType_LnUrlAuthImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$InputType_LnUrlErrorImplCopyWith<$Res> { - factory _$$InputType_LnUrlErrorImplCopyWith(_$InputType_LnUrlErrorImpl value, - $Res Function(_$InputType_LnUrlErrorImpl) then) = - __$$InputType_LnUrlErrorImplCopyWithImpl<$Res>; - @useResult - $Res call({LnUrlErrorData data}); -} - -/// @nodoc -class __$$InputType_LnUrlErrorImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlErrorImpl> - implements _$$InputType_LnUrlErrorImplCopyWith<$Res> { - __$$InputType_LnUrlErrorImplCopyWithImpl(_$InputType_LnUrlErrorImpl _value, - $Res Function(_$InputType_LnUrlErrorImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? data = null, - }) { - return _then(_$InputType_LnUrlErrorImpl( - data: null == data - ? _value.data - : data // ignore: cast_nullable_to_non_nullable - as LnUrlErrorData, - )); - } -} - -/// @nodoc - -class _$InputType_LnUrlErrorImpl extends InputType_LnUrlError { - const _$InputType_LnUrlErrorImpl({required this.data}) : super._(); - - @override - final LnUrlErrorData data; - - @override - String toString() { - return 'InputType.lnUrlError(data: $data)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$InputType_LnUrlErrorImpl && - (identical(other.data, data) || other.data == data)); - } - - @override - int get hashCode => Object.hash(runtimeType, data); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> - get copyWith => - __$$InputType_LnUrlErrorImplCopyWithImpl<_$InputType_LnUrlErrorImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(BitcoinAddressData address) bitcoinAddress, - required TResult Function(LNInvoice invoice) bolt11, - required TResult Function(String nodeId) nodeId, - required TResult Function(String url) url, - required TResult Function(LnUrlPayRequestData data) lnUrlPay, - required TResult Function(LnUrlWithdrawRequestData data) lnUrlWithdraw, - required TResult Function(LnUrlAuthRequestData data) lnUrlAuth, - required TResult Function(LnUrlErrorData data) lnUrlError, - }) { - return lnUrlError(data); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(BitcoinAddressData address)? bitcoinAddress, - TResult? Function(LNInvoice invoice)? bolt11, - TResult? Function(String nodeId)? nodeId, - TResult? Function(String url)? url, - TResult? Function(LnUrlPayRequestData data)? lnUrlPay, - TResult? Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult? Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult? Function(LnUrlErrorData data)? lnUrlError, - }) { - return lnUrlError?.call(data); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(BitcoinAddressData address)? bitcoinAddress, - TResult Function(LNInvoice invoice)? bolt11, - TResult Function(String nodeId)? nodeId, - TResult Function(String url)? url, - TResult Function(LnUrlPayRequestData data)? lnUrlPay, - TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw, - TResult Function(LnUrlAuthRequestData data)? lnUrlAuth, - TResult Function(LnUrlErrorData data)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlError != null) { - return lnUrlError(data); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(InputType_BitcoinAddress value) bitcoinAddress, - required TResult Function(InputType_Bolt11 value) bolt11, - required TResult Function(InputType_NodeId value) nodeId, - required TResult Function(InputType_Url value) url, - required TResult Function(InputType_LnUrlPay value) lnUrlPay, - required TResult Function(InputType_LnUrlWithdraw value) lnUrlWithdraw, - required TResult Function(InputType_LnUrlAuth value) lnUrlAuth, - required TResult Function(InputType_LnUrlError value) lnUrlError, - }) { - return lnUrlError(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult? Function(InputType_Bolt11 value)? bolt11, - TResult? Function(InputType_NodeId value)? nodeId, - TResult? Function(InputType_Url value)? url, - TResult? Function(InputType_LnUrlPay value)? lnUrlPay, - TResult? Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult? Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult? Function(InputType_LnUrlError value)? lnUrlError, - }) { - return lnUrlError?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(InputType_BitcoinAddress value)? bitcoinAddress, - TResult Function(InputType_Bolt11 value)? bolt11, - TResult Function(InputType_NodeId value)? nodeId, - TResult Function(InputType_Url value)? url, - TResult Function(InputType_LnUrlPay value)? lnUrlPay, - TResult Function(InputType_LnUrlWithdraw value)? lnUrlWithdraw, - TResult Function(InputType_LnUrlAuth value)? lnUrlAuth, - TResult Function(InputType_LnUrlError value)? lnUrlError, - required TResult orElse(), - }) { - if (lnUrlError != null) { - return lnUrlError(this); - } - return orElse(); - } -} - -abstract class InputType_LnUrlError extends InputType { - const factory InputType_LnUrlError({required final LnUrlErrorData data}) = - _$InputType_LnUrlErrorImpl; - const InputType_LnUrlError._() : super._(); - - LnUrlErrorData get data; - @JsonKey(ignore: true) - _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> - get copyWith => throw _privateConstructorUsedError; -} diff --git a/libs/sdk-flutter/lib/generated/invoice.dart b/libs/sdk-flutter/lib/generated/invoice.dart deleted file mode 100644 index 3d9967678..000000000 --- a/libs/sdk-flutter/lib/generated/invoice.dart +++ /dev/null @@ -1,143 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. - -// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import - -import 'frb_generated.dart'; -import 'models.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; - -/// Wrapper for a BOLT11 LN invoice -class LNInvoice { - final String bolt11; - final Network network; - final String payeePubkey; - final String paymentHash; - final String? description; - final String? descriptionHash; - final BigInt? amountMsat; - final BigInt timestamp; - final BigInt expiry; - final List routingHints; - final Uint8List paymentSecret; - final BigInt minFinalCltvExpiryDelta; - - const LNInvoice({ - required this.bolt11, - required this.network, - required this.payeePubkey, - required this.paymentHash, - this.description, - this.descriptionHash, - this.amountMsat, - required this.timestamp, - required this.expiry, - required this.routingHints, - required this.paymentSecret, - required this.minFinalCltvExpiryDelta, - }); - - @override - int get hashCode => - bolt11.hashCode ^ - network.hashCode ^ - payeePubkey.hashCode ^ - paymentHash.hashCode ^ - description.hashCode ^ - descriptionHash.hashCode ^ - amountMsat.hashCode ^ - timestamp.hashCode ^ - expiry.hashCode ^ - routingHints.hashCode ^ - paymentSecret.hashCode ^ - minFinalCltvExpiryDelta.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is LNInvoice && - runtimeType == other.runtimeType && - bolt11 == other.bolt11 && - network == other.network && - payeePubkey == other.payeePubkey && - paymentHash == other.paymentHash && - description == other.description && - descriptionHash == other.descriptionHash && - amountMsat == other.amountMsat && - timestamp == other.timestamp && - expiry == other.expiry && - routingHints == other.routingHints && - paymentSecret == other.paymentSecret && - minFinalCltvExpiryDelta == other.minFinalCltvExpiryDelta; -} - -/// A route hint for a LN payment -class RouteHint { - final List hops; - - const RouteHint({ - required this.hops, - }); - - @override - int get hashCode => hops.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || other is RouteHint && runtimeType == other.runtimeType && hops == other.hops; -} - -/// Details of a specific hop in a larger route hint -class RouteHintHop { - /// The node_id of the non-target end of the route - final String srcNodeId; - - /// The short_channel_id of this channel - final BigInt shortChannelId; - - /// The fees which must be paid to use this channel - final int feesBaseMsat; - final int feesProportionalMillionths; - - /// The difference in CLTV values between this node and the next node. - final BigInt cltvExpiryDelta; - - /// The minimum value, in msat, which must be relayed to the next hop. - final BigInt? htlcMinimumMsat; - - /// The maximum value in msat available for routing with a single HTLC. - final BigInt? htlcMaximumMsat; - - const RouteHintHop({ - required this.srcNodeId, - required this.shortChannelId, - required this.feesBaseMsat, - required this.feesProportionalMillionths, - required this.cltvExpiryDelta, - this.htlcMinimumMsat, - this.htlcMaximumMsat, - }); - - @override - int get hashCode => - srcNodeId.hashCode ^ - shortChannelId.hashCode ^ - feesBaseMsat.hashCode ^ - feesProportionalMillionths.hashCode ^ - cltvExpiryDelta.hashCode ^ - htlcMinimumMsat.hashCode ^ - htlcMaximumMsat.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is RouteHintHop && - runtimeType == other.runtimeType && - srcNodeId == other.srcNodeId && - shortChannelId == other.shortChannelId && - feesBaseMsat == other.feesBaseMsat && - feesProportionalMillionths == other.feesProportionalMillionths && - cltvExpiryDelta == other.cltvExpiryDelta && - htlcMinimumMsat == other.htlcMinimumMsat && - htlcMaximumMsat == other.htlcMaximumMsat; -} diff --git a/libs/sdk-flutter/lib/sdk.dart b/libs/sdk-flutter/lib/sdk.dart index 4a4a7af6e..ad43d20c4 100644 --- a/libs/sdk-flutter/lib/sdk.dart +++ b/libs/sdk-flutter/lib/sdk.dart @@ -5,4 +5,4 @@ export 'generated/frb_generated.dart'; export 'generated/lsp.dart'; export 'generated/lnurl/pay.dart'; export 'generated/models.dart'; -export 'exceptions.dart'; \ No newline at end of file +export 'exceptions.dart';