20#include <xrpld/app/tx/detail/MPTokenIssuanceDestroy.h>
21#include <xrpld/ledger/View.h>
23#include <xrpl/protocol/Feature.h>
24#include <xrpl/protocol/TxFlags.h>
54 if ((*sleMPT)[sfIssuer] != ctx.
tx[sfAccount])
58 if ((*sleMPT)[~sfOutstandingAmount] != 0)
69 if (
account_ != mpt->getAccountID(sfIssuer))
72 if (!
view().dirRemove(
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
virtual void erase(std::shared_ptr< SLE > const &sle)=0
Remove a peeked SLE.
static NotTEC preflight(PreflightContext const &ctx)
static TER preclaim(PreclaimContext 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.
std::uint32_t getFlags() const
Keylet mptIssuance(std::uint32_t seq, AccountID const &issuer) noexcept
Keylet account(AccountID const &id) noexcept
AccountID root.
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
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.
static bool adjustOwnerCount(ApplyContext &ctx, int count)
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
TERSubset< CanCvtToNotTEC > NotTEC
constexpr std::uint32_t const tfMPTokenIssuanceDestroyMask
State information when determining if a tx is likely to claim a fee.
State information when preflighting a tx.