mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
18 lines
542 B
Dart
18 lines
542 B
Dart
|
import 'package:cake_wallet/core/wallet_base.dart';
|
||
|
import 'package:cake_wallet/core/wallet_credentials.dart';
|
||
|
|
||
|
abstract class WalletService<N extends WalletCredentials,
|
||
|
RFS extends WalletCredentials, RFK extends WalletCredentials> {
|
||
|
Future<WalletBase> create(N credentials);
|
||
|
|
||
|
Future<WalletBase> restoreFromSeed(RFS credentials);
|
||
|
|
||
|
Future<WalletBase> restoreFromKeys(RFK credentials);
|
||
|
|
||
|
Future<WalletBase> openWallet(String name, String password);
|
||
|
|
||
|
Future<bool> isWalletExit(String name);
|
||
|
|
||
|
Future<void> remove(String wallet);
|
||
|
}
|