FusionInterface->FusionWalletInterface

a la PayNymWalletInterface (big ups, mad respec)
This commit is contained in:
sneurlax 2023-08-24 11:22:13 -05:00
parent 28a66a85cc
commit a381cd0a47
5 changed files with 10 additions and 10 deletions

View file

@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/providers/global/wallets_provider.dart'; import 'package:stackwallet/providers/global/wallets_provider.dart';
import 'package:stackwallet/services/mixins/fusion_interface.dart'; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
import 'package:stackwallet/themes/stack_colors.dart'; import 'package:stackwallet/themes/stack_colors.dart';
import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/show_loading.dart'; import 'package:stackwallet/utilities/show_loading.dart';
@ -81,7 +81,7 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
(ref (ref
.read(walletsChangeNotifierProvider) .read(walletsChangeNotifierProvider)
.getManager(widget.walletId) .getManager(widget.walletId)
.wallet as FusionInterface) .wallet as FusionWalletInterface)
.refreshFusion() .refreshFusion()
]), ]),
context: context, context: context,
@ -113,7 +113,7 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
(ref (ref
.read(walletsChangeNotifierProvider) .read(walletsChangeNotifierProvider)
.getManager(widget.walletId) .getManager(widget.walletId)
.wallet as FusionInterface) .wallet as FusionWalletInterface)
.fuse() .fuse()
}, },
child: Text( child: Text(

View file

@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/providers/global/wallets_provider.dart'; import 'package:stackwallet/providers/global/wallets_provider.dart';
import 'package:stackwallet/services/mixins/fusion_interface.dart'; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
import 'package:stackwallet/themes/stack_colors.dart'; import 'package:stackwallet/themes/stack_colors.dart';
import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/text_styles.dart'; import 'package:stackwallet/utilities/text_styles.dart';
@ -107,7 +107,7 @@ class _DesktopCashFusion extends ConsumerState<DesktopCashFusionView> {
(ref (ref
.read(walletsChangeNotifierProvider) .read(walletsChangeNotifierProvider)
.getManager(widget.walletId) .getManager(widget.walletId)
.wallet as FusionInterface) .wallet as FusionWalletInterface)
.fuse() .fuse()
}, },
child: Text( child: Text(

View file

@ -38,7 +38,7 @@ import 'package:stackwallet/services/event_bus/events/global/updated_in_backgrou
import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart'; import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart';
import 'package:stackwallet/services/event_bus/global_event_bus.dart'; import 'package:stackwallet/services/event_bus/global_event_bus.dart';
import 'package:stackwallet/services/mixins/coin_control_interface.dart'; import 'package:stackwallet/services/mixins/coin_control_interface.dart';
import 'package:stackwallet/services/mixins/fusion_interface.dart'; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
import 'package:stackwallet/services/mixins/wallet_cache.dart'; import 'package:stackwallet/services/mixins/wallet_cache.dart';
import 'package:stackwallet/services/mixins/wallet_db.dart'; import 'package:stackwallet/services/mixins/wallet_db.dart';
import 'package:stackwallet/services/mixins/xpubable.dart'; import 'package:stackwallet/services/mixins/xpubable.dart';
@ -114,7 +114,7 @@ String constructDerivePath({
} }
class BitcoinCashWallet extends CoinServiceAPI class BitcoinCashWallet extends CoinServiceAPI
with WalletCache, WalletDB, CoinControlInterface, FusionInterface with WalletCache, WalletDB, CoinControlInterface, FusionWalletInterface
implements XPubAble { implements XPubAble {
BitcoinCashWallet({ BitcoinCashWallet({
required String walletId, required String walletId,

View file

@ -21,8 +21,8 @@ import 'package:stackwallet/services/event_bus/events/global/node_connection_sta
import 'package:stackwallet/services/event_bus/events/global/updated_in_background_event.dart'; import 'package:stackwallet/services/event_bus/events/global/updated_in_background_event.dart';
import 'package:stackwallet/services/event_bus/global_event_bus.dart'; import 'package:stackwallet/services/event_bus/global_event_bus.dart';
import 'package:stackwallet/services/mixins/coin_control_interface.dart'; import 'package:stackwallet/services/mixins/coin_control_interface.dart';
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
import 'package:stackwallet/services/mixins/ordinals_interface.dart'; import 'package:stackwallet/services/mixins/ordinals_interface.dart';
import 'package:stackwallet/services/mixins/fusion_interface.dart';
import 'package:stackwallet/services/mixins/paynym_wallet_interface.dart'; import 'package:stackwallet/services/mixins/paynym_wallet_interface.dart';
import 'package:stackwallet/services/mixins/xpubable.dart'; import 'package:stackwallet/services/mixins/xpubable.dart';
import 'package:stackwallet/utilities/amount/amount.dart'; import 'package:stackwallet/utilities/amount/amount.dart';
@ -252,7 +252,7 @@ class Manager with ChangeNotifier {
bool get hasWhirlpoolSupport => false; bool get hasWhirlpoolSupport => false;
bool get hasFusionSupport => _currentWallet is FusionInterface; bool get hasFusionSupport => _currentWallet is FusionWalletInterface;
int get rescanOnOpenVersion => int get rescanOnOpenVersion =>
DB.instance.get<dynamic>( DB.instance.get<dynamic>(

View file

@ -10,7 +10,7 @@ import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart';
const String kReservedFusionAddress = "reserved_fusion_address"; const String kReservedFusionAddress = "reserved_fusion_address";
mixin FusionInterface { mixin FusionWalletInterface {
// passed in wallet data // passed in wallet data
late final String _walletId; late final String _walletId;
late final Coin _coin; late final Coin _coin;