rippled
Loading...
Searching...
No Matches
LoanPay.h
1#ifndef XRPL_TX_LOANPAY_H_INCLUDED
2#define XRPL_TX_LOANPAY_H_INCLUDED
3
4#include <xrpld/app/tx/detail/Transactor.h>
5
6namespace xrpl {
7
8class LoanPay : public Transactor
9{
10public:
12
13 explicit LoanPay(ApplyContext& ctx) : Transactor(ctx)
14 {
15 }
16
17 static bool
19
20 static std::uint32_t
22
23 static NotTEC
24 preflight(PreflightContext const& ctx);
25
26 static XRPAmount
27 calculateBaseFee(ReadView const& view, STTx const& tx);
28
29 static TER
30 preclaim(PreclaimContext const& ctx);
31
32 TER
33 doApply() override;
34};
35
36//------------------------------------------------------------------------------
37
38} // namespace xrpl
39
40#endif
State information when applying a tx.
static TER preclaim(PreclaimContext const &ctx)
Definition LoanPay.cpp:126
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition LoanPay.cpp:21
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition LoanPay.h:11
LoanPay(ApplyContext &ctx)
Definition LoanPay.h:13
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition LoanPay.cpp:52
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition LoanPay.cpp:15
TER doApply() override
Definition LoanPay.cpp:233
static NotTEC preflight(PreflightContext const &ctx)
Definition LoanPay.cpp:27
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
State information when preflighting a tx.
Definition Transactor.h:16