2022-02-22 08:02:34 +00:00
|
|
|
#pragma once
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
#include "../app_service.h"
|
|
|
|
#include "wallet_account.h"
|
|
|
|
|
2022-02-22 08:02:34 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <QJsonValue>
|
|
|
|
#include <QList>
|
|
|
|
|
2022-02-14 14:38:41 +00:00
|
|
|
namespace Wallets
|
|
|
|
{
|
|
|
|
class ServiceInterface : public AppService
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual QList<WalletAccountDto> getWalletAccounts() = 0;
|
2022-02-21 17:07:16 +00:00
|
|
|
virtual QString generateNewAccount(const QString& password, const QString& accountName, const QString& color) = 0;
|
|
|
|
virtual QString addAccountsFromPrivateKey(const QString& privateKey, const QString& password, const QString& accountName, const QString& color) = 0;
|
|
|
|
virtual QString addAccountsFromSeed(const QString& seedPhrase, const QString& password, const QString& accountName, const QString& color) = 0;
|
|
|
|
virtual QString addWatchOnlyAccount(const QString& address, const QString& accountName , const QString& color) = 0;
|
|
|
|
virtual void deleteAccount(const QString& address) = 0;
|
2022-02-14 14:38:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Wallets
|