rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
Payment.h
1
#pragma once
2
3
#include <xrpld/app/tx/detail/Transactor.h>
4
5
namespace
xrpl
{
6
7
class
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
15
public
:
16
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Custom
};
17
18
explicit
Payment
(
ApplyContext
& ctx) :
Transactor
(ctx)
19
{
20
}
21
22
static
TxConsequences
23
makeTxConsequences
(
PreflightContext
const
& ctx);
24
25
static
bool
26
checkExtraFeatures
(
PreflightContext
const
& ctx);
27
28
static
std::uint32_t
29
getFlagsMask
(
PreflightContext
const
& ctx);
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
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:17
xrpl::Payment
Definition
Payment.h:8
xrpl::Payment::checkPermission
static NotTEC checkPermission(ReadView const &view, STTx const &tx)
Definition
Payment.cpp:218
xrpl::Payment::makeTxConsequences
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition
Payment.cpp:17
xrpl::Payment::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
Payment.cpp:68
xrpl::Payment::getFlagsMask
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition
Payment.cpp:57
xrpl::Payment::MaxPathLength
static std::size_t const MaxPathLength
Definition
Payment.h:13
xrpl::Payment::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
Payment.cpp:46
xrpl::Payment::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
Payment.h:16
xrpl::Payment::doApply
TER doApply() override
Definition
Payment.cpp:343
xrpl::Payment::MaxPathSize
static std::size_t const MaxPathSize
Definition
Payment.h:10
xrpl::Payment::Payment
Payment(ApplyContext &ctx)
Definition
Payment.h:18
xrpl::Payment::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
Payment.cpp:254
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STTx
Definition
STTx.h:28
xrpl::TERSubset
Definition
TER.h:395
xrpl::Transactor
Definition
Transactor.h:106
xrpl::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:122
xrpl::Transactor::Custom
@ Custom
Definition
Transactor.h:122
xrpl::Transactor::view
ApplyView & view()
Definition
Transactor.h:128
xrpl::TxConsequences
Class describing the consequences to the account of applying a transaction if the transaction consume...
Definition
applySteps.h:37
std::uint32_t
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
std::size_t
xrpl::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:53
xrpl::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:15
Generated by
1.9.8