rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
Change.h
1
#ifndef XRPL_TX_CHANGE_H_INCLUDED
2
#define XRPL_TX_CHANGE_H_INCLUDED
3
4
#include <xrpld/app/tx/detail/Transactor.h>
5
6
namespace
ripple
{
7
8
class
Change
:
public
Transactor
9
{
10
public
:
11
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
12
13
explicit
Change
(
ApplyContext
& ctx) :
Transactor
(ctx)
14
{
15
}
16
17
TER
18
doApply
()
override
;
19
void
20
preCompute
()
override
;
21
22
static
XRPAmount
23
calculateBaseFee
(
ReadView
const
&
view
,
STTx
const
& tx)
24
{
25
return
XRPAmount
{0};
26
}
27
28
static
TER
29
preclaim
(
PreclaimContext
const
& ctx);
30
31
private
:
32
TER
33
applyAmendment
();
34
35
TER
36
applyFee
();
37
38
TER
39
applyUNLModify
();
40
};
41
42
using
EnableAmendment
=
Change
;
43
using
SetFee
=
Change
;
44
using
UNLModify
=
Change
;
45
46
}
// namespace ripple
47
48
#endif
ripple::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:18
ripple::Change
Definition
Change.h:9
ripple::Change::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition
Change.h:23
ripple::Change::applyUNLModify
TER applyUNLModify()
Definition
Change.cpp:280
ripple::Change::applyFee
TER applyFee()
Definition
Change.cpp:240
ripple::Change::preCompute
void preCompute() override
Definition
Change.cpp:137
ripple::Change::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
Change.h:11
ripple::Change::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
Change.cpp:58
ripple::Change::applyAmendment
TER applyAmendment()
Definition
Change.cpp:144
ripple::Change::Change
Change(ApplyContext &ctx)
Definition
Change.h:13
ripple::Change::doApply
TER doApply() override
Definition
Change.cpp:118
ripple::ReadView
A view into a ledger.
Definition
ReadView.h:32
ripple::STTx
Definition
STTx.h:29
ripple::TERSubset< CanCvtToTER >
ripple::Transactor
Definition
Transactor.h:122
ripple::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:138
ripple::Transactor::Normal
@ Normal
Definition
Transactor.h:138
ripple::Transactor::view
ApplyView & view()
Definition
Transactor.h:144
ripple::XRPAmount
Definition
XRPAmount.h:24
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
ripple::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:61
Generated by
1.9.8