20 #include <ripple/app/main/Application.h>
21 #include <ripple/app/paths/TrustLine.h>
22 #include <ripple/protocol/STAmount.h>
34 , mBalance(sle->getFieldAmount(
sfBalance))
35 , mFlags(sle->getFieldU32(
sfFlags))
36 , mViewLowest(mLowLimit.getIssuer() == viewAccount)
71 auto ret = T::makeItem(accountID, sleCur);
83 return detail::getTrustLineItems<PathFindTrustLine>(accountID, view);
110 return detail::getTrustLineItems<RPCTrustLine>(accountID, view);
const SF_UINT32 sfHighQualityIn
TrustLineBase(std::shared_ptr< SLE const > const &sle, AccountID const &viewAccount)
static std::optional< PathFindTrustLine > makeItem(AccountID const &accountID, std::shared_ptr< SLE const > const &sle)
AccountID const & getIssuer() const
void forEachItem(ReadView const &view, AccountID const &id, std::function< void(std::shared_ptr< SLE const > const &)> f)
Iterate all items in an account's owner directory.
const SF_UINT32 sfLowQualityOut
const SF_AMOUNT sfLowLimit
static std::vector< PathFindTrustLine > getItems(AccountID const &accountID, ReadView const &view)
const STAmount mHighLimit
@ objectValue
object value (collection of name/value pairs).
const SF_UINT32 sfLowQualityIn
const SF_AMOUNT sfHighLimit
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::vector< T > getTrustLineItems(AccountID const &accountID, ReadView const &view)
static std::optional< RPCTrustLine > makeItem(AccountID const &accountID, std::shared_ptr< SLE const > const &sle)
const SF_AMOUNT sfBalance
const SF_UINT32 sfHighQualityOut
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
@ ltRIPPLE_STATE
A ledger object which describes a bidirectional trust line.
Wraps a trust line SLE for convenience.
static std::vector< RPCTrustLine > getItems(AccountID const &accountID, ReadView const &view)