1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/SiaDrive.Api/SiaWallet.cpp
Scott E. Graves 352363b25d [Unit Test] Server version mismatch
[Unit Test] Empty required server version
API and curl changes
2017-02-02 23:51:42 -06:00

49 lines
958 B
C++

#include "stdafx.h"
#include "SiaApi.h"
using namespace Sia::Api;
CSiaApi::_CSiaWallet::_CSiaWallet(CSiaCurl& siaCurl) :
_siaCurl(siaCurl),
_Created(false),
_Locked(false)
{
}
CSiaApi::_CSiaWallet::~_CSiaWallet()
{
}
SiaApiError CSiaApi::_CSiaWallet::Create(String& seed)
{
SiaApiError error = SiaApiError::Success;
return error;
}
SiaApiError CSiaApi::_CSiaWallet::Restore(const String& seed)
{
SiaApiError error = SiaApiError::NotImplemented;
return error;
}
SiaApiError CSiaApi::_CSiaWallet::Lock()
{
SiaApiError error = GetCreated() ? (GetLocked() ? SiaApiError::WalletLocked : SiaApiError::Success) : SiaApiError::WalletNotCreated;
if (API_SUCCESS(SiaApiError, error))
{
}
return error;
}
SiaApiError CSiaApi::_CSiaWallet::Unlock()
{
SiaApiError error = GetCreated() ? (GetLocked() ? SiaApiError::Success : SiaApiError::WalletUnlocked) : SiaApiError::WalletNotCreated;
if (API_SUCCESS(SiaApiError, error))
{
}
return error;
}