rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
src/xrpld/app/tx/detail/PayChan.h
1
#pragma once
2
3
#include <xrpld/app/tx/detail/Transactor.h>
4
5
namespace
xrpl
{
6
7
class
PayChanCreate
:
public
Transactor
8
{
9
public
:
10
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Custom
};
11
12
explicit
PayChanCreate
(
ApplyContext
& ctx) :
Transactor
(ctx)
13
{
14
}
15
16
static
TxConsequences
17
makeTxConsequences
(
PreflightContext
const
& ctx);
18
19
static
NotTEC
20
preflight
(
PreflightContext
const
& ctx);
21
22
static
TER
23
preclaim
(
PreclaimContext
const
& ctx);
24
25
TER
26
doApply
()
override
;
27
};
28
29
using
PaymentChannelCreate
=
PayChanCreate
;
30
31
//------------------------------------------------------------------------------
32
33
class
PayChanFund
:
public
Transactor
34
{
35
public
:
36
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Custom
};
37
38
explicit
PayChanFund
(
ApplyContext
& ctx) :
Transactor
(ctx)
39
{
40
}
41
42
static
TxConsequences
43
makeTxConsequences
(
PreflightContext
const
& ctx);
44
45
static
NotTEC
46
preflight
(
PreflightContext
const
& ctx);
47
48
TER
49
doApply
()
override
;
50
};
51
52
using
PaymentChannelFund
=
PayChanFund
;
53
54
//------------------------------------------------------------------------------
55
56
class
PayChanClaim
:
public
Transactor
57
{
58
public
:
59
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
60
61
explicit
PayChanClaim
(
ApplyContext
& ctx) :
Transactor
(ctx)
62
{
63
}
64
65
static
bool
66
checkExtraFeatures
(
PreflightContext
const
& ctx);
67
68
static
std::uint32_t
69
getFlagsMask
(
PreflightContext
const
& ctx);
70
71
static
NotTEC
72
preflight
(
PreflightContext
const
& ctx);
73
74
static
TER
75
preclaim
(
PreclaimContext
const
& ctx);
76
77
TER
78
doApply
()
override
;
79
};
80
81
using
PaymentChannelClaim
=
PayChanClaim
;
82
83
}
// namespace xrpl
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:17
xrpl::PayChanClaim
Definition
src/xrpld/app/tx/detail/PayChan.h:57
xrpl::PayChanClaim::doApply
TER doApply() override
Definition
PayChan.cpp:443
xrpl::PayChanClaim::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:59
xrpl::PayChanClaim::getFlagsMask
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition
PayChan.cpp:372
xrpl::PayChanClaim::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
PayChan.cpp:431
xrpl::PayChanClaim::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
PayChan.cpp:366
xrpl::PayChanClaim::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:378
xrpl::PayChanClaim::PayChanClaim
PayChanClaim(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:61
xrpl::PayChanCreate
Definition
src/xrpld/app/tx/detail/PayChan.h:8
xrpl::PayChanCreate::makeTxConsequences
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition
PayChan.cpp:144
xrpl::PayChanCreate::doApply
TER doApply() override
Definition
PayChan.cpp:215
xrpl::PayChanCreate::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
PayChan.cpp:165
xrpl::PayChanCreate::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:150
xrpl::PayChanCreate::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:10
xrpl::PayChanCreate::PayChanCreate
PayChanCreate(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:12
xrpl::PayChanFund
Definition
src/xrpld/app/tx/detail/PayChan.h:34
xrpl::PayChanFund::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
src/xrpld/app/tx/detail/PayChan.h:36
xrpl::PayChanFund::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
PayChan.cpp:289
xrpl::PayChanFund::PayChanFund
PayChanFund(ApplyContext &ctx)
Definition
src/xrpld/app/tx/detail/PayChan.h:38
xrpl::PayChanFund::doApply
TER doApply() override
Definition
PayChan.cpp:298
xrpl::PayChanFund::makeTxConsequences
static TxConsequences makeTxConsequences(PreflightContext const &ctx)
Definition
PayChan.cpp:283
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::Normal
@ Normal
Definition
Transactor.h:122
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
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