DebugFace.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_DEBUGFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_DEBUGFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class DebugFace : public ServerInterface<DebugFace>
  10. {
  11. public:
  12. DebugFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("debug_traceTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::DebugFace::debug_traceTransactionI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("debug_storageRangeAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_INTEGER,"param3",jsonrpc::JSON_STRING,"param4",jsonrpc::JSON_STRING,"param5",jsonrpc::JSON_STRING,"param6",jsonrpc::JSON_INTEGER, NULL), &dev::rpc::DebugFace::debug_storageRangeAtI);
  16. this->bindAndAddMethod(jsonrpc::Procedure("debug_traceBlockByNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_INTEGER,"param2",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::DebugFace::debug_traceBlockByNumberI);
  17. this->bindAndAddMethod(jsonrpc::Procedure("debug_traceBlockByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::DebugFace::debug_traceBlockByHashI);
  18. this->bindAndAddMethod(jsonrpc::Procedure("debug_traceCall", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_OBJECT,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::DebugFace::debug_traceCallI);
  19. }
  20. inline virtual void debug_traceTransactionI(const Json::Value &request, Json::Value &response)
  21. {
  22. response = this->debug_traceTransaction(request[0u].asString(), request[1u]);
  23. }
  24. inline virtual void debug_storageRangeAtI(const Json::Value &request, Json::Value &response)
  25. {
  26. response = this->debug_storageRangeAt(request[0u].asString(), request[1u].asInt(), request[2u].asString(), request[3u].asString(), request[4u].asString(), request[5u].asInt());
  27. }
  28. inline virtual void debug_traceBlockByNumberI(const Json::Value &request, Json::Value &response)
  29. {
  30. response = this->debug_traceBlockByNumber(request[0u].asInt(), request[1u]);
  31. }
  32. inline virtual void debug_traceBlockByHashI(const Json::Value &request, Json::Value &response)
  33. {
  34. response = this->debug_traceBlockByHash(request[0u].asString(), request[1u]);
  35. }
  36. inline virtual void debug_traceCallI(const Json::Value &request, Json::Value &response)
  37. {
  38. response = this->debug_traceCall(request[0u], request[1u].asString(), request[2u]);
  39. }
  40. virtual Json::Value debug_traceTransaction(const std::string& param1, const Json::Value& param2) = 0;
  41. virtual Json::Value debug_storageRangeAt(const std::string& param1, int param2, const std::string& param3, const std::string& param4, const std::string& param5, int param6) = 0;
  42. virtual Json::Value debug_traceBlockByNumber(int param1, const Json::Value& param2) = 0;
  43. virtual Json::Value debug_traceBlockByHash(const std::string& param1, const Json::Value& param2) = 0;
  44. virtual Json::Value debug_traceCall(const Json::Value& param1, const std::string& param2, const Json::Value& param3) = 0;
  45. };
  46. }
  47. }
  48. #endif //JSONRPC_CPP_STUB_DEV_RPC_DEBUGFACE_H_