5 #ifndef JSONRPC_CPP_STUB_FARMCLIENT_H_ 6 #define JSONRPC_CPP_STUB_FARMCLIENT_H_ 8 #include <jsonrpccpp/client.h> 13 FarmClient(jsonrpc::IClientConnector &conn, jsonrpc::clientVersion_t
type = jsonrpc::JSONRPC_CLIENT_V2) :
jsonrpc::Client(conn,
type) {}
19 Json::Value result = this->CallMethod(
"eth_getWork",p);
23 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
25 bool eth_submitWork(
const std::string& param1,
const std::string& param2,
const std::string& param3)
throw (jsonrpc::JsonRpcException)
31 Json::Value result = this->CallMethod(
"eth_submitWork",p);
33 return result.asBool();
35 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
37 bool eth_submitHashrate(
const std::string& param1,
const std::string& param2)
throw (jsonrpc::JsonRpcException)
42 Json::Value result = this->CallMethod(
"eth_submitHashrate",p);
44 return result.asBool();
46 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
52 Json::Value result = this->CallMethod(
"eth_awaitNewWork",p);
56 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
62 Json::Value result = this->CallMethod(
"eth_progress",p);
64 return result.asBool();
66 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
70 #endif //JSONRPC_CPP_STUB_FARMCLIENT_H_
bool eth_submitWork(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3)
Json::Value eth_awaitNewWork()
FarmClient(jsonrpc::IClientConnector &conn, jsonrpc::clientVersion_t type=jsonrpc::JSONRPC_CLIENT_V2)
Json::Value eth_getWork()
bool eth_submitHashrate(const std::string ¶m1, const std::string ¶m2)
PlatformStyle::TableColorType type
This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!