2020-09-21 11:50:26 +00:00
|
|
|
import 'package:cake_wallet/entities/wallet.dart';
|
|
|
|
import 'package:cake_wallet/entities/wallet_description.dart';
|
2020-01-04 19:31:52 +00:00
|
|
|
|
|
|
|
abstract class WalletsManager {
|
2020-02-28 20:16:39 +00:00
|
|
|
Future<Wallet> create(String name, String password, String language);
|
2020-01-04 19:31:52 +00:00
|
|
|
|
|
|
|
Future<Wallet> restoreFromSeed(
|
|
|
|
String name, String password, String seed, int restoreHeight);
|
|
|
|
|
2020-02-28 20:16:39 +00:00
|
|
|
Future<Wallet> restoreFromKeys(String name, String password, String language,
|
2020-01-04 19:31:52 +00:00
|
|
|
int restoreHeight, String address, String viewKey, String spendKey);
|
|
|
|
|
|
|
|
Future<Wallet> openWallet(String name, String password);
|
|
|
|
|
|
|
|
Future<bool> isWalletExit(String name);
|
|
|
|
|
|
|
|
Future remove(WalletDescription wallet);
|
|
|
|
}
|