rippled
Loading...
Searching...
No Matches
LoanManage.h
1#pragma once
2
3#include <xrpld/app/tx/detail/Transactor.h>
4
5namespace xrpl {
6
7class LoanManage : public Transactor
8{
9public:
11
12 explicit LoanManage(ApplyContext& ctx) : Transactor(ctx)
13 {
14 }
15
16 static bool
18
19 static std::uint32_t
21
22 static NotTEC
23 preflight(PreflightContext const& ctx);
24
25 static TER
26 preclaim(PreclaimContext const& ctx);
27
30 static TER
33 SLE::ref loanSle,
34 SLE::ref brokerSle,
35 SLE::ref vaultSle,
36 Asset const& vaultAsset,
38
41 static TER
42 impairLoan(ApplyView& view, SLE::ref loanSle, SLE::ref vaultSle, Asset const& vaultAsset, beast::Journal j);
43
46 [[nodiscard]] static TER
47 unimpairLoan(ApplyView& view, SLE::ref loanSle, SLE::ref vaultSle, Asset const& vaultAsset, beast::Journal j);
48
49 TER
50 doApply() override;
51};
52
53//------------------------------------------------------------------------------
54
55} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
State information when applying a tx.
Writeable view to a ledger, for applying a transaction.
Definition ApplyView.h:114
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 std::uint32_t getFlagsMask(PreflightContext const &ctx)
LoanManage(ApplyContext &ctx)
Definition LoanManage.h:12
static TER unimpairLoan(ApplyView &view, SLE::ref loanSle, SLE::ref vaultSle, Asset const &vaultAsset, beast::Journal j)
Helper function that might be needed by other transactors.
static TER impairLoan(ApplyView &view, SLE::ref loanSle, SLE::ref vaultSle, Asset const &vaultAsset, beast::Journal j)
Helper function that might be needed by other transactors.
TER doApply() override
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition LoanManage.h:10
static NotTEC preflight(PreflightContext const &ctx)
static bool checkExtraFeatures(PreflightContext const &ctx)
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
State information when preflighting a tx.
Definition Transactor.h:15