aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-11-18 19:41:53 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-11-18 19:41:53 +0800
commitab98c675149128bbed90853da3be60307e0feab2 (patch)
tree0d74cd8d961dbb4f5ca445306d90ee75b876b892
parent7b30c14deddbcb63e618eb8bb5e1c024dc4fa758 (diff)
downloaddexon-solidity-ab98c675149128bbed90853da3be60307e0feab2.tar.gz
dexon-solidity-ab98c675149128bbed90853da3be60307e0feab2.tar.zst
dexon-solidity-ab98c675149128bbed90853da3be60307e0feab2.zip
logs in spec
-rw-r--r--webthreestubclient.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h
index 162c84b4..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_getMessages(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_getMessages",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;