xrpld
Loading...
Searching...
No Matches
tx/transactors/oracle/OracleDelete.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
15
17{
18public:
20
21 explicit OracleDelete(ApplyContext& ctx) : Transactor(ctx)
22 {
23 }
24
25 static NotTEC
26 preflight(PreflightContext const& ctx);
27
28 static TER
29 preclaim(PreclaimContext const& ctx);
30
31 TER
32 doApply() override;
33
34 void
35 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
36
37 [[nodiscard]] bool
39 STTx const& tx,
40 TER result,
41 XRPAmount fee,
42 ReadView const& view,
43 beast::Journal const& j) override;
44
45 static TER
47};
48
49} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
State information when applying a tx.
Writeable view to a ledger, for applying a transaction.
Definition ApplyView.h:118
void visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override
Inspect a single ledger entry modified by this transaction.
TER doApply() override
static TER deleteOracle(ApplyView &view, SLE::ref sle, AccountID const &account, beast::Journal j)
static constexpr auto kConsequencesFactory
static NotTEC preflight(PreflightContext const &ctx)
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 TER preclaim(PreclaimContext const &ctx)
A view into a ledger.
Definition ReadView.h:31
std::shared_ptr< STLedgerEntry > const & ref
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
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:28
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