5 #ifndef JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_ 6 #define JSONRPC_CPP_STUB_DEV_RPC_ETHFACE_H_ 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);
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);
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;
303 virtual std::string
eth_getCode(
const std::string& param1,
const std::string& param2) = 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;
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)
virtual bool eth_unregister(const std::string ¶m1)=0
virtual Json::Value eth_getTransactionByBlockHashAndIndex(const std::string ¶m1, const std::string ¶m2)=0
virtual std::string eth_protocolVersion()=0
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
virtual std::string eth_getStorageAt(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3)=0
virtual void eth_registerI(const Json::Value &request, Json::Value &response)
virtual void eth_flushI(const Json::Value &request, Json::Value &response)
virtual void eth_getTransactionByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
virtual std::string eth_sendTransaction(const Json::Value ¶m1)=0
virtual void eth_getLogsExI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getLogs(const Json::Value ¶m1)=0
virtual void eth_protocolVersionI(const Json::Value &request, Json::Value &response)
virtual std::string eth_newBlockFilter()=0
virtual void eth_sendTransactionI(const Json::Value &request, Json::Value &response)
virtual void eth_getTransactionReceiptI(const Json::Value &request, Json::Value &response)
virtual void eth_getFilterChangesExI(const Json::Value &request, Json::Value &response)
virtual bool eth_uninstallFilter(const std::string ¶m1)=0
virtual Json::Value eth_getUncleCountByBlockHash(const std::string ¶m1)=0
virtual std::string eth_getCode(const std::string ¶m1, const std::string ¶m2)=0
virtual void eth_getFilterChangesI(const Json::Value &request, Json::Value &response)
virtual void eth_estimateGasI(const Json::Value &request, Json::Value &response)
void bindAndAddMethod(jsonrpc::Procedure const &_proc, MethodPointer _pointer)
virtual void eth_sendRawTransactionI(const Json::Value &request, Json::Value &response)
virtual std::string eth_register(const std::string ¶m1)=0
virtual void eth_newFilterI(const Json::Value &request, Json::Value &response)
virtual void eth_pendingTransactionsI(const Json::Value &request, Json::Value &response)
virtual void eth_getFilterLogsExI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getFilterChanges(const std::string ¶m1)=0
virtual std::string eth_hashrate()=0
virtual std::string eth_estimateGas(const Json::Value ¶m1)=0
virtual void eth_getBlockTransactionCountByHashI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getLogsEx(const Json::Value ¶m1)=0
virtual void eth_getCodeI(const Json::Value &request, Json::Value &response)
virtual void eth_getStorageRootI(const Json::Value &request, Json::Value &response)
virtual std::string eth_newFilter(const Json::Value ¶m1)=0
virtual void eth_unregisterI(const Json::Value &request, Json::Value &response)
virtual std::string eth_newPendingTransactionFilter()=0
virtual Json::Value eth_getUncleCountByBlockNumber(const std::string ¶m1)=0
virtual void eth_getTransactionCountI(const Json::Value &request, Json::Value &response)
virtual void eth_blockNumberI(const Json::Value &request, Json::Value &response)
virtual void eth_notePasswordI(const Json::Value &request, Json::Value &response)
virtual void eth_getStorageAtI(const Json::Value &request, Json::Value &response)
virtual void eth_fetchQueuedTransactionsI(const Json::Value &request, Json::Value &response)
virtual std::string eth_call(const Json::Value ¶m1, const std::string ¶m2)=0
virtual void eth_newFilterExI(const Json::Value &request, Json::Value &response)
virtual void eth_getUncleCountByBlockNumberI(const Json::Value &request, Json::Value &response)
virtual void eth_newBlockFilterI(const Json::Value &request, Json::Value &response)
virtual void eth_getWorkI(const Json::Value &request, Json::Value &response)
virtual std::string eth_coinbase()=0
virtual Json::Value eth_getTransactionReceipt(const std::string ¶m1)=0
virtual void eth_coinbaseI(const Json::Value &request, Json::Value &response)
virtual void eth_callI(const Json::Value &request, Json::Value &response)
virtual void eth_getBalanceI(const Json::Value &request, Json::Value &response)
virtual void eth_submitHashrateI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getBlockTransactionCountByNumber(const std::string ¶m1)=0
virtual void eth_getTransactionByHashI(const Json::Value &request, Json::Value &response)
virtual void eth_getBlockByHashI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getFilterLogsEx(const std::string ¶m1)=0
virtual bool eth_flush()=0
virtual Json::Value eth_syncing()=0
virtual void eth_inspectTransactionI(const Json::Value &request, Json::Value &response)
virtual std::string eth_getTransactionCount(const std::string ¶m1, const std::string ¶m2)=0
virtual Json::Value eth_getBlockByNumber(const std::string ¶m1, bool param2)=0
virtual std::string eth_blockNumber()=0
virtual void eth_getLogsI(const Json::Value &request, Json::Value &response)
virtual std::string eth_getBalance(const std::string ¶m1, const std::string ¶m2)=0
virtual bool eth_submitHashrate(const std::string ¶m1, const std::string ¶m2)=0
virtual void eth_getFilterLogsI(const Json::Value &request, Json::Value &response)
virtual void eth_getUncleByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
virtual void eth_signTransactionI(const Json::Value &request, Json::Value &response)
virtual bool eth_notePassword(const std::string ¶m1)=0
virtual std::string eth_getStorageRoot(const std::string ¶m1, const std::string ¶m2)=0
virtual std::string eth_newFilterEx(const Json::Value ¶m1)=0
virtual void eth_getUncleCountByBlockHashI(const Json::Value &request, Json::Value &response)
virtual void eth_miningI(const Json::Value &request, Json::Value &response)
virtual void eth_hashrateI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_accounts()=0
virtual Json::Value eth_inspectTransaction(const std::string ¶m1)=0
virtual Json::Value eth_getTransactionByHash(const std::string ¶m1)=0
virtual Json::Value eth_getUncleByBlockNumberAndIndex(const std::string ¶m1, const std::string ¶m2)=0
virtual Json::Value eth_getWork()=0
virtual std::string eth_pendingTransactions()=0
virtual void eth_syncingI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getBlockTransactionCountByHash(const std::string ¶m1)=0
virtual std::string eth_gasPrice()=0
virtual void eth_getBlockByNumberI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getFilterLogs(const std::string ¶m1)=0
virtual Json::Value eth_getBlockByHash(const std::string ¶m1, bool param2)=0
virtual void eth_getUncleByBlockHashAndIndexI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getTransactionByBlockNumberAndIndex(const std::string ¶m1, const std::string ¶m2)=0
virtual std::string eth_sendRawTransaction(const std::string ¶m1)=0
virtual void eth_gasPriceI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_fetchQueuedTransactions(const std::string ¶m1)=0
virtual void eth_getBlockTransactionCountByNumberI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getUncleByBlockHashAndIndex(const std::string ¶m1, const std::string ¶m2)=0
virtual void eth_getTransactionByBlockNumberAndIndexI(const Json::Value &request, Json::Value &response)
virtual std::string eth_signTransaction(const Json::Value ¶m1)=0
std::string asString(bytes const &_b)
Converts byte array to a string containing the same (binary) data.
virtual bool eth_submitWork(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3)=0
virtual void eth_submitWorkI(const Json::Value &request, Json::Value &response)
virtual Json::Value eth_getFilterChangesEx(const std::string ¶m1)=0
virtual void eth_accountsI(const Json::Value &request, Json::Value &response)
virtual void eth_newPendingTransactionFilterI(const Json::Value &request, Json::Value &response)