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