mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-01 17:42:28 +00:00
29 lines
691 B
C++
29 lines
691 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>
|
|
|
|
#include <memory>
|
|
|
|
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, std::shared_ptr<SLE> const& sle, beast::Journal j);
|
|
|
|
} // namespace xrpl
|