|
|
@ -64,6 +64,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_signTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_signTransactionI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_inspectTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_inspectTransactionI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_injectTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_injectTransactionI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_notePassword", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_notePasswordI); |
|
|
|
this->bindAndAddMethod(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(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(jsonrpc::Procedure("shh_post", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::shh_postI); |
|
|
@ -301,6 +302,10 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
{ |
|
|
|
response = this->eth_injectTransaction(request[0u].asString()); |
|
|
|
} |
|
|
|
inline virtual void eth_notePasswordI(const Json::Value &request, Json::Value &response) |
|
|
|
{ |
|
|
|
response = this->eth_notePassword(request[0u].asString()); |
|
|
|
} |
|
|
|
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()); |
|
|
@ -398,6 +403,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
virtual std::string eth_signTransaction(const Json::Value& param1) = 0; |
|
|
|
virtual Json::Value eth_inspectTransaction(const std::string& param1) = 0; |
|
|
|
virtual bool eth_injectTransaction(const std::string& param1) = 0; |
|
|
|
virtual bool eth_notePassword(const std::string& param1) = 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 bool shh_post(const Json::Value& param1) = 0; |
|
|
|