|
|
@ -63,6 +63,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("shh_newFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_INTEGER, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::shh_newFilterI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("shh_uninstallFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::shh_uninstallFilterI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("shh_changed", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::shh_changedI); |
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("shh_getMessages", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::shh_getMessagesI); |
|
|
|
} |
|
|
|
|
|
|
|
inline virtual void web3_sha3I(const Json::Value &request, Json::Value &response) |
|
|
@ -281,6 +282,10 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
{ |
|
|
|
response = this->shh_changed(request[0u].asInt()); |
|
|
|
} |
|
|
|
inline virtual void shh_getMessagesI(const Json::Value &request, Json::Value &response) |
|
|
|
{ |
|
|
|
response = this->shh_getMessages(request[0u].asInt()); |
|
|
|
} |
|
|
|
virtual std::string web3_sha3(const std::string& param1) = 0; |
|
|
|
virtual std::string eth_coinbase() = 0; |
|
|
|
virtual bool eth_setCoinbase(const std::string& param1) = 0; |
|
|
@ -332,6 +337,7 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
|
virtual int shh_newFilter(const Json::Value& param1) = 0; |
|
|
|
virtual bool shh_uninstallFilter(int param1) = 0; |
|
|
|
virtual Json::Value shh_changed(int param1) = 0; |
|
|
|
virtual Json::Value shh_getMessages(int param1) = 0; |
|
|
|
}; |
|
|
|
|
|
|
|
#endif //JSONRPC_CPP_STUB_ABSTRACTWEBTHREESTUBSERVER_H_
|
|
|
|