stack_wallet/lib/wallets/wallet/intermediate/bip39_wallet.dart

37 lines
1.1 KiB
Dart
Raw Normal View History

import 'package:isar/isar.dart';
import '../../../models/isar/models/blockchain_data/address.dart';
import '../../crypto_currency/intermediate/bip39_currency.dart';
import '../wallet.dart';
import '../wallet_mixin_interfaces/mnemonic_interface.dart';
2023-09-18 21:28:31 +00:00
abstract class Bip39Wallet<T extends Bip39Currency> extends Wallet<T>
with MnemonicInterface {
2024-05-15 21:20:45 +00:00
Bip39Wallet(super.currency);
2023-09-18 21:28:31 +00:00
List<FilterOperation> get standardReceivingAddressFilters => [
FilterCondition.equalTo(
property: r"type",
value: info.mainAddressType,
),
const FilterCondition.equalTo(
property: r"subType",
value: AddressSubType.receiving,
),
];
List<FilterOperation> get standardChangeAddressFilters => [
FilterCondition.equalTo(
property: r"type",
value: info.mainAddressType,
),
const FilterCondition.equalTo(
property: r"subType",
value: AddressSubType.change,
),
];
2023-09-18 21:28:31 +00:00
// ========== Private ========================================================
// ========== Overrides ======================================================
}