diff --git a/wallet/assets/images/icons/eye_bold.svg b/wallet/assets/images/icons/eye_bold.svg new file mode 100644 index 0000000000..530fa1dabd --- /dev/null +++ b/wallet/assets/images/icons/eye_bold.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/wallet/assets/images/icons/like_bold.png b/wallet/assets/images/icons/like_bold.png new file mode 100644 index 0000000000..77d0e538ec Binary files /dev/null and b/wallet/assets/images/icons/like_bold.png differ diff --git a/wallet/assets/images/svg/curved_corner_red_bg.svg b/wallet/assets/images/svg/curved_corner_red_bg.svg deleted file mode 100644 index 86d0b6040a..0000000000 --- a/wallet/assets/images/svg/curved_corner_red_bg.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/wallet/i18n/de.json b/wallet/i18n/de.json index 8005030d77..9bb7c7359a 100644 --- a/wallet/i18n/de.json +++ b/wallet/i18n/de.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "We ondervinden technische problemen en hebben tijdelijk de onderhoudsmodus gestart voor het oplossen van problemen. Maak je geen zorgen, je collectie is veilig. U kunt echter geen on-chain-transacties starten totdat we het probleem hebben opgelost en de normale functionaliteit hebben hersteld.", "maintenance_mode_header": "onderhoudsstand", "invalid_mnemonic": "Ungültige mnemonic", + "claim_now": "Beanspruche jetzt", + "remaining_and_total_editions": "{remaining} Von {total}", + "remaining": "verblieben", "edit_profile": "Profil bearbeiten", "cash_out": "Auszahlen", "bio_text": "Produktdesigner bei Pylons.", diff --git a/wallet/i18n/en.json b/wallet/i18n/en.json index 04a5d31d45..1ce79a723f 100644 --- a/wallet/i18n/en.json +++ b/wallet/i18n/en.json @@ -372,6 +372,9 @@ "maintenance_mode_message": "We are experiencing technical issues and have temporarily initiated maintenance mode for troubleshooting. Don't worry, your collection is safe. However, you cannot initiate on-chain transactions until we've resolved the problem and restored normal functionality.", "maintenance_mode_header": "Maintenance Mode", "invalid_mnemonic": "Invalid mnemonic", + "claim_now": "Claim Now", + "remaining_and_total_editions": "{remaining} of {total}", + "remaining":"remaining", "edit_profile": "Edit Profile", "cash_out": "Cash Out", "bio_text": "Product designer at Pylons.", diff --git a/wallet/i18n/es.json b/wallet/i18n/es.json index b232a43200..acfa1d5019 100644 --- a/wallet/i18n/es.json +++ b/wallet/i18n/es.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "Estamos experimentando problemas técnicos y hemos iniciado temporalmente el modo de mantenimiento para solucionar problemas. No te preocupes, tu colección está segura. Sin embargo, no puede iniciar transacciones en cadena hasta que hayamos resuelto el problema y restablecido la funcionalidad normal.", "maintenance_mode_header": "Modo de mantenimiento", "invalid_mnemonic": "Mnemonic inválido", + "claim_now": "Reclama ahora", + "remaining_and_total_editions": "{remaining} De {total}", + "remaining": "restante", "edit_profile": "Editar perfil", "cash_out": "Retiro", "bio_text": "Diseñadora de productos en Pylons.", diff --git a/wallet/i18n/id.json b/wallet/i18n/id.json index 7566681578..62c6602bbc 100644 --- a/wallet/i18n/id.json +++ b/wallet/i18n/id.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "Kami mengalami masalah teknis dan untuk sementara memulai mode pemeliharaan untuk pemecahan masalah. Jangan khawatir, koleksi Anda aman. Namun, Anda tidak dapat memulai transaksi on-chain sampai kami menyelesaikan masalah dan memulihkan fungsionalitas normal.", "maintenance_mode_header": "Mode Pemeliharaan", "invalid_mnemonic": "Mnemonic tidak valid", + "claim_now": "Klaim Sekarang", + "remaining_and_total_editions": "{remaining} Dari {total}", + "remaining": "tersisa", "edit_profile": "Sunting profil", "cash_out": "Kas keluar", "bio_text": "Desainer produk di Pylons.", diff --git a/wallet/i18n/ja.json b/wallet/i18n/ja.json index 2bf7243875..cc7caf54cd 100644 --- a/wallet/i18n/ja.json +++ b/wallet/i18n/ja.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "技術的な問題が発生しており、トラブルシューティングのために一時的にメンテナンス モードを開始しました。心配はいりません。あなたのコレクションは安全です。ただし、問題が解決され、通常の機能が回復するまで、オンチェーン トランザクションを開始することはできません。", "maintenance_mode_header": "メンテナンスモード", "invalid_mnemonic": "無効 mnemonic", + "claim_now": "今すぐ請求", + "remaining_and_total_editions": "{remaining} の {total}", + "remaining": "残り", "edit_profile": "プロファイル編集", "cash_out": "キャッシュアウト", "bio_text": "Pylonsのプロダクトデザイナー。", diff --git a/wallet/i18n/ko.json b/wallet/i18n/ko.json index 859be10bb6..4c4947cb33 100644 --- a/wallet/i18n/ko.json +++ b/wallet/i18n/ko.json @@ -369,6 +369,9 @@ "maintenance_mode_message": "기술적인 문제가 발생했으며 문제 해결을 위해 일시적으로 유지 관리 모드를 시작했습니다. 걱정하지 마세요. 컬렉션은 안전합니다. 그러나 문제를 해결하고 정상적인 기능을 복원할 때까지 온체인 트랜잭션을 시작할 수 없습니다.", "maintenance_mode_header": "유지 관리 모드", "invalid_mnemonic": "유효하지 않은 mnemonic", + "claim_now": "지금 청구하세요", + "remaining_and_total_editions": "{remaining} 의 {total}", + "remaining": "남은", "edit_profile": "프로필 편집", "cash_out": "현금 인출", "bio_text": "Pylons의 제품 디자이너.", diff --git a/wallet/i18n/ru.json b/wallet/i18n/ru.json index a3e53f653a..4e9d8b435b 100644 --- a/wallet/i18n/ru.json +++ b/wallet/i18n/ru.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "У нас возникли технические проблемы, и мы временно запустили режим обслуживания для устранения неполадок. Не волнуйтесь, ваша коллекция в безопасности. Однако вы не можете инициировать транзакции в сети, пока мы не решим проблему и не восстановим нормальную работу.", "maintenance_mode_header": "Режим технического обслуживания", "invalid_mnemonic": "Инвалид mnemonic", + "claim_now": "Заявить сейчас", + "remaining_and_total_editions": "{remaining} Из {total}", + "remaining": "осталось", "edit_profile": "Редактировать профиль", "cash_out": "Обналичить", "bio_text": "Дизайнер продукта в Pylons.", diff --git a/wallet/i18n/vi.json b/wallet/i18n/vi.json index 42cd281066..a355cda12b 100644 --- a/wallet/i18n/vi.json +++ b/wallet/i18n/vi.json @@ -370,6 +370,9 @@ "maintenance_mode_message": "Chúng tôi đang gặp sự cố kỹ thuật và đã tạm thời bắt đầu chế độ bảo trì để khắc phục sự cố. Đừng lo lắng, bộ sưu tập của bạn vẫn an toàn. Tuy nhiên, bạn không thể bắt đầu các giao dịch trên chuỗi cho đến khi chúng tôi giải quyết xong sự cố và khôi phục chức năng bình thường.", "maintenance_mode_header": "Chế độ bảo trì", "invalid_mnemonic": "Không hợp lệ menmonic", + "claim_now": "yêu cầu ngay bây giờ", + "remaining_and_total_editions": "{remaining} Của {total}", + "remaining": "còn lại", "edit_profile": "Chỉnh sửa hồ sơ", "cash_out": "Rút tiền", "bio_text": "Nhà thiết kế sản phẩm tại Pylons.", diff --git a/wallet/lib/generated/locale_keys.g.dart b/wallet/lib/generated/locale_keys.g.dart index 09b5bceef0..27438af369 100644 --- a/wallet/lib/generated/locale_keys.g.dart +++ b/wallet/lib/generated/locale_keys.g.dart @@ -373,6 +373,9 @@ abstract class LocaleKeys { static const maintenance_mode_message = 'maintenance_mode_message'; static const maintenance_mode_header = 'maintenance_mode_header'; static const invalid_mnemonic = 'invalid_mnemonic'; + static const claim_now = 'claim_now'; + static const remaining_and_total_editions = 'remaining_and_total_editions'; + static const remaining = 'remaining'; static const edit_profile = 'edit_profile'; static const cash_out = 'cash_out'; static const bio_text = 'bio_text'; diff --git a/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart b/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart index 1feca895ca..aa31c7ddfe 100644 --- a/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart +++ b/wallet/lib/pages/detailed_asset_view/widgets/tab_fields.dart @@ -64,18 +64,20 @@ class _TabFieldState extends State { return { LocaleKeys.recipe_id.tr(): widget.nft.recipeID, LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension.toUpperCase()}", - LocaleKeys.ipfs_cid.tr(): widget.nft.cid + LocaleKeys.ipfs_cid.tr(): widget.nft.cid, }; case NftType.TYPE_ITEM: - return {LocaleKeys.recipe_id.tr(): widget.nft.recipeID}; + return { + LocaleKeys.recipe_id.tr(): widget.nft.recipeID, + }; case NftType.TYPE_TRADE: break; } return { LocaleKeys.recipe_id.tr(): widget.nft.recipeID, - LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension}", - LocaleKeys.ipfs_cid.tr(): widget.nft.cid + LocaleKeys.resolution.tr(): "${widget.nft.width}x${widget.nft.height} ${widget.nft.fileExtension.toUpperCase()}", + LocaleKeys.ipfs_cid.tr(): widget.nft.cid, }; } @@ -85,14 +87,27 @@ class _TabFieldState extends State { final nftDetail = getNFTDetailsMap(); - final listOwnership = ownership.entries.map((element) => _tabDetails(field: element.key, value: element.value, customColor: element.key == LocaleKeys.owner.tr() ? Colors.red : null)).toList(); + final listOwnership = ownership.entries + .map( + (element) => _tabDetails( + field: element.key, + value: element.value, + customColor: element.key == LocaleKeys.owner.tr() ? AppColors.kRed : null, + ), + ) + .toList(); final listDetails = nftDetail.entries .map( (element) => _tabDetails( - field: element.key, - value: element.value, - customWidget: (element.key == LocaleKeys.recipe_id.tr() || element.key == LocaleKeys.ipfs_cid.tr()) && element.value.isNotEmpty ? _tabDetailsWithIcon(value: element.value) : null), + field: element.key, + value: element.value, + customWidget: (element.key == LocaleKeys.recipe_id.tr() || element.key == LocaleKeys.ipfs_cid.tr()) && element.value.isNotEmpty + ? _tabDetailsWithIcon( + value: element.value, + ) + : null, + ), ) .toList(); @@ -111,7 +126,10 @@ class _TabFieldState extends State { child: AutoSizeText( widget.name, maxLines: 1, - style: const TextStyle(color: Colors.white), + style: const TextStyle( + color: AppColors.kWhite, + fontWeight: FontWeight.bold, + ), ), ), SizedBox( @@ -156,10 +174,20 @@ class _TabFieldState extends State { children: [ Container( width: 100.w, - height: 10.h, - decoration: const BoxDecoration(border: Border(bottom: BorderSide(color: Colors.white, width: 2))), + height: 6.h, + decoration: const BoxDecoration( + border: Border( + bottom: BorderSide( + color: AppColors.kWhite, + width: 2, + ), + ), + ), + ), + CustomPaint( + size: Size(6.w, 6.h), + painter: DiagonalLinePainter(), ), - CustomPaint(size: Size(10.w, 10.h), painter: DiagonalLinePainter()), ], ), SizedBox( @@ -278,9 +306,9 @@ class DiagonalLinePainter extends CustomPainter { @override void paint(Canvas canvas, Size size) { final point1 = Offset(-0.5, size.height - 1); - final point2 = Offset(size.width, 0); + final point2 = Offset(size.width, -3); final paint = Paint() - ..color = Colors.white + ..color = AppColors.kWhite ..strokeWidth = 2; canvas.drawLine(point1, point2, paint); } diff --git a/wallet/lib/pages/purchase_item/purchase_item_screen.dart b/wallet/lib/pages/purchase_item/purchase_item_screen.dart index bcd7c65c6c..065d1e0cfd 100644 --- a/wallet/lib/pages/purchase_item/purchase_item_screen.dart +++ b/wallet/lib/pages/purchase_item/purchase_item_screen.dart @@ -28,6 +28,7 @@ import 'package:pylons_wallet/pages/purchase_item/widgets/purchase_video_player_ import 'package:pylons_wallet/pages/purchase_item/widgets/purchase_video_progress_widget.dart'; import 'package:pylons_wallet/pages/purchase_item/widgets/trade_receipt_dialog.dart'; import 'package:pylons_wallet/pages/purchase_item/widgets/transaction_complete_dialog.dart'; +import 'package:pylons_wallet/pages/settings/screens/submit_feedback.dart'; import 'package:pylons_wallet/utils/clipper_utils.dart'; import 'package:pylons_wallet/utils/constants.dart'; import 'package:pylons_wallet/utils/dependency_injection/dependency_injection.dart'; @@ -157,7 +158,12 @@ class _PurchaseItemContentState extends State { Visibility( visible: !viewModel.isViewingFullNft, child: Padding( - padding: EdgeInsets.only(left: 8.w, right: 8.w, bottom: 8.h, top: MediaQuery.of(context).viewPadding.top.h), + padding: EdgeInsets.only( + left: 8.w, + right: 8.w, + bottom: 8.h, + top: MediaQuery.of(context).viewPadding.top.h, + ), child: SizedBox( height: 100.h, width: double.infinity, @@ -172,7 +178,16 @@ class _PurchaseItemContentState extends State { height: 25.h, ), ), - trailing: const SizedBox(), + trailing: GestureDetector( + onTap: () { + final SubmitFeedback submitFeedbackDialog = SubmitFeedback(context: context); + submitFeedbackDialog.show(); + }, + child: SvgPicture.asset( + SVGUtil.OWNER_REPORT, + height: 25.h, + ), + ), ), ), ), @@ -307,7 +322,7 @@ class _OwnerBottomDrawerState extends State { Column( children: [ SvgPicture.asset( - SVGUtil.OWNER_VIEWS, + SVGUtil.OWNER_VIEWS_BOLD, width: 20.w, height: 15.h, ), @@ -437,10 +452,10 @@ class _OwnerBottomDrawerState extends State { Widget getLikeIcon({required bool likedByMe}) { return SizedBox( - height: 15.r, - width: 15.r, + height: 20.r, + width: 20.r, child: Image.asset( - 'assets/images/icons/${likedByMe ? 'like_full' : 'like'}.png', + 'assets/images/icons/${likedByMe ? 'like_full' : 'like_bold'}.png', fit: BoxFit.fill, color: likedByMe ? AppColors.kDarkRed : AppColors.kWhite, ), @@ -569,7 +584,7 @@ class _OwnerBottomDrawerState extends State { child: Column( children: [ SvgPicture.asset( - SVGUtil.OWNER_VIEWS, + SVGUtil.OWNER_VIEWS_BOLD, width: 15.w, height: 15.h, ), @@ -671,15 +686,17 @@ class _OwnerBottomDrawerState extends State { clipper: RightTriangleClipper(orientation: enums.Orientation.Orientation_SW), child: Container( color: AppColors.kDarkRed, - height: 50.r, - width: 50.r, + + height: 55.r, + width: 55.r, child: Center( child: IconButton( key: const Key(kCloseBottomSheetKey), alignment: Alignment.topRight, padding: EdgeInsets.only( - bottom: 12.h, - left: 12.w, + + bottom: 15.h, + left: isTablet ? 16.w : 20.w, ), icon: const Icon(Icons.keyboard_arrow_down_outlined), onPressed: () { @@ -692,19 +709,6 @@ class _OwnerBottomDrawerState extends State { ), ), ), - Positioned.fill( - child: Align( - alignment: Alignment.bottomLeft, - child: ClipPath( - clipper: RightTriangleClipper(orientation: enums.Orientation.Orientation_NE), - child: Container( - color: AppColors.kDarkRed, - height: isTablet ? 25.0.r : 30.r, - width: isTablet ? 25.0.r : 30.r, - ), - ), - ), - ), ], ); } diff --git a/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart b/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart index 0c61fdda5d..05b710a9c1 100644 --- a/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart +++ b/wallet/lib/pages/purchase_item/widgets/buy_nft_button.dart @@ -2,15 +2,12 @@ import 'package:auto_size_text/auto_size_text.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:flutter_svg/flutter_svg.dart'; import 'package:provider/provider.dart'; import 'package:pylons_wallet/main_prod.dart'; import 'package:pylons_wallet/model/nft.dart'; import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart'; import 'package:pylons_wallet/pages/purchase_item/purchase_item_view_model.dart'; import 'package:pylons_wallet/utils/constants.dart'; -import 'package:pylons_wallet/utils/svg_util.dart'; - import '../../../generated/locale_keys.g.dart'; import '../clipper/top_left_bottom_right_clipper.dart'; @@ -21,44 +18,8 @@ class BuyNFTButton extends StatelessWidget { const BuyNFTButton({Key? key, required this.onTapped, required this.nft}) : super(key: key); Widget getButtonContent(NFT nft, PurchaseItemViewModel viewModel) { - final double btnHeight = 35.h; + final double btnHeight = 37.h; final double btnWidth = isTablet ? 160.w : 200.w; - if (double.parse(nft.price) == 0) { - return Container( - height: 60.h, - color: AppColors.kDarkRed.withOpacity(0.8), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 16.w), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - AutoSizeText( - LocaleKeys.claim_free_nft.tr(), - maxLines: 1, - style: TextStyle(color: AppColors.kWhite, fontSize: 16.sp, fontFamily: kUniversalFontFamily), - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - AutoSizeText( - LocaleKeys.before_too_late.tr(), - maxLines: 1, - style: TextStyle(color: AppColors.kWhite, fontSize: 12.sp, fontFamily: kUniversalFontFamily), - ), - SizedBox(width: 8.w), - SizedBox( - height: 20.h, - width: 20.h, - child: nft.ibcCoins.getAssets(), - ), - ], - ), - ], - ), - ), - ); - } return Container( height: btnHeight, width: btnWidth, @@ -68,70 +29,107 @@ class BuyNFTButton extends StatelessWidget { child: Row( children: [ Expanded( - flex: 4, - child: Stack( - children: [ - Align( - alignment: Alignment.centerRight, - child: SvgPicture.asset( - SVGUtil.CURVED_CORNER_RED_BG, - height: btnHeight, - fit: BoxFit.fill, - ), - ), - Center( - child: AutoSizeText( - LocaleKeys.buy_now.tr(), - textAlign: TextAlign.center, - style: TextStyle( - color: Colors.white, - fontSize: 12.sp, - fontFamily: kUniversalFontFamily, - fontWeight: FontWeight.w700, - ), - maxLines: 1, + flex: getFlexForMessageContainer(), + child: DecoratedBox( + decoration: BoxDecoration( + boxShadow: [ + BoxShadow( + color: AppColors.kBlack.withOpacity(0.35), + blurRadius: 20, + spreadRadius: 2, ), + ], + ), + child: ClipPath( + clipper: TopLeftBottomRightClipper(), + child: ColoredBox( + color: AppColors.kDarkRedColor, + child: getMessageContent(), ), - ], + ), ), ), - Expanded( - flex: 3, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - RichText( - text: TextSpan( - text: "\$${nft.ibcCoins.getCoinValueBasedOnDollar(nft.price)}", + getPriceAndAvailability(nft), + ], + ), + ); + } + + int getFlexForMessageContainer() { + if (double.parse(nft.price) == 0) { + return 5; + } + return 4; + } + + Expanded getPriceAndAvailability(NFT nft) { + if (double.parse(nft.price) != 0) { + return Expanded( + flex: 3, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + RichText( + text: TextSpan( + text: "\$${nft.ibcCoins.getCoinValueBasedOnDollar(nft.price)}", + style: TextStyle( + color: AppColors.kWhite, + fontSize: 10.sp, + fontFamily: kUniversalFontFamily, + fontWeight: FontWeight.w700, + ), + children: [ + TextSpan( + text: " ${LocaleKeys.ea.tr()}.", style: TextStyle( color: AppColors.kWhite, fontSize: 10.sp, fontFamily: kUniversalFontFamily, fontWeight: FontWeight.w700, ), - children: [ - TextSpan( - text: " ${LocaleKeys.ea.tr()}.", - style: TextStyle( - color: AppColors.kWhite, - fontSize: 10.sp, - fontFamily: kUniversalFontFamily, - fontWeight: FontWeight.w700, - ), - ) - ], - ), - ), - Text( - "${nft.quantity - nft.amountMinted} ${LocaleKeys.available.tr()}", - style: TextStyle( - color: AppColors.kGreyLight, - fontSize: 9.sp, - fontWeight: FontWeight.normal, - fontFamily: kUniversalFontFamily, - ), - ), - ], + ) + ], + ), + ), + Text( + "${nft.quantity - nft.amountMinted} ${LocaleKeys.available.tr()}", + style: TextStyle( + color: AppColors.kGreyLight, + fontSize: 9.sp, + fontWeight: FontWeight.normal, + fontFamily: kUniversalFontFamily, + ), + ), + ], + ), + ); + } + return Expanded( + flex: 3, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + LocaleKeys.remaining_and_total_editions.tr( + namedArgs: { + kRemaining: '${nft.quantity - nft.amountMinted}', + kTotal: '${nft.quantity}', + }, + ), + style: TextStyle( + color: AppColors.kGreyLight, + fontSize: 9.sp, + fontWeight: FontWeight.normal, + fontFamily: kUniversalFontFamily, + ), + ), + Text( + LocaleKeys.remaining.tr(), + style: TextStyle( + color: AppColors.kGreyLight, + fontSize: 9.sp, + fontWeight: FontWeight.normal, + fontFamily: kUniversalFontFamily, ), ), ], @@ -139,6 +137,37 @@ class BuyNFTButton extends StatelessWidget { ); } + Center getMessageContent() { + if (double.parse(nft.price) != 0) { + return Center( + child: AutoSizeText( + LocaleKeys.buy_now.tr(), + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.kWhite, + fontSize: 12.sp, + fontFamily: kUniversalFontFamily, + fontWeight: FontWeight.w700, + ), + maxLines: 1, + ), + ); + } + return Center( + child: AutoSizeText( + LocaleKeys.claim_now.tr(), + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.kWhite, + fontSize: 12.sp, + fontFamily: kUniversalFontFamily, + fontWeight: FontWeight.w700, + ), + maxLines: 1, + ), + ); + } + @override Widget build(BuildContext context) { final viewModel = context.read(); diff --git a/wallet/lib/utils/constants.dart b/wallet/lib/utils/constants.dart index d15302c45f..be4d106cd0 100644 --- a/wallet/lib/utils/constants.dart +++ b/wallet/lib/utils/constants.dart @@ -25,6 +25,7 @@ class AppColors { static Color kYellow = const Color(0xffFED564); static Color kDarkPurple = const Color(0xff0A004A); static Color kDarkRed = const Color(0xffEF4421); + static Color kRed = Colors.red; static Color kDarkGreen = const Color(0xFF3A8977); static Color kWhite01 = const Color(0xFFFBFBFB); static const Color kButtonColor = Color(0xFFFFFFFF); @@ -49,6 +50,7 @@ class AppColors { static Color kTradeReceiptTextColor = const Color(0xff8F8FCE); static Color kDarkPurpleColor = const Color(0xff0A004A); static Color kHashtagColor = const Color(0xFFB6B6E8); + static Color kDarkRedColor = const Color(0xFFAF381F); static Color kCheckboxActiveColor = const Color(0xFFCBC8F3); static Color kUserInputTextColor = const Color(0xff8D8C8C); static Color kSettingsUserNameColor = kBlue; @@ -478,4 +480,6 @@ const String drawerKey = "drawer_key"; const bool shouldShowAcceptPolicyScreen = true; +const String kRemaining = 'remaining'; +const kTotal = 'total'; const kFileExtension = "file_extension"; diff --git a/wallet/lib/utils/svg_util.dart b/wallet/lib/utils/svg_util.dart index e06fdc9b3e..c85dd60720 100644 --- a/wallet/lib/utils/svg_util.dart +++ b/wallet/lib/utils/svg_util.dart @@ -42,6 +42,7 @@ class SVGUtil { static String OWNER_VERIFIED_ICON = 'assets/images/icons/verified.svg'; static String OWNER_SHARE = 'assets/images/icons/share.svg'; static String OWNER_VIEWS = 'assets/images/icons/views.svg'; + static String OWNER_VIEWS_BOLD = 'assets/images/icons/eye_bold.svg'; static String DEV_NET = "assets/images/icons/dev_net.svg"; static String PYLONS_CURRENCY = "assets/images/icons/pylons_engagement_token.svg"; static String QR_ICON = 'assets/images/icons/qr.svg'; @@ -104,5 +105,4 @@ class SVGUtil { static const kSvgNftFormatAudio = 'assets/images/svg/nft_format_audio.svg'; static const kSvgNftFormatPDF = 'assets/images/svg/nft_format_pdf.svg'; static String BOTTOM_RIGHT_CURVED_GREY_BG = "assets/images/svg/bottom_right_curved_grey_bg.svg"; - static String CURVED_CORNER_RED_BG = "assets/images/svg/curved_corner_red_bg.svg"; } diff --git a/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart b/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart index ecc29ed4f1..612a49a4d6 100644 --- a/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart +++ b/wallet/test/unit_testing/pages/purchase_item/purchase_item_view_model_test.mocks.dart @@ -7,37 +7,48 @@ import 'dart:async' as _i8; import 'package:dartz/dartz.dart' as _i2; import 'package:fixnum/fixnum.dart' as _i11; -import 'package:in_app_purchase/in_app_purchase.dart' as _i27; -import 'package:internet_connection_checker/internet_connection_checker.dart' as _i26; -import 'package:local_auth/local_auth.dart' as _i22; +import 'package:in_app_purchase/in_app_purchase.dart' as _i28; +import 'package:internet_connection_checker/internet_connection_checker.dart' + as _i27; +import 'package:local_auth/local_auth.dart' as _i23; import 'package:mobx/mobx.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; import 'package:pylons_wallet/ipc/models/sdk_ipc_response.dart' as _i3; -import 'package:pylons_wallet/model/balance.dart' as _i14; -import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart' as _i15; -import 'package:pylons_wallet/model/export.dart' as _i16; -import 'package:pylons_wallet/model/nft.dart' as _i29; -import 'package:pylons_wallet/model/nft_ownership_history.dart' as _i23; -import 'package:pylons_wallet/model/notification_message.dart' as _i28; -import 'package:pylons_wallet/model/pick_image_model.dart' as _i21; -import 'package:pylons_wallet/model/stripe_get_login_based_address.dart' as _i19; -import 'package:pylons_wallet/model/stripe_loginlink_request.dart' as _i18; -import 'package:pylons_wallet/model/stripe_loginlink_response.dart' as _i17; -import 'package:pylons_wallet/model/transaction.dart' as _i24; -import 'package:pylons_wallet/model/transaction_failure_model.dart' as _i32; -import 'package:pylons_wallet/model/wallet_creation_model.dart' as _i31; -import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/client/cosmos/base/abci/v1beta1/abci.pb.dart' as _i4; -import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/export.dart' as _i10; -import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart' as _i33; -import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_trace_model.dart' as _i20; -import 'package:pylons_wallet/services/data_stores/remote_data_store.dart' as _i12; +import 'package:pylons_wallet/model/balance.dart' as _i15; +import 'package:pylons_wallet/model/execution_list_by_recipe_response.dart' + as _i16; +import 'package:pylons_wallet/model/export.dart' as _i17; +import 'package:pylons_wallet/model/nft.dart' as _i30; +import 'package:pylons_wallet/model/nft_ownership_history.dart' as _i24; +import 'package:pylons_wallet/model/notification_message.dart' as _i29; +import 'package:pylons_wallet/model/pick_image_model.dart' as _i22; +import 'package:pylons_wallet/model/stripe_get_login_based_address.dart' + as _i20; +import 'package:pylons_wallet/model/stripe_loginlink_request.dart' as _i19; +import 'package:pylons_wallet/model/stripe_loginlink_response.dart' as _i18; +import 'package:pylons_wallet/model/transaction.dart' as _i25; +import 'package:pylons_wallet/model/transaction_failure_model.dart' as _i33; +import 'package:pylons_wallet/model/wallet_creation_model.dart' as _i32; +import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/client/cosmos/base/abci/v1beta1/abci.pb.dart' + as _i4; +import 'package:pylons_wallet/modules/cosmos.tx.v1beta1/module/export.dart' + as _i14; +import 'package:pylons_wallet/modules/Pylonstech.pylons.pylons/module/export.dart' + as _i10; +import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_coins.dart' + as _i34; +import 'package:pylons_wallet/pages/home/currency_screen/model/ibc_trace_model.dart' + as _i21; +import 'package:pylons_wallet/services/data_stores/remote_data_store.dart' + as _i12; import 'package:pylons_wallet/services/repository/repository.dart' as _i13; -import 'package:pylons_wallet/stores/models/transaction_response.dart' as _i30; +import 'package:pylons_wallet/stores/models/transaction_response.dart' as _i31; import 'package:pylons_wallet/stores/wallet_store.dart' as _i7; -import 'package:pylons_wallet/utils/backup/common/backup_model.dart' as _i25; -import 'package:pylons_wallet/utils/enums.dart' as _i34; +import 'package:pylons_wallet/utils/backup/common/backup_model.dart' as _i26; +import 'package:pylons_wallet/utils/enums.dart' as _i35; import 'package:pylons_wallet/utils/failure/failure.dart' as _i9; -import 'package:transaction_signing_gateway/transaction_signing_gateway.dart' as _i6; +import 'package:transaction_signing_gateway/transaction_signing_gateway.dart' + as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -60,7 +71,8 @@ class _FakeEither_0 extends _i1.SmartFake implements _i2.Either { ); } -class _FakeSdkIpcResponse_1 extends _i1.SmartFake implements _i3.SdkIpcResponse { +class _FakeSdkIpcResponse_1 extends _i1.SmartFake + implements _i3.SdkIpcResponse { _FakeSdkIpcResponse_1( Object parent, Invocation parentInvocation, @@ -90,7 +102,8 @@ class _FakeObservable_3 extends _i1.SmartFake implements _i5.Observable { ); } -class _FakeAccountPublicInfo_4 extends _i1.SmartFake implements _i6.AccountPublicInfo { +class _FakeAccountPublicInfo_4 extends _i1.SmartFake + implements _i6.AccountPublicInfo { _FakeAccountPublicInfo_4( Object parent, Invocation parentInvocation, @@ -121,7 +134,9 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { userName, ], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(_FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value( + _FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>( this, Invocation.method( #importAlanWallet, @@ -132,14 +147,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>); - @override - _i8.Future<_i3.SdkIpcResponse> createCookbook(Map? json) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> createCookbook( + Map? json) => + (super.noSuchMethod( Invocation.method( #createCookbook, [json], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #createCookbook, @@ -147,14 +164,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> createRecipe(Map? json) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> createRecipe( + Map? json) => + (super.noSuchMethod( Invocation.method( #createRecipe, [json], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #createRecipe, @@ -162,14 +181,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse<_i10.Execution>> executeRecipe(Map? json) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse<_i10.Execution>> executeRecipe( + Map? json) => + (super.noSuchMethod( Invocation.method( #executeRecipe, [json], ), - returnValue: _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>.value(_FakeSdkIpcResponse_1<_i10.Execution>( + returnValue: _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>.value( + _FakeSdkIpcResponse_1<_i10.Execution>( this, Invocation.method( #executeRecipe, @@ -177,14 +198,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse<_i10.Execution>>); - @override - _i8.Future<_i3.SdkIpcResponse> createTrade(Map? json) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> createTrade( + Map? json) => + (super.noSuchMethod( Invocation.method( #createTrade, [json], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #createTrade, @@ -192,14 +215,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> fulfillTrade(Map? json) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> fulfillTrade( + Map? json) => + (super.noSuchMethod( Invocation.method( #fulfillTrade, [json], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #fulfillTrade, @@ -207,7 +232,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future<_i4.TxResponse> getTxs(String? txHash) => (super.noSuchMethod( Invocation.method( @@ -222,25 +246,24 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i4.TxResponse>); - @override - _i8.Future<_i10.Cookbook?> getCookbookById(String? cookbookID) => (super.noSuchMethod( + _i8.Future<_i10.Cookbook?> getCookbookById(String? cookbookID) => + (super.noSuchMethod( Invocation.method( #getCookbookById, [cookbookID], ), returnValue: _i8.Future<_i10.Cookbook?>.value(), ) as _i8.Future<_i10.Cookbook?>); - @override - _i8.Future> getCookbooksByCreator(String? creator) => (super.noSuchMethod( + _i8.Future> getCookbooksByCreator(String? creator) => + (super.noSuchMethod( Invocation.method( #getCookbooksByCreator, [creator], ), returnValue: _i8.Future>.value(<_i10.Cookbook>[]), ) as _i8.Future>); - @override _i8.Future<_i10.Trade?> getTradeByID(_i11.Int64? ID) => (super.noSuchMethod( Invocation.method( @@ -249,16 +272,15 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future<_i10.Trade?>.value(), ) as _i8.Future<_i10.Trade?>); - @override - _i8.Future> getTrades(String? creator) => (super.noSuchMethod( + _i8.Future> getTrades(String? creator) => + (super.noSuchMethod( Invocation.method( #getTrades, [creator], ), returnValue: _i8.Future>.value(<_i10.Trade>[]), ) as _i8.Future>); - @override _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>> getRecipe( String? cookbookID, @@ -272,7 +294,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { recipeID, ], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value(_FakeEither_0<_i9.Failure, _i10.Recipe>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value( + _FakeEither_0<_i9.Failure, _i10.Recipe>( this, Invocation.method( #getRecipe, @@ -283,7 +306,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>); - @override _i8.Future<_i10.Item?> getItem( String? cookbookID, @@ -299,34 +321,33 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future<_i10.Item?>.value(), ) as _i8.Future<_i10.Item?>); - @override - _i8.Future> getItemsByOwner(String? owner) => (super.noSuchMethod( + _i8.Future> getItemsByOwner(String? owner) => + (super.noSuchMethod( Invocation.method( #getItemsByOwner, [owner], ), returnValue: _i8.Future>.value(<_i10.Item>[]), ) as _i8.Future>); - @override - _i8.Future getAccountNameByAddress(String? address) => (super.noSuchMethod( + _i8.Future getAccountNameByAddress(String? address) => + (super.noSuchMethod( Invocation.method( #getAccountNameByAddress, [address], ), returnValue: _i8.Future.value(''), ) as _i8.Future); - @override - _i8.Future getAccountAddressByName(String? username) => (super.noSuchMethod( + _i8.Future getAccountAddressByName(String? username) => + (super.noSuchMethod( Invocation.method( #getAccountAddressByName, [username], ), returnValue: _i8.Future.value(''), ) as _i8.Future); - @override _i8.Future> getRecipeExecutions( String? cookbookID, @@ -342,15 +363,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future>.value(<_i10.Execution>[]), ) as _i8.Future>); - @override - _i8.Future<_i2.Either<_i9.Failure, int>> getFaucetCoin({String? denom = r''}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, int>> getFaucetCoin( + {String? denom = r''}) => + (super.noSuchMethod( Invocation.method( #getFaucetCoin, [], {#denom: denom}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value( + _FakeEither_0<_i9.Failure, int>( this, Invocation.method( #getFaucetCoin, @@ -359,7 +382,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, int>>); - @override _i8.Future isAccountExists(String? username) => (super.noSuchMethod( Invocation.method( @@ -368,14 +390,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future.value(false), ) as _i8.Future); - @override - _i8.Future<_i3.SdkIpcResponse> updateRecipe(Map? jsonMap) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> updateRecipe( + Map? jsonMap) => + (super.noSuchMethod( Invocation.method( #updateRecipe, [jsonMap], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #updateRecipe, @@ -383,15 +407,19 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>> importPylonsAccount({required String? mnemonic}) => (super.noSuchMethod( + _i8.Future< + _i2.Either<_i9.Failure, _i6.AccountPublicInfo>> importPylonsAccount( + {required String? mnemonic}) => + (super.noSuchMethod( Invocation.method( #importPylonsAccount, [], {#mnemonic: mnemonic}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value(_FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>.value( + _FakeEither_0<_i9.Failure, _i6.AccountPublicInfo>( this, Invocation.method( #importPylonsAccount, @@ -400,14 +428,16 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i6.AccountPublicInfo>>); - @override - _i8.Future<_i3.SdkIpcResponse> updateCookbook(Map? jsonMap) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> updateCookbook( + Map? jsonMap) => + (super.noSuchMethod( Invocation.method( #updateCookbook, [jsonMap], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #updateCookbook, @@ -415,14 +445,14 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future<_i3.SdkIpcResponse> getProfile() => (super.noSuchMethod( Invocation.method( #getProfile, [], ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getProfile, @@ -430,7 +460,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future signPureMessage(String? message) => (super.noSuchMethod( Invocation.method( @@ -439,24 +468,26 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future.value(''), ) as _i8.Future); - @override - _i8.Future> getRecipesByCookbookID(String? cookbookID) => (super.noSuchMethod( + _i8.Future> getRecipesByCookbookID(String? cookbookID) => + (super.noSuchMethod( Invocation.method( #getRecipesByCookbookID, [cookbookID], ), returnValue: _i8.Future>.value(<_i10.Recipe>[]), ) as _i8.Future>); - @override - _i8.Future<_i3.SdkIpcResponse> getAllRecipesByCookbookId({required String? cookbookId}) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> getAllRecipesByCookbookId( + {required String? cookbookId}) => + (super.noSuchMethod( Invocation.method( #getAllRecipesByCookbookId, [], {#cookbookId: cookbookId}, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getAllRecipesByCookbookId, @@ -465,15 +496,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> getCookbookByIdForSDK({required String? cookbookId}) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> getCookbookByIdForSDK( + {required String? cookbookId}) => + (super.noSuchMethod( Invocation.method( #getCookbookByIdForSDK, [], {#cookbookId: cookbookId}, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getCookbookByIdForSDK, @@ -482,7 +515,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i5.Observable getStateUpdatedFlag() => (super.noSuchMethod( Invocation.method( @@ -497,7 +529,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), ), ) as _i5.Observable); - @override void setStateUpdatedFlag({required bool? flag}) => super.noSuchMethod( Invocation.method( @@ -507,7 +538,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValueForMissingStub: null, ); - @override _i8.Future<_i3.SdkIpcResponse> getExecutionByRecipeId({ required String? cookbookId, @@ -522,7 +552,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { #recipeId: recipeId, }, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getExecutionByRecipeId, @@ -534,7 +565,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future<_i3.SdkIpcResponse> getRecipeByIdForSDK({ required String? cookbookId, @@ -549,7 +579,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { #recipeId: recipeId, }, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getRecipeByIdForSDK, @@ -561,7 +592,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future<_i3.SdkIpcResponse> getItemByIdForSDK({ required String? cookBookId, @@ -576,7 +606,8 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { #itemId: itemId, }, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getItemByIdForSDK, @@ -588,15 +619,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> getItemListByOwner({required String? owner}) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> getItemListByOwner( + {required String? owner}) => + (super.noSuchMethod( Invocation.method( #getItemListByOwner, [], {#owner: owner}, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getItemListByOwner, @@ -605,15 +638,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> getExecutionBasedOnId({required String? id}) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> getExecutionBasedOnId( + {required String? id}) => + (super.noSuchMethod( Invocation.method( #getExecutionBasedOnId, [], {#id: id}, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getExecutionBasedOnId, @@ -622,15 +657,17 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override - _i8.Future<_i3.SdkIpcResponse> getTradesForSDK({required String? creator}) => (super.noSuchMethod( + _i8.Future<_i3.SdkIpcResponse> getTradesForSDK( + {required String? creator}) => + (super.noSuchMethod( Invocation.method( #getTradesForSDK, [], {#creator: creator}, ), - returnValue: _i8.Future<_i3.SdkIpcResponse>.value(_FakeSdkIpcResponse_1( + returnValue: _i8.Future<_i3.SdkIpcResponse>.value( + _FakeSdkIpcResponse_1( this, Invocation.method( #getTradesForSDK, @@ -639,7 +676,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), )), ) as _i8.Future<_i3.SdkIpcResponse>); - @override _i8.Future deleteAccounts() => (super.noSuchMethod( Invocation.method( @@ -648,9 +684,10 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), returnValue: _i8.Future.value(false), ) as _i8.Future); - @override - _i2.Either<_i9.Failure, bool> saveInitialLink({required String? initialLink}) => (super.noSuchMethod( + _i2.Either<_i9.Failure, bool> saveInitialLink( + {required String? initialLink}) => + (super.noSuchMethod( Invocation.method( #saveInitialLink, [], @@ -665,7 +702,6 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override _i2.Either<_i9.Failure, String> getInitialLink() => (super.noSuchMethod( Invocation.method( @@ -680,36 +716,42 @@ class MockWalletsStore extends _i1.Mock implements _i7.WalletsStore { ), ), ) as _i2.Either<_i9.Failure, String>); - - @override - _i8.Future<_i2.Either<_i9.Failure, String>> sendGoogleInAppPurchaseCoinsRequest(_i12.GoogleInAppPurchaseModel? googleInAppPurchaseModel) => (super.noSuchMethod( - Invocation.method( - #sendGoogleInAppPurchaseCoinsRequest, - [googleInAppPurchaseModel], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( - this, - Invocation.method( - #sendGoogleInAppPurchaseCoinsRequest, - [googleInAppPurchaseModel], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> sendAppleInAppPurchaseCoinsRequest(_i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) => (super.noSuchMethod( - Invocation.method( - #sendAppleInAppPurchaseCoinsRequest, - [appleInAppPurchaseModel], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( - this, - Invocation.method( - #sendAppleInAppPurchaseCoinsRequest, - [appleInAppPurchaseModel], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); + _i8.Future<_i2.Either<_i9.Failure, String>> + sendGoogleInAppPurchaseCoinsRequest( + _i12.GoogleInAppPurchaseModel? googleInAppPurchaseModel) => + (super.noSuchMethod( + Invocation.method( + #sendGoogleInAppPurchaseCoinsRequest, + [googleInAppPurchaseModel], + ), + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( + this, + Invocation.method( + #sendGoogleInAppPurchaseCoinsRequest, + [googleInAppPurchaseModel], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); + @override + _i8.Future<_i2.Either<_i9.Failure, String>> + sendAppleInAppPurchaseCoinsRequest( + _i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) => + (super.noSuchMethod( + Invocation.method( + #sendAppleInAppPurchaseCoinsRequest, + [appleInAppPurchaseModel], + ), + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( + this, + Invocation.method( + #sendAppleInAppPurchaseCoinsRequest, + [appleInAppPurchaseModel], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); } /// A class which mocks [AccountPublicInfo]. @@ -725,31 +767,26 @@ class MockAccountPublicInfo extends _i1.Mock implements _i6.AccountPublicInfo { Invocation.getter(#name), returnValue: '', ) as String); - @override String get publicAddress => (super.noSuchMethod( Invocation.getter(#publicAddress), returnValue: '', ) as String); - @override String get accountId => (super.noSuchMethod( Invocation.getter(#accountId), returnValue: '', ) as String); - @override String get chainId => (super.noSuchMethod( Invocation.getter(#chainId), returnValue: '', ) as String); - @override List get props => (super.noSuchMethod( Invocation.getter(#props), returnValue: [], ) as List); - @override _i6.AccountPublicInfo copyWith({ String? name, @@ -809,7 +846,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #recipeId: recipeId, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value(_FakeEither_0<_i9.Failure, _i10.Recipe>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>.value( + _FakeEither_0<_i9.Failure, _i10.Recipe>( this, Invocation.method( #getRecipe, @@ -821,15 +859,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Recipe>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> getUsername({required String? address}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> getUsername( + {required String? address}) => + (super.noSuchMethod( Invocation.method( #getUsername, [], {#address: address}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #getUsername, @@ -838,32 +878,60 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>> getRecipesBasedOnCookBookId({required String? cookBookId}) => (super.noSuchMethod( + _i8.Future< + _i2.Either<_i9.Failure, _i2.Tuple2<_i14.Tx, _i4.TxResponse?>>> getTx( + {required String? hash}) => + (super.noSuchMethod( Invocation.method( - #getRecipesBasedOnCookBookId, + #getTx, [], - {#cookBookId: cookBookId}, + {#hash: hash}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>>.value(_FakeEither_0<_i9.Failure, List<_i10.Recipe>>( + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i2.Tuple2<_i14.Tx, _i4.TxResponse?>>>.value( + _FakeEither_0<_i9.Failure, _i2.Tuple2<_i14.Tx, _i4.TxResponse?>>( this, Invocation.method( - #getRecipesBasedOnCookBookId, + #getTx, [], - {#cookBookId: cookBookId}, + {#hash: hash}, ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>>); - + ) as _i8.Future< + _i2.Either<_i9.Failure, _i2.Tuple2<_i14.Tx, _i4.TxResponse?>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>> + getRecipesBasedOnCookBookId({required String? cookBookId}) => + (super.noSuchMethod( + Invocation.method( + #getRecipesBasedOnCookBookId, + [], + {#cookBookId: cookBookId}, + ), + returnValue: + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>>.value( + _FakeEither_0<_i9.Failure, List<_i10.Recipe>>( + this, + Invocation.method( + #getRecipesBasedOnCookBookId, + [], + {#cookBookId: cookBookId}, + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Recipe>>>); @override - _i8.Future<_i2.Either<_i9.Failure, _i10.Cookbook>> getCookbookBasedOnId({required String? cookBookId}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, _i10.Cookbook>> getCookbookBasedOnId( + {required String? cookBookId}) => + (super.noSuchMethod( Invocation.method( #getCookbookBasedOnId, [], {#cookBookId: cookBookId}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Cookbook>>.value(_FakeEither_0<_i9.Failure, _i10.Cookbook>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Cookbook>>.value( + _FakeEither_0<_i9.Failure, _i10.Cookbook>( this, Invocation.method( #getCookbookBasedOnId, @@ -872,14 +940,16 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Cookbook>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> getAddressBasedOnUsername(String? username) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> getAddressBasedOnUsername( + String? username) => + (super.noSuchMethod( Invocation.method( #getAddressBasedOnUsername, [username], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #getAddressBasedOnUsername, @@ -887,49 +957,55 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i14.Balance>>> getBalance(String? address) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, List<_i15.Balance>>> getBalance( + String? address) => + (super.noSuchMethod( Invocation.method( #getBalance, [address], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i14.Balance>>>.value(_FakeEither_0<_i9.Failure, List<_i14.Balance>>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, List<_i15.Balance>>>.value( + _FakeEither_0<_i9.Failure, List<_i15.Balance>>( this, Invocation.method( #getBalance, [address], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i14.Balance>>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, List<_i15.Balance>>>); @override - _i8.Future<_i2.Either<_i9.Failure, _i15.ExecutionListByRecipeResponse>> getExecutionsByRecipeId({ + _i8.Future<_i2.Either<_i9.Failure, _i16.ExecutionListByRecipeResponse>> + getExecutionsByRecipeId({ required String? cookBookId, required String? recipeId, }) => - (super.noSuchMethod( - Invocation.method( - #getExecutionsByRecipeId, - [], - { - #cookBookId: cookBookId, - #recipeId: recipeId, - }, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i15.ExecutionListByRecipeResponse>>.value(_FakeEither_0<_i9.Failure, _i15.ExecutionListByRecipeResponse>( - this, - Invocation.method( - #getExecutionsByRecipeId, - [], - { - #cookBookId: cookBookId, - #recipeId: recipeId, - }, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i15.ExecutionListByRecipeResponse>>); - + (super.noSuchMethod( + Invocation.method( + #getExecutionsByRecipeId, + [], + { + #cookBookId: cookBookId, + #recipeId: recipeId, + }, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i16.ExecutionListByRecipeResponse>>.value( + _FakeEither_0<_i9.Failure, _i16.ExecutionListByRecipeResponse>( + this, + Invocation.method( + #getExecutionsByRecipeId, + [], + { + #cookBookId: cookBookId, + #recipeId: recipeId, + }, + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i16.ExecutionListByRecipeResponse>>); @override _i8.Future<_i2.Either<_i9.Failure, int>> getFaucetCoin({ required String? address, @@ -944,7 +1020,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #denom: denom, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value( + _FakeEither_0<_i9.Failure, int>( this, Invocation.method( #getFaucetCoin, @@ -956,7 +1033,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, int>>); - @override _i8.Future<_i2.Either<_i9.Failure, _i10.Item>> getItem({ required String? cookBookId, @@ -971,7 +1047,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #itemId: itemId, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Item>>.value(_FakeEither_0<_i9.Failure, _i10.Item>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Item>>.value( + _FakeEither_0<_i9.Failure, _i10.Item>( this, Invocation.method( #getItem, @@ -983,15 +1060,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Item>>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i10.Item>>> getListItemByOwner({required String? owner}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Item>>> getListItemByOwner( + {required String? owner}) => + (super.noSuchMethod( Invocation.method( #getListItemByOwner, [], {#owner: owner}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i10.Item>>>.value(_FakeEither_0<_i9.Failure, List<_i10.Item>>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i10.Item>>>.value( + _FakeEither_0<_i9.Failure, List<_i10.Item>>( this, Invocation.method( #getListItemByOwner, @@ -1000,15 +1079,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Item>>>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i10.Execution>> getExecutionBasedOnId({required String? id}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, _i10.Execution>> getExecutionBasedOnId( + {required String? id}) => + (super.noSuchMethod( Invocation.method( #getExecutionBasedOnId, [], {#id: id}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Execution>>.value(_FakeEither_0<_i9.Failure, _i10.Execution>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Execution>>.value( + _FakeEither_0<_i9.Failure, _i10.Execution>( this, Invocation.method( #getExecutionBasedOnId, @@ -1017,15 +1098,18 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Execution>>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i10.Trade>>> getTradesBasedOnCreator({required String? creator}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Trade>>> getTradesBasedOnCreator( + {required String? creator}) => + (super.noSuchMethod( Invocation.method( #getTradesBasedOnCreator, [], {#creator: creator}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i10.Trade>>>.value(_FakeEither_0<_i9.Failure, List<_i10.Trade>>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Trade>>>.value( + _FakeEither_0<_i9.Failure, List<_i10.Trade>>( this, Invocation.method( #getTradesBasedOnCreator, @@ -1034,207 +1118,276 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Trade>>>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i6.PrivateAccountCredentials>> getPrivateCredentials({ + _i8.Future<_i2.Either<_i9.Failure, _i6.PrivateAccountCredentials>> + getPrivateCredentials({ required String? mnemonic, required String? username, }) => + (super.noSuchMethod( + Invocation.method( + #getPrivateCredentials, + [], + { + #mnemonic: mnemonic, + #username: username, + }, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i6.PrivateAccountCredentials>>.value( + _FakeEither_0<_i9.Failure, _i6.PrivateAccountCredentials>( + this, + Invocation.method( + #getPrivateCredentials, + [], + { + #mnemonic: mnemonic, + #username: username, + }, + ), + )), + ) as _i8 + .Future<_i2.Either<_i9.Failure, _i6.PrivateAccountCredentials>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeCreatePaymentIntentResponse>> + CreatePaymentIntent(_i17.StripeCreatePaymentIntentRequest? req) => + (super.noSuchMethod( + Invocation.method( + #CreatePaymentIntent, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeCreatePaymentIntentResponse>>.value( + _FakeEither_0<_i9.Failure, + _i17.StripeCreatePaymentIntentResponse>( + this, + Invocation.method( + #CreatePaymentIntent, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeCreatePaymentIntentResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeGeneratePaymentReceiptResponse>> + GeneratePaymentReceipt(_i17.StripeGeneratePaymentReceiptRequest? req) => + (super.noSuchMethod( + Invocation.method( + #GeneratePaymentReceipt, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGeneratePaymentReceiptResponse>>.value( + _FakeEither_0<_i9.Failure, + _i17.StripeGeneratePaymentReceiptResponse>( + this, + Invocation.method( + #GeneratePaymentReceipt, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGeneratePaymentReceiptResponse>>); + @override + _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeGenerateRegistrationTokenResponse>> + GenerateRegistrationToken(String? address) => (super.noSuchMethod( + Invocation.method( + #GenerateRegistrationToken, + [address], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGenerateRegistrationTokenResponse>>.value( + _FakeEither_0<_i9.Failure, + _i17.StripeGenerateRegistrationTokenResponse>( + this, + Invocation.method( + #GenerateRegistrationToken, + [address], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGenerateRegistrationTokenResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeRegisterAccountResponse>> + RegisterAccount(_i17.StripeRegisterAccountRequest? req) => + (super.noSuchMethod( + Invocation.method( + #RegisterAccount, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeRegisterAccountResponse>>.value( + _FakeEither_0<_i9.Failure, _i17.StripeRegisterAccountResponse>( + this, + Invocation.method( + #RegisterAccount, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeRegisterAccountResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeGenerateUpdateTokenResponse>> + GenerateUpdateToken(String? address) => (super.noSuchMethod( + Invocation.method( + #GenerateUpdateToken, + [address], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGenerateUpdateTokenResponse>>.value( + _FakeEither_0<_i9.Failure, + _i17.StripeGenerateUpdateTokenResponse>( + this, + Invocation.method( + #GenerateUpdateToken, + [address], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeGenerateUpdateTokenResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeUpdateAccountResponse>> + UpdateAccount(_i17.StripeUpdateAccountRequest? req) => + (super.noSuchMethod( + Invocation.method( + #UpdateAccount, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeUpdateAccountResponse>>.value( + _FakeEither_0<_i9.Failure, _i17.StripeUpdateAccountResponse>( + this, + Invocation.method( + #UpdateAccount, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeUpdateAccountResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeUpdateAccountResponse>> + getAccountLinkBasedOnUpdateToken(_i17.StripeUpdateAccountRequest? req) => + (super.noSuchMethod( + Invocation.method( + #getAccountLinkBasedOnUpdateToken, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeUpdateAccountResponse>>.value( + _FakeEither_0<_i9.Failure, _i17.StripeUpdateAccountResponse>( + this, + Invocation.method( + #getAccountLinkBasedOnUpdateToken, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeUpdateAccountResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i17.StripeGeneratePayoutTokenResponse>> + GeneratePayoutToken(_i17.StripeGeneratePayoutTokenRequest? req) => + (super.noSuchMethod( + Invocation.method( + #GeneratePayoutToken, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i17.StripeGeneratePayoutTokenResponse>>.value( + _FakeEither_0<_i9.Failure, + _i17.StripeGeneratePayoutTokenResponse>( + this, + Invocation.method( + #GeneratePayoutToken, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeGeneratePayoutTokenResponse>>); + @override + _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeAccountLinkResponse>> GetAccountLink( + _i17.StripeAccountLinkRequest? req) => (super.noSuchMethod( - Invocation.method( - #getPrivateCredentials, - [], - { - #mnemonic: mnemonic, - #username: username, - }, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i6.PrivateAccountCredentials>>.value(_FakeEither_0<_i9.Failure, _i6.PrivateAccountCredentials>( - this, - Invocation.method( - #getPrivateCredentials, - [], - { - #mnemonic: mnemonic, - #username: username, - }, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i6.PrivateAccountCredentials>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeCreatePaymentIntentResponse>> CreatePaymentIntent(_i16.StripeCreatePaymentIntentRequest? req) => (super.noSuchMethod( - Invocation.method( - #CreatePaymentIntent, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeCreatePaymentIntentResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeCreatePaymentIntentResponse>( - this, - Invocation.method( - #CreatePaymentIntent, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeCreatePaymentIntentResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePaymentReceiptResponse>> GeneratePaymentReceipt(_i16.StripeGeneratePaymentReceiptRequest? req) => (super.noSuchMethod( - Invocation.method( - #GeneratePaymentReceipt, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePaymentReceiptResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeGeneratePaymentReceiptResponse>( - this, - Invocation.method( - #GeneratePaymentReceipt, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePaymentReceiptResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateRegistrationTokenResponse>> GenerateRegistrationToken(String? address) => (super.noSuchMethod( - Invocation.method( - #GenerateRegistrationToken, - [address], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateRegistrationTokenResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeGenerateRegistrationTokenResponse>( - this, - Invocation.method( - #GenerateRegistrationToken, - [address], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateRegistrationTokenResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeRegisterAccountResponse>> RegisterAccount(_i16.StripeRegisterAccountRequest? req) => (super.noSuchMethod( - Invocation.method( - #RegisterAccount, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeRegisterAccountResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeRegisterAccountResponse>( - this, - Invocation.method( - #RegisterAccount, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeRegisterAccountResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateUpdateTokenResponse>> GenerateUpdateToken(String? address) => (super.noSuchMethod( - Invocation.method( - #GenerateUpdateToken, - [address], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateUpdateTokenResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeGenerateUpdateTokenResponse>( - this, - Invocation.method( - #GenerateUpdateToken, - [address], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGenerateUpdateTokenResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>> UpdateAccount(_i16.StripeUpdateAccountRequest? req) => (super.noSuchMethod( - Invocation.method( - #UpdateAccount, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeUpdateAccountResponse>( - this, - Invocation.method( - #UpdateAccount, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>> getAccountLinkBasedOnUpdateToken(_i16.StripeUpdateAccountRequest? req) => (super.noSuchMethod( - Invocation.method( - #getAccountLinkBasedOnUpdateToken, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeUpdateAccountResponse>( - this, - Invocation.method( - #getAccountLinkBasedOnUpdateToken, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeUpdateAccountResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePayoutTokenResponse>> GeneratePayoutToken(_i16.StripeGeneratePayoutTokenRequest? req) => (super.noSuchMethod( - Invocation.method( - #GeneratePayoutToken, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePayoutTokenResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeGeneratePayoutTokenResponse>( - this, - Invocation.method( - #GeneratePayoutToken, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeGeneratePayoutTokenResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i16.StripeAccountLinkResponse>> GetAccountLink(_i16.StripeAccountLinkRequest? req) => (super.noSuchMethod( Invocation.method( #GetAccountLink, [req], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i16.StripeAccountLinkResponse>>.value(_FakeEither_0<_i9.Failure, _i16.StripeAccountLinkResponse>( + returnValue: _i8.Future< + _i2.Either<_i9.Failure, _i17.StripeAccountLinkResponse>>.value( + _FakeEither_0<_i9.Failure, _i17.StripeAccountLinkResponse>( this, Invocation.method( #GetAccountLink, [req], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i16.StripeAccountLinkResponse>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, _i17.StripeAccountLinkResponse>>); @override - _i8.Future<_i2.Either<_i9.Failure, _i17.StripeLoginLinkResponse>> stripeGetLoginLink(_i18.StripeLoginLinkRequest? req) => (super.noSuchMethod( + _i8.Future< + _i2.Either<_i9.Failure, _i18.StripeLoginLinkResponse>> stripeGetLoginLink( + _i19.StripeLoginLinkRequest? req) => + (super.noSuchMethod( Invocation.method( #stripeGetLoginLink, [req], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i17.StripeLoginLinkResponse>>.value(_FakeEither_0<_i9.Failure, _i17.StripeLoginLinkResponse>( + returnValue: _i8.Future< + _i2.Either<_i9.Failure, _i18.StripeLoginLinkResponse>>.value( + _FakeEither_0<_i9.Failure, _i18.StripeLoginLinkResponse>( this, Invocation.method( #stripeGetLoginLink, [req], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i17.StripeLoginLinkResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i19.StripeGetLoginBasedOnAddressResponse>> getLoginLinkBasedOnAddress(_i19.StripeGetLoginBasedOnAddressRequest? req) => (super.noSuchMethod( - Invocation.method( - #getLoginLinkBasedOnAddress, - [req], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i19.StripeGetLoginBasedOnAddressResponse>>.value(_FakeEither_0<_i9.Failure, _i19.StripeGetLoginBasedOnAddressResponse>( - this, - Invocation.method( - #getLoginLinkBasedOnAddress, - [req], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i19.StripeGetLoginBasedOnAddressResponse>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i20.IBCTraceModel>> getIBCHashTrace({required String? ibcHash}) => (super.noSuchMethod( + ) as _i8.Future<_i2.Either<_i9.Failure, _i18.StripeLoginLinkResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i20.StripeGetLoginBasedOnAddressResponse>> + getLoginLinkBasedOnAddress( + _i20.StripeGetLoginBasedOnAddressRequest? req) => + (super.noSuchMethod( + Invocation.method( + #getLoginLinkBasedOnAddress, + [req], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + _i20.StripeGetLoginBasedOnAddressResponse>>.value( + _FakeEither_0<_i9.Failure, + _i20.StripeGetLoginBasedOnAddressResponse>( + this, + Invocation.method( + #getLoginLinkBasedOnAddress, + [req], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, + _i20.StripeGetLoginBasedOnAddressResponse>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i21.IBCTraceModel>> getIBCHashTrace( + {required String? ibcHash}) => + (super.noSuchMethod( Invocation.method( #getIBCHashTrace, [], {#ibcHash: ibcHash}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i20.IBCTraceModel>>.value(_FakeEither_0<_i9.Failure, _i20.IBCTraceModel>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i21.IBCTraceModel>>.value( + _FakeEither_0<_i9.Failure, _i21.IBCTraceModel>( this, Invocation.method( #getIBCHashTrace, @@ -1242,16 +1395,18 @@ class MockRepository extends _i1.Mock implements _i13.Repository { {#ibcHash: ibcHash}, ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i20.IBCTraceModel>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, _i21.IBCTraceModel>>); @override - _i8.Future<_i2.Either<_i9.Failure, bool>> doesStripeAccountExistsFromServer({required String? address}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> doesStripeAccountExistsFromServer( + {required String? address}) => + (super.noSuchMethod( Invocation.method( #doesStripeAccountExistsFromServer, [], {#address: address}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #doesStripeAccountExistsFromServer, @@ -1260,9 +1415,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i2.Either<_i9.Failure, bool> getStripeAccountExistsFromLocal() => (super.noSuchMethod( + _i2.Either<_i9.Failure, bool> getStripeAccountExistsFromLocal() => + (super.noSuchMethod( Invocation.method( #getStripeAccountExistsFromLocal, [], @@ -1275,9 +1430,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future saveStripeAccountExistsLocal({required bool? isExist}) => (super.noSuchMethod( + _i8.Future saveStripeAccountExistsLocal({required bool? isExist}) => + (super.noSuchMethod( Invocation.method( #saveStripeAccountExistsLocal, [], @@ -1285,14 +1440,16 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), returnValue: _i8.Future.value(), ) as _i8.Future); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> pickImageFromGallery(_i21.PickImageModel? pickImageModel) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> pickImageFromGallery( + _i22.PickImageModel? pickImageModel) => + (super.noSuchMethod( Invocation.method( #pickImageFromGallery, [pickImageModel], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #pickImageFromGallery, @@ -1300,7 +1457,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> saveImage({ required String? key, @@ -1315,7 +1471,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #imagePath: imagePath, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveImage, @@ -1327,9 +1484,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i2.Either<_i9.Failure, String> getImagePath(String? uri) => (super.noSuchMethod( + _i2.Either<_i9.Failure, String> getImagePath(String? uri) => + (super.noSuchMethod( Invocation.method( #getImagePath, [uri], @@ -1342,15 +1499,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, String>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveIsBannerDark({required bool? isBannerDark}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveIsBannerDark( + {required bool? isBannerDark}) => + (super.noSuchMethod( Invocation.method( #saveIsBannerDark, [], {#isBannerDark: isBannerDark}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveIsBannerDark, @@ -1359,7 +1518,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, bool> getIsBannerDark() => (super.noSuchMethod( Invocation.method( @@ -1374,15 +1532,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveEmail({required String? value}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveEmail( + {required String? value}) => + (super.noSuchMethod( Invocation.method( #saveEmail, [], {#value: value}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveEmail, @@ -1391,7 +1551,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, String> getSavedEmail() => (super.noSuchMethod( Invocation.method( @@ -1406,9 +1565,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, String>); - @override - _i2.Either<_i9.Failure, bool> saveInitialLink(String? initialLink) => (super.noSuchMethod( + _i2.Either<_i9.Failure, bool> saveInitialLink(String? initialLink) => + (super.noSuchMethod( Invocation.method( #saveInitialLink, [initialLink], @@ -1421,7 +1580,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override _i2.Either<_i9.Failure, String> getInitialLink() => (super.noSuchMethod( Invocation.method( @@ -1436,15 +1594,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, String>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveDescription({required String? description}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveDescription( + {required String? description}) => + (super.noSuchMethod( Invocation.method( #saveDescription, [], {#description: description}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveDescription, @@ -1453,7 +1613,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, String> getDescription() => (super.noSuchMethod( Invocation.method( @@ -1468,15 +1627,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, String>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveNotificationsPreference({required bool? notificationStatus}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveNotificationsPreference( + {required bool? notificationStatus}) => + (super.noSuchMethod( Invocation.method( #saveNotificationsPreference, [], {#notificationStatus: notificationStatus}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveNotificationsPreference, @@ -1485,9 +1646,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i2.Either<_i9.Failure, bool> getNotificationsPreference() => (super.noSuchMethod( + _i2.Either<_i9.Failure, bool> getNotificationsPreference() => + (super.noSuchMethod( Invocation.method( #getNotificationsPreference, [], @@ -1500,15 +1661,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveNetworkEnvironmentPreference({required String? networkEnvironment}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveNetworkEnvironmentPreference( + {required String? networkEnvironment}) => + (super.noSuchMethod( Invocation.method( #saveNetworkEnvironmentPreference, [], {#networkEnvironment: networkEnvironment}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveNetworkEnvironmentPreference, @@ -1517,9 +1680,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i2.Either<_i9.Failure, String> getNetworkEnvironmentPreference() => (super.noSuchMethod( + _i2.Either<_i9.Failure, String> getNetworkEnvironmentPreference() => + (super.noSuchMethod( Invocation.method( #getNetworkEnvironmentPreference, [], @@ -1532,14 +1695,16 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, String>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> saveImageInLocalDirectory(String? imagePath) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> saveImageInLocalDirectory( + String? imagePath) => + (super.noSuchMethod( Invocation.method( #saveImageInLocalDirectory, [imagePath], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #saveImageInLocalDirectory, @@ -1547,59 +1712,64 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveMnemonic(String? mnemonics) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveMnemonic(String? mnemonics) => + (super.noSuchMethod( Invocation.method( #saveMnemonic, [mnemonics], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( - this, - Invocation.method( - #saveMnemonic, - [mnemonics], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, String>> getMnemonic() => (super.noSuchMethod( - Invocation.method( - #getMnemonic, - [], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, - Invocation.method( - #getMnemonic, - [], + Invocation.method( + #saveMnemonic, + [mnemonics], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); @override - _i8.Future<_i2.Either<_i9.Failure, _i22.BiometricType>> isBiometricAvailable() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> getMnemonic() => + (super.noSuchMethod( Invocation.method( - #isBiometricAvailable, + #getMnemonic, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i22.BiometricType>>.value(_FakeEither_0<_i9.Failure, _i22.BiometricType>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( - #isBiometricAvailable, + #getMnemonic, [], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i22.BiometricType>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); @override - _i8.Future<_i2.Either<_i9.Failure, bool>> authenticate() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, _i23.BiometricType>> + isBiometricAvailable() => (super.noSuchMethod( + Invocation.method( + #isBiometricAvailable, + [], + ), + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i23.BiometricType>>.value( + _FakeEither_0<_i9.Failure, _i23.BiometricType>( + this, + Invocation.method( + #isBiometricAvailable, + [], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, _i23.BiometricType>>); + @override + _i8.Future<_i2.Either<_i9.Failure, bool>> authenticate() => + (super.noSuchMethod( Invocation.method( #authenticate, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #authenticate, @@ -1607,14 +1777,15 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, void>> setApplicationDirectory() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, void>> setApplicationDirectory() => + (super.noSuchMethod( Invocation.method( #setApplicationDirectory, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value(_FakeEither_0<_i9.Failure, void>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value( + _FakeEither_0<_i9.Failure, void>( this, Invocation.method( #setApplicationDirectory, @@ -1622,15 +1793,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, void>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveDefaultSecurityBiometric({required bool? biometricEnabled}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveDefaultSecurityBiometric( + {required bool? biometricEnabled}) => + (super.noSuchMethod( Invocation.method( #saveDefaultSecurityBiometric, [], {#biometricEnabled: biometricEnabled}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveDefaultSecurityBiometric, @@ -1639,7 +1812,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, bool> getSecurityBiometric() => (super.noSuchMethod( Invocation.method( @@ -1654,15 +1826,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveBiometricLogin({required bool? biometricEnabled}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveBiometricLogin( + {required bool? biometricEnabled}) => + (super.noSuchMethod( Invocation.method( #saveBiometricLogin, [], {#biometricEnabled: biometricEnabled}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveBiometricLogin, @@ -1671,7 +1845,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, bool> getBiometricLogin() => (super.noSuchMethod( Invocation.method( @@ -1686,15 +1859,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveBiometricTransaction({required bool? biometricEnabled}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveBiometricTransaction( + {required bool? biometricEnabled}) => + (super.noSuchMethod( Invocation.method( #saveBiometricTransaction, [], {#biometricEnabled: biometricEnabled}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveBiometricTransaction, @@ -1703,9 +1878,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i2.Either<_i9.Failure, bool> getBiometricTransaction() => (super.noSuchMethod( + _i2.Either<_i9.Failure, bool> getBiometricTransaction() => + (super.noSuchMethod( Invocation.method( #getBiometricTransaction, [], @@ -1718,59 +1893,100 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i23.NftOwnershipHistory>>> getNftOwnershipHistory({ + _i8.Future<_i2.Either<_i9.Failure, List<_i24.NftOwnershipHistory>>> + getNftOwnershipHistory({ required String? itemId, required String? cookBookId, }) => + (super.noSuchMethod( + Invocation.method( + #getNftOwnershipHistory, + [], + { + #itemId: itemId, + #cookBookId: cookBookId, + }, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + List<_i24.NftOwnershipHistory>>>.value( + _FakeEither_0<_i9.Failure, List<_i24.NftOwnershipHistory>>( + this, + Invocation.method( + #getNftOwnershipHistory, + [], + { + #itemId: itemId, + #cookBookId: cookBookId, + }, + ), + )), + ) as _i8 + .Future<_i2.Either<_i9.Failure, List<_i24.NftOwnershipHistory>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, List<_i24.NftOwnershipHistory>>> + getNftOwnershipHistoryByCookbookIdAndRecipeId({ + required String? cookBookId, + required String? recipeId, + }) => + (super.noSuchMethod( + Invocation.method( + #getNftOwnershipHistoryByCookbookIdAndRecipeId, + [], + { + #cookBookId: cookBookId, + #recipeId: recipeId, + }, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + List<_i24.NftOwnershipHistory>>>.value( + _FakeEither_0<_i9.Failure, List<_i24.NftOwnershipHistory>>( + this, + Invocation.method( + #getNftOwnershipHistoryByCookbookIdAndRecipeId, + [], + { + #cookBookId: cookBookId, + #recipeId: recipeId, + }, + ), + )), + ) as _i8 + .Future<_i2.Either<_i9.Failure, List<_i24.NftOwnershipHistory>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, List<_i25.TransactionHistory>>> + getTransactionHistory({required String? address}) => (super.noSuchMethod( + Invocation.method( + #getTransactionHistory, + [], + {#address: address}, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + List<_i25.TransactionHistory>>>.value( + _FakeEither_0<_i9.Failure, List<_i25.TransactionHistory>>( + this, + Invocation.method( + #getTransactionHistory, + [], + {#address: address}, + ), + )), + ) as _i8 + .Future<_i2.Either<_i9.Failure, List<_i25.TransactionHistory>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, String>> updateRecipe( + {required _i10.MsgUpdateRecipe? msgUpdateRecipe}) => (super.noSuchMethod( - Invocation.method( - #getNftOwnershipHistory, - [], - { - #itemId: itemId, - #cookBookId: cookBookId, - }, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i23.NftOwnershipHistory>>>.value(_FakeEither_0<_i9.Failure, List<_i23.NftOwnershipHistory>>( - this, - Invocation.method( - #getNftOwnershipHistory, - [], - { - #itemId: itemId, - #cookBookId: cookBookId, - }, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i23.NftOwnershipHistory>>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i24.TransactionHistory>>> getTransactionHistory({required String? address}) => (super.noSuchMethod( - Invocation.method( - #getTransactionHistory, - [], - {#address: address}, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i24.TransactionHistory>>>.value(_FakeEither_0<_i9.Failure, List<_i24.TransactionHistory>>( - this, - Invocation.method( - #getTransactionHistory, - [], - {#address: address}, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i24.TransactionHistory>>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, String>> updateRecipe({required _i10.MsgUpdateRecipe? msgUpdateRecipe}) => (super.noSuchMethod( Invocation.method( #updateRecipe, [], {#msgUpdateRecipe: msgUpdateRecipe}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #updateRecipe, @@ -1779,7 +1995,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> uploadMnemonicGoogleDrive({ required String? mnemonic, @@ -1794,7 +2009,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #username: username, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #uploadMnemonicGoogleDrive, @@ -1806,22 +2022,23 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>> getGoogleDriveMnemonic() => (super.noSuchMethod( - Invocation.method( - #getGoogleDriveMnemonic, - [], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>>.value(_FakeEither_0<_i9.Failure, _i25.BackupData>( - this, - Invocation.method( - #getGoogleDriveMnemonic, - [], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>>); - + _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>> + getGoogleDriveMnemonic() => (super.noSuchMethod( + Invocation.method( + #getGoogleDriveMnemonic, + [], + ), + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>>.value( + _FakeEither_0<_i9.Failure, _i26.BackupData>( + this, + Invocation.method( + #getGoogleDriveMnemonic, + [], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>>); @override _i8.Future<_i2.Either<_i9.Failure, bool>> uploadMnemonicICloud({ required String? mnemonic, @@ -1836,7 +2053,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #username: username, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #uploadMnemonicICloud, @@ -1848,46 +2066,51 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>> getICloudMnemonic() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>> getICloudMnemonic() => + (super.noSuchMethod( Invocation.method( #getICloudMnemonic, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>>.value(_FakeEither_0<_i9.Failure, _i25.BackupData>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>>.value( + _FakeEither_0<_i9.Failure, _i26.BackupData>( this, Invocation.method( #getICloudMnemonic, [], ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i25.BackupData>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>> getCookbooksByCreator({required String? creator}) => (super.noSuchMethod( - Invocation.method( - #getCookbooksByCreator, - [], - {#creator: creator}, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>>.value(_FakeEither_0<_i9.Failure, List<_i10.Cookbook>>( - this, - Invocation.method( - #getCookbooksByCreator, - [], - {#creator: creator}, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i10.Trade>> getTradeByID(_i11.Int64? id) => (super.noSuchMethod( + ) as _i8.Future<_i2.Either<_i9.Failure, _i26.BackupData>>); + @override + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>> + getCookbooksByCreator({required String? creator}) => (super.noSuchMethod( + Invocation.method( + #getCookbooksByCreator, + [], + {#creator: creator}, + ), + returnValue: + _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>>.value( + _FakeEither_0<_i9.Failure, List<_i10.Cookbook>>( + this, + Invocation.method( + #getCookbooksByCreator, + [], + {#creator: creator}, + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, List<_i10.Cookbook>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i10.Trade>> getTradeByID( + _i11.Int64? id) => + (super.noSuchMethod( Invocation.method( #getTradeByID, [id], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Trade>>.value(_FakeEither_0<_i9.Failure, _i10.Trade>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, _i10.Trade>>.value( + _FakeEither_0<_i9.Failure, _i10.Trade>( this, Invocation.method( #getTradeByID, @@ -1895,7 +2118,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, _i10.Trade>>); - @override _i8.Future isInternetConnected() => (super.noSuchMethod( Invocation.method( @@ -1904,16 +2126,15 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), returnValue: _i8.Future.value(false), ) as _i8.Future); - @override - _i8.Stream<_i26.InternetConnectionStatus> getInternetStatus() => (super.noSuchMethod( + _i8.Stream<_i27.InternetConnectionStatus> getInternetStatus() => + (super.noSuchMethod( Invocation.method( #getInternetStatus, [], ), - returnValue: _i8.Stream<_i26.InternetConnectionStatus>.empty(), - ) as _i8.Stream<_i26.InternetConnectionStatus>); - + returnValue: _i8.Stream<_i27.InternetConnectionStatus>.empty(), + ) as _i8.Stream<_i27.InternetConnectionStatus>); @override _i8.Future<_i2.Either<_i9.Failure, int>> getLikesCount({ required String? recipeId, @@ -1928,7 +2149,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #cookBookID: cookBookID, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value( + _FakeEither_0<_i9.Failure, int>( this, Invocation.method( #getLikesCount, @@ -1940,7 +2162,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, int>>); - @override _i8.Future<_i2.Either<_i9.Failure, int>> getViewsCount({ required String? recipeId, @@ -1955,7 +2176,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #cookBookID: cookBookID, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value( + _FakeEither_0<_i9.Failure, int>( this, Invocation.method( #getViewsCount, @@ -1967,7 +2189,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, int>>); - @override _i8.Future<_i2.Either<_i9.Failure, void>> countAView({ required String? recipeId, @@ -1984,7 +2205,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #walletAddress: walletAddress, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value(_FakeEither_0<_i9.Failure, void>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value( + _FakeEither_0<_i9.Failure, void>( this, Invocation.method( #countAView, @@ -1997,7 +2219,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, void>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> ifLikedByMe({ required String? recipeId, @@ -2014,7 +2235,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #walletAddress: walletAddress, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #ifLikedByMe, @@ -2027,7 +2249,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i8.Future<_i2.Either<_i9.Failure, void>> updateLikeStatus({ required String? recipeId, @@ -2044,7 +2265,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #walletAddress: walletAddress, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value(_FakeEither_0<_i9.Failure, void>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value( + _FakeEither_0<_i9.Failure, void>( this, Invocation.method( #updateLikeStatus, @@ -2057,7 +2279,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, void>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> saveUserFeedback({ required String? walletAddress, @@ -2074,7 +2295,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #feedback: feedback, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveUserFeedback, @@ -2087,45 +2309,54 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, String>> sendAppleInAppPurchaseCoinsRequest(_i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) => (super.noSuchMethod( - Invocation.method( - #sendAppleInAppPurchaseCoinsRequest, - [appleInAppPurchaseModel], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( - this, - Invocation.method( - #sendAppleInAppPurchaseCoinsRequest, - [appleInAppPurchaseModel], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, String>> sendGoogleInAppPurchaseCoinsRequest(_i12.GoogleInAppPurchaseModel? msgGoogleInAPPPurchase) => (super.noSuchMethod( - Invocation.method( - #sendGoogleInAppPurchaseCoinsRequest, - [msgGoogleInAPPPurchase], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( - this, - Invocation.method( - #sendGoogleInAppPurchaseCoinsRequest, - [msgGoogleInAPPPurchase], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, _i27.ProductDetails>> getProductsForSale({required String? itemId}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> + sendAppleInAppPurchaseCoinsRequest( + _i12.AppleInAppPurchaseModel? appleInAppPurchaseModel) => + (super.noSuchMethod( + Invocation.method( + #sendAppleInAppPurchaseCoinsRequest, + [appleInAppPurchaseModel], + ), + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( + this, + Invocation.method( + #sendAppleInAppPurchaseCoinsRequest, + [appleInAppPurchaseModel], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); + @override + _i8.Future<_i2.Either<_i9.Failure, String>> + sendGoogleInAppPurchaseCoinsRequest( + _i12.GoogleInAppPurchaseModel? msgGoogleInAPPPurchase) => + (super.noSuchMethod( + Invocation.method( + #sendGoogleInAppPurchaseCoinsRequest, + [msgGoogleInAPPPurchase], + ), + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( + this, + Invocation.method( + #sendGoogleInAppPurchaseCoinsRequest, + [msgGoogleInAPPPurchase], + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i28.ProductDetails>> getProductsForSale( + {required String? itemId}) => + (super.noSuchMethod( Invocation.method( #getProductsForSale, [], {#itemId: itemId}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i27.ProductDetails>>.value(_FakeEither_0<_i9.Failure, _i27.ProductDetails>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i28.ProductDetails>>.value( + _FakeEither_0<_i9.Failure, _i28.ProductDetails>( this, Invocation.method( #getProductsForSale, @@ -2133,15 +2364,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { {#itemId: itemId}, ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i27.ProductDetails>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, _i28.ProductDetails>>); @override - _i8.Future<_i2.Either<_i9.Failure, bool>> buyProduct(_i27.ProductDetails? productDetails) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> buyProduct( + _i28.ProductDetails? productDetails) => + (super.noSuchMethod( Invocation.method( #buyProduct, [productDetails], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #buyProduct, @@ -2149,14 +2382,15 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> isInAppPurchaseAvailable() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> isInAppPurchaseAvailable() => + (super.noSuchMethod( Invocation.method( #isInAppPurchaseAvailable, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #isInAppPurchaseAvailable, @@ -2164,7 +2398,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> updateFcmToken({ required String? address, @@ -2179,7 +2412,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #fcmToken: fcmToken, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #updateFcmToken, @@ -2191,15 +2425,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> markNotificationAsRead({required List? idsList}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> markNotificationAsRead( + {required List? idsList}) => + (super.noSuchMethod( Invocation.method( #markNotificationAsRead, [], {#idsList: idsList}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #markNotificationAsRead, @@ -2208,14 +2444,15 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> getAppCheckToken() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> getAppCheckToken() => + (super.noSuchMethod( Invocation.method( #getAppCheckToken, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #getAppCheckToken, @@ -2223,45 +2460,51 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i28.NotificationMessage>>> getAllNotificationsMessages({ + _i8.Future<_i2.Either<_i9.Failure, List<_i29.NotificationMessage>>> + getAllNotificationsMessages({ required String? walletAddress, required int? limit, required int? offset, }) => + (super.noSuchMethod( + Invocation.method( + #getAllNotificationsMessages, + [], + { + #walletAddress: walletAddress, + #limit: limit, + #offset: offset, + }, + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + List<_i29.NotificationMessage>>>.value( + _FakeEither_0<_i9.Failure, List<_i29.NotificationMessage>>( + this, + Invocation.method( + #getAllNotificationsMessages, + [], + { + #walletAddress: walletAddress, + #limit: limit, + #offset: offset, + }, + ), + )), + ) as _i8 + .Future<_i2.Either<_i9.Failure, List<_i29.NotificationMessage>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, bool>> saveInviteeAddressFromDynamicLink( + {required String? dynamicLink}) => (super.noSuchMethod( - Invocation.method( - #getAllNotificationsMessages, - [], - { - #walletAddress: walletAddress, - #limit: limit, - #offset: offset, - }, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i28.NotificationMessage>>>.value(_FakeEither_0<_i9.Failure, List<_i28.NotificationMessage>>( - this, - Invocation.method( - #getAllNotificationsMessages, - [], - { - #walletAddress: walletAddress, - #limit: limit, - #offset: offset, - }, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i28.NotificationMessage>>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveInviteeAddressFromDynamicLink({required String? dynamicLink}) => (super.noSuchMethod( Invocation.method( #saveInviteeAddressFromDynamicLink, [], {#dynamicLink: dynamicLink}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveInviteeAddressFromDynamicLink, @@ -2270,15 +2513,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> createDynamicLinkForUserInvite({required String? address}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, String>> createDynamicLinkForUserInvite( + {required String? address}) => + (super.noSuchMethod( Invocation.method( #createDynamicLinkForUserInvite, [], {#address: address}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( this, Invocation.method( #createDynamicLinkForUserInvite, @@ -2287,38 +2532,38 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - @override - _i8.Future<_i2.Either<_i9.Failure, String>> createDynamicLinkForRecipeNftShare({ + _i8.Future<_i2.Either<_i9.Failure, String>> + createDynamicLinkForRecipeNftShare({ required String? address, - required _i29.NFT? nft, + required _i30.NFT? nft, }) => - (super.noSuchMethod( - Invocation.method( - #createDynamicLinkForRecipeNftShare, - [], - { - #address: address, - #nft: nft, - }, - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value(_FakeEither_0<_i9.Failure, String>( - this, - Invocation.method( - #createDynamicLinkForRecipeNftShare, - [], - { - #address: address, - #nft: nft, - }, - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, String>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, _i30.TransactionResponse>> createAccount({ + (super.noSuchMethod( + Invocation.method( + #createDynamicLinkForRecipeNftShare, + [], + { + #address: address, + #nft: nft, + }, + ), + returnValue: _i8.Future<_i2.Either<_i9.Failure, String>>.value( + _FakeEither_0<_i9.Failure, String>( + this, + Invocation.method( + #createDynamicLinkForRecipeNftShare, + [], + { + #address: address, + #nft: nft, + }, + ), + )), + ) as _i8.Future<_i2.Either<_i9.Failure, String>>); + @override + _i8.Future<_i2.Either<_i9.Failure, _i31.TransactionResponse>> createAccount({ required _i6.AccountPublicInfo? publicInfo, - required _i31.WalletCreationModel? walletCreationModel, + required _i32.WalletCreationModel? walletCreationModel, }) => (super.noSuchMethod( Invocation.method( @@ -2329,7 +2574,9 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #walletCreationModel: walletCreationModel, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, _i30.TransactionResponse>>.value(_FakeEither_0<_i9.Failure, _i30.TransactionResponse>( + returnValue: + _i8.Future<_i2.Either<_i9.Failure, _i31.TransactionResponse>>.value( + _FakeEither_0<_i9.Failure, _i31.TransactionResponse>( this, Invocation.method( #createAccount, @@ -2340,15 +2587,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { }, ), )), - ) as _i8.Future<_i2.Either<_i9.Failure, _i30.TransactionResponse>>); - + ) as _i8.Future<_i2.Either<_i9.Failure, _i31.TransactionResponse>>); @override - _i8.Future<_i2.Either<_i9.Failure, int>> saveLocalTransaction(_i32.LocalTransactionModel? txManager) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, int>> saveLocalTransaction( + _i33.LocalTransactionModel? txManager) => + (super.noSuchMethod( Invocation.method( #saveLocalTransaction, [txManager], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value(_FakeEither_0<_i9.Failure, int>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, int>>.value( + _FakeEither_0<_i9.Failure, int>( this, Invocation.method( #saveLocalTransaction, @@ -2356,29 +2605,35 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, int>>); - - @override - _i8.Future<_i2.Either<_i9.Failure, List<_i32.LocalTransactionModel>>> getAllTransactionFailures() => (super.noSuchMethod( - Invocation.method( - #getAllTransactionFailures, - [], - ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, List<_i32.LocalTransactionModel>>>.value(_FakeEither_0<_i9.Failure, List<_i32.LocalTransactionModel>>( - this, - Invocation.method( - #getAllTransactionFailures, - [], - ), - )), - ) as _i8.Future<_i2.Either<_i9.Failure, List<_i32.LocalTransactionModel>>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> deleteTransactionFailureRecord(int? id) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, List<_i33.LocalTransactionModel>>> + getAllTransactionFailures() => (super.noSuchMethod( + Invocation.method( + #getAllTransactionFailures, + [], + ), + returnValue: _i8.Future< + _i2.Either<_i9.Failure, + List<_i33.LocalTransactionModel>>>.value( + _FakeEither_0<_i9.Failure, List<_i33.LocalTransactionModel>>( + this, + Invocation.method( + #getAllTransactionFailures, + [], + ), + )), + ) as _i8.Future< + _i2.Either<_i9.Failure, List<_i33.LocalTransactionModel>>>); + @override + _i8.Future<_i2.Either<_i9.Failure, bool>> deleteTransactionFailureRecord( + int? id) => + (super.noSuchMethod( Invocation.method( #deleteTransactionFailureRecord, [id], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #deleteTransactionFailureRecord, @@ -2386,14 +2641,15 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> saveUserAcceptPolicies() => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> saveUserAcceptPolicies() => + (super.noSuchMethod( Invocation.method( #saveUserAcceptPolicies, [], ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #saveUserAcceptPolicies, @@ -2401,7 +2657,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i2.Either<_i9.Failure, bool> getUserAcceptPolicies() => (super.noSuchMethod( Invocation.method( @@ -2416,15 +2671,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), ), ) as _i2.Either<_i9.Failure, bool>); - @override - _i8.Future<_i2.Either<_i9.Failure, bool>> setUserIdentifierInAnalytics({required String? address}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, bool>> setUserIdentifierInAnalytics( + {required String? address}) => + (super.noSuchMethod( Invocation.method( #setUserIdentifierInAnalytics, [], {#address: address}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #setUserIdentifierInAnalytics, @@ -2433,7 +2690,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> logPurchaseItem({ required String? recipeId, @@ -2452,7 +2708,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #purchasePrice: purchasePrice, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #logPurchaseItem, @@ -2466,7 +2723,6 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override _i8.Future<_i2.Either<_i9.Failure, bool>> logAddToCart({ required String? recipeId, @@ -2487,7 +2743,8 @@ class MockRepository extends _i1.Mock implements _i13.Repository { #currency: currency, }, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value(_FakeEither_0<_i9.Failure, bool>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, bool>>.value( + _FakeEither_0<_i9.Failure, bool>( this, Invocation.method( #logAddToCart, @@ -2502,15 +2759,17 @@ class MockRepository extends _i1.Mock implements _i13.Repository { ), )), ) as _i8.Future<_i2.Either<_i9.Failure, bool>>); - @override - _i8.Future<_i2.Either<_i9.Failure, void>> logUserJourney({required String? screenName}) => (super.noSuchMethod( + _i8.Future<_i2.Either<_i9.Failure, void>> logUserJourney( + {required String? screenName}) => + (super.noSuchMethod( Invocation.method( #logUserJourney, [], {#screenName: screenName}, ), - returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value(_FakeEither_0<_i9.Failure, void>( + returnValue: _i8.Future<_i2.Either<_i9.Failure, void>>.value( + _FakeEither_0<_i9.Failure, void>( this, Invocation.method( #logUserJourney, @@ -2555,7 +2814,7 @@ class MockRepository extends _i1.Mock implements _i13.Repository { /// A class which mocks [NFT]. /// /// See the documentation for Mockito's code generation for more information. -class MockNFT extends _i1.Mock implements _i29.NFT { +class MockNFT extends _i1.Mock implements _i30.NFT { MockNFT() { _i1.throwOnMissingStub(this); } @@ -2565,7 +2824,6 @@ class MockNFT extends _i1.Mock implements _i29.NFT { Invocation.getter(#url), returnValue: '', ) as String); - @override set url(String? _url) => super.noSuchMethod( Invocation.setter( @@ -2574,13 +2832,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get thumbnailUrl => (super.noSuchMethod( Invocation.getter(#thumbnailUrl), returnValue: '', ) as String); - @override set thumbnailUrl(String? _thumbnailUrl) => super.noSuchMethod( Invocation.setter( @@ -2589,13 +2845,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get name => (super.noSuchMethod( Invocation.getter(#name), returnValue: '', ) as String); - @override set name(String? _name) => super.noSuchMethod( Invocation.setter( @@ -2604,13 +2858,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get description => (super.noSuchMethod( Invocation.getter(#description), returnValue: '', ) as String); - @override set description(String? _description) => super.noSuchMethod( Invocation.setter( @@ -2619,13 +2871,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get denom => (super.noSuchMethod( Invocation.getter(#denom), returnValue: '', ) as String); - @override set denom(String? _denom) => super.noSuchMethod( Invocation.setter( @@ -2634,13 +2884,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get price => (super.noSuchMethod( Invocation.getter(#price), returnValue: '', ) as String); - @override set price(String? _price) => super.noSuchMethod( Invocation.setter( @@ -2649,13 +2897,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get creator => (super.noSuchMethod( Invocation.getter(#creator), returnValue: '', ) as String); - @override set creator(String? _creator) => super.noSuchMethod( Invocation.setter( @@ -2664,13 +2910,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get owner => (super.noSuchMethod( Invocation.getter(#owner), returnValue: '', ) as String); - @override set owner(String? _owner) => super.noSuchMethod( Invocation.setter( @@ -2679,13 +2923,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override int get amountMinted => (super.noSuchMethod( Invocation.getter(#amountMinted), returnValue: 0, ) as int); - @override set amountMinted(int? _amountMinted) => super.noSuchMethod( Invocation.setter( @@ -2694,13 +2936,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override int get quantity => (super.noSuchMethod( Invocation.getter(#quantity), returnValue: 0, ) as int); - @override set quantity(int? _quantity) => super.noSuchMethod( Invocation.setter( @@ -2709,13 +2949,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get tradePercentage => (super.noSuchMethod( Invocation.getter(#tradePercentage), returnValue: '', ) as String); - @override set tradePercentage(String? _tradePercentage) => super.noSuchMethod( Invocation.setter( @@ -2724,13 +2962,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get cookbookID => (super.noSuchMethod( Invocation.getter(#cookbookID), returnValue: '', ) as String); - @override set cookbookID(String? _cookbookID) => super.noSuchMethod( Invocation.setter( @@ -2739,13 +2975,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get recipeID => (super.noSuchMethod( Invocation.getter(#recipeID), returnValue: '', ) as String); - @override set recipeID(String? _recipeID) => super.noSuchMethod( Invocation.setter( @@ -2754,13 +2988,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get itemID => (super.noSuchMethod( Invocation.getter(#itemID), returnValue: '', ) as String); - @override set itemID(String? _itemID) => super.noSuchMethod( Invocation.setter( @@ -2769,13 +3001,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get width => (super.noSuchMethod( Invocation.getter(#width), returnValue: '', ) as String); - @override set width(String? _width) => super.noSuchMethod( Invocation.setter( @@ -2784,13 +3014,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get height => (super.noSuchMethod( Invocation.getter(#height), returnValue: '', ) as String); - @override set height(String? _height) => super.noSuchMethod( Invocation.setter( @@ -2799,13 +3027,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get appType => (super.noSuchMethod( Invocation.getter(#appType), returnValue: '', ) as String); - @override set appType(String? _appType) => super.noSuchMethod( Invocation.setter( @@ -2814,13 +3040,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get tradeID => (super.noSuchMethod( Invocation.getter(#tradeID), returnValue: '', ) as String); - @override set tradeID(String? _tradeID) => super.noSuchMethod( Invocation.setter( @@ -2829,13 +3053,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get ownerAddress => (super.noSuchMethod( Invocation.getter(#ownerAddress), returnValue: '', ) as String); - @override set ownerAddress(String? _ownerAddress) => super.noSuchMethod( Invocation.setter( @@ -2844,58 +3066,50 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override - _i33.IBCCoins get ibcCoins => (super.noSuchMethod( + _i34.IBCCoins get ibcCoins => (super.noSuchMethod( Invocation.getter(#ibcCoins), - returnValue: _i33.IBCCoins.urun, - ) as _i33.IBCCoins); - + returnValue: _i34.IBCCoins.urun, + ) as _i34.IBCCoins); @override - set ibcCoins(_i33.IBCCoins? _ibcCoins) => super.noSuchMethod( + set ibcCoins(_i34.IBCCoins? _ibcCoins) => super.noSuchMethod( Invocation.setter( #ibcCoins, _ibcCoins, ), returnValueForMissingStub: null, ); - @override - _i34.NftType get type => (super.noSuchMethod( + _i35.NftType get type => (super.noSuchMethod( Invocation.getter(#type), - returnValue: _i34.NftType.TYPE_RECIPE, - ) as _i34.NftType); - + returnValue: _i35.NftType.TYPE_RECIPE, + ) as _i35.NftType); @override - set type(_i34.NftType? _type) => super.noSuchMethod( + set type(_i35.NftType? _type) => super.noSuchMethod( Invocation.setter( #type, _type, ), returnValueForMissingStub: null, ); - @override - _i34.AssetType get assetType => (super.noSuchMethod( + _i35.AssetType get assetType => (super.noSuchMethod( Invocation.getter(#assetType), - returnValue: _i34.AssetType.Audio, - ) as _i34.AssetType); - + returnValue: _i35.AssetType.Audio, + ) as _i35.AssetType); @override - set assetType(_i34.AssetType? _assetType) => super.noSuchMethod( + set assetType(_i35.AssetType? _assetType) => super.noSuchMethod( Invocation.setter( #assetType, _assetType, ), returnValueForMissingStub: null, ); - @override String get duration => (super.noSuchMethod( Invocation.getter(#duration), returnValue: '', ) as String); - @override set duration(String? _duration) => super.noSuchMethod( Invocation.setter( @@ -2904,13 +3118,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get fileSize => (super.noSuchMethod( Invocation.getter(#fileSize), returnValue: '', ) as String); - @override set fileSize(String? _fileSize) => super.noSuchMethod( Invocation.setter( @@ -2919,13 +3131,24 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - + @override + String get fileExtension => (super.noSuchMethod( + Invocation.getter(#fileExtension), + returnValue: '', + ) as String); + @override + set fileExtension(String? _fileExtension) => super.noSuchMethod( + Invocation.setter( + #fileExtension, + _fileExtension, + ), + returnValueForMissingStub: null, + ); @override String get hashtags => (super.noSuchMethod( Invocation.getter(#hashtags), returnValue: '', ) as String); - @override set hashtags(String? _hashtags) => super.noSuchMethod( Invocation.setter( @@ -2934,13 +3157,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get cid => (super.noSuchMethod( Invocation.getter(#cid), returnValue: '', ) as String); - @override set cid(String? _cid) => super.noSuchMethod( Invocation.setter( @@ -2949,13 +3170,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override String get createdAt => (super.noSuchMethod( Invocation.getter(#createdAt), returnValue: '', ) as String); - @override set createdAt(String? _createdAt) => super.noSuchMethod( Invocation.setter( @@ -2964,13 +3183,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override bool get realWorld => (super.noSuchMethod( Invocation.getter(#realWorld), returnValue: false, ) as bool); - @override set realWorld(bool? _realWorld) => super.noSuchMethod( Invocation.setter( @@ -2979,13 +3196,11 @@ class MockNFT extends _i1.Mock implements _i29.NFT { ), returnValueForMissingStub: null, ); - @override List get props => (super.noSuchMethod( Invocation.getter(#props), returnValue: [], ) as List); - @override _i8.Future getOwnerAddress() => (super.noSuchMethod( Invocation.method( diff --git a/wallet/test/widget_testing/components/buttons/nft_buy_button_test.dart b/wallet/test/widget_testing/components/buttons/nft_buy_button_test.dart index f103d79b3e..f36e5daef3 100644 --- a/wallet/test/widget_testing/components/buttons/nft_buy_button_test.dart +++ b/wallet/test/widget_testing/components/buttons/nft_buy_button_test.dart @@ -1,4 +1,5 @@ import 'dart:io'; +import 'package:dartz/dartz.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -43,7 +44,7 @@ void main() { }); testWidgets('should show the Free Drop NFT Buy Button and make sure user is able to tap', (tester) async { - final buyButtonFinder = find.text(LocaleKeys.claim_free_nft.tr()); + final buyButtonFinder = find.text(LocaleKeys.claim_now.tr()); var isTapped = false; await tester.setScreenSize(); @@ -90,11 +91,69 @@ void main() { expect(counter, 1); }); + testWidgets('should show remaining quantity & total quantity in Free NFT Buy Button ', (tester) async { + await tester.setScreenSize(); + await tester.testAppForWidgetTesting(ChangeNotifierProvider.value( + value: viewModel, + child: Material( + child: BuyNFTButton( + key: const Key(MOCK_BUY_BUTTON_KEY_VALUE), + onTapped: () {}, + nft: MOCK_NFT_FREE_IMAGE, + ), + ), + )); + final buyButton = find.text(LocaleKeys.remaining_and_total_editions.tr( + namedArgs: { + 'remaining': '${MOCK_NFT_FREE_IMAGE.quantity - MOCK_NFT_FREE_IMAGE.amountMinted}', + 'total': '${MOCK_NFT_FREE_IMAGE.quantity}', + }, + )); + expect(buyButton, findsOneWidget); + }); + + testWidgets('should show claim now in Free NFT Buy Button ', (tester) async { + await tester.setScreenSize(); + await tester.testAppForWidgetTesting(ChangeNotifierProvider.value( + value: viewModel, + child: Material( + child: BuyNFTButton( + key: const Key(MOCK_BUY_BUTTON_KEY_VALUE), + onTapped: () {}, + nft: MOCK_NFT_FREE_IMAGE, + ), + ), + )); + final buyButton = find.text(LocaleKeys.claim_now.tr()); + expect(buyButton, findsOneWidget); + }); + + testWidgets('should show buy now in Premium NFT Buy Button ', (tester) async { + await tester.setScreenSize(); + await tester.testAppForWidgetTesting(ChangeNotifierProvider.value( + value: viewModel, + child: Material( + child: BuyNFTButton( + key: const Key(MOCK_BUY_BUTTON_KEY_VALUE), + onTapped: () {}, + nft: MOCK_NFT_PREMIUM, + ), + ), + )); + final buyButton = find.text(LocaleKeys.buy_now.tr()); + expect(buyButton, findsOneWidget); + }); + testWidgets("Checkout Dialog should show on Buy Now Button Click", (tester) async { when(viewModel.collapsed).thenAnswer((realInvocation) => false); - when(viewModel.nft).thenAnswer((realInvocation) => MOCK_NFT_FREE_VIDEO); + when(viewModel.nft).thenAnswer((realInvocation) => MOCK_NFT_PREMIUM); when(viewModel.accountPublicInfo).thenAnswer((realInvocation) => MockAccountPublicInfo()); when(viewModel.showBuyNowButton(isPlatformAndroid: Platform.isAndroid)).thenAnswer((realInvocation) => true); + when(viewModel.shouldShowSwipeToBuy( + selectedDenom: MOCK_NFT_PREMIUM.denom, + requiredAmount: double.parse(MOCK_NFT_PREMIUM.price) / kBigIntBase, + )).thenAnswer((realInvocation) => Future.value(const Right(true))); + await tester.setScreenSize(); await tester.testAppForWidgetTesting( ChangeNotifierProvider.value( value: viewModel,