mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 17:25:02 +00:00
37 lines
752 B
Dart
37 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 {}
|
||
|
}
|