20#include <xrpld/app/tx/detail/MPTokenIssuanceDestroy.h>
22#include <xrpl/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)
61 if ((*sleMPT)[~sfLockedAmount].value_or(0) != 0)
72 if (
account_ != mpt->getAccountID(sfIssuer))
75 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.
void adjustOwnerCount(ApplyView &view, std::shared_ptr< SLE > const &sle, std::int32_t amount, beast::Journal j)
Adjust the owner count up or down.
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.
bool isTesSuccess(TER x) noexcept
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.