Web3Face.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class Web3Face : public ServerInterface<Web3Face>
  10. {
  11. public:
  12. Web3Face()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("web3_sha3", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::Web3Face::web3_sha3I);
  15. this->bindAndAddMethod(jsonrpc::Procedure("web3_clientVersion", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::Web3Face::web3_clientVersionI);
  16. }
  17. inline virtual void web3_sha3I(const Json::Value &request, Json::Value &response)
  18. {
  19. response = this->web3_sha3(request[0u].asString());
  20. }
  21. inline virtual void web3_clientVersionI(const Json::Value &request, Json::Value &response)
  22. {
  23. (void)request;
  24. response = this->web3_clientVersion();
  25. }
  26. virtual std::string web3_sha3(const std::string& param1) = 0;
  27. virtual std::string web3_clientVersion() = 0;
  28. };
  29. }
  30. }
  31. #endif //JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_