mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 20:49:28 +00:00
24 lines
805 B
Dart
24 lines
805 B
Dart
import 'package:cw_core/node.dart';
|
|
import 'package:cw_core/wallet_base.dart';
|
|
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
import 'package:cw_core/wallet_type.dart';
|
|
|
|
abstract class WalletService<N extends WalletCredentials, RFS extends WalletCredentials,
|
|
RFK extends WalletCredentials> {
|
|
WalletType getType();
|
|
|
|
Future<WalletBase> create(N credentials, {bool? isTestnet});
|
|
|
|
Future<WalletBase> restoreFromSeed(RFS credentials, {bool? isTestnet});
|
|
|
|
Future<WalletBase> restoreFromKeys(RFK credentials, {bool? isTestnet});
|
|
|
|
Future<WalletBase> openWallet(String name, String password);
|
|
|
|
Future<bool> isWalletExit(String name);
|
|
|
|
Future<void> remove(String wallet);
|
|
|
|
Future<void> rename(String currentName, String password, String newName);
|
|
}
|