|
|
@ -85,6 +85,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_net_peers", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_net_peersI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_blockQueueStatus", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_eth_blockQueueStatusI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_net_nodeInfo", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_net_nodeInfoI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_exit", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_eth_exitI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setAskPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_eth_setAskPriceI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setBidPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_eth_setBidPriceI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setReferencePrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::admin_eth_setReferencePriceI); |
|
|
@ -412,6 +413,10 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
{ |
|
|
|
response = this->admin_net_nodeInfo(request[0u].asString()); |
|
|
|
} |
|
|
|
inline virtual void admin_eth_exitI(const Json::Value &request, Json::Value &response) |
|
|
|
{ |
|
|
|
response = this->admin_eth_exit(request[0u].asString()); |
|
|
|
} |
|
|
|
inline virtual void admin_eth_setAskPriceI(const Json::Value &request, Json::Value &response) |
|
|
|
{ |
|
|
|
response = this->admin_eth_setAskPrice(request[0u].asString(), request[1u].asString()); |
|
|
@ -549,6 +554,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
virtual Json::Value admin_net_peers(const std::string& param1) = 0; |
|
|
|
virtual Json::Value admin_eth_blockQueueStatus(const std::string& param1) = 0; |
|
|
|
virtual Json::Value admin_net_nodeInfo(const std::string& param1) = 0; |
|
|
|
virtual bool admin_eth_exit(const std::string& param1) = 0; |
|
|
|
virtual bool admin_eth_setAskPrice(const std::string& param1, const std::string& param2) = 0; |
|
|
|
virtual bool admin_eth_setBidPrice(const std::string& param1, const std::string& param2) = 0; |
|
|
|
virtual bool admin_eth_setReferencePrice(const std::string& param1, const std::string& param2) = 0; |
|
|
|