1#ifndef XRPL_APP_PATHS_IMPL_STEP_CHECKS_H_INCLUDED
2#define XRPL_APP_PATHS_IMPL_STEP_CHECKS_H_INCLUDED
4#include <xrpl/basics/Log.h>
5#include <xrpl/beast/utility/Journal.h>
6#include <xrpl/ledger/ReadView.h>
7#include <xrpl/ledger/View.h>
8#include <xrpl/protocol/AccountID.h>
9#include <xrpl/protocol/UintTypes.h>
20 XRPL_ASSERT(src != dst,
"ripple::checkFreeze : unequal input accounts");
48 sleDst && sleDst->isFieldPresent(sfAMMID))
57 (*sleAmm)[sfAsset].get<
Issue>(),
58 (*sleAmm)[sfAsset2].get<
Issue>()))
82 if (!sleIn || !sleOut)
88 JLOG(j.
info()) <<
"Path violates noRipple constraint between " << prev
89 <<
", " << cur <<
" and " << next;
A generic endpoint for log messages.
A currency issued by an account.
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
virtual Rules const & rules() const =0
Returns the tx processing rules.
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
Keylet amm(Asset const &issue1, Asset const &issue2) noexcept
AMM entry.
Keylet line(AccountID const &id0, AccountID const &id1, Currency const ¤cy) noexcept
The index of a trust line for a given currency.
Keylet account(AccountID const &id) noexcept
AccountID root.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
TER checkFreeze(ReadView const &view, AccountID const &src, AccountID const &dst, Currency const ¤cy)
TER checkNoRipple(ReadView const &view, AccountID const &prev, AccountID const &cur, AccountID const &next, Currency const ¤cy, beast::Journal j)
bool isLPTokenFrozen(ReadView const &view, AccountID const &account, Issue const &asset, Issue const &asset2)
TERSubset< CanCvtToTER > TER