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} // namespace Json
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
44 Json::Value& meta,
45 RPC::JsonContext const&,
47 TxMeta const&);
48void
50 Json::Value& meta,
51 RPC::JsonContext const&,
53 TxMeta const&);
54
57 RPC::Context const& context,
58 std::shared_ptr<STTx const> const& serializedTx,
59 TxMeta const& transactionMeta,
60 LedgerIndex const& ledgerIndex);
63} // namespace RPC
64} // 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:255