AdminEthFace.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_ADMINETHFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_ADMINETHFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class AdminEthFace : public ServerInterface<AdminEthFace>
  10. {
  11. public:
  12. AdminEthFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_blockQueueStatus", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_blockQueueStatusI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setAskPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_setAskPriceI);
  16. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setBidPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_setBidPriceI);
  17. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setMining", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_BOOLEAN,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_setMiningI);
  18. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_findBlock", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_findBlockI);
  19. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_blockQueueFirstUnknown", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_blockQueueFirstUnknownI);
  20. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_blockQueueRetryUnknown", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_blockQueueRetryUnknownI);
  21. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_allAccounts", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_allAccountsI);
  22. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_newAccount", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_OBJECT,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_newAccountI);
  23. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_setMiningBenefactor", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_setMiningBenefactorI);
  24. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_inspect", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_inspectI);
  25. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_reprocess", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_reprocessI);
  26. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_vmTrace", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_INTEGER,"param3",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_vmTraceI);
  27. this->bindAndAddMethod(jsonrpc::Procedure("admin_eth_getReceiptByHashAndIndex", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_INTEGER,"param3",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::admin_eth_getReceiptByHashAndIndexI);
  28. this->bindAndAddMethod(jsonrpc::Procedure("miner_start", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_INTEGER, NULL), &dev::rpc::AdminEthFace::miner_startI);
  29. this->bindAndAddMethod(jsonrpc::Procedure("miner_stop", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, NULL), &dev::rpc::AdminEthFace::miner_stopI);
  30. this->bindAndAddMethod(jsonrpc::Procedure("miner_setEtherbase", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::miner_setEtherbaseI);
  31. this->bindAndAddMethod(jsonrpc::Procedure("miner_setExtra", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::miner_setExtraI);
  32. this->bindAndAddMethod(jsonrpc::Procedure("miner_setGasPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::miner_setGasPriceI);
  33. this->bindAndAddMethod(jsonrpc::Procedure("miner_hashrate", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminEthFace::miner_hashrateI);
  34. }
  35. inline virtual void admin_eth_blockQueueStatusI(const Json::Value &request, Json::Value &response)
  36. {
  37. response = this->admin_eth_blockQueueStatus(request[0u].asString());
  38. }
  39. inline virtual void admin_eth_setAskPriceI(const Json::Value &request, Json::Value &response)
  40. {
  41. response = this->admin_eth_setAskPrice(request[0u].asString(), request[1u].asString());
  42. }
  43. inline virtual void admin_eth_setBidPriceI(const Json::Value &request, Json::Value &response)
  44. {
  45. response = this->admin_eth_setBidPrice(request[0u].asString(), request[1u].asString());
  46. }
  47. inline virtual void admin_eth_setMiningI(const Json::Value &request, Json::Value &response)
  48. {
  49. response = this->admin_eth_setMining(request[0u].asBool(), request[1u].asString());
  50. }
  51. inline virtual void admin_eth_findBlockI(const Json::Value &request, Json::Value &response)
  52. {
  53. response = this->admin_eth_findBlock(request[0u].asString(), request[1u].asString());
  54. }
  55. inline virtual void admin_eth_blockQueueFirstUnknownI(const Json::Value &request, Json::Value &response)
  56. {
  57. response = this->admin_eth_blockQueueFirstUnknown(request[0u].asString());
  58. }
  59. inline virtual void admin_eth_blockQueueRetryUnknownI(const Json::Value &request, Json::Value &response)
  60. {
  61. response = this->admin_eth_blockQueueRetryUnknown(request[0u].asString());
  62. }
  63. inline virtual void admin_eth_allAccountsI(const Json::Value &request, Json::Value &response)
  64. {
  65. response = this->admin_eth_allAccounts(request[0u].asString());
  66. }
  67. inline virtual void admin_eth_newAccountI(const Json::Value &request, Json::Value &response)
  68. {
  69. response = this->admin_eth_newAccount(request[0u], request[1u].asString());
  70. }
  71. inline virtual void admin_eth_setMiningBenefactorI(const Json::Value &request, Json::Value &response)
  72. {
  73. response = this->admin_eth_setMiningBenefactor(request[0u].asString(), request[1u].asString());
  74. }
  75. inline virtual void admin_eth_inspectI(const Json::Value &request, Json::Value &response)
  76. {
  77. response = this->admin_eth_inspect(request[0u].asString(), request[1u].asString());
  78. }
  79. inline virtual void admin_eth_reprocessI(const Json::Value &request, Json::Value &response)
  80. {
  81. response = this->admin_eth_reprocess(request[0u].asString(), request[1u].asString());
  82. }
  83. inline virtual void admin_eth_vmTraceI(const Json::Value &request, Json::Value &response)
  84. {
  85. response = this->admin_eth_vmTrace(request[0u].asString(), request[1u].asInt(), request[2u].asString());
  86. }
  87. inline virtual void admin_eth_getReceiptByHashAndIndexI(const Json::Value &request, Json::Value &response)
  88. {
  89. response = this->admin_eth_getReceiptByHashAndIndex(request[0u].asString(), request[1u].asInt(), request[2u].asString());
  90. }
  91. inline virtual void miner_startI(const Json::Value &request, Json::Value &response)
  92. {
  93. response = this->miner_start(request[0u].asInt());
  94. }
  95. inline virtual void miner_stopI(const Json::Value &request, Json::Value &response)
  96. {
  97. (void)request;
  98. response = this->miner_stop();
  99. }
  100. inline virtual void miner_setEtherbaseI(const Json::Value &request, Json::Value &response)
  101. {
  102. response = this->miner_setEtherbase(request[0u].asString());
  103. }
  104. inline virtual void miner_setExtraI(const Json::Value &request, Json::Value &response)
  105. {
  106. response = this->miner_setExtra(request[0u].asString());
  107. }
  108. inline virtual void miner_setGasPriceI(const Json::Value &request, Json::Value &response)
  109. {
  110. response = this->miner_setGasPrice(request[0u].asString());
  111. }
  112. inline virtual void miner_hashrateI(const Json::Value &request, Json::Value &response)
  113. {
  114. (void)request;
  115. response = this->miner_hashrate();
  116. }
  117. virtual Json::Value admin_eth_blockQueueStatus(const std::string& param1) = 0;
  118. virtual bool admin_eth_setAskPrice(const std::string& param1, const std::string& param2) = 0;
  119. virtual bool admin_eth_setBidPrice(const std::string& param1, const std::string& param2) = 0;
  120. virtual bool admin_eth_setMining(bool param1, const std::string& param2) = 0;
  121. virtual Json::Value admin_eth_findBlock(const std::string& param1, const std::string& param2) = 0;
  122. virtual std::string admin_eth_blockQueueFirstUnknown(const std::string& param1) = 0;
  123. virtual bool admin_eth_blockQueueRetryUnknown(const std::string& param1) = 0;
  124. virtual Json::Value admin_eth_allAccounts(const std::string& param1) = 0;
  125. virtual Json::Value admin_eth_newAccount(const Json::Value& param1, const std::string& param2) = 0;
  126. virtual bool admin_eth_setMiningBenefactor(const std::string& param1, const std::string& param2) = 0;
  127. virtual Json::Value admin_eth_inspect(const std::string& param1, const std::string& param2) = 0;
  128. virtual Json::Value admin_eth_reprocess(const std::string& param1, const std::string& param2) = 0;
  129. virtual Json::Value admin_eth_vmTrace(const std::string& param1, int param2, const std::string& param3) = 0;
  130. virtual Json::Value admin_eth_getReceiptByHashAndIndex(const std::string& param1, int param2, const std::string& param3) = 0;
  131. virtual bool miner_start(int param1) = 0;
  132. virtual bool miner_stop() = 0;
  133. virtual bool miner_setEtherbase(const std::string& param1) = 0;
  134. virtual bool miner_setExtra(const std::string& param1) = 0;
  135. virtual bool miner_setGasPrice(const std::string& param1) = 0;
  136. virtual std::string miner_hashrate() = 0;
  137. };
  138. }
  139. }
  140. #endif //JSONRPC_CPP_STUB_DEV_RPC_ADMINETHFACE_H_