rippled
Loading...
Searching...
No Matches
xrpld
rpc
Request.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/json/json_value.h>
5
#include <xrpl/resource/Charge.h>
6
#include <xrpl/resource/Fees.h>
7
8
namespace
xrpl
{
9
10
class
Application;
11
12
namespace
RPC {
13
14
struct
Request
15
{
16
explicit
Request
(
beast::Journal
journal_,
std::string
const
& method_,
Json::Value
& params_,
Application
& app_)
17
:
journal
(journal_),
method
(method_),
params
(params_),
fee
(Resource::feeReferenceRPC),
app
(app_)
18
{
19
}
20
21
// [in] The Journal for logging
22
beast::Journal
const
journal
;
23
24
// [in] The JSON-RPC method
25
std::string
method
;
26
27
// [in] The Ripple-specific "params" object
28
Json::Value
params
;
29
30
// [in, out] The resource cost for the command
31
Resource::Charge
fee
;
32
33
// [out] The JSON-RPC response
34
Json::Value
result
;
35
36
// [in] The Application instance
37
Application
&
app
;
38
39
private
:
40
Request
&
41
operator=
(
Request
const
&);
42
};
43
44
}
// namespace RPC
45
}
// namespace xrpl
std::string
Json::Value
Represents a JSON value.
Definition
json_value.h:130
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:40
xrpl::Application
Definition
Application.h:95
xrpl::Resource::Charge
A consumption charge.
Definition
Charge.h:10
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::RPC::Request
Definition
Request.h:15
xrpl::RPC::Request::params
Json::Value params
Definition
Request.h:28
xrpl::RPC::Request::app
Application & app
Definition
Request.h:37
xrpl::RPC::Request::operator=
Request & operator=(Request const &)
xrpl::RPC::Request::Request
Request(beast::Journal journal_, std::string const &method_, Json::Value ¶ms_, Application &app_)
Definition
Request.h:16
xrpl::RPC::Request::method
std::string method
Definition
Request.h:25
xrpl::RPC::Request::fee
Resource::Charge fee
Definition
Request.h:31
xrpl::RPC::Request::result
Json::Value result
Definition
Request.h:34
xrpl::RPC::Request::journal
beast::Journal const journal
Definition
Request.h:22
Generated by
1.9.8