rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
src/xrpld/app/tx/detail/PayChan.h
1
#ifndef XRPL_TX_PAYCHAN_H_INCLUDED
2
#define XRPL_TX_PAYCHAN_H_INCLUDED
3
4
#include <xrpld/app/tx/detail/Transactor.h>
5
6
namespace
xrpl
{
7
8
class
PayChanCreate
:
public
Transactor
9
{
10
public
:
11
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Custom
};
12
13
explicit
PayChanCreate
(
ApplyContext
& ctx) :
Transactor
(ctx)
14
{
15
}
16
17
static
TxConsequences
18
makeTxConsequences
(
PreflightContext
const
& ctx);
19
20
static
NotTEC
21
preflight
(
PreflightContext
const
& ctx);
22
23
static
TER
24
preclaim
(
PreclaimContext
const
& ctx);
25
26
TER
27
doApply
()
override
;
28
};
29
30
using
PaymentChannelCreate
=
PayChanCreate
;
31
32
//------------------------------------------------------------------------------
33
34
class
PayChanFund
:
public
Transactor
35
{
36
public
:
37
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Custom
};
38
39
explicit
PayChanFund
(
ApplyContext
& ctx) :
Transactor
(ctx)
40
{
41
}
42
43
static
TxConsequences
44
makeTxConsequences
(
PreflightContext
const
& ctx);
45
46
static
NotTEC
47
preflight
(
PreflightContext
const
& ctx);
48
49
TER
50
doApply
()
override
;
51
};
52
53
using
PaymentChannelFund
=
PayChanFund
;
54
55
//------------------------------------------------------------------------------
56
57
class
PayChanClaim
:
public
Transactor
58
{
59
public
:
60
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
61
62
explicit
PayChanClaim
(
ApplyContext
& ctx) :
Transactor
(ctx)
63
{
64
}
65
66
static
bool
67
checkExtraFeatures
(
PreflightContext
const
& ctx);
68
69
static
std::uint32_t
70
getFlagsMask
(
PreflightContext
const
& ctx);
71
72
static
NotTEC
73
preflight
(
PreflightContext
const
& ctx);
74
75
static
TER
76
preclaim
(
PreclaimContext
const
& ctx);
77
78
TER
79
doApply
()
override
;
80
};
81
82
using
PaymentChannelClaim
=
PayChanClaim
;
83
84
}
// namespace xrpl
85
86
#endif
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:18
xrpl::PayChanClaim
Definition
src/xrpld/app/tx/detail/PayChan.h:58
xrpl::PayChanClaim::doApply
TER doApply() override
Definition
PayChan.cpp:469
xrpl::PayChanClaim::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:60
xrpl::PayChanClaim::getFlagsMask
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition
PayChan.cpp:395
xrpl::PayChanClaim::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
PayChan.cpp:455
xrpl::PayChanClaim::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
PayChan.cpp:388
xrpl::PayChanClaim::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:401
xrpl::PayChanClaim::PayChanClaim
PayChanClaim(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:62
xrpl::PayChanCreate
Definition
src/xrpld/app/tx/detail/PayChan.h:9
xrpl::PayChanCreate::makeTxConsequences
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition
PayChan.cpp:153
xrpl::PayChanCreate::doApply
TER doApply() override
Definition
PayChan.cpp:225
xrpl::PayChanCreate::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
PayChan.cpp:174
xrpl::PayChanCreate::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:159
xrpl::PayChanCreate::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:11
xrpl::PayChanCreate::PayChanCreate
PayChanCreate(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:13
xrpl::PayChanFund
Definition
src/xrpld/app/tx/detail/PayChan.h:35
xrpl::PayChanFund::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:37
xrpl::PayChanFund::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:304
xrpl::PayChanFund::PayChanFund
PayChanFund(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:39
xrpl::PayChanFund::doApply
TER doApply() override
Definition
PayChan.cpp:313
xrpl::PayChanFund::makeTxConsequences
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition
PayChan.cpp:298
xrpl::TERSubset
Definition
TER.h:396
xrpl::Transactor
Definition
Transactor.h:122
xrpl::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:138
xrpl::Transactor::Custom
@ Custom
Definition
Transactor.h:138
xrpl::Transactor::Normal
@ Normal
Definition
Transactor.h:138
xrpl::TxConsequences
Class describing the consequences to the account of applying a transaction if the transaction consume...
Definition
applySteps.h:39
std::uint32_t
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
xrpl::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:61
xrpl::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:16
Generated by
1.9.8