mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
common changes
This commit is contained in:
parent
2bdb56213a
commit
ede6da24d7
@ -216,6 +216,19 @@ p.append(param3);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Json::Value eth_filterLogs(const int& param1) throw (jsonrpc::JsonRpcException)
|
||||||
|
{
|
||||||
|
Json::Value p;
|
||||||
|
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());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
std::string eth_gasPrice() throw (jsonrpc::JsonRpcException)
|
std::string eth_gasPrice() throw (jsonrpc::JsonRpcException)
|
||||||
{
|
{
|
||||||
Json::Value p;
|
Json::Value p;
|
||||||
@ -226,19 +239,6 @@ p.append(param3);
|
|||||||
else
|
else
|
||||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Json::Value eth_getLogs(const int& param1) throw (jsonrpc::JsonRpcException)
|
|
||||||
{
|
|
||||||
Json::Value p;
|
|
||||||
p.append(param1);
|
|
||||||
|
|
||||||
Json::Value result = this->client->CallMethod("eth_getLogs",p);
|
|
||||||
if (result.isArray())
|
|
||||||
return result;
|
|
||||||
else
|
|
||||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool eth_listening() throw (jsonrpc::JsonRpcException)
|
bool eth_listening() throw (jsonrpc::JsonRpcException)
|
||||||
@ -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)
|
bool eth_mining() throw (jsonrpc::JsonRpcException)
|
||||||
{
|
{
|
||||||
Json::Value p;
|
Json::Value p;
|
||||||
|
Loading…
Reference in New Issue
Block a user