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

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

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

Public Types

using pointer = std::shared_ptr< AcceptedLedgerTx >
 
using ref = const pointer &
 

Public Member Functions

 AcceptedLedgerTx (std::shared_ptr< ReadView const > const &ledger, std::shared_ptr< STTx const > const &, std::shared_ptr< STObject const > const &, AccountIDCache const &, Logs &)
 
 AcceptedLedgerTx (std::shared_ptr< ReadView const > const &, std::shared_ptr< STTx const > const &, TER, AccountIDCache const &, Logs &)
 
std::shared_ptr< STTx const > const & getTxn () const
 
std::shared_ptr< 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
 
bool isApplied () const
 
int getIndex () const
 
std::string getEscMeta () const
 
Json::Value getJson () const
 

Private Member Functions

void buildJson ()
 

Private Attributes

std::shared_ptr< ReadView const > mLedger
 
std::shared_ptr< STTx const > mTxn
 
std::shared_ptr< TxMetamMeta
 
TER mResult
 
boost::container::flat_set< AccountIDmAffected
 
Blob mRawMeta
 
Json::Value mJson
 
AccountIDCache const & accountCache_
 
Logslogs_
 

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,

See also
{uri}

Definition at line 50 of file AcceptedLedgerTx.h.

Member Typedef Documentation

◆ pointer

Definition at line 53 of file AcceptedLedgerTx.h.

◆ ref

Definition at line 54 of file AcceptedLedgerTx.h.

Constructor & Destructor Documentation

◆ AcceptedLedgerTx() [1/2]

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

Definition at line 29 of file AcceptedLedgerTx.cpp.

◆ AcceptedLedgerTx() [2/2]

ripple::AcceptedLedgerTx::AcceptedLedgerTx ( std::shared_ptr< ReadView const > const &  ledger,
std::shared_ptr< STTx const > const &  txn,
TER  result,
AccountIDCache const &  accountCache,
Logs logs 
)

Definition at line 56 of file AcceptedLedgerTx.cpp.

Member Function Documentation

◆ getTxn()

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

Definition at line 71 of file AcceptedLedgerTx.h.

◆ getMeta()

std::shared_ptr<TxMeta> const& ripple::AcceptedLedgerTx::getMeta ( ) const

Definition at line 76 of file AcceptedLedgerTx.h.

◆ getAffected()

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

Definition at line 82 of file AcceptedLedgerTx.h.

◆ getTransactionID()

TxID ripple::AcceptedLedgerTx::getTransactionID ( ) const

Definition at line 88 of file AcceptedLedgerTx.h.

◆ getTxnType()

TxType ripple::AcceptedLedgerTx::getTxnType ( ) const

Definition at line 93 of file AcceptedLedgerTx.h.

◆ getResult()

TER ripple::AcceptedLedgerTx::getResult ( ) const

Definition at line 98 of file AcceptedLedgerTx.h.

◆ getTxnSeq()

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

Definition at line 103 of file AcceptedLedgerTx.h.

◆ isApplied()

bool ripple::AcceptedLedgerTx::isApplied ( ) const

Definition at line 109 of file AcceptedLedgerTx.h.

◆ getIndex()

int ripple::AcceptedLedgerTx::getIndex ( ) const

Definition at line 114 of file AcceptedLedgerTx.h.

◆ getEscMeta()

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

Definition at line 74 of file AcceptedLedgerTx.cpp.

◆ getJson()

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

Definition at line 121 of file AcceptedLedgerTx.h.

◆ buildJson()

void ripple::AcceptedLedgerTx::buildJson ( )
private

Definition at line 81 of file AcceptedLedgerTx.cpp.

Member Data Documentation

◆ mLedger

std::shared_ptr<ReadView const> ripple::AcceptedLedgerTx::mLedger
private

Definition at line 127 of file AcceptedLedgerTx.h.

◆ mTxn

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

Definition at line 128 of file AcceptedLedgerTx.h.

◆ mMeta

std::shared_ptr<TxMeta> ripple::AcceptedLedgerTx::mMeta
private

Definition at line 129 of file AcceptedLedgerTx.h.

◆ mResult

TER ripple::AcceptedLedgerTx::mResult
private

Definition at line 130 of file AcceptedLedgerTx.h.

◆ mAffected

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

Definition at line 131 of file AcceptedLedgerTx.h.

◆ mRawMeta

Blob ripple::AcceptedLedgerTx::mRawMeta
private

Definition at line 132 of file AcceptedLedgerTx.h.

◆ mJson

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

Definition at line 133 of file AcceptedLedgerTx.h.

◆ accountCache_

AccountIDCache const& ripple::AcceptedLedgerTx::accountCache_
private

Definition at line 134 of file AcceptedLedgerTx.h.

◆ logs_

Logs& ripple::AcceptedLedgerTx::logs_
private

Definition at line 135 of file AcceptedLedgerTx.h.