xrpld
Loading...
Searching...
No Matches
tx/transactors/token/ConfidentialMPTClawback.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
24{
25public:
27
29 {
30 }
31
32 static NotTEC
33 preflight(PreflightContext const& ctx);
34
35 static XRPAmount
36 calculateBaseFee(ReadView const& view, STTx const& tx);
37
38 static TER
39 preclaim(PreclaimContext const& ctx);
40
41 TER
42 doApply() override;
43
44 void
46 bool isDelete,
47 std::shared_ptr<SLE const> const& before,
48 std::shared_ptr<SLE const> const& after) override;
49
50 [[nodiscard]] bool
52 STTx const& tx,
53 TER result,
54 XRPAmount fee,
55 ReadView const& view,
56 beast::Journal const& j) override;
57};
58
59} // 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 NotTEC preflight(PreflightContext const &ctx)
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
void visitInvariantEntry(bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after) 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.
A view into a ledger.
Definition ReadView.h:31
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