rippled
Loading...
Searching...
No Matches
Payment.h
1#ifndef XRPL_TX_PAYMENT_H_INCLUDED
2#define XRPL_TX_PAYMENT_H_INCLUDED
3
4#include <xrpld/app/tx/detail/Transactor.h>
5
6namespace ripple {
7
8class Payment : public Transactor
9{
10 /* The largest number of paths we allow */
11 static std::size_t const MaxPathSize = 6;
12
13 /* The longest path we allow */
14 static std::size_t const MaxPathLength = 8;
15
16public:
18
19 explicit Payment(ApplyContext& ctx) : Transactor(ctx)
20 {
21 }
22
23 static TxConsequences
25
26 static bool
28
29 static std::uint32_t
31
32 static NotTEC
33 preflight(PreflightContext const& ctx);
34
35 static NotTEC
36 checkPermission(ReadView const& view, STTx const& tx);
37
38 static TER
39 preclaim(PreclaimContext const& ctx);
40
41 TER
42 doApply() override;
43};
44
45} // namespace ripple
46
47#endif
State information when applying a tx.
static NotTEC checkPermission(ReadView const &view, STTx const &tx)
Definition Payment.cpp:235
static std::size_t const MaxPathSize
Definition Payment.h:11
Payment(ApplyContext &ctx)
Definition Payment.h:19
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition Payment.cpp:50
TER doApply() override
Definition Payment.cpp:374
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition Payment.cpp:63
static TER preclaim(PreclaimContext const &ctx)
Definition Payment.cpp:274
static NotTEC preflight(PreflightContext const &ctx)
Definition Payment.cpp:74
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition Payment.h:17
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition Payment.cpp:17
static std::size_t const MaxPathLength
Definition Payment.h:14
A view into a ledger.
Definition ReadView.h:32
ApplyView & view()
Definition Transactor.h:144
Class describing the consequences to the account of applying a transaction if the transaction consume...
Definition applySteps.h:39
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
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:16