xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
ledger
entries
EscrowEntry.h
1
#pragma once
2
3
#include <xrpl/beast/utility/Journal.h>
4
#include <xrpl/ledger/ApplyView.h>
5
#include <xrpl/ledger/ReadView.h>
6
#include <xrpl/ledger/entries/SLEBase.h>
7
#include <xrpl/protocol/AccountID.h>
8
#include <xrpl/protocol/Indexes.h>
9
#include <xrpl/protocol/LedgerFormats.h>
10
#include <xrpl/protocol/SeqProxy.h>
11
12
namespace
xrpl
{
13
14
template
<
typename
ViewT>
15
class
EscrowEntry
:
public
SLEBase
<ViewT, ltESCROW>
16
{
17
public
:
18
using
Base
=
SLEBase<ViewT, ltESCROW>
;
19
20
// Inherit base constructors: adopt an existing SLE, or resolve one from a
21
// Keylet against the view.
22
using
Base::Base;
23
24
explicit
EscrowEntry
(
25
AccountID
const
& src,
26
SeqProxy
const
& seq,
27
Base::ViewRefType
view,
28
beast::Journal
j =
beast::Journal
{
beast::Journal::getNullSink
()})
29
: Base(
keylet
::escrow(src, seq), view, j)
30
{
31
}
32
};
33
34
using
EscrowEntryR
=
EscrowEntry<ReadView>
;
35
using
EscrowEntryW
=
EscrowEntry<ApplyView>
;
36
37
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
beast::Journal::getNullSink
static Sink & getNullSink()
Returns a Sink which does nothing.
Definition
beast_Journal.cpp:63
xrpl::EscrowEntry
Definition
EscrowEntry.h:16
xrpl::EscrowEntry::EscrowEntry
EscrowEntry(AccountID const &src, SeqProxy const &seq, Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()})
Definition
EscrowEntry.h:24
xrpl::EscrowEntry::Base
SLEBase< ViewT, ltESCROW > Base
Definition
EscrowEntry.h:18
xrpl::SLEBase::ViewRefType
std::conditional_t< kIsWritable, ApplyView &, ReadView const & > ViewRefType
Definition
SLEBase.h:106
xrpl::SLEBase< ViewT, ltESCROW >::SLEBase
SLEBase(SLEBase const &)=default
xrpl::SeqProxy
A type that represents either a sequence value or a ticket value.
Definition
SeqProxy.h:37
xrpl::keylet
Keylet computation functions.
Definition
Indexes.h:40
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::EscrowEntryR
EscrowEntry< ReadView > EscrowEntryR
Definition
EscrowEntry.h:34
xrpl::EscrowEntryW
EscrowEntry< ApplyView > EscrowEntryW
Definition
EscrowEntry.h:35
xrpl::AccountID
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition
AccountID.h:34
Generated by
1.17.0