20#ifndef RIPPLE_PROTOCOL_INDEXES_H_INCLUDED 
   21#define RIPPLE_PROTOCOL_INDEXES_H_INCLUDED 
   23#include <xrpl/basics/base_uint.h> 
   24#include <xrpl/protocol/Book.h> 
   25#include <xrpl/protocol/Keylet.h> 
   26#include <xrpl/protocol/LedgerFormats.h> 
   27#include <xrpl/protocol/Protocol.h> 
   28#include <xrpl/protocol/PublicKey.h> 
   29#include <xrpl/protocol/STXChainBridge.h> 
   30#include <xrpl/protocol/Serializer.h> 
   31#include <xrpl/protocol/UintTypes.h> 
   32#include <xrpl/protocol/jss.h> 
  124    return line(
id, issue.account, issue.currency);
 
 
  136    return {ltOFFER, key};
 
 
  168        return {ltTICKET, key};
 
 
 
  185    return {ltCHECK, key};
 
 
  202    return {ltDEPOSIT_PREAUTH, key};
 
 
  225        root.type == ltDIR_NODE, 
"ripple::keylet::page : valid root type");
 
 
  265    return {ltNFTOKEN_OFFER, 
offer};
 
 
  308    Slice const& credType) 
noexcept;
 
  313    return {ltCREDENTIAL, key};
 
 
  325    return {ltMPTOKEN_ISSUANCE, issuanceKey};
 
 
  334    return {ltMPTOKEN, mptokenKey};
 
 
  346    return {ltVAULT, vaultKey};
 
 
 
  374template <
class... keyletParams>
 
Lightweight wrapper to tag static string.
 
A currency issued by an account.
 
A type that represents either a sequence value or a ticket value.
 
An immutable linear range of bytes.
 
Keylet quality(Keylet const &k, std::uint64_t q) noexcept
The initial directory page for a specific quality.
 
Keylet mptoken(MPTID const &issuanceID, AccountID const &holder) noexcept
 
Keylet oracle(AccountID const &account, std::uint32_t const &documentID) noexcept
 
Keylet delegate(AccountID const &account, AccountID const &authorizedAccount) noexcept
A keylet for Delegate object.
 
Keylet child(uint256 const &key) noexcept
Any item that can be in an owner dir.
 
Keylet permissionedDomain(AccountID const &account, std::uint32_t seq) noexcept
 
Keylet const & negativeUNL() noexcept
The (fixed) index of the object containing the ledger negativeUNL.
 
Keylet amm(Asset const &issue1, Asset const &issue2) noexcept
AMM entry.
 
Keylet line(AccountID const &id0, AccountID const &id1, Currency const ¤cy) noexcept
The index of a trust line for a given currency.
 
Keylet const & amendments() noexcept
The index of the amendment table.
 
Keylet nftpage(Keylet const &k, uint256 const &token)
 
Keylet mptIssuance(std::uint32_t seq, AccountID const &issuer) noexcept
 
Keylet xChainClaimID(STXChainBridge const &bridge, std::uint64_t seq)
 
Keylet did(AccountID const &account) noexcept
 
Keylet vault(AccountID const &owner, std::uint32_t seq) noexcept
 
Keylet account(AccountID const &id) noexcept
AccountID root.
 
Keylet page(uint256 const &root, std::uint64_t index=0) noexcept
A page in a directory.
 
Keylet unchecked(uint256 const &key) noexcept
Any ledger entry.
 
Keylet escrow(AccountID const &src, std::uint32_t seq) noexcept
An escrow entry.
 
Keylet nftpage_min(AccountID const &owner)
NFT page keylets.
 
Keylet bridge(STXChainBridge const &bridge, STXChainBridge::ChainType chainType)
 
Keylet const & fees() noexcept
The (fixed) index of the object containing the ledger fees.
 
Keylet nftpage_max(AccountID const &owner)
A keylet for the owner's last possible NFT page.
 
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
 
Keylet nft_buys(uint256 const &id) noexcept
The directory of buy offers for the specified NFT.
 
Keylet const & skip() noexcept
The index of the "short" skip list.
 
Keylet nft_sells(uint256 const &id) noexcept
The directory of sell offers for the specified NFT.
 
Keylet signers(AccountID const &account) noexcept
A SignerList.
 
Keylet xChainCreateAccountClaimID(STXChainBridge const &bridge, std::uint64_t seq)
 
Keylet nftoffer(AccountID const &owner, std::uint32_t seq)
An offer from an account to buy or sell an NFT.
 
static ticket_t const ticket
 
Keylet check(AccountID const &id, std::uint32_t seq) noexcept
A Check.
 
Keylet offer(AccountID const &id, std::uint32_t seq) noexcept
An offer from an account.
 
Keylet depositPreauth(AccountID const &owner, AccountID const &preauthorized) noexcept
A DepositPreauth.
 
Keylet payChan(AccountID const &src, AccountID const &dst, std::uint32_t seq) noexcept
A PaymentChannel.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
 
std::uint64_t getQuality(uint256 const &uBase)
 
base_uint< 192 > MPTID
MPTID is a 192-bit value representing MPT Issuance ID, which is a concatenation of a 32-bit sequence ...
 
std::array< keyletDesc< AccountID const  & >, 6 > const directAccountKeylets
 
uint256 getQualityNext(uint256 const &uBase)
 
uint256 getTicketIndex(AccountID const &account, std::uint32_t uSequence)
 
Number root(Number f, unsigned d)
 
@ credential
Credentials signature.
 
MPTID makeMptID(std::uint32_t sequence, AccountID const &account)
 
uint256 getBookBase(Book const &book)
 
A pair of SHAMap key and LedgerEntryType.
 
Json::StaticString expectedLEName
 
std::function< Keylet(keyletParams...)> function
 
The beginning of an order book.
 
Keylet operator()(Book const &b) const
 
The directory for the next lower quality.
 
Keylet operator()(Keylet const &k) const
 
A ticket belonging to an account.
 
Keylet operator()(AccountID const &id, std::uint32_t ticketSeq) const
 
Keylet operator()(uint256 const &key) const