1#include <xrpl/tx/paths/BookTip.h>
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/ledger/ApplyView.h>
5#include <xrpl/ledger/helpers/DirectoryHelpers.h>
6#include <xrpl/ledger/helpers/OfferHelpers.h>
7#include <xrpl/protocol/Book.h>
8#include <xrpl/protocol/Indexes.h>
9#include <xrpl/protocol/STLedgerEntry.h>
A generic endpoint for log messages.
Writeable view to a ledger, for applying a transaction.
BookTip(ApplyView &view, Book const &book)
Create the iterator.
bool step(beast::Journal j)
Erases the current offer and advance to the next offer.
uint256 const & dir() const noexcept
Represents the logical ratio of output currency to input currency.
std::shared_ptr< STLedgerEntry > pointer
Keylet offer(AccountID const &id, std::uint32_t seq) noexcept
An offer from an account.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::uint64_t getQuality(uint256 const &uBase)
TER offerDelete(ApplyView &view, SLE::ref sle, beast::Journal j)
Delete an offer.
uint256 getQualityNext(uint256 const &uBase)
uint256 getBookBase(Book const &book)
bool dirFirst(ApplyView &view, uint256 const &root, SLE::pointer &page, unsigned int &index, uint256 &entry)