xrpld
Loading...
Searching...
No Matches
tx/transactors/token/ConfidentialMPTSend.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 <memory>
13
14namespace xrpl {
15
43{
44public:
46
48 {
49 }
50
51 static bool
53
54 static NotTEC
55 preflight(PreflightContext const& ctx);
56
57 static XRPAmount
58 calculateBaseFee(ReadView const& view, STTx const& tx);
59
60 static TER
61 preclaim(PreclaimContext const& ctx);
62
63 TER
64 doApply() override;
65
66 void
68 bool isDelete,
69 std::shared_ptr<SLE const> const& before,
70 std::shared_ptr<SLE const> const& after) override;
71
72 [[nodiscard]] bool
74 STTx const& tx,
75 TER result,
76 XRPAmount fee,
77 ReadView const& view,
78 beast::Journal const& j) override;
79};
80
81} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:44
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:41
ApplyView & view()
Definition Transactor.h:175
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:607
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?
Definition View.cpp:572
TERSubset< CanCvtToTER > TER
Definition TER.h:647
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:83
State information when preflighting a tx.
Definition Transactor.h:38