mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
This will be built into the Ledger class.
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
#ifndef __LEDGERENGINE__
|
||||
#define __LEDGERENGINE__
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "uint256.h"
|
||||
#include "Ledger.h"
|
||||
#include "Currency.h"
|
||||
#include "SerializedLedger.h"
|
||||
|
||||
// A LedgerEngine handles high-level operations to a ledger
|
||||
|
||||
enum LedgerEngineParms
|
||||
{
|
||||
lepCREATE = 1, // Create if not present
|
||||
};
|
||||
|
||||
class LedgerEngine
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<LedgerEngine> pointer;
|
||||
|
||||
protected:
|
||||
Ledger::pointer mLedger;
|
||||
|
||||
public:
|
||||
LedgerEngine() { ; }
|
||||
LedgerEngine(Ledger::pointer l) : mLedger(l) { ; }
|
||||
|
||||
Ledger::pointer getTargetLedger() { return mLedger; }
|
||||
void setTargetLedger(Ledger::pointer ledger) { mLedger = ledger; }
|
||||
|
||||
SerializedLedgerEntry::pointer getAccountRoot(LedgerEngineParms parms, const uint160& accountID);
|
||||
|
||||
SerializedLedgerEntry::pointer getNickname(LedgerEngineParms parms, const std::string& nickname);
|
||||
SerializedLedgerEntry::pointer getNickname(LedgerEngineParms parms, const uint256& nickHash);
|
||||
|
||||
SerializedLedgerEntry::pointer getRippleState(LedgerEngineParms parms, const uint160& offeror,
|
||||
const uint160& borrower, const Currency& currency);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user