xrpld
Loading...
Searching...
No Matches
tx/transactors/account/AccountSet.h
1#pragma once
2
3#include <xrpl/protocol/TxFlags.h>
4#include <xrpl/tx/Transactor.h>
5
6namespace xrpl {
7
8class AccountSet : public Transactor
9{
10public:
12
13 explicit AccountSet(ApplyContext& ctx) : Transactor(ctx)
14 {
15 }
16
17 static TxConsequences
19
20 static std::uint32_t
22
23 static NotTEC
24 preflight(PreflightContext const& ctx);
25
26 static TER
27 preclaim(PreclaimContext const& ctx);
28
29 TER
30 doApply() override;
31
32 void
33 visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override;
34
35 [[nodiscard]] bool
37 STTx const& tx,
38 TER result,
39 XRPAmount fee,
40 ReadView const& view,
41 beast::Journal const& j) override;
42};
43
44} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
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)
static constexpr auto kConsequencesFactory
static std::uint32_t getFlagsMask(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.
static TER preclaim(PreclaimContext const &ctx)
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
State information when applying a tx.
A view into a ledger.
Definition ReadView.h:31
std::shared_ptr< STLedgerEntry const > const & const_ref
ApplyView & view()
Definition Transactor.h:136
Transactor(Transactor const &)=delete
Class describing the consequences to the account of applying a transaction if the transaction consume...
Definition applySteps.h:38
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