xrpld
Loading...
Searching...
No Matches
tx/transactors/dex/AMMBid.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
45class AMMBid : public Transactor
46{
47public:
49
50 explicit AMMBid(ApplyContext& ctx) : Transactor(ctx)
51 {
52 }
53
54 static bool
56
57 static NotTEC
58 preflight(PreflightContext const& ctx);
59
60 static TER
61 preclaim(PreclaimContext const& ctx);
62
63 TER
64 doApply() override;
65
66 void
67 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
68
69 [[nodiscard]] bool
71 STTx const& tx,
72 TER result,
73 XRPAmount fee,
74 ReadView const& view,
75 beast::Journal const& j) override;
76};
77
78} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
TER doApply() override
Definition AMMBid.cpp:367
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.
Definition AMMBid.cpp:387
static constexpr auto kConsequencesFactory
static NotTEC preflight(PreflightContext const &ctx)
Definition AMMBid.cpp:50
AMMBid(ApplyContext &ctx)
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition AMMBid.cpp:37
void visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override
Inspect a single ledger entry modified by this transaction.
Definition AMMBid.cpp:381
static TER preclaim(PreclaimContext const &ctx)
Definition AMMBid.cpp:105
State information when applying a tx.
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