xrpld
Loading...
Searching...
No Matches
tx/transactors/check/CheckCash.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
7class CheckCash : public Transactor
8{
9public:
11
12 explicit CheckCash(ApplyContext& ctx) : Transactor(ctx)
13 {
14 }
15
16 static bool
18
19 static NotTEC
20 preflight(PreflightContext const& ctx);
21
22 static TER
23 preclaim(PreclaimContext const& ctx);
24
25 TER
26 doApply() override;
27
28 void
29 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
30
31 [[nodiscard]] bool
33 STTx const& tx,
34 TER result,
35 XRPAmount fee,
36 ReadView const& view,
37 beast::Journal const& j) override;
38};
39
40} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
State information when applying a tx.
TER doApply() override
static TER preclaim(PreclaimContext const &ctx)
Definition CheckCash.cpp:81
static NotTEC preflight(PreflightContext const &ctx)
Definition CheckCash.cpp:50
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition CheckCash.cpp:39
void visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override
Inspect a single ledger entry modified by this transaction.
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 constexpr auto kConsequencesFactory
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