rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ripple::TxMeta Class Reference

#include <TxMeta.h>

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

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 34 of file TxMeta.h.

Constructor & Destructor Documentation

◆ TxMeta() [1/3]

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

Definition at line 74 of file TxMeta.cpp.

◆ TxMeta() [2/3]

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

Definition at line 61 of file TxMeta.cpp.

◆ TxMeta() [3/3]

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

Definition at line 42 of file TxMeta.cpp.

Member Function Documentation

◆ getTxID()

uint256 const & ripple::TxMeta::getTxID ( ) const

Definition at line 42 of file TxMeta.h.

◆ getLgrSeq()

std::uint32_t ripple::TxMeta::getLgrSeq ( ) const

Definition at line 47 of file TxMeta.h.

◆ getResult()

int ripple::TxMeta::getResult ( ) const

Definition at line 52 of file TxMeta.h.

◆ getResultTER()

TER ripple::TxMeta::getResultTER ( ) const

Definition at line 57 of file TxMeta.h.

◆ getIndex()

std::uint32_t ripple::TxMeta::getIndex ( ) const

Definition at line 62 of file TxMeta.h.

◆ setAffectedNode()

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

Definition at line 85 of file TxMeta.cpp.

◆ getAffectedNode() [1/2]

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

Definition at line 184 of file TxMeta.cpp.

◆ getAffectedNode() [2/2]

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

Definition at line 205 of file TxMeta.cpp.

◆ getAffectedAccounts()

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

Return a list of accounts affected by this transaction.

Definition at line 112 of file TxMeta.cpp.

◆ getJson()

Json::Value ripple::TxMeta::getJson ( JsonOptions  p) const

Definition at line 79 of file TxMeta.h.

◆ addRaw()

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

Definition at line 237 of file TxMeta.cpp.

◆ getAsObject()

STObject ripple::TxMeta::getAsObject ( ) const

Definition at line 220 of file TxMeta.cpp.

◆ getNodes() [1/2]

STArray & ripple::TxMeta::getNodes ( )

Definition at line 89 of file TxMeta.h.

◆ getNodes() [2/2]

STArray const & ripple::TxMeta::getNodes ( ) const

Definition at line 94 of file TxMeta.h.

◆ setAdditionalFields()

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

Definition at line 100 of file TxMeta.h.

◆ getDeliveredAmount()

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

Definition at line 110 of file TxMeta.h.

◆ setDeliveredAmount()

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

Definition at line 116 of file TxMeta.h.

◆ setParentBatchID()

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

Definition at line 122 of file TxMeta.h.

Member Data Documentation

◆ transactionID_

uint256 ripple::TxMeta::transactionID_
private

Definition at line 128 of file TxMeta.h.

◆ ledgerSeq_

std::uint32_t ripple::TxMeta::ledgerSeq_
private

Definition at line 129 of file TxMeta.h.

◆ index_

std::uint32_t ripple::TxMeta::index_
private

Definition at line 130 of file TxMeta.h.

◆ result_

int ripple::TxMeta::result_
private

Definition at line 131 of file TxMeta.h.

◆ deliveredAmount_

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

Definition at line 133 of file TxMeta.h.

◆ parentBatchID_

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

Definition at line 134 of file TxMeta.h.

◆ nodes_

STArray ripple::TxMeta::nodes_
private

Definition at line 136 of file TxMeta.h.