xrpld
Loading...
Searching...
No Matches
tx/transactors/account/SetRegularKey.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
8{
9public:
11
13 {
14 }
15
16 static NotTEC
17 preflight(PreflightContext const& ctx);
18
19 static XRPAmount
20 calculateBaseFee(ReadView const& view, STTx const& tx);
21
22 TER
23 doApply() override;
24
25 void
26 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
27
28 [[nodiscard]] bool
30 STTx const& tx,
31 TER result,
32 XRPAmount fee,
33 ReadView const& view,
34 beast::Journal const& j) override;
35};
36
37} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
State information when applying a tx.
A view into a ledger.
Definition ReadView.h:31
std::shared_ptr< STLedgerEntry const > const & const_ref
static NotTEC preflight(PreflightContext const &ctx)
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 XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
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.
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 preflighting a tx.
Definition Transactor.h:18