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

#include <TxMeta.h>

Collaboration diagram for xrpl::TxMeta:

Public Member Functions

 TxMeta (uint256 const &transactionID, std::uint32_t ledger)
 TxMeta (uint256 const &txID, std::uint32_t ledger, Blob const &)
 TxMeta (uint256 const &txID, std::uint32_t ledger, STObject const &)
uint256 const & getTxID () const
std::uint32_t getLgrSeq () const
int getResult () const
TER getResultTER () const
std::uint32_t getIndex () const
void setAffectedNode (uint256 const &, SField const &type, std::uint16_t nodeType)
STObjectgetAffectedNode (SLE::ref node, SField const &type)
STObjectgetAffectedNode (uint256 const &)
boost::container::flat_set< AccountIDgetAffectedAccounts () const
 Return a list of accounts affected by this transaction.
json::Value getJson (JsonOptions p) const
void addRaw (Serializer &, TER, std::uint32_t index)
STObject getAsObject () const
STArraygetNodes ()
STArray const & getNodes () const
void setAdditionalFields (STObject const &obj)
std::optional< STAmount > const & getDeliveredAmount () const
void setDeliveredAmount (std::optional< STAmount > const &amount)
void setParentBatchID (std::optional< uint256 > const &id)

Private Attributes

uint256 transactionID_
std::uint32_t ledgerSeq_
std::uint32_t index_
int result_
std::optional< STAmountdeliveredAmount_
std::optional< uint256parentBatchID_
STArray nodes_

Detailed Description

Definition at line 14 of file TxMeta.h.

Constructor & Destructor Documentation

◆ TxMeta() [1/3]

xrpl::TxMeta::TxMeta ( uint256 const & transactionID,
std::uint32_t ledger )

Definition at line 52 of file TxMeta.cpp.

◆ TxMeta() [2/3]

xrpl::TxMeta::TxMeta ( uint256 const & txID,
std::uint32_t ledger,
Blob const & vec )

Definition at line 39 of file TxMeta.cpp.

◆ TxMeta() [3/3]

xrpl::TxMeta::TxMeta ( uint256 const & txID,
std::uint32_t ledger,
STObject const & obj )

Definition at line 25 of file TxMeta.cpp.

Member Function Documentation

◆ getTxID()

uint256 const & xrpl::TxMeta::getTxID ( ) const
nodiscard

Definition at line 22 of file TxMeta.h.

◆ getLgrSeq()

std::uint32_t xrpl::TxMeta::getLgrSeq ( ) const
nodiscard

Definition at line 27 of file TxMeta.h.

◆ getResult()

int xrpl::TxMeta::getResult ( ) const
nodiscard

Definition at line 32 of file TxMeta.h.

◆ getResultTER()

TER xrpl::TxMeta::getResultTER ( ) const
nodiscard

Definition at line 37 of file TxMeta.h.

◆ getIndex()

std::uint32_t xrpl::TxMeta::getIndex ( ) const
nodiscard

Definition at line 42 of file TxMeta.h.

◆ setAffectedNode()

void xrpl::TxMeta::setAffectedNode ( uint256 const & node,
SField const & type,
std::uint16_t nodeType )

Definition at line 63 of file TxMeta.cpp.

◆ getAffectedNode() [1/2]

STObject & xrpl::TxMeta::getAffectedNode ( SLE::ref node,
SField const & type )

Definition at line 149 of file TxMeta.cpp.

◆ getAffectedNode() [2/2]

STObject & xrpl::TxMeta::getAffectedNode ( uint256 const & node)

Definition at line 169 of file TxMeta.cpp.

◆ getAffectedAccounts()

boost::container::flat_set< AccountID > xrpl::TxMeta::getAffectedAccounts ( ) const
nodiscard

Return a list of accounts affected by this transaction.

Definition at line 85 of file TxMeta.cpp.

◆ getJson()

json::Value xrpl::TxMeta::getJson ( JsonOptions p) const
nodiscard

Definition at line 59 of file TxMeta.h.

◆ addRaw()

void xrpl::TxMeta::addRaw ( Serializer & s,
TER result,
std::uint32_t index )

Definition at line 201 of file TxMeta.cpp.

◆ getAsObject()

STObject xrpl::TxMeta::getAsObject ( ) const
nodiscard

Definition at line 184 of file TxMeta.cpp.

◆ getNodes() [1/2]

STArray & xrpl::TxMeta::getNodes ( )

Definition at line 69 of file TxMeta.h.

◆ getNodes() [2/2]

STArray const & xrpl::TxMeta::getNodes ( ) const
nodiscard

Definition at line 74 of file TxMeta.h.

◆ setAdditionalFields()

void xrpl::TxMeta::setAdditionalFields ( STObject const & obj)

Definition at line 80 of file TxMeta.h.

◆ getDeliveredAmount()

std::optional< STAmount > const & xrpl::TxMeta::getDeliveredAmount ( ) const
nodiscard

Definition at line 90 of file TxMeta.h.

◆ setDeliveredAmount()

void xrpl::TxMeta::setDeliveredAmount ( std::optional< STAmount > const & amount)

Definition at line 96 of file TxMeta.h.

◆ setParentBatchID()

void xrpl::TxMeta::setParentBatchID ( std::optional< uint256 > const & id)

Definition at line 102 of file TxMeta.h.

Member Data Documentation

◆ transactionID_

uint256 xrpl::TxMeta::transactionID_
private

Definition at line 108 of file TxMeta.h.

◆ ledgerSeq_

std::uint32_t xrpl::TxMeta::ledgerSeq_
private

Definition at line 109 of file TxMeta.h.

◆ index_

std::uint32_t xrpl::TxMeta::index_
private

Definition at line 110 of file TxMeta.h.

◆ result_

int xrpl::TxMeta::result_
private

Definition at line 111 of file TxMeta.h.

◆ deliveredAmount_

std::optional<STAmount> xrpl::TxMeta::deliveredAmount_
private

Definition at line 113 of file TxMeta.h.

◆ parentBatchID_

std::optional<uint256> xrpl::TxMeta::parentBatchID_
private

Definition at line 114 of file TxMeta.h.

◆ nodes_

STArray xrpl::TxMeta::nodes_
private

Definition at line 116 of file TxMeta.h.