rippled
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 <functional>
7#include <memory>
8
9namespace Json {
10class Value;
11}
12
13namespace xrpl {
14
15class ReadView;
16class Transaction;
17class TxMeta;
18class STTx;
19
20namespace RPC {
21
22struct JsonContext;
23
24struct Context;
25
35void
37 Json::Value& meta,
38 ReadView const&,
39 std::shared_ptr<STTx const> const& serializedTx,
40 TxMeta const&);
41
42void
43insertDeliveredAmount(Json::Value& meta, RPC::JsonContext const&, std::shared_ptr<Transaction> const&, TxMeta const&);
44void
45insertDeliveredAmount(Json::Value& meta, RPC::JsonContext const&, std::shared_ptr<STTx const> const&, TxMeta const&);
46
49 RPC::Context const& context,
50 std::shared_ptr<STTx const> const& serializedTx,
51 TxMeta const& transactionMeta,
52 LedgerIndex const& ledgerIndex);
55} // namespace RPC
56} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
JSON (JavaScript Object Notation).
Definition json_errors.h:5
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:5
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:254