xrpld
Loading...
Searching...
No Matches
tx/transactors/dex/OfferCancel.h
1#pragma once
2
3#include <xrpl/protocol/TxFlags.h>
4#include <xrpl/tx/Transactor.h>
5
6namespace xrpl {
7
8class OfferCancel : public Transactor
9{
10public:
12
13 explicit OfferCancel(ApplyContext& ctx) : Transactor(ctx)
14 {
15 }
16
17 static NotTEC
18 preflight(PreflightContext const& ctx);
19
20 static TER
21 preclaim(PreclaimContext const& ctx);
22
23 TER
24 doApply() override;
25
26 void
27 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
28
29 [[nodiscard]] bool
31 STTx const& tx,
32 TER result,
33 XRPAmount fee,
34 ReadView const& view,
35 beast::Journal const& j) override;
36};
37
38} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
State information when applying a tx.
static TER preclaim(PreclaimContext const &ctx)
static constexpr auto kConsequencesFactory
TER doApply() override
bool finalizeInvariants(STTx const &tx, TER result, XRPAmount fee, ReadView const &view, beast::Journal const &j) override
Check transaction-specific post-conditions after all entries have been visited.
static NotTEC preflight(PreflightContext const &ctx)
void visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override
Inspect a single ledger entry modified by this transaction.
A view into a ledger.
Definition ReadView.h:31
std::shared_ptr< STLedgerEntry const > const & const_ref
ApplyView & view()
Definition Transactor.h:136
Transactor(Transactor const &)=delete
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:594
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
Definition View.cpp:554
TERSubset< CanCvtToTER > TER
Definition TER.h:634
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:61
State information when preflighting a tx.
Definition Transactor.h:18