rippled
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::AcceptedLedgerTx Class Reference

A transaction that is in a closed ledger. More...

Inheritance diagram for ripple::AcceptedLedgerTx:
Inheritance graph
[legend]
Collaboration diagram for ripple::AcceptedLedgerTx:
Collaboration graph
[legend]

Public Member Functions

 AcceptedLedgerTx (std::shared_ptr< ReadView const > const &ledger, std::shared_ptr< STTx const > const &, std::shared_ptr< STObject const > const &)
 
std::shared_ptr< STTx const > const & getTxn () const
 
TxMeta const & getMeta () const
 
boost::container::flat_set< AccountID > const & getAffected () const
 
TxID getTransactionID () const
 
TxType getTxnType () const
 
TER getResult () const
 
std::uint32_t getTxnSeq () const
 
std::string getEscMeta () const
 
Json::Value const & getJson () const
 

Static Private Member Functions

static auto & getCounter () noexcept
 

Private Attributes

std::shared_ptr< STTx const > mTxn
 
TxMeta mMeta
 
boost::container::flat_set< AccountIDmAffected
 
Blob mRawMeta
 
Json::Value mJson
 

Detailed Description

A transaction that is in a closed ledger.

Description

An accepted ledger transaction contains additional information that the server needs to tell clients about the transaction. For example,

Definition at line 43 of file AcceptedLedgerTx.h.

Constructor & Destructor Documentation

◆ AcceptedLedgerTx()

ripple::AcceptedLedgerTx::AcceptedLedgerTx ( std::shared_ptr< ReadView const > const &  ledger,
std::shared_ptr< STTx const > const &  txn,
std::shared_ptr< STObject const > const &  met 
)

Definition at line 28 of file AcceptedLedgerTx.cpp.

Member Function Documentation

◆ getTxn()

std::shared_ptr<STTx const> const& ripple::AcceptedLedgerTx::getTxn ( ) const

Definition at line 52 of file AcceptedLedgerTx.h.

◆ getMeta()

TxMeta const& ripple::AcceptedLedgerTx::getMeta ( ) const

Definition at line 57 of file AcceptedLedgerTx.h.

◆ getAffected()

boost::container::flat_set<AccountID> const& ripple::AcceptedLedgerTx::getAffected ( ) const

Definition at line 63 of file AcceptedLedgerTx.h.

◆ getTransactionID()

TxID ripple::AcceptedLedgerTx::getTransactionID ( ) const

Definition at line 69 of file AcceptedLedgerTx.h.

◆ getTxnType()

TxType ripple::AcceptedLedgerTx::getTxnType ( ) const

Definition at line 74 of file AcceptedLedgerTx.h.

◆ getResult()

TER ripple::AcceptedLedgerTx::getResult ( ) const

Definition at line 79 of file AcceptedLedgerTx.h.

◆ getTxnSeq()

std::uint32_t ripple::AcceptedLedgerTx::getTxnSeq ( ) const

Definition at line 84 of file AcceptedLedgerTx.h.

◆ getEscMeta()

std::string ripple::AcceptedLedgerTx::getEscMeta ( ) const

Definition at line 77 of file AcceptedLedgerTx.cpp.

◆ getJson()

Json::Value const& ripple::AcceptedLedgerTx::getJson ( ) const

Definition at line 92 of file AcceptedLedgerTx.h.

◆ getCounter()

static auto& ripple::CountedObject< AcceptedLedgerTx >::getCounter
staticprivatenoexceptinherited

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ mTxn

std::shared_ptr<STTx const> ripple::AcceptedLedgerTx::mTxn
private

Definition at line 98 of file AcceptedLedgerTx.h.

◆ mMeta

TxMeta ripple::AcceptedLedgerTx::mMeta
private

Definition at line 99 of file AcceptedLedgerTx.h.

◆ mAffected

boost::container::flat_set<AccountID> ripple::AcceptedLedgerTx::mAffected
private

Definition at line 100 of file AcceptedLedgerTx.h.

◆ mRawMeta

Blob ripple::AcceptedLedgerTx::mRawMeta
private

Definition at line 101 of file AcceptedLedgerTx.h.

◆ mJson

Json::Value ripple::AcceptedLedgerTx::mJson
private

Definition at line 102 of file AcceptedLedgerTx.h.