mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
add coin control mixin
This commit is contained in:
parent
951c0cefcb
commit
016c447540
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
6
lib/wallets/wallet/mixins/coin_control.dart
Normal file
6
lib/wallets/wallet/mixins/coin_control.dart
Normal 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
|
||||
}
|
Loading…
Reference in a new issue