|
xrpld
|
#include <Transaction.h>


Classes | |
| struct | SubmitResult |
| struct | CurrentLedgerState |
| struct | Locator |
Public Types | |
| using | pointer = std::shared_ptr<Transaction> |
| using | ref = pointer const& |
Public Member Functions | |
| Transaction (std::shared_ptr< STTx const > const &, std::string &, Application &) noexcept | |
| std::shared_ptr< STTx const > const & | getSTransaction () |
| uint256 const & | getID () const |
| LedgerIndex | getLedger () const |
| bool | isValidated () const |
| TransStatus | getStatus () const |
| TER | getResult () |
| void | setResult (TER terResult) |
| void | setStatus (TransStatus status, std::uint32_t ledgerSeq, std::optional< uint32_t > transactionSeq=std::nullopt, std::optional< uint32_t > networkID=std::nullopt) |
| void | setStatus (TransStatus status) |
| void | setLedger (LedgerIndex ledger) |
| void | setApplying () |
| Set this flag once added to a batch. | |
| bool | getApplying () const |
| Detect if transaction is being batched. | |
| void | clearApplying () |
| Indicate that transaction application has been attempted. | |
| SubmitResult | getSubmitResult () const |
| getSubmitResult Return submit result | |
| void | clearSubmitResult () |
| clearSubmitResult Clear all flags in SubmitResult | |
| void | setApplied () |
| setApplied Set this flag once was applied to open ledger | |
| void | setQueued () |
| setQueued Set this flag once was put into held-txns queue | |
| void | setBroadcast () |
| setBroadcast Set this flag once was broadcasted via network | |
| void | setKept () |
| setKept Set this flag once was put to localtxns queue | |
| std::optional< CurrentLedgerState > | getCurrentLedgerState () const |
| getCurrentLedgerState Get current ledger state of transaction | |
| void | setCurrentLedgerState (LedgerIndex validatedLedger, XRPAmount fee, std::uint32_t accountSeq, std::uint32_t availableSeq) |
| setCurrentLedgerState Set current ledger state of transaction | |
| json::Value | getJson (JsonOptions options, bool binary=false) const |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Static Public Member Functions | |
| static Transaction::pointer | transactionFromSQL (boost::optional< std::uint64_t > const &ledgerSeq, boost::optional< std::string > const &status, Blob const &rawTxn, Application &app) |
| static TransStatus | sqlTransactionStatus (boost::optional< std::string > const &status) |
| static Locator | locate (uint256 const &id, Application &app) |
| static std::variant< std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > >, TxSearched > | load (uint256 const &id, Application &app, ErrorCodeI &ec) |
| static std::variant< std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > >, TxSearched > | load (uint256 const &id, Application &app, ClosedInterval< uint32_t > const &range, ErrorCodeI &ec) |
Public Attributes | |
| friend | Object |
Static Private Member Functions | |
| static std::variant< std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > >, TxSearched > | load (uint256 const &id, Application &app, std::optional< ClosedInterval< uint32_t > > const &range, ErrorCodeI &ec) |
| static auto & | getCounter () noexcept |
Private Attributes | |
| uint256 | transactionID_ |
| LedgerIndex | ledgerIndex_ = 0 |
| std::optional< uint32_t > | txnSeq_ |
| std::optional< uint32_t > | networkID_ |
| TransStatus | status_ = TransStatus::INVALID |
| TER | result_ = temUNCERTAIN |
| bool | applying_ = false |
| SubmitResult | submitResult_ |
| different ways for transaction to be accepted | |
| std::optional< CurrentLedgerState > | currentLedgerState_ |
| std::shared_ptr< STTx const > | transaction_ |
| Application & | app_ |
| beast::Journal | j_ |
Definition at line 40 of file Transaction.h.
Definition at line 44 of file Transaction.h.
| using xrpl::Transaction::ref = pointer const& |
Definition at line 45 of file Transaction.h.
|
noexcept |
Definition at line 35 of file Transaction.cpp.
|
static |
Definition at line 100 of file Transaction.cpp.
|
static |
Definition at line 74 of file Transaction.cpp.
| std::shared_ptr< STTx const > const & xrpl::Transaction::getSTransaction | ( | ) |
Definition at line 64 of file Transaction.h.
| uint256 const & xrpl::Transaction::getID | ( | ) | const |
Definition at line 70 of file Transaction.h.
| LedgerIndex xrpl::Transaction::getLedger | ( | ) | const |
Definition at line 76 of file Transaction.h.
| bool xrpl::Transaction::isValidated | ( | ) | const |
Definition at line 82 of file Transaction.h.
| TransStatus xrpl::Transaction::getStatus | ( | ) | const |
Definition at line 88 of file Transaction.h.
| TER xrpl::Transaction::getResult | ( | ) |
Definition at line 94 of file Transaction.h.
| void xrpl::Transaction::setResult | ( | TER | terResult | ) |
Definition at line 100 of file Transaction.h.
| void xrpl::Transaction::setStatus | ( | TransStatus | status, |
| std::uint32_t | ledgerSeq, | ||
| std::optional< uint32_t > | transactionSeq = std::nullopt, | ||
| std::optional< uint32_t > | networkID = std::nullopt ) |
| void xrpl::Transaction::setStatus | ( | TransStatus | status | ) |
Definition at line 113 of file Transaction.h.
| void xrpl::Transaction::setLedger | ( | LedgerIndex | ledger | ) |
Definition at line 119 of file Transaction.h.
| void xrpl::Transaction::setApplying | ( | ) |
Set this flag once added to a batch.
Definition at line 128 of file Transaction.h.
| bool xrpl::Transaction::getApplying | ( | ) | const |
Detect if transaction is being batched.
Definition at line 141 of file Transaction.h.
| void xrpl::Transaction::clearApplying | ( | ) |
Indicate that transaction application has been attempted.
Definition at line 152 of file Transaction.h.
| SubmitResult xrpl::Transaction::getSubmitResult | ( | ) | const |
getSubmitResult Return submit result
Definition at line 194 of file Transaction.h.
| void xrpl::Transaction::clearSubmitResult | ( | ) |
clearSubmitResult Clear all flags in SubmitResult
Definition at line 203 of file Transaction.h.
| void xrpl::Transaction::setApplied | ( | ) |
setApplied Set this flag once was applied to open ledger
Definition at line 212 of file Transaction.h.
| void xrpl::Transaction::setQueued | ( | ) |
setQueued Set this flag once was put into held-txns queue
Definition at line 221 of file Transaction.h.
| void xrpl::Transaction::setBroadcast | ( | ) |
setBroadcast Set this flag once was broadcasted via network
Definition at line 230 of file Transaction.h.
| void xrpl::Transaction::setKept | ( | ) |
setKept Set this flag once was put to localtxns queue
Definition at line 239 of file Transaction.h.
| std::optional< CurrentLedgerState > xrpl::Transaction::getCurrentLedgerState | ( | ) | const |
getCurrentLedgerState Get current ledger state of transaction
Definition at line 271 of file Transaction.h.
| void xrpl::Transaction::setCurrentLedgerState | ( | LedgerIndex | validatedLedger, |
| XRPAmount | fee, | ||
| std::uint32_t | accountSeq, | ||
| std::uint32_t | availableSeq ) |
setCurrentLedgerState Set current ledger state of transaction
| validatedLedger | Number of last validated ledger |
| fee | minimum Fee required for the transaction |
| accountSeq | First valid account sequence in current ledger |
| availableSeq | First available sequence for the transaction |
Definition at line 284 of file Transaction.h.
| json::Value xrpl::Transaction::getJson | ( | JsonOptions | options, |
| bool | binary = false ) const |
Definition at line 150 of file Transaction.cpp.
|
static |
|
static |
Definition at line 119 of file Transaction.cpp.
|
static |
Definition at line 125 of file Transaction.cpp.
|
staticprivate |
Definition at line 137 of file Transaction.cpp.
|
staticprivatenoexceptinherited |
Definition at line 109 of file CountedObject.h.
|
private |
Definition at line 367 of file Transaction.h.
|
private |
Definition at line 369 of file Transaction.h.
|
private |
Definition at line 370 of file Transaction.h.
|
private |
Definition at line 371 of file Transaction.h.
|
private |
Definition at line 372 of file Transaction.h.
|
private |
Definition at line 373 of file Transaction.h.
|
private |
Definition at line 392 of file Transaction.h.
|
private |
different ways for transaction to be accepted
Definition at line 395 of file Transaction.h.
|
private |
Definition at line 397 of file Transaction.h.
|
private |
Definition at line 399 of file Transaction.h.
|
private |
Definition at line 400 of file Transaction.h.
|
private |
Definition at line 401 of file Transaction.h.
|
inherited |
Definition at line 134 of file CountedObject.h.