20#include <xrpld/app/tx/detail/NFTokenModify.h>
21#include <xrpld/app/tx/detail/NFTokenUtils.h>
23#include <xrpl/protocol/Feature.h>
24#include <xrpl/protocol/TxFlags.h>
41 if (
auto owner = ctx.
tx[~sfOwner]; owner == ctx.
tx[sfAccount])
44 if (
auto uri = ctx.
tx[~sfURI])
74 if (
auto const minter = (*sle)[~sfNFTokenMinter]; minter != account)
static TER preclaim(PreclaimContext const &ctx)
static NotTEC preflight(PreflightContext const &ctx)
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
bool isFieldPresent(SField const &field) const
std::uint32_t getFlags() const
Keylet account(AccountID const &id) noexcept
AccountID root.
std::uint16_t getFlags(uint256 const &id)
constexpr std::uint16_t const flagMutable
AccountID getIssuer(uint256 const &id)
std::optional< STObject > findToken(ReadView const &view, AccountID const &owner, uint256 const &nftokenID)
Finds the specified token in the owner's token directory.
TER changeTokenURI(ApplyView &view, AccountID const &owner, uint256 const &nftokenID, std::optional< ripple::Slice > const &uri)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
bool isTesSuccess(TER x) noexcept
constexpr std::uint32_t tfUniversalMask
TERSubset< CanCvtToNotTEC > NotTEC
State information when determining if a tx is likely to claim a fee.
State information when preflighting a tx.