xrpld
Loading...
Searching...
No Matches
xrpl::AcceptedLedgerTx Class Reference

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

#include <AcceptedLedgerTx.h>

Inheritance diagram for xrpl::AcceptedLedgerTx:
Collaboration diagram for xrpl::AcceptedLedgerTx:

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

Public Attributes

friend Object

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

std::shared_ptr< STTx const > txn_
TxMeta meta_
boost::container::flat_set< AccountIDaffected_
Blob rawMeta_
json::Value json_

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,

  • The transaction in JSON form
  • Which accounts are affected This is used by InfoSub to report to clients
  • Cached stuff

Definition at line 25 of file AcceptedLedgerTx.h.

Constructor & Destructor Documentation

◆ AcceptedLedgerTx()

xrpl::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 24 of file AcceptedLedgerTx.cpp.

Member Function Documentation

◆ getTxn()

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

Definition at line 34 of file AcceptedLedgerTx.h.

◆ getMeta()

TxMeta const & xrpl::AcceptedLedgerTx::getMeta ( ) const
nodiscard

Definition at line 39 of file AcceptedLedgerTx.h.

◆ getAffected()

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

Definition at line 45 of file AcceptedLedgerTx.h.

◆ getTransactionID()

TxID xrpl::AcceptedLedgerTx::getTransactionID ( ) const
nodiscard

Definition at line 51 of file AcceptedLedgerTx.h.

◆ getTxnType()

TxType xrpl::AcceptedLedgerTx::getTxnType ( ) const
nodiscard

Definition at line 56 of file AcceptedLedgerTx.h.

◆ getResult()

TER xrpl::AcceptedLedgerTx::getResult ( ) const
nodiscard

Definition at line 61 of file AcceptedLedgerTx.h.

◆ getTxnSeq()

std::uint32_t xrpl::AcceptedLedgerTx::getTxnSeq ( ) const
nodiscard

Definition at line 66 of file AcceptedLedgerTx.h.

◆ getEscMeta()

std::string xrpl::AcceptedLedgerTx::getEscMeta ( ) const
nodiscard

Definition at line 74 of file AcceptedLedgerTx.cpp.

◆ getJson()

json::Value const & xrpl::AcceptedLedgerTx::getJson ( ) const
nodiscard

Definition at line 74 of file AcceptedLedgerTx.h.

◆ getCounter()

auto & xrpl::CountedObject< AcceptedLedgerTx >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

Member Data Documentation

◆ txn_

std::shared_ptr<STTx const> xrpl::AcceptedLedgerTx::txn_
private

Definition at line 80 of file AcceptedLedgerTx.h.

◆ meta_

TxMeta xrpl::AcceptedLedgerTx::meta_
private

Definition at line 81 of file AcceptedLedgerTx.h.

◆ affected_

boost::container::flat_set<AccountID> xrpl::AcceptedLedgerTx::affected_
private

Definition at line 82 of file AcceptedLedgerTx.h.

◆ rawMeta_

Blob xrpl::AcceptedLedgerTx::rawMeta_
private

Definition at line 83 of file AcceptedLedgerTx.h.

◆ json_

json::Value xrpl::AcceptedLedgerTx::json_
private

Definition at line 84 of file AcceptedLedgerTx.h.

◆ Object

Definition at line 134 of file CountedObject.h.