20 #ifndef RIPPLE_PROTOCOL_INDEXES_H_INCLUDED
21 #define RIPPLE_PROTOCOL_INDEXES_H_INCLUDED
23 #include <ripple/protocol/Keylet.h>
24 #include <ripple/protocol/LedgerFormats.h>
25 #include <ripple/protocol/Protocol.h>
26 #include <ripple/protocol/PublicKey.h>
27 #include <ripple/protocol/Serializer.h>
28 #include <ripple/protocol/UintTypes.h>
29 #include <ripple/basics/base_uint.h>
30 #include <ripple/protocol/Book.h>
133 explicit skip_t() =
default;
144 explicit fees_t() =
default;
154 explicit book_t() =
default;
163 explicit line_t() =
default;
169 Issue const& issue)
const;
206 explicit next_t() =
default;
Keylet operator()(uint256 const &key) const
Keylet operator()() const
The directory for the next lower quality.
Keylet operator()(AccountID const &id0, AccountID const &id1, Currency const ¤cy) const
A pair of SHAMap key and LedgerEntryType.
A currency issued by an account.
static const signers_t signers
Keylet operator()(AccountID const &id) const
uint256 getLedgerAmendmentIndex()
uint256 getBookBase(Book const &book)
uint256 getQualityIndex(uint256 const &uBase, const std::uint64_t uNodeDir)
uint256 getOfferIndex(AccountID const &account, std::uint32_t uSequence)
Keylet payChan(AccountID const &source, AccountID const &dst, std::uint32_t seq)
A PaymentChannel.
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
uint256 getSignerListIndex(AccountID const &account)
Keylet child(uint256 const &key)
Any item that can be in an owner dir.
Keylet operator()() const
static const ticket_t ticket
static const check_t check
uint256 getQualityNext(uint256 const &uBase)
An offer from an account.
Keylet operator()(AccountID const &owner, AccountID const &preauthorized) const
uint256 getLedgerFeeIndex()
Keylet operator()() const
Keylet operator()(Keylet const &k) const
static const depositPreauth_t depositPreauth
Keylet operator()(uint256 const &key) const
uint256 getGeneratorIndex(AccountID const &uGeneratorID)
uint256 getDirNodeIndex(uint256 const &uDirRoot, const std::uint64_t uNodeIndex)
Keylet operator()(AccountID const &id, std::uint32_t seq) const
uint256 getCheckIndex(AccountID const &account, std::uint32_t uSequence)
The beginning of an order book.
Keylet operator()(AccountID const &id) const
static const account_t account
uint256 getRippleStateIndex(AccountID const &a, AccountID const &b, Currency const ¤cy)
Keylet ownerDir(AccountID const &id)
The root page of an account's directory.
Keylet escrow(AccountID const &source, std::uint32_t seq)
An escrow entry.
uint256 getOwnerDirIndex(AccountID const &account)
Keylet unchecked(uint256 const &key)
Any ledger entry.
static const amendments_t amendments
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
uint256 getDepositPreauthIndex(AccountID const &owner, AccountID const &preauthorized)
Keylet operator()(Book const &b) const
depositPreauth_t()=default
uint256 getLedgerHashIndex()
uint256 getTicketIndex(AccountID const &account, std::uint32_t uSequence)
Keylet operator()(uint256 const &key) const
Keylet operator()(uint256 const &key) const
Keylet operator()(Keylet const &k, std::uint64_t q) const
static const quality_t quality
@ ltDIR_NODE
Directory node.
Keylet operator()(uint256 const &key) const
The initial directory page for a specific quality.
Keylet operator()(uint256 const &key) const
static const offer_t offer
Keylet operator()(AccountID const &id, std::uint32_t seq) const
std::uint64_t getQuality(uint256 const &uBase)
A ticket belonging to an account.
Keylet page(uint256 const &key, std::uint64_t index)
A page in a directory.
Keylet operator()(AccountID const &id, std::uint32_t seq) const