rippled
Loading...
Searching...
No Matches
AcceptedLedgerTx.h
1#pragma once
2
3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/ledger/ReadView.h>
5#include <xrpl/protocol/AccountID.h>
6#include <xrpl/protocol/STTx.h>
7#include <xrpl/protocol/TxMeta.h>
8
9#include <boost/container/flat_set.hpp>
10
11namespace xrpl {
12
25class AcceptedLedgerTx : public CountedObject<AcceptedLedgerTx>
26{
27public:
32
34 getTxn() const
35 {
36 return mTxn;
37 }
38 TxMeta const&
39 getMeta() const
40 {
41 return mMeta;
42 }
43
44 boost::container::flat_set<AccountID> const&
46 {
47 return mAffected;
48 }
49
50 TxID
52 {
53 return mTxn->getTransactionID();
54 }
55 TxType
56 getTxnType() const
57 {
58 return mTxn->getTxnType();
59 }
60 TER
61 getResult() const
62 {
63 return mMeta.getResultTER();
64 }
66 getTxnSeq() const
67 {
68 return mMeta.getIndex();
69 }
71 getEscMeta() const;
72
73 Json::Value const&
74 getJson() const
75 {
76 return mJson;
77 }
78
79private:
82 boost::container::flat_set<AccountID> mAffected;
85};
86
87} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
A transaction that is in a closed ledger.
boost::container::flat_set< AccountID > mAffected
TxMeta const & getMeta() const
std::shared_ptr< STTx const > mTxn
boost::container::flat_set< AccountID > const & getAffected() const
std::string getEscMeta() const
Json::Value const & getJson() const
std::uint32_t getTxnSeq() const
std::shared_ptr< STTx const > const & getTxn() const
Tracks the number of instances of an object.
TER getResultTER() const
Definition TxMeta.h:37
std::uint32_t getIndex() const
Definition TxMeta.h:42
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
TxType
Transaction type identifiers.
Definition TxFormats.h:37