rippled
Loading...
Searching...
No Matches
Payment.h
1#pragma once
2
3#include <xrpld/app/tx/detail/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:218
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition Payment.cpp:17
static NotTEC preflight(PreflightContext const &ctx)
Definition Payment.cpp:68
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition Payment.cpp:57
static std::size_t const MaxPathLength
Definition Payment.h:13
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition Payment.cpp:46
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition Payment.h:16
TER doApply() override
Definition Payment.cpp:343
static std::size_t const MaxPathSize
Definition Payment.h:10
Payment(ApplyContext &ctx)
Definition Payment.h:18
static TER preclaim(PreclaimContext const &ctx)
Definition Payment.cpp:254
A view into a ledger.
Definition ReadView.h:31
ApplyView & view()
Definition Transactor.h:128
Class describing the consequences to the account of applying a transaction if the transaction consume...
Definition applySteps.h:37
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:53
State information when preflighting a tx.
Definition Transactor.h:15