|
xrpld
|
Keylet computation functions. More...
Functions | |
| Keylet | account (AccountID const &id) noexcept |
| AccountID root. | |
| Keylet const & | amendments () noexcept |
| The index of the amendment table. | |
| Keylet | child (uint256 const &key) noexcept |
| Any item that can be in an owner dir. | |
| Keylet const & | skip () noexcept |
| The index of the "short" skip list. | |
| Keylet | skip (LedgerIndex ledger) noexcept |
| The index of the long skip for a particular ledger range. | |
| Keylet const & | feeSettings () noexcept |
| The (fixed) index of the object containing the ledger fees. | |
| Keylet const & | negativeUNL () noexcept |
| The (fixed) index of the object containing the ledger negativeUNL. | |
| Keylet | book (Book const &b) |
| The beginning of an order book. | |
| Keylet | quality (Keylet const &k, std::uint64_t const q) noexcept |
| The initial directory page for a specific quality. | |
| Keylet | next (Keylet const &k) |
| The directory for the next lower quality. | |
| Keylet | signerList (AccountID const &account) noexcept |
| A SignerList. | |
| Keylet | sponsorship (AccountID const &sponsor, AccountID const &sponsee) noexcept |
| A Sponsorship. | |
| Keylet | unchecked (uint256 const &key) noexcept |
| Any ledger entry. | |
| Keylet | ownerDir (AccountID const &id) noexcept |
| The root page of an account's directory. | |
| Keylet | escrow (AccountID const &src, SeqProxy const &seq) noexcept |
| An escrow entry. | |
| Keylet | payChannel (AccountID const &src, AccountID const &dst, SeqProxy const &seq) noexcept |
| A PaymentChannel. | |
| Keylet | nftokenOffer (AccountID const &owner, SeqProxy const &seq) |
| An offer from an account to buy or sell an NFT. | |
| Keylet | nftokenOffer (uint256 const &offer) |
| Keylet | nftBuys (uint256 const &id) noexcept |
| The directory of buy offers for the specified NFT. | |
| Keylet | nftSells (uint256 const &id) noexcept |
| The directory of sell offers for the specified NFT. | |
| Keylet | amm (Asset const &issue1, Asset const &issue2) noexcept |
| AMM entry. | |
| Keylet | amm (uint256 const &amm) noexcept |
| Keylet | delegate (AccountID const &account, AccountID const &authorizedAccount) noexcept |
| A keylet for Delegate object. | |
| Keylet | bridge (STXChainBridge const &bridge, STXChainBridge::ChainType chainType) |
| Keylet | xChainClaimID (STXChainBridge const &bridge, std::uint64_t const seq) |
| Keylet | xChainCreateAccountClaimID (STXChainBridge const &bridge, std::uint64_t const seq) |
| Keylet | did (AccountID const &account) noexcept |
| Keylet | oracle (AccountID const &account, std::uint32_t const documentID) noexcept |
| Keylet | credential (AccountID const &subject, AccountID const &issuer, Slice const &credType) noexcept |
| Keylet | credential (uint256 const &key) noexcept |
| Keylet | mptokenIssuance (MPTID const &issuanceID) noexcept |
| Keylet | mptokenIssuance (uint256 const &issuanceKey) |
| Keylet | mptoken (MPTID const &issuanceID, AccountID const &holder) noexcept |
| Keylet | mptoken (uint256 const &mptokenKey) |
| Keylet | mptoken (uint256 const &issuanceKey, AccountID const &holder) noexcept |
| Keylet | vault (AccountID const &owner, SeqProxy const &seq) noexcept |
| Keylet | vault (uint256 const &vaultKey) |
| Keylet | loanBroker (AccountID const &owner, SeqProxy const &seq) noexcept |
| Keylet | loanBroker (uint256 const &key) |
| Keylet | loan (uint256 const &loanBrokerID, SeqProxy const &loanSeq) noexcept |
| Keylet | loan (uint256 const &key) |
| Keylet | permissionedDomain (AccountID const &account, SeqProxy const &seq) noexcept |
| Keylet | permissionedDomain (uint256 const &domainID) noexcept |
| static Keylet | signerList (AccountID const &account, std::uint32_t const page) noexcept |
| Keylet | trustLine (AccountID const &id0, AccountID const &id1, Currency const ¤cy) noexcept |
| The index of a trust line for a given currency. | |
| Keylet | trustLine (AccountID const &id, Issue const &issue) noexcept |
| Keylet | offer (AccountID const &id, SeqProxy const &seq) noexcept |
| An offer from an account. | |
| Keylet | offer (uint256 const &key) noexcept |
| Keylet | ticket (AccountID const &id, SeqProxy const &ticketSeq) |
| A ticket belonging to an account. | |
| Keylet | ticket (uint256 const &key) |
| Keylet | check (AccountID const &id, SeqProxy const &seq) noexcept |
| A Check. | |
| Keylet | check (uint256 const &key) noexcept |
| Keylet | depositPreauth (AccountID const &owner, AccountID const &preauthorized) noexcept |
| A DepositPreauth. | |
| Keylet | depositPreauth (AccountID const &owner, std::set< std::pair< AccountID, Slice > > const &authCreds) noexcept |
| Keylet | depositPreauth (uint256 const &key) noexcept |
| Keylet | page (uint256 const &root, std::uint64_t const index=0) noexcept |
| A page in a directory. | |
| Keylet | page (Keylet const &root, std::uint64_t const index=0) noexcept |
| Keylet | nftokenPageMin (AccountID const &owner) |
| NFT page keylets. | |
| Keylet | nftokenPageMax (AccountID const &owner) |
| A keylet for the owner's last possible NFT page. | |
| Keylet | nftokenPage (Keylet const &k, uint256 const &token) |
Keylet computation functions.
Entries in the ledger are located using 256-bit locators. The locators are calculated using a wide range of parameters specific to the entry whose locator we are calculating (e.g. an account's locator is derived from the account's address, whereas the locator for an offer is derived from the account and the offer sequence.)
To enhance type safety during lookup and make the code more robust, we use keylets, which contain not only the locator of the object but also the type of the object being referenced.
These functions each return a type-specific keylet.
AccountID root.
Definition at line 198 of file Indexes.cpp.
|
noexcept |
The index of the amendment table.
Definition at line 226 of file Indexes.cpp.
Any item that can be in an owner dir.
Definition at line 204 of file Indexes.cpp.
|
noexcept |
The index of the "short" skip list.
The "short" skip list is a node (at a fixed index) that holds the hashes of ledgers since the last flag ledger. It will contain, at most, 256 hashes.
Definition at line 210 of file Indexes.cpp.
|
noexcept |
The index of the long skip for a particular ledger range.
The "long" skip list is a node that holds the hashes of (up to) 256 flag ledgers.
It can be used to efficiently skip back to any ledger using only two hops: the first hop gets the "long" skip list for the ledger it wants to retrieve and uses it to get the hash of the flag ledger whose short skip list will contain the hash of the requested ledger.
Definition at line 217 of file Indexes.cpp.
|
noexcept |
The (fixed) index of the object containing the ledger fees.
Definition at line 233 of file Indexes.cpp.
|
noexcept |
The (fixed) index of the object containing the ledger negativeUNL.
Definition at line 240 of file Indexes.cpp.
The beginning of an order book.
Definition at line 247 of file Indexes.cpp.
|
noexcept |
The index of a trust line for a given currency.
Note that a trustline is shared between two accounts (commonly referred to as the issuer and the holder); if Alice sets up a trust line to Bob for BTC, and Bob trusts Alice for BTC, here is only a single BTC trust line between them.
Definition at line 253 of file Indexes.cpp.
An offer from an account.
Definition at line 276 of file Indexes.cpp.
|
noexcept |
The initial directory page for a specific quality.
Definition at line 282 of file Indexes.cpp.
The directory for the next lower quality.
Definition at line 303 of file Indexes.cpp.
A ticket belonging to an account.
Definition at line 310 of file Indexes.cpp.
A SignerList.
Definition at line 326 of file Indexes.cpp.
A Sponsorship.
Definition at line 332 of file Indexes.cpp.
A Check.
Definition at line 338 of file Indexes.cpp.
|
noexcept |
Definition at line 344 of file Indexes.cpp.
|
noexcept |
Definition at line 351 of file Indexes.cpp.
Any ledger entry.
Definition at line 367 of file Indexes.cpp.
The root page of an account's directory.
Definition at line 373 of file Indexes.cpp.
|
noexcept |
A page in a directory.
Definition at line 379 of file Indexes.cpp.
|
noexcept |
An escrow entry.
Definition at line 388 of file Indexes.cpp.
|
noexcept |
A PaymentChannel.
Definition at line 394 of file Indexes.cpp.
NFT page keylets.
Unlike objects whose ledger identifiers are produced by hashing data, NFT page identifiers are composite identifiers, consisting of the owner's 160-bit AccountID, followed by a 96-bit value that determines which NFT tokens are candidates for that page. A keylet for the owner's first possible NFT page.
Definition at line 400 of file Indexes.cpp.
A keylet for the owner's last possible NFT page.
Definition at line 408 of file Indexes.cpp.
Definition at line 416 of file Indexes.cpp.
An offer from an account to buy or sell an NFT.
Definition at line 423 of file Indexes.cpp.
The directory of buy offers for the specified NFT.
Definition at line 429 of file Indexes.cpp.
The directory of sell offers for the specified NFT.
Definition at line 435 of file Indexes.cpp.
AMM entry.
Definition at line 441 of file Indexes.cpp.
Definition at line 475 of file Indexes.cpp.
|
noexcept |
A keylet for Delegate object.
Definition at line 481 of file Indexes.cpp.
| Keylet xrpl::keylet::bridge | ( | STXChainBridge const & | bridge, |
| STXChainBridge::ChainType | chainType ) |
Definition at line 487 of file Indexes.cpp.
| Keylet xrpl::keylet::xChainClaimID | ( | STXChainBridge const & | bridge, |
| std::uint64_t const | seq ) |
Definition at line 497 of file Indexes.cpp.
| Keylet xrpl::keylet::xChainCreateAccountClaimID | ( | STXChainBridge const & | bridge, |
| std::uint64_t const | seq ) |
Definition at line 511 of file Indexes.cpp.
Definition at line 525 of file Indexes.cpp.
|
noexcept |
Definition at line 531 of file Indexes.cpp.
|
noexcept |
Definition at line 555 of file Indexes.cpp.
Definition at line 537 of file Indexes.cpp.
Definition at line 543 of file Indexes.cpp.
Definition at line 549 of file Indexes.cpp.
Definition at line 561 of file Indexes.cpp.
Definition at line 567 of file Indexes.cpp.
Definition at line 573 of file Indexes.cpp.
|
noexcept |
Definition at line 579 of file Indexes.cpp.
Definition at line 587 of file Indexes.cpp.
|
staticnoexcept |
Definition at line 320 of file Indexes.cpp.