2023-11-07 16:25:04 +00:00
|
|
|
import 'package:isar/isar.dart';
|
|
|
|
import 'package:stackwallet/models/isar/models/blockchain_data/address.dart';
|
2023-11-06 18:26:33 +00:00
|
|
|
import 'package:stackwallet/wallets/crypto_currency/intermediate/bip39_currency.dart';
|
2023-09-18 21:28:31 +00:00
|
|
|
import 'package:stackwallet/wallets/wallet/wallet.dart';
|
2024-01-11 02:46:43 +00:00
|
|
|
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_interface.dart';
|
2023-09-18 21:28:31 +00:00
|
|
|
|
2023-11-04 01:18:22 +00:00
|
|
|
abstract class Bip39Wallet<T extends Bip39Currency> extends Wallet<T>
|
2023-11-16 22:25:20 +00:00
|
|
|
with MnemonicInterface {
|
2023-11-06 18:26:33 +00:00
|
|
|
Bip39Wallet(T currency) : super(currency);
|
2023-09-18 21:28:31 +00:00
|
|
|
|
2023-11-07 16:25:04 +00:00
|
|
|
List<FilterOperation> get standardReceivingAddressFilters => [
|
|
|
|
FilterCondition.equalTo(
|
2023-11-08 19:57:38 +00:00
|
|
|
property: r"type",
|
|
|
|
value: info.mainAddressType,
|
2023-11-07 16:25:04 +00:00
|
|
|
),
|
|
|
|
const FilterCondition.equalTo(
|
2023-11-08 19:57:38 +00:00
|
|
|
property: r"subType",
|
|
|
|
value: AddressSubType.receiving,
|
2023-11-07 16:25:04 +00:00
|
|
|
),
|
|
|
|
];
|
|
|
|
|
|
|
|
List<FilterOperation> get standardChangeAddressFilters => [
|
|
|
|
FilterCondition.equalTo(
|
2023-11-08 19:57:38 +00:00
|
|
|
property: r"type",
|
|
|
|
value: info.mainAddressType,
|
2023-11-07 16:25:04 +00:00
|
|
|
),
|
|
|
|
const FilterCondition.equalTo(
|
2023-11-08 19:57:38 +00:00
|
|
|
property: r"subType",
|
|
|
|
value: AddressSubType.change,
|
2023-11-07 16:25:04 +00:00
|
|
|
),
|
|
|
|
];
|
|
|
|
|
2023-09-18 21:28:31 +00:00
|
|
|
// ========== Private ========================================================
|
|
|
|
|
|
|
|
// ========== Overrides ======================================================
|
|
|
|
}
|