xrpld
Loading...
Searching...
No Matches
include
xrpl
tx
invariants
LoanInvariant.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/ledger/ReadView.h>
5
#include <xrpl/protocol/STTx.h>
6
#include <xrpl/protocol/TER.h>
7
8
#include <
vector
>
9
10
namespace
xrpl
{
11
18
class
ValidLoan
19
{
20
// Pair is <before, after>. After is used for most of the checks, except
21
// those that check changed values.
22
std::vector<std::pair<SLE::const_pointer, SLE::const_pointer>
>
loans_
;
23
24
public
:
25
void
26
visitEntry
(
bool
,
SLE::const_ref
,
SLE::const_ref
);
27
28
bool
29
finalize
(
STTx
const
&,
TER
const
,
XRPAmount
const
,
ReadView
const
&,
beast::Journal
const
&);
30
};
31
32
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:38
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STLedgerEntry::const_ref
std::shared_ptr< STLedgerEntry const > const & const_ref
Definition
STLedgerEntry.h:22
xrpl::STTx
Definition
STTx.h:28
xrpl::ValidLoan
Invariants: Loans are internally consistent.
Definition
LoanInvariant.h:19
xrpl::ValidLoan::visitEntry
void visitEntry(bool, SLE::const_ref, SLE::const_ref)
Definition
LoanInvariant.cpp:18
xrpl::ValidLoan::loans_
std::vector< std::pair< SLE::const_pointer, SLE::const_pointer > > loans_
Definition
LoanInvariant.h:22
xrpl::ValidLoan::finalize
bool finalize(STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &)
Definition
LoanInvariant.cpp:27
xrpl::XRPAmount
Definition
XRPAmount.h:23
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::TER
TERSubset< CanCvtToTER > TER
Definition
TER.h:634
vector
Generated by
1.16.1