|
@ -60,7 +60,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_getLogsEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_getLogsExI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_getLogsEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_getLogsExI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_getWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL), &AbstractWebThreeStubServer::eth_getWorkI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_getWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL), &AbstractWebThreeStubServer::eth_getWorkI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_submitWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_submitWorkI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_submitWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_submitWorkI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_submitHashrate", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_INTEGER,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_submitHashrateI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_submitHashrate", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_submitHashrateI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_register", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_registerI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_register", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_registerI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_unregister", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_unregisterI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_unregister", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_unregisterI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_fetchQueuedTransactions", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_fetchQueuedTransactionsI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_fetchQueuedTransactions", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_fetchQueuedTransactionsI); |
|
@ -315,7 +315,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
} |
|
|
} |
|
|
inline virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response) |
|
|
inline virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response) |
|
|
{ |
|
|
{ |
|
|
response = this->eth_submitHashrate(request[0u].asInt(), request[1u].asString()); |
|
|
response = this->eth_submitHashrate(request[0u].asString(), request[1u].asString()); |
|
|
} |
|
|
} |
|
|
inline virtual void eth_registerI(const Json::Value &request, Json::Value &response) |
|
|
inline virtual void eth_registerI(const Json::Value &request, Json::Value &response) |
|
|
{ |
|
|
{ |
|
@ -534,7 +534,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
virtual Json::Value eth_getLogsEx(const Json::Value& param1) = 0; |
|
|
virtual Json::Value eth_getLogsEx(const Json::Value& param1) = 0; |
|
|
virtual Json::Value eth_getWork() = 0; |
|
|
virtual Json::Value eth_getWork() = 0; |
|
|
virtual bool eth_submitWork(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|
virtual bool eth_submitWork(const std::string& param1, const std::string& param2, const std::string& param3) = 0; |
|
|
virtual bool eth_submitHashrate(int param1, const std::string& param2) = 0; |
|
|
virtual bool eth_submitHashrate(const std::string& param1, const std::string& param2) = 0; |
|
|
virtual std::string eth_register(const std::string& param1) = 0; |
|
|
virtual std::string eth_register(const std::string& param1) = 0; |
|
|
virtual bool eth_unregister(const std::string& param1) = 0; |
|
|
virtual bool eth_unregister(const std::string& param1) = 0; |
|
|
virtual Json::Value eth_fetchQueuedTransactions(const std::string& param1) = 0; |
|
|
virtual Json::Value eth_fetchQueuedTransactions(const std::string& param1) = 0; |
|
|