rippled
Loading...
Searching...
No Matches
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
6namespace ripple {
7
8class Change : public Transactor
9{
10public:
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
24 {
25 return XRPAmount{0};
26 }
27
28 static TER
29 preclaim(PreclaimContext const& ctx);
30
31private:
32 TER
34
35 TER
36 applyFee();
37
38 TER
40};
41
43using SetFee = Change;
45
46} // namespace ripple
47
48#endif
State information when applying a tx.
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition Change.h:23
TER applyUNLModify()
Definition Change.cpp:280
void preCompute() override
Definition Change.cpp:137
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition Change.h:11
static TER preclaim(PreclaimContext const &ctx)
Definition Change.cpp:58
TER applyAmendment()
Definition Change.cpp:144
Change(ApplyContext &ctx)
Definition Change.h:13
TER doApply() override
Definition Change.cpp:118
A view into a ledger.
Definition ReadView.h:32
ApplyView & view()
Definition Transactor.h:144
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:61