rippled
Loading...
Searching...
No Matches
LoanManage.h
1#ifndef XRPL_TX_LOANMANAGE_H_INCLUDED
2#define XRPL_TX_LOANMANAGE_H_INCLUDED
3
4#include <xrpld/app/tx/detail/Transactor.h>
5
6namespace xrpl {
7
8class LoanManage : public Transactor
9{
10public:
12
13 explicit LoanManage(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 TER
27 preclaim(PreclaimContext const& ctx);
28
31 static TER
34 SLE::ref loanSle,
35 SLE::ref brokerSle,
36 SLE::ref vaultSle,
37 Asset const& vaultAsset,
39
42 static TER
45 SLE::ref loanSle,
46 SLE::ref vaultSle,
48
51 static TER
54 SLE::ref loanSle,
55 SLE::ref vaultSle,
57
58 TER
59 doApply() override;
60};
61
62//------------------------------------------------------------------------------
63
64} // namespace xrpl
65
66#endif
A generic endpoint for log messages.
Definition Journal.h:41
State information when applying a tx.
Writeable view to a ledger, for applying a transaction.
Definition ApplyView.h:124
static TER defaultLoan(ApplyView &view, SLE::ref loanSle, SLE::ref brokerSle, SLE::ref vaultSle, Asset const &vaultAsset, beast::Journal j)
Helper function that might be needed by other transactors.
static TER preclaim(PreclaimContext const &ctx)
static TER unimpairLoan(ApplyView &view, SLE::ref loanSle, SLE::ref vaultSle, beast::Journal j)
Helper function that might be needed by other transactors.
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
LoanManage(ApplyContext &ctx)
Definition LoanManage.h:13
static TER impairLoan(ApplyView &view, SLE::ref loanSle, SLE::ref vaultSle, beast::Journal j)
Helper function that might be needed by other transactors.
TER doApply() override
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition LoanManage.h:11
static NotTEC preflight(PreflightContext const &ctx)
static bool checkExtraFeatures(PreflightContext const &ctx)
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