|
rippled
|


Classes | |
| struct | Cache |
Public Member Functions | |
| BookStep (StrandContext const &ctx, Issue const &in, Issue const &out) | |
| Book const & | book () const |
| std::optional< EitherAmount > | cachedIn () const override |
| std::optional< EitherAmount > | cachedOut () const override |
| DebtDirection | debtDirection (ReadView const &sb, StrandDirection dir) const override |
| std::optional< Book > | bookStepBook () const override |
| std::pair< std::optional< Quality >, DebtDirection > | qualityUpperBound (ReadView const &v, DebtDirection prevStepDir) const override |
| std::pair< std::optional< QualityFunction >, DebtDirection > | getQualityFunc (ReadView const &v, DebtDirection prevStepDir) const override |
| std::uint32_t | offersUsed () const override |
| std::pair< TIn, TOut > | revImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, TOut const &out) |
| std::pair< TIn, TOut > | fwdImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, TIn const &in) |
| std::pair< bool, EitherAmount > | validFwd (PaymentSandbox &sb, ApplyView &afView, EitherAmount const &in) override |
| TER | check (StrandContext const &ctx) const |
| bool | inactive () const override |
Protected Types | |
| enum class | OfferType { AMM , CLOB } |
Protected Member Functions | |
| std::string | logStringImpl (char const *name) const |
Protected Attributes | |
| Book | book_ |
| AccountID | strandSrc_ |
| AccountID | strandDst_ |
| Step const *const | prevStep_ = nullptr |
| bool const | ownerPaysTransferFee_ |
| bool | inactive_ = false |
| std::uint32_t | offersUsed_ = 0 |
| Number of offers consumed or partially consumed the last time the step ran, including expired and unfunded offers. | |
| std::optional< AMMLiquidity< TIn, TOut > > | ammLiquidity_ |
| beast::Journal const | j_ |
| std::optional< Cache > | cache_ |
Static Protected Attributes | |
| static constexpr uint32_t | MaxOffersToConsume {1000} |
Private Member Functions | |
| bool | equal (Step const &rhs) const override |
| template<class Callback > | |
| std::pair< boost::container::flat_set< uint256 >, std::uint32_t > | forEachOffer (PaymentSandbox &sb, ApplyView &afView, DebtDirection prevStepDebtDir, Callback &callback) const |
| template<template< typename, typename > typename Offer> | |
| void | consumeOffer (PaymentSandbox &sb, Offer< TIn, TOut > &offer, TAmounts< TIn, TOut > const &ofrAmt, TAmounts< TIn, TOut > const &stepAmt, TOut const &ownerGives) const |
| std::optional< AMMOffer< TIn, TOut > > | getAMMOffer (ReadView const &view, std::optional< Quality > const &clobQuality) const |
| std::optional< std::variant< Quality, AMMOffer< TIn, TOut > > > | tip (ReadView const &view) const |
| std::optional< std::pair< Quality, OfferType > > | tipOfferQuality (ReadView const &view) const |
| std::optional< QualityFunction > | tipOfferQualityF (ReadView const &view) const |
Friends | |
| bool | operator== (BookStep const &lhs, BookStep const &rhs) |
| bool | operator!= (BookStep const &lhs, BookStep const &rhs) |
Definition at line 26 of file BookStep.cpp.
|
strongprotected |
| Enumerator | |
|---|---|
| AMM | |
| CLOB | |
Definition at line 29 of file BookStep.cpp.
| ripple::BookStep< TIn, TOut, TDerived >::BookStep | ( | StrandContext const & | ctx, |
| Issue const & | in, | ||
| Issue const & | out | ||
| ) |
Definition at line 67 of file BookStep.cpp.
| Book const & ripple::BookStep< TIn, TOut, TDerived >::book | ( | ) | const |
Definition at line 88 of file BookStep.cpp.
|
override |
Definition at line 94 of file BookStep.cpp.
|
override |
Definition at line 102 of file BookStep.cpp.
|
override |
Definition at line 110 of file BookStep.cpp.
|
override |
Definition at line 117 of file BookStep.cpp.
|
override |
Definition at line 556 of file BookStep.cpp.
|
override |
Definition at line 582 of file BookStep.cpp.
|
override |
Definition at line 624 of file BookStep.cpp.
| std::pair< TIn, TOut > ripple::BookStep< TIn, TOut, TDerived >::revImp | ( | PaymentSandbox & | sb, |
| ApplyView & | afView, | ||
| boost::container::flat_set< uint256 > & | ofrsToRm, | ||
| TOut const & | out | ||
| ) |
Definition at line 986 of file BookStep.cpp.
| std::pair< TIn, TOut > ripple::BookStep< TIn, TOut, TDerived >::fwdImp | ( | PaymentSandbox & | sb, |
| ApplyView & | afView, | ||
| boost::container::flat_set< uint256 > & | ofrsToRm, | ||
| TIn const & | in | ||
| ) |
Definition at line 1100 of file BookStep.cpp.
|
override |
Definition at line 1264 of file BookStep.cpp.
| TER ripple::BookStep< TIn, TOut, TDerived >::check | ( | StrandContext const & | ctx | ) | const |
Definition at line 1302 of file BookStep.cpp.
|
override |
Definition at line 155 of file BookStep.cpp.
|
protected |
Definition at line 162 of file BookStep.cpp.
|
overrideprivate |
Definition at line 547 of file BookStep.cpp.
|
private |
Definition at line 689 of file BookStep.cpp.
|
private |
Definition at line 850 of file BookStep.cpp.
|
private |
Definition at line 899 of file BookStep.cpp.
|
private |
Definition at line 910 of file BookStep.cpp.
|
private |
Definition at line 950 of file BookStep.cpp.
|
private |
Definition at line 964 of file BookStep.cpp.
|
friend |
Definition at line 175 of file BookStep.cpp.
|
friend |
Definition at line 181 of file BookStep.cpp.
|
staticconstexprprotected |
Definition at line 31 of file BookStep.cpp.
|
protected |
Definition at line 32 of file BookStep.cpp.
|
protected |
Definition at line 33 of file BookStep.cpp.
|
protected |
Definition at line 34 of file BookStep.cpp.
|
protected |
Definition at line 36 of file BookStep.cpp.
|
protected |
Definition at line 37 of file BookStep.cpp.
|
protected |
Definition at line 39 of file BookStep.cpp.
|
protected |
Number of offers consumed or partially consumed the last time the step ran, including expired and unfunded offers.
N.B. This this not the total number offers consumed by this step for the entire payment, it is only the number the last time it ran. Offers may be partially consumed multiple times during a payment.
Definition at line 47 of file BookStep.cpp.
|
protected |
Definition at line 51 of file BookStep.cpp.
|
protected |
Definition at line 52 of file BookStep.cpp.
|
protected |
Definition at line 64 of file BookStep.cpp.