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