xrpld
Loading...
Searching...
No Matches
xrpld
rpc
DeliveredAmount.h
1
#pragma once
2
3
#include <xrpl/protocol/Protocol.h>
4
#include <xrpl/protocol/STAmount.h>
5
6
#include <
functional
>
7
#include <
memory
>
8
9
namespace
json
{
10
class
Value
;
11
}
// namespace json
12
13
namespace
xrpl
{
14
15
class
ReadView
;
16
class
Transaction
;
17
class
TxMeta
;
18
class
STTx
;
19
20
namespace
RPC
{
21
22
struct
JsonContext
;
23
24
struct
Context
;
25
35
void
36
insertDeliveredAmount
(
37
json::Value& meta,
38
ReadView
const
&,
39
std::shared_ptr<STTx const>
const
& serializedTx,
40
TxMeta
const
&);
41
42
void
43
insertDeliveredAmount
(
44
json::Value& meta,
45
RPC::JsonContext
const
&,
46
std::shared_ptr<Transaction>
const
&,
47
TxMeta
const
&);
48
void
49
insertDeliveredAmount
(
50
json::Value& meta,
51
RPC::JsonContext
const
&,
52
std::shared_ptr<STTx const>
const
&,
53
TxMeta
const
&);
54
55
std::optional<STAmount>
56
getDeliveredAmount
(
57
RPC::Context
const
& context,
58
std::shared_ptr<STTx const>
const
& serializedTx,
59
TxMeta
const
& transactionMeta,
60
LedgerIndex
const
& ledgerIndex);
62
63
}
// namespace RPC
64
}
// namespace xrpl
json::Value
Represents a JSON value.
Definition
json_value.h:130
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STTx
Definition
STTx.h:28
xrpl::Transaction
Definition
Transaction.h:42
xrpl::TxMeta
Definition
TxMeta.h:15
functional
memory
json
JSON (JavaScript Object Notation).
Definition
json_errors.h:5
xrpl::RPC
API version numbers used in later API versions.
Definition
ApiVersion.h:35
xrpl::RPC::getDeliveredAmount
std::optional< STAmount > getDeliveredAmount(RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta, LedgerIndex const &ledgerIndex)
Definition
DeliveredAmount.cpp:135
xrpl::RPC::insertDeliveredAmount
void insertDeliveredAmount(json::Value &meta, ReadView const &, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &)
Add a delivered_amount field to the meta input/output parameter.
Definition
DeliveredAmount.cpp:87
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::LedgerIndex
std::uint32_t LedgerIndex
A ledger index.
Definition
Protocol.h:259
xrpl::RPC::Context
The context of information needed to call an RPC.
Definition
Context.h:19
xrpl::RPC::JsonContext
Definition
Context.h:33
Generated by
1.16.1