|
xrpld
|


Public Member Functions | |
| BookOfferCrossingStep (StrandContext const &ctx, Asset const &in, Asset const &out) | |
| template<template< typename, typename > typename Offer> | |
| bool | limitSelfCrossQuality (AccountID const &strandSrc, AccountID const &strandDst, Offer< TIn, TOut > const &offer, std::optional< Quality > &ofrQ, FlowOfferStream< TIn, TOut > &offers, bool const offerAttempted) const |
| bool | checkQualityThreshold (Quality const &quality) const |
| std::optional< Quality > | qualityThreshold (Quality const &lobQuality) const |
| std::uint32_t | getOfrInRate (Step const *prevStep, AccountID const &owner, std::uint32_t trIn) const |
| std::uint32_t | getOfrOutRate (Step const *prevStep, AccountID const &owner, AccountID const &strandDst, std::uint32_t trOut) const |
| Quality | adjustQualityWithFees (ReadView const &v, Quality const &ofrQ, DebtDirection prevStepDir, WaiveTransferFee waiveFee, OfferType offerType) const |
| std::string | logString () const override |
| 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 | OfferType |
Protected Member Functions | |
| std::string | logStringImpl (char const *name) const |
| Rate | rate (ReadView const &view, Asset const &asset, AccountID const &dstAccount) const |
Protected Attributes | |
| Book | book_ |
| AccountID | strandSrc_ |
| AccountID | strandDst_ |
| Step const *const | prevStep_ |
| bool const | ownerPaysTransferFee_ |
| bool | inactive_ |
| std::uint32_t | offersUsed_ |
| 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_ |
| Asset const | strandDeliver_ |
| std::optional< TIn > | maxIn_ |
| std::optional< Cache > | cache_ |
Static Protected Attributes | |
| static constexpr uint32_t | kMaxOffersToConsume |
Private Member Functions | |
| bool | equal (Step const &rhs) const override |
| std::pair< boost::container::flat_set< UInt256 >, std::uint32_t > | forEachOffer (PaymentSandbox &sb, ApplyView &afView, DebtDirection prevStepDebtDir, Callback &callback) const |
| void | consumeOffer (PaymentSandbox &sb, Offer< TIn, TOut > &offer, TAmounts< TIn, TOut > const &ofrAmt, TAmounts< TIn, TOut > const &stepAmt, TOut const &ownerGives) const |
| void | tryConsumeOffer (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 |
| bool | checkMPTDEX (ReadView const &view, AccountID const &owner) const |
Static Private Member Functions | |
| static Quality | getQuality (std::optional< Quality > const &limitQuality) |
Private Attributes | |
| bool const | defaultPath_ |
| Quality const | qualityThreshold_ |
| friend | TDerived |
Definition at line 394 of file BookStep.cpp.
|
strongprotectedinherited |
Definition at line 59 of file BookStep.cpp.
| xrpl::BookOfferCrossingStep< TIn, TOut >::BookOfferCrossingStep | ( | StrandContext const & | ctx, |
| Asset const & | in, | ||
| Asset const & | out ) |
Definition at line 413 of file BookStep.cpp.
|
staticprivate |
Definition at line 403 of file BookStep.cpp.
| bool xrpl::BookOfferCrossingStep< TIn, TOut >::limitSelfCrossQuality | ( | AccountID const & | strandSrc, |
| AccountID const & | strandDst, | ||
| Offer< TIn, TOut > const & | offer, | ||
| std::optional< Quality > & | ofrQ, | ||
| FlowOfferStream< TIn, TOut > & | offers, | ||
| bool const | offerAttempted ) const |
Definition at line 422 of file BookStep.cpp.
|
nodiscard |
Definition at line 480 of file BookStep.cpp.
|
nodiscard |
Definition at line 496 of file BookStep.cpp.
| std::uint32_t xrpl::BookOfferCrossingStep< TIn, TOut >::getOfrInRate | ( | Step const * | prevStep, |
| AccountID const & | owner, | ||
| std::uint32_t | trIn ) const |
Definition at line 507 of file BookStep.cpp.
| std::uint32_t xrpl::BookOfferCrossingStep< TIn, TOut >::getOfrOutRate | ( | Step const * | prevStep, |
| AccountID const & | owner, | ||
| AccountID const & | strandDst, | ||
| std::uint32_t | trOut ) const |
Definition at line 518 of file BookStep.cpp.
|
nodiscard |
Definition at line 532 of file BookStep.cpp.
|
nodiscardoverride |
Definition at line 565 of file BookStep.cpp.
|
nodiscardinherited |
Definition at line 135 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 141 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 149 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 157 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 163 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 169 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 172 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 175 of file BookStep.cpp.
|
inherited |
Definition at line 178 of file BookStep.cpp.
|
inherited |
Definition at line 185 of file BookStep.cpp.
|
overrideinherited |
Definition at line 192 of file BookStep.cpp.
|
nodiscardinherited |
Definition at line 196 of file BookStep.cpp.
|
nodiscardoverrideinherited |
Definition at line 199 of file BookStep.cpp.
|
protectedinherited |
Definition at line 206 of file BookStep.cpp.
|
nodiscardprotectedinherited |
Definition at line 216 of file BookStep.cpp.
|
nodiscardoverrideprivateinherited |
Definition at line 232 of file BookStep.cpp.
|
privateinherited |
Definition at line 241 of file BookStep.cpp.
|
privateinherited |
Definition at line 250 of file BookStep.cpp.
|
privateinherited |
Definition at line 259 of file BookStep.cpp.
|
privateinherited |
Definition at line 270 of file BookStep.cpp.
|
privateinherited |
Definition at line 275 of file BookStep.cpp.
|
privateinherited |
Definition at line 280 of file BookStep.cpp.
|
nodiscardprivateinherited |
Definition at line 284 of file BookStep.cpp.
|
nodiscardprivateinherited |
Definition at line 289 of file BookStep.cpp.
|
private |
Definition at line 571 of file BookStep.cpp.
|
private |
Definition at line 572 of file BookStep.cpp.
|
staticconstexprprotectedinherited |
Definition at line 61 of file BookStep.cpp.
|
protectedinherited |
Definition at line 62 of file BookStep.cpp.
|
protectedinherited |
Definition at line 63 of file BookStep.cpp.
|
protectedinherited |
Definition at line 64 of file BookStep.cpp.
|
protectedinherited |
Definition at line 66 of file BookStep.cpp.
|
protectedinherited |
Definition at line 67 of file BookStep.cpp.
|
protectedinherited |
Definition at line 69 of file BookStep.cpp.
|
protectedinherited |
Number of offers consumed or partially consumed the last time the step ran, including expired and unfunded offers.
N.B. This is 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 78 of file BookStep.cpp.
|
protectedinherited |
Definition at line 82 of file BookStep.cpp.
|
protectedinherited |
Definition at line 83 of file BookStep.cpp.
|
protectedinherited |
Definition at line 84 of file BookStep.cpp.
|
protectedinherited |
Definition at line 89 of file BookStep.cpp.
|
protectedinherited |
Definition at line 101 of file BookStep.cpp.
|
privateinherited |
Definition at line 291 of file BookStep.cpp.