xrpld
Loading...
Searching...
No Matches
tx/transactors/token/ConfidentialMPTSend.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
34{
35public:
37
39 {
40 }
41
42 static bool
44
45 static NotTEC
46 preflight(PreflightContext const& ctx);
47
48 static XRPAmount
49 calculateBaseFee(ReadView const& view, STTx const& tx);
50
51 static TER
52 preclaim(PreclaimContext const& ctx);
53
54 TER
55 doApply() override;
56
57 void
59 bool isDelete,
60 std::shared_ptr<SLE const> const& before,
61 std::shared_ptr<SLE const> const& after) override;
62
63 [[nodiscard]] bool
65 STTx const& tx,
66 TER result,
67 XRPAmount fee,
68 ReadView const& view,
69 beast::Journal const& j) override;
70};
71
72} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
State information when applying a tx.
void visitInvariantEntry(bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after) override
static TER preclaim(PreclaimContext const &ctx)
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
static bool checkExtraFeatures(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 NotTEC preflight(PreflightContext const &ctx)
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