Fabcoin Core  0.16.2
P2P Digital Currency
EthFace.h
Go to the documentation of this file.
1 
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:
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_STRING, 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_STRING, "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  }
69 
70  inline virtual void eth_protocolVersionI(const Json::Value &request, Json::Value &response)
71  {
72  (void)request;
73  response = this->eth_protocolVersion();
74  }
75  inline virtual void eth_hashrateI(const Json::Value &request, Json::Value &response)
76  {
77  (void)request;
78  response = this->eth_hashrate();
79  }
80  inline virtual void eth_coinbaseI(const Json::Value &request, Json::Value &response)
81  {
82  (void)request;
83  response = this->eth_coinbase();
84  }
85  inline virtual void eth_miningI(const Json::Value &request, Json::Value &response)
86  {
87  (void)request;
88  response = this->eth_mining();
89  }
90  inline virtual void eth_gasPriceI(const Json::Value &request, Json::Value &response)
91  {
92  (void)request;
93  response = this->eth_gasPrice();
94  }
95  inline virtual void eth_accountsI(const Json::Value &request, Json::Value &response)
96  {
97  (void)request;
98  response = this->eth_accounts();
99  }
100  inline virtual void eth_blockNumberI(const Json::Value &request, Json::Value &response)
101  {
102  (void)request;
103  response = this->eth_blockNumber();
104  }
105  inline virtual void eth_getBalanceI(const Json::Value &request, Json::Value &response)
106  {
107  response = this->eth_getBalance(request[0u].asString(), request[1u].asString());
108  }
109  inline virtual void eth_getStorageAtI(const Json::Value &request, Json::Value &response)
110  {
111  response = this->eth_getStorageAt(request[0u].asString(), request[1u].asString(), request[2u].asString());
112  }
113  inline virtual void eth_getStorageRootI(const Json::Value &request, Json::Value &response)
114  {
115  response = this->eth_getStorageRoot(request[0u].asString(), request[1u].asString());
116  }
117  inline virtual void eth_getTransactionCountI(const Json::Value &request, Json::Value &response)
118  {
119  response = this->eth_getTransactionCount(request[0u].asString(), request[1u].asString());
120  }
121  inline virtual void eth_pendingTransactionsI(const Json::Value &request, Json::Value &response)
122  {
123  (void)request;
124  response = this->eth_pendingTransactions();
125  }
126  inline virtual void eth_getBlockTransactionCountByHashI(const Json::Value &request, Json::Value &response)
127  {
128  response = this->eth_getBlockTransactionCountByHash(request[0u].asString());
129  }
130  inline virtual void eth_getBlockTransactionCountByNumberI(const Json::Value &request, Json::Value &response)
131  {
132  response = this->eth_getBlockTransactionCountByNumber(request[0u].asString());
133  }
134  inline virtual void eth_getUncleCountByBlockHashI(const Json::Value &request, Json::Value &response)
135  {
136  response = this->eth_getUncleCountByBlockHash(request[0u].asString());
137  }
138  inline virtual void eth_getUncleCountByBlockNumberI(const Json::Value &request, Json::Value &response)
139  {
140  response = this->eth_getUncleCountByBlockNumber(request[0u].asString());
141  }
142  inline virtual void eth_getCodeI(const Json::Value &request, Json::Value &response)
143  {
144  response = this->eth_getCode(request[0u].asString(), request[1u].asString());
145  }
146  inline virtual void eth_sendTransactionI(const Json::Value &request, Json::Value &response)
147  {
148  response = this->eth_sendTransaction(request[0u]);
149  }
150  inline virtual void eth_callI(const Json::Value &request, Json::Value &response)
151  {
152  response = this->eth_call(request[0u], request[1u].asString());
153  }
154  inline virtual void eth_flushI(const Json::Value &request, Json::Value &response)
155  {
156  (void)request;
157  response = this->eth_flush();
158  }
159  inline virtual void eth_getBlockByHashI(const Json::Value &request, Json::Value &response)
160  {
161  response = this->eth_getBlockByHash(request[0u].asString(), request[1u].asBool());
162  }
163  inline virtual void eth_getBlockByNumberI(const Json::Value &request, Json::Value &response)
164  {
165  response = this->eth_getBlockByNumber(request[0u].asString(), request[1u].asBool());
166  }
167  inline virtual void eth_getTransactionByHashI(const Json::Value &request, Json::Value &response)
168  {
169  response = this->eth_getTransactionByHash(request[0u].asString());
170  }
171  inline virtual void eth_getTransactionByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
172  {
173  response = this->eth_getTransactionByBlockHashAndIndex(request[0u].asString(), request[1u].asString());
174  }
175  inline virtual void eth_getTransactionByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
176  {
177  response = this->eth_getTransactionByBlockNumberAndIndex(request[0u].asString(), request[1u].asString());
178  }
179  inline virtual void eth_getTransactionReceiptI(const Json::Value &request, Json::Value &response)
180  {
181  response = this->eth_getTransactionReceipt(request[0u].asString());
182  }
183  inline virtual void eth_getUncleByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
184  {
185  response = this->eth_getUncleByBlockHashAndIndex(request[0u].asString(), request[1u].asString());
186  }
187  inline virtual void eth_getUncleByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
188  {
189  response = this->eth_getUncleByBlockNumberAndIndex(request[0u].asString(), request[1u].asString());
190  }
191  inline virtual void eth_newFilterI(const Json::Value &request, Json::Value &response)
192  {
193  response = this->eth_newFilter(request[0u]);
194  }
195  inline virtual void eth_newFilterExI(const Json::Value &request, Json::Value &response)
196  {
197  response = this->eth_newFilterEx(request[0u]);
198  }
199  inline virtual void eth_newBlockFilterI(const Json::Value &request, Json::Value &response)
200  {
201  (void)request;
202  response = this->eth_newBlockFilter();
203  }
204  inline virtual void eth_newPendingTransactionFilterI(const Json::Value &request, Json::Value &response)
205  {
206  (void)request;
207  response = this->eth_newPendingTransactionFilter();
208  }
209  inline virtual void eth_uninstallFilterI(const Json::Value &request, Json::Value &response)
210  {
211  response = this->eth_uninstallFilter(request[0u].asString());
212  }
213  inline virtual void eth_getFilterChangesI(const Json::Value &request, Json::Value &response)
214  {
215  response = this->eth_getFilterChanges(request[0u].asString());
216  }
217  inline virtual void eth_getFilterChangesExI(const Json::Value &request, Json::Value &response)
218  {
219  response = this->eth_getFilterChangesEx(request[0u].asString());
220  }
221  inline virtual void eth_getFilterLogsI(const Json::Value &request, Json::Value &response)
222  {
223  response = this->eth_getFilterLogs(request[0u].asString());
224  }
225  inline virtual void eth_getFilterLogsExI(const Json::Value &request, Json::Value &response)
226  {
227  response = this->eth_getFilterLogsEx(request[0u].asString());
228  }
229  inline virtual void eth_getLogsI(const Json::Value &request, Json::Value &response)
230  {
231  response = this->eth_getLogs(request[0u]);
232  }
233  inline virtual void eth_getLogsExI(const Json::Value &request, Json::Value &response)
234  {
235  response = this->eth_getLogsEx(request[0u]);
236  }
237  inline virtual void eth_getWorkI(const Json::Value &request, Json::Value &response)
238  {
239  (void)request;
240  response = this->eth_getWork();
241  }
242  inline virtual void eth_submitWorkI(const Json::Value &request, Json::Value &response)
243  {
244  response = this->eth_submitWork(request[0u].asString(), request[1u].asString(), request[2u].asString());
245  }
246  inline virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response)
247  {
248  response = this->eth_submitHashrate(request[0u].asString(), request[1u].asString());
249  }
250  inline virtual void eth_registerI(const Json::Value &request, Json::Value &response)
251  {
252  response = this->eth_register(request[0u].asString());
253  }
254  inline virtual void eth_unregisterI(const Json::Value &request, Json::Value &response)
255  {
256  response = this->eth_unregister(request[0u].asString());
257  }
258  inline virtual void eth_fetchQueuedTransactionsI(const Json::Value &request, Json::Value &response)
259  {
260  response = this->eth_fetchQueuedTransactions(request[0u].asString());
261  }
262  inline virtual void eth_signTransactionI(const Json::Value &request, Json::Value &response)
263  {
264  response = this->eth_signTransaction(request[0u]);
265  }
266  inline virtual void eth_inspectTransactionI(const Json::Value &request, Json::Value &response)
267  {
268  response = this->eth_inspectTransaction(request[0u].asString());
269  }
270  inline virtual void eth_sendRawTransactionI(const Json::Value &request, Json::Value &response)
271  {
272  response = this->eth_sendRawTransaction(request[0u].asString());
273  }
274  inline virtual void eth_notePasswordI(const Json::Value &request, Json::Value &response)
275  {
276  response = this->eth_notePassword(request[0u].asString());
277  }
278  inline virtual void eth_syncingI(const Json::Value &request, Json::Value &response)
279  {
280  (void)request;
281  response = this->eth_syncing();
282  }
283  inline virtual void eth_estimateGasI(const Json::Value &request, Json::Value &response)
284  {
285  response = this->eth_estimateGas(request[0u]);
286  }
287  virtual std::string eth_protocolVersion() = 0;
288  virtual std::string eth_hashrate() = 0;
289  virtual std::string eth_coinbase() = 0;
290  virtual bool eth_mining() = 0;
291  virtual std::string eth_gasPrice() = 0;
292  virtual Json::Value eth_accounts() = 0;
293  virtual std::string eth_blockNumber() = 0;
294  virtual std::string eth_getBalance(const std::string& param1, const std::string& param2) = 0;
295  virtual std::string eth_getStorageAt(const std::string& param1, const std::string& param2, const std::string& param3) = 0;
296  virtual std::string eth_getStorageRoot(const std::string& param1, const std::string& param2) = 0;
297  virtual std::string eth_getTransactionCount(const std::string& param1, const std::string& param2) = 0;
298  virtual std::string eth_pendingTransactions() = 0;
299  virtual Json::Value eth_getBlockTransactionCountByHash(const std::string& param1) = 0;
300  virtual Json::Value eth_getBlockTransactionCountByNumber(const std::string& param1) = 0;
301  virtual Json::Value eth_getUncleCountByBlockHash(const std::string& param1) = 0;
302  virtual Json::Value eth_getUncleCountByBlockNumber(const std::string& param1) = 0;
303  virtual std::string eth_getCode(const std::string& param1, const std::string& param2) = 0;
304  virtual std::string eth_sendTransaction(const Json::Value& param1) = 0;
305  virtual std::string eth_call(const Json::Value& param1, const std::string& param2) = 0;
306  virtual bool eth_flush() = 0;
307  virtual Json::Value eth_getBlockByHash(const std::string& param1, bool param2) = 0;
308  virtual Json::Value eth_getBlockByNumber(const std::string& param1, bool param2) = 0;
309  virtual Json::Value eth_getTransactionByHash(const std::string& param1) = 0;
310  virtual Json::Value eth_getTransactionByBlockHashAndIndex(const std::string& param1, const std::string& param2) = 0;
311  virtual Json::Value eth_getTransactionByBlockNumberAndIndex(const std::string& param1, const std::string& param2) = 0;
312  virtual Json::Value eth_getTransactionReceipt(const std::string& param1) = 0;
313  virtual Json::Value eth_getUncleByBlockHashAndIndex(const std::string& param1, const std::string& param2) = 0;
314  virtual Json::Value eth_getUncleByBlockNumberAndIndex(const std::string& param1, const std::string& param2) = 0;
315  virtual std::string eth_newFilter(const Json::Value& param1) = 0;
316  virtual std::string eth_newFilterEx(const Json::Value& param1) = 0;
317  virtual std::string eth_newBlockFilter() = 0;
318  virtual std::string eth_newPendingTransactionFilter() = 0;
319  virtual bool eth_uninstallFilter(const std::string& param1) = 0;
320  virtual Json::Value eth_getFilterChanges(const std::string& param1) = 0;
321  virtual Json::Value eth_getFilterChangesEx(const std::string& param1) = 0;
322  virtual Json::Value eth_getFilterLogs(const std::string& param1) = 0;
323  virtual Json::Value eth_getFilterLogsEx(const std::string& param1) = 0;
324  virtual Json::Value eth_getLogs(const Json::Value& param1) = 0;
325  virtual Json::Value eth_getLogsEx(const Json::Value& param1) = 0;
326  virtual Json::Value eth_getWork() = 0;
327  virtual bool eth_submitWork(const std::string& param1, const std::string& param2, const std::string& param3) = 0;
328  virtual bool eth_submitHashrate(const std::string& param1, const std::string& param2) = 0;
329  virtual std::string eth_register(const std::string& param1) = 0;
330  virtual bool eth_unregister(const std::string& param1) = 0;
331  virtual Json::Value eth_fetchQueuedTransactions(const std::string& param1) = 0;
332  virtual std::string eth_signTransaction(const Json::Value& param1) = 0;
333  virtual Json::Value eth_inspectTransaction(const std::string& param1) = 0;
334  virtual std::string eth_sendRawTransaction(const std::string& param1) = 0;
335  virtual bool eth_notePassword(const std::string& param1) = 0;
336  virtual Json::Value eth_syncing() = 0;
337  virtual std::string eth_estimateGas(const Json::Value& param1) = 0;
338  };
339 
340  }
341 }
342 #endif //JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_
virtual bool eth_mining()=0
virtual void eth_uninstallFilterI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:209
virtual bool eth_unregister(const std::string &param1)=0
virtual Json::Value eth_getTransactionByBlockHashAndIndex(const std::string &param1, const std::string &param2)=0
virtual std::string eth_protocolVersion()=0
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
virtual std::string eth_getStorageAt(const std::string &param1, const std::string &param2, const std::string &param3)=0
virtual void eth_registerI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:250
virtual void eth_flushI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:154
virtual void eth_getTransactionByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:171
virtual std::string eth_sendTransaction(const Json::Value &param1)=0
virtual void eth_getLogsExI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:233
virtual Json::Value eth_getLogs(const Json::Value &param1)=0
virtual void eth_protocolVersionI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:70
virtual std::string eth_newBlockFilter()=0
virtual void eth_sendTransactionI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:146
virtual void eth_getTransactionReceiptI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:179
virtual void eth_getFilterChangesExI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:217
virtual bool eth_uninstallFilter(const std::string &param1)=0
virtual Json::Value eth_getUncleCountByBlockHash(const std::string &param1)=0
virtual std::string eth_getCode(const std::string &param1, const std::string &param2)=0
virtual void eth_getFilterChangesI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:213
virtual void eth_estimateGasI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:283
void bindAndAddMethod(jsonrpc::Procedure const &_proc, MethodPointer _pointer)
Definition: ModularServer.h:59
virtual void eth_sendRawTransactionI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:270
virtual std::string eth_register(const std::string &param1)=0
virtual void eth_newFilterI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:191
virtual void eth_pendingTransactionsI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:121
virtual void eth_getFilterLogsExI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:225
virtual Json::Value eth_getFilterChanges(const std::string &param1)=0
virtual std::string eth_hashrate()=0
virtual std::string eth_estimateGas(const Json::Value &param1)=0
virtual void eth_getBlockTransactionCountByHashI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:126
virtual Json::Value eth_getLogsEx(const Json::Value &param1)=0
virtual void eth_getCodeI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:142
virtual void eth_getStorageRootI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:113
virtual std::string eth_newFilter(const Json::Value &param1)=0
virtual void eth_unregisterI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:254
virtual std::string eth_newPendingTransactionFilter()=0
virtual Json::Value eth_getUncleCountByBlockNumber(const std::string &param1)=0
virtual void eth_getTransactionCountI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:117
virtual void eth_blockNumberI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:100
Config::Value_type Value
virtual void eth_notePasswordI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:274
virtual void eth_getStorageAtI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:109
virtual void eth_fetchQueuedTransactionsI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:258
virtual std::string eth_call(const Json::Value &param1, const std::string &param2)=0
virtual void eth_newFilterExI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:195
virtual void eth_getUncleCountByBlockNumberI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:138
virtual void eth_newBlockFilterI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:199
virtual void eth_getWorkI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:237
virtual std::string eth_coinbase()=0
virtual Json::Value eth_getTransactionReceipt(const std::string &param1)=0
virtual void eth_coinbaseI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:80
virtual void eth_callI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:150
virtual void eth_getBalanceI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:105
virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:246
virtual Json::Value eth_getBlockTransactionCountByNumber(const std::string &param1)=0
virtual void eth_getTransactionByHashI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:167
virtual void eth_getBlockByHashI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:159
virtual Json::Value eth_getFilterLogsEx(const std::string &param1)=0
virtual bool eth_flush()=0
virtual Json::Value eth_syncing()=0
virtual void eth_inspectTransactionI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:266
virtual std::string eth_getTransactionCount(const std::string &param1, const std::string &param2)=0
virtual Json::Value eth_getBlockByNumber(const std::string &param1, bool param2)=0
virtual std::string eth_blockNumber()=0
virtual void eth_getLogsI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:229
virtual std::string eth_getBalance(const std::string &param1, const std::string &param2)=0
virtual bool eth_submitHashrate(const std::string &param1, const std::string &param2)=0
virtual void eth_getFilterLogsI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:221
virtual void eth_getUncleByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:187
virtual void eth_signTransactionI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:262
virtual bool eth_notePassword(const std::string &param1)=0
virtual std::string eth_getStorageRoot(const std::string &param1, const std::string &param2)=0
virtual std::string eth_newFilterEx(const Json::Value &param1)=0
virtual void eth_getUncleCountByBlockHashI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:134
virtual void eth_miningI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:85
virtual void eth_hashrateI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:75
virtual Json::Value eth_accounts()=0
virtual Json::Value eth_inspectTransaction(const std::string &param1)=0
virtual Json::Value eth_getTransactionByHash(const std::string &param1)=0
virtual Json::Value eth_getUncleByBlockNumberAndIndex(const std::string &param1, const std::string &param2)=0
virtual Json::Value eth_getWork()=0
virtual std::string eth_pendingTransactions()=0
virtual void eth_syncingI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:278
virtual Json::Value eth_getBlockTransactionCountByHash(const std::string &param1)=0
virtual std::string eth_gasPrice()=0
virtual void eth_getBlockByNumberI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:163
virtual Json::Value eth_getFilterLogs(const std::string &param1)=0
virtual Json::Value eth_getBlockByHash(const std::string &param1, bool param2)=0
virtual void eth_getUncleByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:183
virtual Json::Value eth_getTransactionByBlockNumberAndIndex(const std::string &param1, const std::string &param2)=0
virtual std::string eth_sendRawTransaction(const std::string &param1)=0
virtual void eth_gasPriceI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:90
virtual Json::Value eth_fetchQueuedTransactions(const std::string &param1)=0
virtual void eth_getBlockTransactionCountByNumberI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:130
virtual Json::Value eth_getUncleByBlockHashAndIndex(const std::string &param1, const std::string &param2)=0
virtual void eth_getTransactionByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:175
virtual std::string eth_signTransaction(const Json::Value &param1)=0
std::string asString(bytes const &_b)
Converts byte array to a string containing the same (binary) data.
Definition: CommonData.h:79
virtual bool eth_submitWork(const std::string &param1, const std::string &param2, const std::string &param3)=0
virtual void eth_submitWorkI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:242
virtual Json::Value eth_getFilterChangesEx(const std::string &param1)=0
virtual void eth_accountsI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:95
virtual void eth_newPendingTransactionFilterI(const Json::Value &request, Json::Value &response)
Definition: EthFace.h:204