cake_wallet/cw_decred/lib/wallet_addresses.dart
JoeGruffins 76283cd82e multi: Add initial decred screens. (#1165)
Use a mock libwallet for now.
2024-12-26 14:12:09 +09:00

36 lines
752 B
Dart

import 'package:cw_core/wallet_addresses.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:cw_decred/api/dcrlibwallet.dart';
class DecredWalletAddresses extends WalletAddresses {
DecredWalletAddresses(WalletInfo walletInfo, SPVWallet spv)
: this.spv = spv,
super(walletInfo);
final SPVWallet spv;
@override
String get address {
return this.spv.newAddress();
}
String generateNewAddress() {
return this.spv.newAddress();
}
List<String> addresses() {
return this.spv.addresses();
}
@override
set address(String addr) {}
@override
Future<void> init() async {}
@override
Future<void> updateAddressesInBox() async {}
@override
Future<void> saveAddressesInBox() async {}
}