rippled
Loading...
Searching...
No Matches
DeliveredAmount.h
1#ifndef XRPL_RPC_DELIVEREDAMOUNT_H_INCLUDED
2#define XRPL_RPC_DELIVEREDAMOUNT_H_INCLUDED
3
4#include <xrpl/protocol/Protocol.h>
5#include <xrpl/protocol/STAmount.h>
6
7#include <functional>
8#include <memory>
9
10namespace Json {
11class Value;
12}
13
14namespace ripple {
15
16class ReadView;
17class Transaction;
18class TxMeta;
19class STTx;
20
21namespace RPC {
22
23struct JsonContext;
24
25struct Context;
26
36void
38 Json::Value& meta,
39 ReadView const&,
40 std::shared_ptr<STTx const> const& serializedTx,
41 TxMeta const&);
42
43void
45 Json::Value& meta,
46 RPC::JsonContext const&,
48 TxMeta const&);
49void
51 Json::Value& meta,
52 RPC::JsonContext const&,
54 TxMeta const&);
55
58 RPC::Context const& context,
59 std::shared_ptr<STTx const> const& serializedTx,
60 TxMeta const& transactionMeta,
61 LedgerIndex const& ledgerIndex);
64} // namespace RPC
65} // namespace ripple
66
67#endif
Represents a JSON value.
Definition json_value.h:130
JSON (JavaScript Object Notation).
Definition json_errors.h:6
std::optional< STAmount > getDeliveredAmount(RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta, LedgerIndex const &ledgerIndex)
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.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:120