Work toward revised RPC send.

This commit is contained in:
Arthur Britto
2012-05-20 01:53:31 -07:00
parent 0010656ff8
commit 8ba9fe2d88
5 changed files with 149 additions and 165 deletions

View File

@@ -8,6 +8,7 @@
#include "HttpRequest.h"
#include "RequestParser.h"
#include "NewcoinAddress.h"
#include "SerializedLedger.h"
class RPCServer : public boost::enable_shared_from_this<RPCServer>
{
@@ -31,6 +32,10 @@ class RPCServer : public boost::enable_shared_from_this<RPCServer>
int getParamCount(const Json::Value& params);
bool extractString(std::string& param, const Json::Value& params, int index);
Json::Value authorize(const NewcoinAddress& naSeed, const NewcoinAddress& naSrcAccountID,
NewcoinAddress& naAccountPublic, NewcoinAddress& naAccountPrivate,
SerializedLedgerEntry::pointer& sleSrc);
Json::Value doAccountInfo(Json::Value& params);
Json::Value doConnect(Json::Value& params);
Json::Value doLedger(Json::Value& params);