diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 20:09:05 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 20:09:05 +0800 |
commit | ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10 (patch) | |
tree | 0d74cd8d961dbb4f5ca445306d90ee75b876b892 /webthreestubclient.h | |
parent | 2bdb56213a2b0d69b3fffc25920d77ea3c574065 (diff) | |
download | dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar.gz dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar.bz2 dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar.lz dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar.xz dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.tar.zst dexon-solidity-ede6da24d7df5f4236023a7fa4f7bd8b4d21fc10.zip |
common changes
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r-- | webthreestubclient.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h index e69ae345..f5fee4c0 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -216,26 +216,26 @@ p.append(param3); } - std::string eth_gasPrice() throw (jsonrpc::JsonRpcException) + Json::Value eth_filterLogs(const int& param1) throw (jsonrpc::JsonRpcException) { Json::Value p; - p = Json::nullValue; - Json::Value result = this->client->CallMethod("eth_gasPrice",p); - if (result.isString()) - return result.asString(); + p.append(param1); + + Json::Value result = this->client->CallMethod("eth_filterLogs",p); + if (result.isArray()) + return result; else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } - Json::Value eth_getLogs(const int& param1) throw (jsonrpc::JsonRpcException) + std::string eth_gasPrice() throw (jsonrpc::JsonRpcException) { Json::Value p; - p.append(param1); - - Json::Value result = this->client->CallMethod("eth_getLogs",p); - if (result.isArray()) - return result; + p = Json::nullValue; + Json::Value result = this->client->CallMethod("eth_gasPrice",p); + if (result.isString()) + return result.asString(); else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); @@ -266,6 +266,19 @@ p.append(param3); } + Json::Value eth_logs(const Json::Value& param1) throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p.append(param1); + + Json::Value result = this->client->CallMethod("eth_logs",p); + if (result.isArray()) + return result; + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + + } + bool eth_mining() throw (jsonrpc::JsonRpcException) { Json::Value p; |