Files
rippled/include/xrpl/ledger/helpers/OfferHelpers.h
2026-07-13 10:40:40 +00:00

28 lines
656 B
C++

#pragma once
#include <xrpl/beast/utility/Journal.h>
#include <xrpl/ledger/ApplyView.h>
#include <xrpl/protocol/STLedgerEntry.h>
#include <xrpl/protocol/TER.h>
namespace xrpl {
/**
* Delete an offer.
*
* Requirements:
* The offer must exist.
* The caller must have already checked permissions.
*
* @param view The ApplyView to modify.
* @param sle The offer to delete.
* @param j Journal for logging.
*
* @return tesSUCCESS on success, otherwise an error code.
*/
// [[nodiscard]] // nodiscard commented out so Flow, BookTip and others compile.
TER
offerDelete(ApplyView& view, SLE::ref sle, beast::Journal j);
} // namespace xrpl