EthFace.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class EthFace : public ServerInterface<EthFace>
  10. {
  11. public:
  12. EthFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("eth_protocolVersion", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_protocolVersionI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("eth_hashrate", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_hashrateI);
  16. this->bindAndAddMethod(jsonrpc::Procedure("eth_coinbase", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_coinbaseI);
  17. this->bindAndAddMethod(jsonrpc::Procedure("eth_mining", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, NULL), &dev::rpc::EthFace::eth_miningI);
  18. this->bindAndAddMethod(jsonrpc::Procedure("eth_gasPrice", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_gasPriceI);
  19. this->bindAndAddMethod(jsonrpc::Procedure("eth_accounts", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL), &dev::rpc::EthFace::eth_accountsI);
  20. this->bindAndAddMethod(jsonrpc::Procedure("eth_blockNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_blockNumberI);
  21. this->bindAndAddMethod(jsonrpc::Procedure("eth_getBalance", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getBalanceI);
  22. this->bindAndAddMethod(jsonrpc::Procedure("eth_getStorageAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getStorageAtI);
  23. this->bindAndAddMethod(jsonrpc::Procedure("eth_getStorageRoot", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getStorageRootI);
  24. this->bindAndAddMethod(jsonrpc::Procedure("eth_getTransactionCount", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getTransactionCountI);
  25. this->bindAndAddMethod(jsonrpc::Procedure("eth_pendingTransactions", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_pendingTransactionsI);
  26. this->bindAndAddMethod(jsonrpc::Procedure("eth_getBlockTransactionCountByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getBlockTransactionCountByHashI);
  27. this->bindAndAddMethod(jsonrpc::Procedure("eth_getBlockTransactionCountByNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getBlockTransactionCountByNumberI);
  28. this->bindAndAddMethod(jsonrpc::Procedure("eth_getUncleCountByBlockHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getUncleCountByBlockHashI);
  29. this->bindAndAddMethod(jsonrpc::Procedure("eth_getUncleCountByBlockNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getUncleCountByBlockNumberI);
  30. this->bindAndAddMethod(jsonrpc::Procedure("eth_getCode", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getCodeI);
  31. this->bindAndAddMethod(jsonrpc::Procedure("eth_sendTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_sendTransactionI);
  32. this->bindAndAddMethod(jsonrpc::Procedure("eth_call", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_callI);
  33. this->bindAndAddMethod(jsonrpc::Procedure("eth_flush", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, NULL), &dev::rpc::EthFace::eth_flushI);
  34. this->bindAndAddMethod(jsonrpc::Procedure("eth_getBlockByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_BOOLEAN, NULL), &dev::rpc::EthFace::eth_getBlockByHashI);
  35. this->bindAndAddMethod(jsonrpc::Procedure("eth_getBlockByNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_BOOLEAN, NULL), &dev::rpc::EthFace::eth_getBlockByNumberI);
  36. this->bindAndAddMethod(jsonrpc::Procedure("eth_getTransactionByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getTransactionByHashI);
  37. this->bindAndAddMethod(jsonrpc::Procedure("eth_getTransactionByBlockHashAndIndex", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getTransactionByBlockHashAndIndexI);
  38. this->bindAndAddMethod(jsonrpc::Procedure("eth_getTransactionByBlockNumberAndIndex", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getTransactionByBlockNumberAndIndexI);
  39. this->bindAndAddMethod(jsonrpc::Procedure("eth_getTransactionReceipt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getTransactionReceiptI);
  40. this->bindAndAddMethod(jsonrpc::Procedure("eth_getUncleByBlockHashAndIndex", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getUncleByBlockHashAndIndexI);
  41. this->bindAndAddMethod(jsonrpc::Procedure("eth_getUncleByBlockNumberAndIndex", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getUncleByBlockNumberAndIndexI);
  42. this->bindAndAddMethod(jsonrpc::Procedure("eth_newFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_newFilterI);
  43. this->bindAndAddMethod(jsonrpc::Procedure("eth_newFilterEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_newFilterExI);
  44. this->bindAndAddMethod(jsonrpc::Procedure("eth_newBlockFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_newBlockFilterI);
  45. this->bindAndAddMethod(jsonrpc::Procedure("eth_newPendingTransactionFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_newPendingTransactionFilterI);
  46. this->bindAndAddMethod(jsonrpc::Procedure("eth_uninstallFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_uninstallFilterI);
  47. this->bindAndAddMethod(jsonrpc::Procedure("eth_getFilterChanges", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getFilterChangesI);
  48. this->bindAndAddMethod(jsonrpc::Procedure("eth_getFilterChangesEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getFilterChangesExI);
  49. this->bindAndAddMethod(jsonrpc::Procedure("eth_getFilterLogs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getFilterLogsI);
  50. this->bindAndAddMethod(jsonrpc::Procedure("eth_getFilterLogsEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_getFilterLogsExI);
  51. this->bindAndAddMethod(jsonrpc::Procedure("eth_getLogs", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_getLogsI);
  52. this->bindAndAddMethod(jsonrpc::Procedure("eth_getLogsEx", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_getLogsExI);
  53. this->bindAndAddMethod(jsonrpc::Procedure("eth_getWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, NULL), &dev::rpc::EthFace::eth_getWorkI);
  54. this->bindAndAddMethod(jsonrpc::Procedure("eth_submitWork", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING,"param3",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_submitWorkI);
  55. this->bindAndAddMethod(jsonrpc::Procedure("eth_submitHashrate", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_submitHashrateI);
  56. this->bindAndAddMethod(jsonrpc::Procedure("eth_register", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_registerI);
  57. this->bindAndAddMethod(jsonrpc::Procedure("eth_unregister", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_unregisterI);
  58. this->bindAndAddMethod(jsonrpc::Procedure("eth_fetchQueuedTransactions", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_fetchQueuedTransactionsI);
  59. this->bindAndAddMethod(jsonrpc::Procedure("eth_signTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_signTransactionI);
  60. this->bindAndAddMethod(jsonrpc::Procedure("eth_inspectTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_inspectTransactionI);
  61. this->bindAndAddMethod(jsonrpc::Procedure("eth_sendRawTransaction", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_sendRawTransactionI);
  62. this->bindAndAddMethod(jsonrpc::Procedure("eth_notePassword", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::EthFace::eth_notePasswordI);
  63. this->bindAndAddMethod(jsonrpc::Procedure("eth_syncing", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_syncingI);
  64. this->bindAndAddMethod(jsonrpc::Procedure("eth_estimateGas", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::EthFace::eth_estimateGasI);
  65. }
  66. inline virtual void eth_protocolVersionI(const Json::Value &request, Json::Value &response)
  67. {
  68. (void)request;
  69. response = this->eth_protocolVersion();
  70. }
  71. inline virtual void eth_hashrateI(const Json::Value &request, Json::Value &response)
  72. {
  73. (void)request;
  74. response = this->eth_hashrate();
  75. }
  76. inline virtual void eth_coinbaseI(const Json::Value &request, Json::Value &response)
  77. {
  78. (void)request;
  79. response = this->eth_coinbase();
  80. }
  81. inline virtual void eth_miningI(const Json::Value &request, Json::Value &response)
  82. {
  83. (void)request;
  84. response = this->eth_mining();
  85. }
  86. inline virtual void eth_gasPriceI(const Json::Value &request, Json::Value &response)
  87. {
  88. (void)request;
  89. response = this->eth_gasPrice();
  90. }
  91. inline virtual void eth_accountsI(const Json::Value &request, Json::Value &response)
  92. {
  93. (void)request;
  94. response = this->eth_accounts();
  95. }
  96. inline virtual void eth_blockNumberI(const Json::Value &request, Json::Value &response)
  97. {
  98. (void)request;
  99. response = this->eth_blockNumber();
  100. }
  101. inline virtual void eth_getBalanceI(const Json::Value &request, Json::Value &response)
  102. {
  103. response = this->eth_getBalance(request[0u].asString(), request[1u].asString());
  104. }
  105. inline virtual void eth_getStorageAtI(const Json::Value &request, Json::Value &response)
  106. {
  107. response = this->eth_getStorageAt(request[0u].asString(), request[1u].asString(), request[2u].asString());
  108. }
  109. inline virtual void eth_getStorageRootI(const Json::Value &request, Json::Value &response)
  110. {
  111. response = this->eth_getStorageRoot(request[0u].asString(), request[1u].asString());
  112. }
  113. inline virtual void eth_getTransactionCountI(const Json::Value &request, Json::Value &response)
  114. {
  115. response = this->eth_getTransactionCount(request[0u].asString(), request[1u].asString());
  116. }
  117. inline virtual void eth_pendingTransactionsI(const Json::Value &request, Json::Value &response)
  118. {
  119. (void)request;
  120. response = this->eth_pendingTransactions();
  121. }
  122. inline virtual void eth_getBlockTransactionCountByHashI(const Json::Value &request, Json::Value &response)
  123. {
  124. response = this->eth_getBlockTransactionCountByHash(request[0u].asString());
  125. }
  126. inline virtual void eth_getBlockTransactionCountByNumberI(const Json::Value &request, Json::Value &response)
  127. {
  128. response = this->eth_getBlockTransactionCountByNumber(request[0u].asString());
  129. }
  130. inline virtual void eth_getUncleCountByBlockHashI(const Json::Value &request, Json::Value &response)
  131. {
  132. response = this->eth_getUncleCountByBlockHash(request[0u].asString());
  133. }
  134. inline virtual void eth_getUncleCountByBlockNumberI(const Json::Value &request, Json::Value &response)
  135. {
  136. response = this->eth_getUncleCountByBlockNumber(request[0u].asString());
  137. }
  138. inline virtual void eth_getCodeI(const Json::Value &request, Json::Value &response)
  139. {
  140. response = this->eth_getCode(request[0u].asString(), request[1u].asString());
  141. }
  142. inline virtual void eth_sendTransactionI(const Json::Value &request, Json::Value &response)
  143. {
  144. response = this->eth_sendTransaction(request[0u]);
  145. }
  146. inline virtual void eth_callI(const Json::Value &request, Json::Value &response)
  147. {
  148. response = this->eth_call(request[0u], request[1u].asString());
  149. }
  150. inline virtual void eth_flushI(const Json::Value &request, Json::Value &response)
  151. {
  152. (void)request;
  153. response = this->eth_flush();
  154. }
  155. inline virtual void eth_getBlockByHashI(const Json::Value &request, Json::Value &response)
  156. {
  157. response = this->eth_getBlockByHash(request[0u].asString(), request[1u].asBool());
  158. }
  159. inline virtual void eth_getBlockByNumberI(const Json::Value &request, Json::Value &response)
  160. {
  161. response = this->eth_getBlockByNumber(request[0u].asString(), request[1u].asBool());
  162. }
  163. inline virtual void eth_getTransactionByHashI(const Json::Value &request, Json::Value &response)
  164. {
  165. response = this->eth_getTransactionByHash(request[0u].asString());
  166. }
  167. inline virtual void eth_getTransactionByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
  168. {
  169. response = this->eth_getTransactionByBlockHashAndIndex(request[0u].asString(), request[1u].asString());
  170. }
  171. inline virtual void eth_getTransactionByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
  172. {
  173. response = this->eth_getTransactionByBlockNumberAndIndex(request[0u].asString(), request[1u].asString());
  174. }
  175. inline virtual void eth_getTransactionReceiptI(const Json::Value &request, Json::Value &response)
  176. {
  177. response = this->eth_getTransactionReceipt(request[0u].asString());
  178. }
  179. inline virtual void eth_getUncleByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
  180. {
  181. response = this->eth_getUncleByBlockHashAndIndex(request[0u].asString(), request[1u].asString());
  182. }
  183. inline virtual void eth_getUncleByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
  184. {
  185. response = this->eth_getUncleByBlockNumberAndIndex(request[0u].asString(), request[1u].asString());
  186. }
  187. inline virtual void eth_newFilterI(const Json::Value &request, Json::Value &response)
  188. {
  189. response = this->eth_newFilter(request[0u]);
  190. }
  191. inline virtual void eth_newFilterExI(const Json::Value &request, Json::Value &response)
  192. {
  193. response = this->eth_newFilterEx(request[0u]);
  194. }
  195. inline virtual void eth_newBlockFilterI(const Json::Value &request, Json::Value &response)
  196. {
  197. (void)request;
  198. response = this->eth_newBlockFilter();
  199. }
  200. inline virtual void eth_newPendingTransactionFilterI(const Json::Value &request, Json::Value &response)
  201. {
  202. (void)request;
  203. response = this->eth_newPendingTransactionFilter();
  204. }
  205. inline virtual void eth_uninstallFilterI(const Json::Value &request, Json::Value &response)
  206. {
  207. response = this->eth_uninstallFilter(request[0u].asString());
  208. }
  209. inline virtual void eth_getFilterChangesI(const Json::Value &request, Json::Value &response)
  210. {
  211. response = this->eth_getFilterChanges(request[0u].asString());
  212. }
  213. inline virtual void eth_getFilterChangesExI(const Json::Value &request, Json::Value &response)
  214. {
  215. response = this->eth_getFilterChangesEx(request[0u].asString());
  216. }
  217. inline virtual void eth_getFilterLogsI(const Json::Value &request, Json::Value &response)
  218. {
  219. response = this->eth_getFilterLogs(request[0u].asString());
  220. }
  221. inline virtual void eth_getFilterLogsExI(const Json::Value &request, Json::Value &response)
  222. {
  223. response = this->eth_getFilterLogsEx(request[0u].asString());
  224. }
  225. inline virtual void eth_getLogsI(const Json::Value &request, Json::Value &response)
  226. {
  227. response = this->eth_getLogs(request[0u]);
  228. }
  229. inline virtual void eth_getLogsExI(const Json::Value &request, Json::Value &response)
  230. {
  231. response = this->eth_getLogsEx(request[0u]);
  232. }
  233. inline virtual void eth_getWorkI(const Json::Value &request, Json::Value &response)
  234. {
  235. (void)request;
  236. response = this->eth_getWork();
  237. }
  238. inline virtual void eth_submitWorkI(const Json::Value &request, Json::Value &response)
  239. {
  240. response = this->eth_submitWork(request[0u].asString(), request[1u].asString(), request[2u].asString());
  241. }
  242. inline virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response)
  243. {
  244. response = this->eth_submitHashrate(request[0u].asString(), request[1u].asString());
  245. }
  246. inline virtual void eth_registerI(const Json::Value &request, Json::Value &response)
  247. {
  248. response = this->eth_register(request[0u].asString());
  249. }
  250. inline virtual void eth_unregisterI(const Json::Value &request, Json::Value &response)
  251. {
  252. response = this->eth_unregister(request[0u].asString());
  253. }
  254. inline virtual void eth_fetchQueuedTransactionsI(const Json::Value &request, Json::Value &response)
  255. {
  256. response = this->eth_fetchQueuedTransactions(request[0u].asString());
  257. }
  258. inline virtual void eth_signTransactionI(const Json::Value &request, Json::Value &response)
  259. {
  260. response = this->eth_signTransaction(request[0u]);
  261. }
  262. inline virtual void eth_inspectTransactionI(const Json::Value &request, Json::Value &response)
  263. {
  264. response = this->eth_inspectTransaction(request[0u].asString());
  265. }
  266. inline virtual void eth_sendRawTransactionI(const Json::Value &request, Json::Value &response)
  267. {
  268. response = this->eth_sendRawTransaction(request[0u].asString());
  269. }
  270. inline virtual void eth_notePasswordI(const Json::Value &request, Json::Value &response)
  271. {
  272. response = this->eth_notePassword(request[0u].asString());
  273. }
  274. inline virtual void eth_syncingI(const Json::Value &request, Json::Value &response)
  275. {
  276. (void)request;
  277. response = this->eth_syncing();
  278. }
  279. inline virtual void eth_estimateGasI(const Json::Value &request, Json::Value &response)
  280. {
  281. response = this->eth_estimateGas(request[0u]);
  282. }
  283. virtual std::string eth_protocolVersion() = 0;
  284. virtual std::string eth_hashrate() = 0;
  285. virtual std::string eth_coinbase() = 0;
  286. virtual bool eth_mining() = 0;
  287. virtual std::string eth_gasPrice() = 0;
  288. virtual Json::Value eth_accounts() = 0;
  289. virtual std::string eth_blockNumber() = 0;
  290. virtual std::string eth_getBalance(const std::string& param1, const std::string& param2) = 0;
  291. virtual std::string eth_getStorageAt(const std::string& param1, const std::string& param2, const std::string& param3) = 0;
  292. virtual std::string eth_getStorageRoot(const std::string& param1, const std::string& param2) = 0;
  293. virtual std::string eth_getTransactionCount(const std::string& param1, const std::string& param2) = 0;
  294. virtual std::string eth_pendingTransactions() = 0;
  295. virtual Json::Value eth_getBlockTransactionCountByHash(const std::string& param1) = 0;
  296. virtual Json::Value eth_getBlockTransactionCountByNumber(const std::string& param1) = 0;
  297. virtual Json::Value eth_getUncleCountByBlockHash(const std::string& param1) = 0;
  298. virtual Json::Value eth_getUncleCountByBlockNumber(const std::string& param1) = 0;
  299. virtual std::string eth_getCode(const std::string& param1, const std::string& param2) = 0;
  300. virtual std::string eth_sendTransaction(const Json::Value& param1) = 0;
  301. virtual std::string eth_call(const Json::Value& param1, const std::string& param2) = 0;
  302. virtual bool eth_flush() = 0;
  303. virtual Json::Value eth_getBlockByHash(const std::string& param1, bool param2) = 0;
  304. virtual Json::Value eth_getBlockByNumber(const std::string& param1, bool param2) = 0;
  305. virtual Json::Value eth_getTransactionByHash(const std::string& param1) = 0;
  306. virtual Json::Value eth_getTransactionByBlockHashAndIndex(const std::string& param1, const std::string& param2) = 0;
  307. virtual Json::Value eth_getTransactionByBlockNumberAndIndex(const std::string& param1, const std::string& param2) = 0;
  308. virtual Json::Value eth_getTransactionReceipt(const std::string& param1) = 0;
  309. virtual Json::Value eth_getUncleByBlockHashAndIndex(const std::string& param1, const std::string& param2) = 0;
  310. virtual Json::Value eth_getUncleByBlockNumberAndIndex(const std::string& param1, const std::string& param2) = 0;
  311. virtual std::string eth_newFilter(const Json::Value& param1) = 0;
  312. virtual std::string eth_newFilterEx(const Json::Value& param1) = 0;
  313. virtual std::string eth_newBlockFilter() = 0;
  314. virtual std::string eth_newPendingTransactionFilter() = 0;
  315. virtual bool eth_uninstallFilter(const std::string& param1) = 0;
  316. virtual Json::Value eth_getFilterChanges(const std::string& param1) = 0;
  317. virtual Json::Value eth_getFilterChangesEx(const std::string& param1) = 0;
  318. virtual Json::Value eth_getFilterLogs(const std::string& param1) = 0;
  319. virtual Json::Value eth_getFilterLogsEx(const std::string& param1) = 0;
  320. virtual Json::Value eth_getLogs(const Json::Value& param1) = 0;
  321. virtual Json::Value eth_getLogsEx(const Json::Value& param1) = 0;
  322. virtual Json::Value eth_getWork() = 0;
  323. virtual bool eth_submitWork(const std::string& param1, const std::string& param2, const std::string& param3) = 0;
  324. virtual bool eth_submitHashrate(const std::string& param1, const std::string& param2) = 0;
  325. virtual std::string eth_register(const std::string& param1) = 0;
  326. virtual bool eth_unregister(const std::string& param1) = 0;
  327. virtual Json::Value eth_fetchQueuedTransactions(const std::string& param1) = 0;
  328. virtual std::string eth_signTransaction(const Json::Value& param1) = 0;
  329. virtual Json::Value eth_inspectTransaction(const std::string& param1) = 0;
  330. virtual std::string eth_sendRawTransaction(const std::string& param1) = 0;
  331. virtual bool eth_notePassword(const std::string& param1) = 0;
  332. virtual Json::Value eth_syncing() = 0;
  333. virtual std::string eth_estimateGas(const Json::Value& param1) = 0;
  334. };
  335. }
  336. }
  337. #endif //JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_