forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb3Face.h
36 lines (31 loc) · 1.42 KB
/
Web3Face.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
*/
#ifndef JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_
#define JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_
#include "ModularServer.h"
namespace dev {
namespace rpc {
class Web3Face : public ServerInterface<Web3Face>
{
public:
Web3Face()
{
this->bindAndAddMethod(jsonrpc::Procedure("web3_sha3", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::Web3Face::web3_sha3I);
this->bindAndAddMethod(jsonrpc::Procedure("web3_clientVersion", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::Web3Face::web3_clientVersionI);
}
inline virtual void web3_sha3I(const Json::Value &request, Json::Value &response)
{
response = this->web3_sha3(request[0u].asString());
}
inline virtual void web3_clientVersionI(const Json::Value &request, Json::Value &response)
{
(void)request;
response = this->web3_clientVersion();
}
virtual std::string web3_sha3(const std::string& param1) = 0;
virtual std::string web3_clientVersion() = 0;
};
}
}
#endif //JSONRPC_CPP_STUB_DEV_RPC_WEB3FACE_H_