rippled
Loading...
Searching...
No Matches
Change.h
1#pragma once
2
3#include <xrpld/app/tx/detail/Transactor.h>
4
5namespace xrpl {
6
7class Change : public Transactor
8{
9public:
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
23 {
24 return XRPAmount{0};
25 }
26
27 static TER
28 preclaim(PreclaimContext const& ctx);
29
30private:
31 TER
33
34 TER
35 applyFee();
36
37 TER
39};
40
42using SetFee = Change;
44
45} // namespace xrpl
State information when applying a tx.
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition Change.h:10
Change(ApplyContext &ctx)
Definition Change.h:12
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition Change.h:22
static TER preclaim(PreclaimContext const &ctx)
Definition Change.cpp:59
TER applyUNLModify()
Definition Change.cpp:267
TER doApply() override
Definition Change.cpp:113
TER applyAmendment()
Definition Change.cpp:138
void preCompute() override
Definition Change.cpp:132
TER applyFee()
Definition Change.cpp:229
A view into a ledger.
Definition ReadView.h:31
ApplyView & view()
Definition Transactor.h:128
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:53