xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
ledger
entries
XChainOwnedClaimIDEntry.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/Indexes.h>
8
#include <xrpl/protocol/LedgerFormats.h>
9
#include <xrpl/protocol/STXChainBridge.h>
10
11
#include <
cstdint
>
12
13
namespace
xrpl
{
14
15
template
<
typename
ViewT>
16
class
XChainOwnedClaimIDEntry
:
public
SLEBase
<ViewT, ltXCHAIN_OWNED_CLAIM_ID>
17
{
18
public
:
19
using
Base
=
SLEBase<ViewT, ltXCHAIN_OWNED_CLAIM_ID>
;
20
21
// Inherit base constructors: adopt an existing SLE, or resolve one from a
22
// Keylet against the view.
23
using
Base::Base;
24
25
explicit
XChainOwnedClaimIDEntry
(
26
STXChainBridge
const
& bridge,
27
std::uint64_t
seq,
28
Base::ViewRefType
view,
29
beast::Journal
j =
beast::Journal
{
beast::Journal::getNullSink
()})
30
: Base(
keylet
::xChainClaimID(bridge, seq), view, j)
31
{
32
}
33
};
34
35
using
XChainOwnedClaimIDEntryR
=
XChainOwnedClaimIDEntry<ReadView>
;
36
using
XChainOwnedClaimIDEntryW
=
XChainOwnedClaimIDEntry<ApplyView>
;
37
38
}
// 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::SLEBase::ViewRefType
std::conditional_t< kIsWritable, ApplyView &, ReadView const & > ViewRefType
Definition
SLEBase.h:106
xrpl::SLEBase< ViewT, ltXCHAIN_OWNED_CLAIM_ID >::SLEBase
SLEBase(SLEBase const &)=default
xrpl::STXChainBridge
Definition
STXChainBridge.h:24
xrpl::XChainOwnedClaimIDEntry
Definition
XChainOwnedClaimIDEntry.h:17
xrpl::XChainOwnedClaimIDEntry::XChainOwnedClaimIDEntry
XChainOwnedClaimIDEntry(STXChainBridge const &bridge, std::uint64_t seq, Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()})
Definition
XChainOwnedClaimIDEntry.h:25
xrpl::XChainOwnedClaimIDEntry::Base
SLEBase< ViewT, ltXCHAIN_OWNED_CLAIM_ID > Base
Definition
XChainOwnedClaimIDEntry.h:19
cstdint
std::uint64_t
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::XChainOwnedClaimIDEntryR
XChainOwnedClaimIDEntry< ReadView > XChainOwnedClaimIDEntryR
Definition
XChainOwnedClaimIDEntry.h:35
xrpl::XChainOwnedClaimIDEntryW
XChainOwnedClaimIDEntry< ApplyView > XChainOwnedClaimIDEntryW
Definition
XChainOwnedClaimIDEntry.h:36
Generated by
1.17.0