|
@ -2,8 +2,8 @@ |
|
|
* THIS FILE IS GENERATED BY jsonrpcstub, DO NOT CHANGE IT!!!!! |
|
|
* THIS FILE IS GENERATED BY jsonrpcstub, DO NOT CHANGE IT!!!!! |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#ifndef _AbstractEthStubServer_H_ |
|
|
#ifndef _ABSTRACTETHSTUBSERVER_H_ |
|
|
#define _AbstractEthStubServer_H_ |
|
|
#define _ABSTRACTETHSTUBSERVER_H_ |
|
|
|
|
|
|
|
|
#include <jsonrpc/rpc.h> |
|
|
#include <jsonrpc/rpc.h> |
|
|
|
|
|
|
|
@ -13,15 +13,15 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
AbstractEthStubServer(jsonrpc::AbstractServerConnector* conn) : |
|
|
AbstractEthStubServer(jsonrpc::AbstractServerConnector* conn) : |
|
|
jsonrpc::AbstractServer<AbstractEthStubServer>(conn) |
|
|
jsonrpc::AbstractServer<AbstractEthStubServer>(conn) |
|
|
{ |
|
|
{ |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("balanceAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::balanceAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("balanceAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_INTEGER, NULL), &AbstractEthStubServer::balanceAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("block", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "numberOrHash",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::blockI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("block", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_ARRAY, "numberOrHash",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::blockI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("call", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "json",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::callI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("call", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "json",jsonrpc::JSON_ARRAY, NULL), &AbstractEthStubServer::callI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("codeAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::codeAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("codeAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_INTEGER, NULL), &AbstractEthStubServer::codeAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("coinbase", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::coinbaseI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("coinbase", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::coinbaseI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("countAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_INTEGER, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::countAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("countAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_INTEGER, NULL), &AbstractEthStubServer::countAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("defaultBlock", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_INTEGER, NULL), &AbstractEthStubServer::defaultBlockI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("defaultBlock", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_INTEGER, NULL), &AbstractEthStubServer::defaultBlockI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("fromAscii", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::fromAsciiI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("fromAscii", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "padding",jsonrpc::JSON_INTEGER,"s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::fromAsciiI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("fromFixed", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::fromFixedI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("fromFixed", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_REAL, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::fromFixedI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("gasPrice", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::gasPriceI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("gasPrice", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::gasPriceI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("isListening", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_BOOLEAN, NULL), &AbstractEthStubServer::isListeningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("isListening", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_BOOLEAN, NULL), &AbstractEthStubServer::isListeningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("isMining", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_BOOLEAN, NULL), &AbstractEthStubServer::isMiningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("isMining", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_BOOLEAN, NULL), &AbstractEthStubServer::isMiningI); |
|
@ -35,7 +35,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("setListening", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "l",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::setListeningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("setListening", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "l",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::setListeningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("setMining", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "l",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::setMiningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("setMining", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "l",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::setMiningI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("sha3", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::sha3I); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("sha3", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::sha3I); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("stateAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_STRING,"p",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::stateAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("stateAt", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "a",jsonrpc::JSON_STRING,"block",jsonrpc::JSON_INTEGER,"p",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::stateAtI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toAscii", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toAsciiI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toAscii", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toAsciiI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toDecimal", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toDecimalI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toDecimal", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toDecimalI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toFixed", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toFixedI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("toFixed", jsonrpc::PARAMS_BY_NAME, jsonrpc::JSON_STRING, "s",jsonrpc::JSON_STRING, NULL), &AbstractEthStubServer::toFixedI); |
|
@ -48,7 +48,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
|
|
|
|
|
|
inline virtual void balanceAtI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void balanceAtI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->balanceAt(request["a"].asString(), request["block"].asString()); |
|
|
response = this->balanceAt(request["a"].asString(), request["block"].asInt()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void blockI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void blockI(const Json::Value& request, Json::Value& response) |
|
@ -58,12 +58,12 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
|
|
|
|
|
|
inline virtual void callI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void callI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->call(request["json"].asString()); |
|
|
response = this->call(request["json"]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void codeAtI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void codeAtI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->codeAt(request["a"].asString(), request["block"].asString()); |
|
|
response = this->codeAt(request["a"].asString(), request["block"].asInt()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void coinbaseI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void coinbaseI(const Json::Value& request, Json::Value& response) |
|
@ -73,7 +73,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
|
|
|
|
|
|
inline virtual void countAtI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void countAtI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->countAt(request["a"].asString(), request["block"].asString()); |
|
|
response = this->countAt(request["a"].asString(), request["block"].asInt()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void defaultBlockI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void defaultBlockI(const Json::Value& request, Json::Value& response) |
|
@ -83,7 +83,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
|
|
|
|
|
|
inline virtual void fromAsciiI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void fromAsciiI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->fromAscii(request["s"].asString()); |
|
|
response = this->fromAscii(request["padding"].asInt(), request["s"].asString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void fromFixedI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void fromFixedI(const Json::Value& request, Json::Value& response) |
|
@ -158,7 +158,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
|
|
|
|
|
|
inline virtual void stateAtI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void stateAtI(const Json::Value& request, Json::Value& response) |
|
|
{ |
|
|
{ |
|
|
response = this->stateAt(request["a"].asString(), request["block"].asString(), request["p"].asString()); |
|
|
response = this->stateAt(request["a"].asString(), request["block"].asInt(), request["p"].asString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inline virtual void toAsciiI(const Json::Value& request, Json::Value& response) |
|
|
inline virtual void toAsciiI(const Json::Value& request, Json::Value& response) |
|
@ -197,15 +197,15 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual std::string balanceAt(const std::string& a, const std::string& block) = 0; |
|
|
virtual std::string balanceAt(const std::string& a, const int& block) = 0; |
|
|
virtual std::string block(const std::string& numberOrHash) = 0; |
|
|
virtual Json::Value block(const std::string& numberOrHash) = 0; |
|
|
virtual std::string call(const std::string& json) = 0; |
|
|
virtual std::string call(const Json::Value& json) = 0; |
|
|
virtual std::string codeAt(const std::string& a, const std::string& block) = 0; |
|
|
virtual std::string codeAt(const std::string& a, const int& block) = 0; |
|
|
virtual std::string coinbase() = 0; |
|
|
virtual std::string coinbase() = 0; |
|
|
virtual int countAt(const std::string& a, const std::string& block) = 0; |
|
|
virtual std::string countAt(const std::string& a, const int& block) = 0; |
|
|
virtual int defaultBlock() = 0; |
|
|
virtual int defaultBlock() = 0; |
|
|
virtual std::string fromAscii(const std::string& s) = 0; |
|
|
virtual std::string fromAscii(const int& padding, const std::string& s) = 0; |
|
|
virtual std::string fromFixed(const std::string& s) = 0; |
|
|
virtual double fromFixed(const std::string& s) = 0; |
|
|
virtual std::string gasPrice() = 0; |
|
|
virtual std::string gasPrice() = 0; |
|
|
virtual bool isListening() = 0; |
|
|
virtual bool isListening() = 0; |
|
|
virtual bool isMining() = 0; |
|
|
virtual bool isMining() = 0; |
|
@ -219,7 +219,7 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
virtual std::string setListening(const std::string& l) = 0; |
|
|
virtual std::string setListening(const std::string& l) = 0; |
|
|
virtual std::string setMining(const std::string& l) = 0; |
|
|
virtual std::string setMining(const std::string& l) = 0; |
|
|
virtual std::string sha3(const std::string& s) = 0; |
|
|
virtual std::string sha3(const std::string& s) = 0; |
|
|
virtual std::string stateAt(const std::string& a, const std::string& block, const std::string& p) = 0; |
|
|
virtual std::string stateAt(const std::string& a, const int& block, const std::string& p) = 0; |
|
|
virtual std::string toAscii(const std::string& s) = 0; |
|
|
virtual std::string toAscii(const std::string& s) = 0; |
|
|
virtual std::string toDecimal(const std::string& s) = 0; |
|
|
virtual std::string toDecimal(const std::string& s) = 0; |
|
|
virtual std::string toFixed(const std::string& s) = 0; |
|
|
virtual std::string toFixed(const std::string& s) = 0; |
|
@ -229,4 +229,4 @@ class AbstractEthStubServer : public jsonrpc::AbstractServer<AbstractEthStubServ |
|
|
virtual std::string watch(const std::string& json) = 0; |
|
|
virtual std::string watch(const std::string& json) = 0; |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
#endif //_AbstractEthStubServer_H_
|
|
|
#endif //_ABSTRACTETHSTUBSERVER_H_
|
|
|