|
@ -29,6 +29,10 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_stateAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_stateAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_stateAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_stateAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_storageAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_storageAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_storageAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_OBJECT, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_storageAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_countAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_countAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_countAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_countAtI); |
|
|
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_transactionCountByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_transactionCountByHashI); |
|
|
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_transactionCountByNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_transactionCountByNumberI); |
|
|
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_uncleCountByHash", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_uncleCountByHashI); |
|
|
|
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_uncleCountByNumber", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_REAL, "param1",jsonrpc::JSON_INTEGER, NULL), &AbstractWebThreeStubServer::eth_uncleCountByNumberI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_codeAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_codeAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_codeAt", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &AbstractWebThreeStubServer::eth_codeAtI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_transact", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_transactI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_transact", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_transactI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_call", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_callI); |
|
|
this->bindAndAddMethod(jsonrpc::Procedure("eth_call", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &AbstractWebThreeStubServer::eth_callI); |
|
@ -141,6 +145,22 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
{ |
|
|
{ |
|
|
response = this->eth_countAt(request[0u].asString()); |
|
|
response = this->eth_countAt(request[0u].asString()); |
|
|
} |
|
|
} |
|
|
|
|
|
inline virtual void eth_transactionCountByHashI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_transactionCountByHash(request[0u].asString()); |
|
|
|
|
|
} |
|
|
|
|
|
inline virtual void eth_transactionCountByNumberI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_transactionCountByNumber(request[0u].asInt()); |
|
|
|
|
|
} |
|
|
|
|
|
inline virtual void eth_uncleCountByHashI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_uncleCountByHash(request[0u].asString()); |
|
|
|
|
|
} |
|
|
|
|
|
inline virtual void eth_uncleCountByNumberI(const Json::Value &request, Json::Value &response) |
|
|
|
|
|
{ |
|
|
|
|
|
response = this->eth_uncleCountByNumber(request[0u].asInt()); |
|
|
|
|
|
} |
|
|
inline virtual void eth_codeAtI(const Json::Value &request, Json::Value &response) |
|
|
inline virtual void eth_codeAtI(const Json::Value &request, Json::Value &response) |
|
|
{ |
|
|
{ |
|
|
response = this->eth_codeAt(request[0u].asString()); |
|
|
response = this->eth_codeAt(request[0u].asString()); |
|
@ -298,6 +318,10 @@ class AbstractWebThreeStubServer : public jsonrpc::AbstractServer<AbstractWebThr |
|
|
virtual std::string eth_stateAt(const std::string& param1, const std::string& param2) = 0; |
|
|
virtual std::string eth_stateAt(const std::string& param1, const std::string& param2) = 0; |
|
|
virtual Json::Value eth_storageAt(const std::string& param1) = 0; |
|
|
virtual Json::Value eth_storageAt(const std::string& param1) = 0; |
|
|
virtual double eth_countAt(const std::string& param1) = 0; |
|
|
virtual double eth_countAt(const std::string& param1) = 0; |
|
|
|
|
|
virtual double eth_transactionCountByHash(const std::string& param1) = 0; |
|
|
|
|
|
virtual double eth_transactionCountByNumber(int param1) = 0; |
|
|
|
|
|
virtual double eth_uncleCountByHash(const std::string& param1) = 0; |
|
|
|
|
|
virtual double eth_uncleCountByNumber(int param1) = 0; |
|
|
virtual std::string eth_codeAt(const std::string& param1) = 0; |
|
|
virtual std::string eth_codeAt(const std::string& param1) = 0; |
|
|
virtual std::string eth_transact(const Json::Value& param1) = 0; |
|
|
virtual std::string eth_transact(const Json::Value& param1) = 0; |
|
|
virtual std::string eth_call(const Json::Value& param1) = 0; |
|
|
virtual std::string eth_call(const Json::Value& param1) = 0; |
|
|