xrpld
Loading...
Searching...
No Matches
tx/transactors/token/ConfidentialMPTHolderKeyUpdate.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/core/ServiceRegistry.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/protocol/STTx.h>
7#include <xrpl/protocol/TER.h>
8#include <xrpl/protocol/XRPAmount.h>
9#include <xrpl/tx/ApplyContext.h>
10#include <xrpl/tx/Transactor.h>
11
12#include <cstdint>
13
14namespace xrpl {
15
46{
47public:
49
53
54 static bool
56
57 static std::uint32_t
59
60 static NotTEC
61 preflight(PreflightContext const& ctx);
62
63 static XRPAmount
64 calculateBaseFee(ReadView const& view, STTx const& tx);
65
66 static TER
67 preclaim(PreclaimContext const& ctx);
68
69 TER
70 doApply() override;
71
72 void
73 visitInvariantEntry(bool isDelete, SLE::ConstRef before, SLE::ConstRef after) override;
74
75 [[nodiscard]] bool
77 STTx const& tx,
78 TER result,
79 XRPAmount fee,
80 ReadView const& view,
81 beast::Journal const& j) override;
82};
83
84} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:44
State information when applying a tx.
void visitInvariantEntry(bool isDelete, SLE::ConstRef before, SLE::ConstRef after) override
Inspect a single ledger entry modified by this transaction.
static bool checkExtraFeatures(PreflightContext const &ctx)
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
static NotTEC preflight(PreflightContext const &ctx)
static TER preclaim(PreclaimContext 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 XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
A view into a ledger.
Definition ReadView.h:41
std::shared_ptr< STLedgerEntry const > const & ConstRef
ApplyView & view()
Definition Transactor.h:184
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:614
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
Definition View.cpp:644
TERSubset< CanCvtToTER > TER
Definition TER.h:654
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:92
State information when preflighting a tx.
Definition Transactor.h:39