add coin control mixin

This commit is contained in:
julian 2023-11-14 15:48:08 -06:00
parent 951c0cefcb
commit 016c447540
3 changed files with 10 additions and 2 deletions

View file

@ -5,10 +5,11 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/extensions/extensions.dart';
import 'package:stackwallet/wallets/crypto_currency/coins/bitcoin.dart';
import 'package:stackwallet/wallets/wallet/intermediate/bip39_hd_wallet.dart';
import 'package:stackwallet/wallets/wallet/mixins/coin_control.dart';
import 'package:stackwallet/wallets/wallet/mixins/electrumx.dart';
import 'package:tuple/tuple.dart';
class BitcoinWallet extends Bip39HDWallet with ElectrumX {
class BitcoinWallet extends Bip39HDWallet with ElectrumX, CoinControl {
@override
int get isarTransactionVersion => 1; // TODO actually set this to 2

View file

@ -5,10 +5,11 @@ import 'package:stackwallet/utilities/extensions/extensions.dart';
import 'package:stackwallet/wallets/crypto_currency/coins/dogecoin.dart';
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart';
import 'package:stackwallet/wallets/wallet/intermediate/bip39_hd_wallet.dart';
import 'package:stackwallet/wallets/wallet/mixins/coin_control.dart';
import 'package:stackwallet/wallets/wallet/mixins/electrumx.dart';
import 'package:tuple/tuple.dart';
class DogecoinWallet extends Bip39HDWallet with ElectrumX {
class DogecoinWallet extends Bip39HDWallet with ElectrumX, CoinControl {
DogecoinWallet(CryptoCurrencyNetwork network) : super(Dogecoin(network));
@override

View file

@ -0,0 +1,6 @@
import 'package:stackwallet/wallets/wallet/intermediate/bip39_hd_wallet.dart';
mixin CoinControl on Bip39HDWallet {
// any required here?
// currently only used to id which wallets support coin control
}