@@ -14,13 +14,21 @@ namespace dev {
14
14
public:
15
15
TestFace ()
16
16
{
17
+ this ->bindAndAddMethod (
18
+ jsonrpc::Procedure (" test_getPostState" , jsonrpc::PARAMS_BY_POSITION,
19
+ jsonrpc::JSON_STRING, " param1" , jsonrpc::JSON_OBJECT, NULL ),
20
+ &dev::rpc::TestFace::test_getPostStateI);
17
21
this ->bindAndAddMethod (jsonrpc::Procedure (" test_setChainParams" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_OBJECT, NULL ), &dev::rpc::TestFace::test_setChainParamsI);
18
22
this ->bindAndAddMethod (jsonrpc::Procedure (" test_mineBlocks" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_mineBlocksI);
19
23
this ->bindAndAddMethod (jsonrpc::Procedure (" test_modifyTimestamp" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_modifyTimestampI);
20
24
this ->bindAndAddMethod (jsonrpc::Procedure (" test_addBlock" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_STRING, NULL ), &dev::rpc::TestFace::test_addBlockI);
21
25
this ->bindAndAddMethod (jsonrpc::Procedure (" test_rewindToBlock" , jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, " param1" ,jsonrpc::JSON_INTEGER, NULL ), &dev::rpc::TestFace::test_rewindToBlockI);
22
26
}
23
-
27
+ inline virtual void test_getPostStateI (
28
+ const Json::Value& request, Json::Value& response)
29
+ {
30
+ response = this ->test_getPostState (request[0u ]);
31
+ }
24
32
inline virtual void test_setChainParamsI (const Json::Value &request, Json::Value &response)
25
33
{
26
34
response = this ->test_setChainParams (request[0u ]);
@@ -41,6 +49,7 @@ namespace dev {
41
49
{
42
50
response = this ->test_rewindToBlock (request[0u ].asInt ());
43
51
}
52
+ virtual std::string test_getPostState (const Json::Value& param1) = 0;
44
53
virtual bool test_setChainParams (const Json::Value& param1) = 0;
45
54
virtual bool test_mineBlocks (int param1) = 0;
46
55
virtual bool test_modifyTimestamp (int param1) = 0;
0 commit comments