rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
Change.h
1
#pragma once
2
3
#include <xrpld/app/tx/detail/Transactor.h>
4
5
namespace
xrpl
{
6
7
class
Change
:
public
Transactor
8
{
9
public
:
10
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
11
12
explicit
Change
(
ApplyContext
& ctx) :
Transactor
(ctx)
13
{
14
}
15
16
TER
17
doApply
()
override
;
18
void
19
preCompute
()
override
;
20
21
static
XRPAmount
22
calculateBaseFee
(
ReadView
const
&
view
,
STTx
const
& tx)
23
{
24
return
XRPAmount
{0};
25
}
26
27
static
TER
28
preclaim
(
PreclaimContext
const
& ctx);
29
30
private
:
31
TER
32
applyAmendment
();
33
34
TER
35
applyFee
();
36
37
TER
38
applyUNLModify
();
39
};
40
41
using
EnableAmendment
=
Change
;
42
using
SetFee
=
Change
;
43
using
UNLModify
=
Change
;
44
45
}
// namespace xrpl
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:17
xrpl::Change
Definition
Change.h:8
xrpl::Change::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
Change.h:10
xrpl::Change::Change
Change(ApplyContext &ctx)
Definition
Change.h:12
xrpl::Change::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition
Change.h:22
xrpl::Change::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
Change.cpp:59
xrpl::Change::applyUNLModify
TER applyUNLModify()
Definition
Change.cpp:267
xrpl::Change::doApply
TER doApply() override
Definition
Change.cpp:113
xrpl::Change::applyAmendment
TER applyAmendment()
Definition
Change.cpp:138
xrpl::Change::preCompute
void preCompute() override
Definition
Change.cpp:132
xrpl::Change::applyFee
TER applyFee()
Definition
Change.cpp:229
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STTx
Definition
STTx.h:28
xrpl::TERSubset< CanCvtToTER >
xrpl::Transactor
Definition
Transactor.h:106
xrpl::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:122
xrpl::Transactor::Normal
@ Normal
Definition
Transactor.h:122
xrpl::Transactor::view
ApplyView & view()
Definition
Transactor.h:128
xrpl::XRPAmount
Definition
XRPAmount.h:23
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
Generated by
1.9.8