|
rippled
|
Classes | |
| struct | TaxonTag |
| struct | TokenAndPage |
| Finds the token in the owner's token directory. More... | |
Typedefs | |
| using | Taxon = tagged_integer< std::uint32_t, TaxonTag > |
Functions | |
| Taxon | toTaxon (std::uint32_t i) |
| std::uint32_t | toUInt32 (Taxon t) |
| std::uint16_t | getFlags (uint256 const &id) |
| std::uint16_t | getTransferFee (uint256 const &id) |
| std::uint32_t | getSerial (uint256 const &id) |
| Taxon | cipheredTaxon (std::uint32_t tokenSeq, Taxon taxon) |
| Taxon | getTaxon (uint256 const &id) |
| AccountID | getIssuer (uint256 const &id) |
| uint256 constexpr | pageMask (std::string_view("0000000000000000000000000000000000000000ffffffffffffffffffffffff")) |
| Rate | transferFeeAsRate (std::uint16_t fee) |
| Given a transfer fee (in basis points) convert it to a transfer rate. | |
| static std::shared_ptr< SLE const > | locatePage (ReadView const &view, AccountID const &owner, uint256 const &id) |
| static std::shared_ptr< SLE > | locatePage (ApplyView &view, AccountID const &owner, uint256 const &id) |
| static std::shared_ptr< SLE > | getPageForToken (ApplyView &view, AccountID const &owner, uint256 const &id, std::function< void(ApplyView &, AccountID const &)> const &createCallback) |
| bool | compareTokens (uint256 const &a, uint256 const &b) |
| TER | changeTokenURI (ApplyView &view, AccountID const &owner, uint256 const &nftokenID, std::optional< ripple::Slice > const &uri) |
| TER | insertToken (ApplyView &view, AccountID owner, STObject &&nft) |
| Insert the token in the owner's token directory. | |
| static bool | mergePages (ApplyView &view, std::shared_ptr< SLE > const &p1, std::shared_ptr< SLE > const &p2) |
| TER | removeToken (ApplyView &view, AccountID const &owner, uint256 const &nftokenID) |
| Remove the token from the owner's token directory. | |
| TER | removeToken (ApplyView &view, AccountID const &owner, uint256 const &nftokenID, std::shared_ptr< SLE > &&curr) |
| Remove the token from the owner's token directory. | |
| std::optional< STObject > | findToken (ReadView const &view, AccountID const &owner, uint256 const &nftokenID) |
| Finds the specified token in the owner's token directory. | |
| std::optional< TokenAndPage > | findTokenAndPage (ApplyView &view, AccountID const &owner, uint256 const &nftokenID) |
| std::size_t | removeTokenOffersWithLimit (ApplyView &view, Keylet const &directory, std::size_t maxDeletableOffers) |
| Delete up to a specified number of offers from the specified token offer directory. | |
| TER | notTooManyOffers (ReadView const &view, uint256 const &nftokenID) |
| Returns tesSUCCESS if NFToken has few enough offers that it can be burned. | |
| bool | deleteTokenOffer (ApplyView &view, std::shared_ptr< SLE > const &offer) |
| Deletes the given token offer. | |
| bool | repairNFTokenDirectoryLinks (ApplyView &view, AccountID const &owner) |
| Repairs the links in an NFTokenPage directory. | |
| NotTEC | tokenOfferCreatePreflight (AccountID const &acctID, STAmount const &amount, std::optional< AccountID > const &dest, std::optional< std::uint32_t > const &expiration, std::uint16_t nftFlags, Rules const &rules, std::optional< AccountID > const &owner=std::nullopt, std::uint32_t txFlags=lsfSellNFToken) |
| Preflight checks shared by NFTokenCreateOffer and NFTokenMint. | |
| TER | tokenOfferCreatePreclaim (ReadView const &view, AccountID const &acctID, AccountID const &nftIssuer, STAmount const &amount, std::optional< AccountID > const &dest, std::uint16_t nftFlags, std::uint16_t xferFee, beast::Journal j, std::optional< AccountID > const &owner=std::nullopt, std::uint32_t txFlags=lsfSellNFToken) |
| Preclaim checks shared by NFTokenCreateOffer and NFTokenMint. | |
| TER | tokenOfferCreateApply (ApplyView &view, AccountID const &acctID, STAmount const &amount, std::optional< AccountID > const &dest, std::optional< std::uint32_t > const &expiration, SeqProxy seqProxy, uint256 const &nftokenID, XRPAmount const &priorBalance, beast::Journal j, std::uint32_t txFlags=lsfSellNFToken) |
| doApply implementation shared by NFTokenCreateOffer and NFTokenMint | |
| TER | checkTrustlineAuthorized (ReadView const &view, AccountID const id, beast::Journal const j, Issue const &issue) |
| TER | checkTrustlineDeepFrozen (ReadView const &view, AccountID const id, beast::Journal const j, Issue const &issue) |
Variables | |
| constexpr std::uint16_t const | flagBurnable = 0x0001 |
| constexpr std::uint16_t const | flagOnlyXRP = 0x0002 |
| constexpr std::uint16_t const | flagCreateTrustLines = 0x0004 |
| constexpr std::uint16_t const | flagTransferable = 0x0008 |
| constexpr std::uint16_t const | flagMutable = 0x0010 |
| using ripple::nft::Taxon = typedef tagged_integer<std::uint32_t, TaxonTag> |
| Taxon ripple::nft::toTaxon | ( | std::uint32_t | i | ) |
| std::uint32_t ripple::nft::toUInt32 | ( | Taxon | t | ) |
| std::uint16_t ripple::nft::getFlags | ( | uint256 const & | id | ) |
| std::uint16_t ripple::nft::getTransferFee | ( | uint256 const & | id | ) |
| std::uint32_t ripple::nft::getSerial | ( | uint256 const & | id | ) |
| Taxon ripple::nft::cipheredTaxon | ( | std::uint32_t | tokenSeq, |
| Taxon | taxon | ||
| ) |
|
constexpr |
| Rate ripple::nft::transferFeeAsRate | ( | std::uint16_t | fee | ) |
|
static |
Definition at line 19 of file NFTokenUtils.cpp.
|
static |
Definition at line 33 of file NFTokenUtils.cpp.
|
static |
Definition at line 47 of file NFTokenUtils.cpp.
Definition at line 197 of file NFTokenUtils.cpp.
| TER ripple::nft::changeTokenURI | ( | ApplyView & | view, |
| AccountID const & | owner, | ||
| uint256 const & | nftokenID, | ||
| std::optional< ripple::Slice > const & | uri | ||
| ) |
Definition at line 212 of file NFTokenUtils.cpp.
Insert the token in the owner's token directory.
Definition at line 246 of file NFTokenUtils.cpp.
|
static |
Definition at line 288 of file NFTokenUtils.cpp.
| TER ripple::nft::removeToken | ( | ApplyView & | view, |
| AccountID const & | owner, | ||
| uint256 const & | nftokenID | ||
| ) |
Remove the token from the owner's token directory.
Definition at line 354 of file NFTokenUtils.cpp.
| TER ripple::nft::removeToken | ( | ApplyView & | view, |
| AccountID const & | owner, | ||
| uint256 const & | nftokenID, | ||
| std::shared_ptr< SLE > && | curr | ||
| ) |
Remove the token from the owner's token directory.
Definition at line 367 of file NFTokenUtils.cpp.
| std::optional< STObject > ripple::nft::findToken | ( | ReadView const & | view, |
| AccountID const & | owner, | ||
| uint256 const & | nftokenID | ||
| ) |
Finds the specified token in the owner's token directory.
Definition at line 526 of file NFTokenUtils.cpp.
| std::optional< TokenAndPage > ripple::nft::findTokenAndPage | ( | ApplyView & | view, |
| AccountID const & | owner, | ||
| uint256 const & | nftokenID | ||
| ) |
Definition at line 548 of file NFTokenUtils.cpp.
| std::size_t ripple::nft::removeTokenOffersWithLimit | ( | ApplyView & | view, |
| Keylet const & | directory, | ||
| std::size_t | maxDeletableOffers | ||
| ) |
Delete up to a specified number of offers from the specified token offer directory.
Definition at line 571 of file NFTokenUtils.cpp.
Returns tesSUCCESS if NFToken has few enough offers that it can be burned.
Definition at line 621 of file NFTokenUtils.cpp.
| bool ripple::nft::deleteTokenOffer | ( | ApplyView & | view, |
| std::shared_ptr< SLE > const & | offer | ||
| ) |
Deletes the given token offer.
An offer is tracked in two separate places:
The offer also consumes one incremental reserve.
Definition at line 648 of file NFTokenUtils.cpp.
Repairs the links in an NFTokenPage directory.
Returns true if a repair took place, otherwise false.
Definition at line 683 of file NFTokenUtils.cpp.
| NotTEC ripple::nft::tokenOfferCreatePreflight | ( | AccountID const & | acctID, |
| STAmount const & | amount, | ||
| std::optional< AccountID > const & | dest, | ||
| std::optional< std::uint32_t > const & | expiration, | ||
| std::uint16_t | nftFlags, | ||
| Rules const & | rules, | ||
| std::optional< AccountID > const & | owner, | ||
| std::uint32_t | txFlags | ||
| ) |
Preflight checks shared by NFTokenCreateOffer and NFTokenMint.
Definition at line 803 of file NFTokenUtils.cpp.
| TER ripple::nft::tokenOfferCreatePreclaim | ( | ReadView const & | view, |
| AccountID const & | acctID, | ||
| AccountID const & | nftIssuer, | ||
| STAmount const & | amount, | ||
| std::optional< AccountID > const & | dest, | ||
| std::uint16_t | nftFlags, | ||
| std::uint16_t | xferFee, | ||
| beast::Journal | j, | ||
| std::optional< AccountID > const & | owner, | ||
| std::uint32_t | txFlags | ||
| ) |
Preclaim checks shared by NFTokenCreateOffer and NFTokenMint.
Definition at line 852 of file NFTokenUtils.cpp.
| TER ripple::nft::tokenOfferCreateApply | ( | ApplyView & | view, |
| AccountID const & | acctID, | ||
| STAmount const & | amount, | ||
| std::optional< AccountID > const & | dest, | ||
| std::optional< std::uint32_t > const & | expiration, | ||
| SeqProxy | seqProxy, | ||
| uint256 const & | nftokenID, | ||
| XRPAmount const & | priorBalance, | ||
| beast::Journal | j, | ||
| std::uint32_t | txFlags | ||
| ) |
doApply implementation shared by NFTokenCreateOffer and NFTokenMint
Definition at line 955 of file NFTokenUtils.cpp.
| TER ripple::nft::checkTrustlineAuthorized | ( | ReadView const & | view, |
| AccountID const | id, | ||
| beast::Journal const | j, | ||
| Issue const & | issue | ||
| ) |
Definition at line 1029 of file NFTokenUtils.cpp.
| TER ripple::nft::checkTrustlineDeepFrozen | ( | ReadView const & | view, |
| AccountID const | id, | ||
| beast::Journal const | j, | ||
| Issue const & | issue | ||
| ) |
Definition at line 1085 of file NFTokenUtils.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |