xrpld
Loading...
Searching...
No Matches
XChainOwnedCreateAccountClaimIDEntry.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
13namespace xrpl {
14
15template <typename ViewT>
17 : public SLEBase<ViewT, ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID>
18{
19public:
21
22 // Inherit base constructors: adopt an existing SLE, or resolve one from a
23 // Keylet against the view.
24 using Base::Base;
25
27 STXChainBridge const& bridge,
28 std::uint64_t seq,
31 : Base(keylet::xChainCreateAccountClaimID(bridge, seq), view, j)
32 {
33 }
34};
35
38
39} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:44
static Sink & getNullSink()
Returns a Sink which does nothing.
std::conditional_t< kIsWritable, ApplyView &, ReadView const & > ViewRefType
Definition SLEBase.h:106
SLEBase< ViewT, ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID > Base
XChainOwnedCreateAccountClaimIDEntry(STXChainBridge const &bridge, std::uint64_t seq, Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()})
Keylet computation functions.
Definition Indexes.h:40
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
XChainOwnedCreateAccountClaimIDEntry< ReadView > XChainOwnedCreateAccountClaimIDEntryR
XChainOwnedCreateAccountClaimIDEntry< ApplyView > XChainOwnedCreateAccountClaimIDEntryW