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