rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
LedgerStateFix.h
1
#ifndef XRPL_TX_LEDGER_STATE_FIX_H_INCLUDED
2
#define XRPL_TX_LEDGER_STATE_FIX_H_INCLUDED
3
4
#include <xrpld/app/tx/detail/Transactor.h>
5
6
namespace
ripple
{
7
8
class
LedgerStateFix
:
public
Transactor
9
{
10
public
:
11
enum
FixType
:
std::uint16_t
{
12
nfTokenPageLink
= 1,
13
};
14
15
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
16
17
explicit
LedgerStateFix
(
ApplyContext
& ctx) :
Transactor
(ctx)
18
{
19
}
20
21
static
NotTEC
22
preflight
(
PreflightContext
const
& ctx);
23
24
static
XRPAmount
25
calculateBaseFee
(
ReadView
const
&
view
,
STTx
const
& tx);
26
27
static
TER
28
preclaim
(
PreclaimContext
const
& ctx);
29
30
TER
31
doApply
()
override
;
32
};
33
34
}
// namespace ripple
35
36
#endif
ripple::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:18
ripple::LedgerStateFix
Definition
LedgerStateFix.h:9
ripple::LedgerStateFix::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition
LedgerStateFix.cpp:29
ripple::LedgerStateFix::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
LedgerStateFix.cpp:12
ripple::LedgerStateFix::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
LedgerStateFix.cpp:37
ripple::LedgerStateFix::doApply
TER doApply() override
Definition
LedgerStateFix.cpp:55
ripple::LedgerStateFix::FixType
FixType
Definition
LedgerStateFix.h:11
ripple::LedgerStateFix::nfTokenPageLink
@ nfTokenPageLink
Definition
LedgerStateFix.h:12
ripple::LedgerStateFix::LedgerStateFix
LedgerStateFix(ApplyContext &ctx)
Definition
LedgerStateFix.h:17
ripple::LedgerStateFix::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
LedgerStateFix.h:15
ripple::ReadView
A view into a ledger.
Definition
ReadView.h:32
ripple::STTx
Definition
STTx.h:29
ripple::TERSubset
Definition
TER.h:396
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
std::uint16_t
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
ripple::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:16
Generated by
1.9.8