|
@ -49,6 +49,8 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_changed", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_changedI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_changed", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_changedI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_filterLogs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_filterLogsI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_filterLogs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_filterLogsI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_logs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_logsI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_logs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_logsI); |
|
|
|
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_getWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL), &AbstractWebThreeStubServer::eth_getWorkI); |
|
|
|
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("eth_submitWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_INTEGER, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_submitWorkI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_put", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_putI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_put", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_putI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_get", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_getI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_get", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_getI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_putString", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_putStringI); |
|
|
this->bindAndAddMethod(new jsonrpc::Procedure("db_putString", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::db_putStringI); |
|
@ -211,6 +213,14 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
{ |
|
|
{ |
|
|
response = this->eth_logs(request[0u]); |
|
|
response = this->eth_logs(request[0u]); |
|
|
} |
|
|
} |
|
|
|
|
|
inline virtual void eth_getWorkI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_getWork(); |
|
|
|
|
|
} |
|
|
|
|
|
inline virtual void eth_submitWorkI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_submitWork(request[0u].asString()); |
|
|
|
|
|
} |
|
|
inline virtual void db_putI(const Json::Value &request, Json::Value &response) |
|
|
inline virtual void db_putI(const Json::Value &request, Json::Value &response) |
|
|
{ |
|
|
{ |
|
|
response = this->db_put(request[0u].asString(), request[1u].asString(), request[2u].asString()); |
|
|
response = this->db_put(request[0u].asString(), request[1u].asString(), request[2u].asString()); |
|
@ -296,6 +306,8 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
virtual Json::Value eth_changed(const int& param1) = 0; |
|
|
virtual Json::Value eth_changed(const int& param1) = 0; |
|
|
virtual Json::Value eth_filterLogs(const int& param1) = 0; |
|
|
virtual Json::Value eth_filterLogs(const int& param1) = 0; |
|
|
virtual Json::Value eth_logs(const Json::Value& param1) = 0; |
|
|
virtual Json::Value eth_logs(const Json::Value& param1) = 0; |
|
|
|
|
|
virtual Json::Value eth_getWork() = 0; |
|
|
|
|
|
virtual int eth_submitWork(const std::string& param1) = 0; |
|
|
virtual bool db_put(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|
virtual bool db_put(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|
virtual std::string db_get(const std::string& param1, const std::string& param2) = 0; |
|
|
virtual std::string db_get(const std::string& param1, const std::string& param2) = 0; |
|
|
virtual bool db_putString(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|
virtual bool db_putString(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|