rippled
Loading...
Searching...
No Matches
tx/transactors/payment/Payment.h
1#pragma once
2
3#include <xrpl/tx/Transactor.h>
4
5namespace xrpl {
6
7class Payment : public Transactor
8{
9 /* The largest number of paths we allow */
10 static std::size_t const MaxPathSize = 6;
11
12 /* The longest path we allow */
13 static std::size_t const MaxPathLength = 8;
14
15public:
17
18 explicit Payment(ApplyContext& ctx) : Transactor(ctx)
19 {
20 }
21
22 static TxConsequences
24
25 static bool
27
28 static std::uint32_t
30
31 static NotTEC
32 preflight(PreflightContext const& ctx);
33
34 static NotTEC
35 checkPermission(ReadView const& view, STTx const& tx);
36
37 static TER
38 preclaim(PreclaimContext const& ctx);
39
40 TER
41 doApply() override;
42};
43
44} // namespace xrpl
State information when applying a tx.
static NotTEC checkPermission(ReadView const &view, STTx const &tx)
Definition Payment.cpp:229
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition Payment.cpp:19
static NotTEC preflight(PreflightContext const &ctx)
Definition Payment.cpp:77
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition Payment.cpp:66
static std::size_t const MaxPathLength
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition Payment.cpp:55
static constexpr ConsequencesFactoryType ConsequencesFactory
TER doApply() override
Definition Payment.cpp:361
static std::size_t const MaxPathSize
static TER preclaim(PreclaimContext const &ctx)
Definition Payment.cpp:267
A view into a ledger.
Definition ReadView.h:31
ApplyView & view()
Definition Transactor.h:132
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
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:57
State information when preflighting a tx.
Definition Transactor.h:14