1#include <xrpl/ledger/View.h>
2#include <xrpl/ledger/helpers/AccountRootHelpers.h>
3#include <xrpl/protocol/TxFlags.h>
4#include <xrpl/tx/transactors/permissioned_domain/PermissionedDomainDelete.h>
12 if (domain == beast::zero)
29 "xrpl::PermissionedDomainDelete::preclaim : required fields present");
30 if (sleDomain->getAccountID(sfOwner) != ctx.
tx.
getAccountID(sfAccount))
42 "xrpl::PermissionedDomainDelete::doApply : required field present");
45 auto const page = (*slePd)[sfOwnerNode];
50 JLOG(
j_.
fatal()) <<
"Unable to delete permissioned domain directory entry.";
57 ownerSle && ownerSle->getFieldU32(sfOwnerCount) > 0,
58 "xrpl::PermissionedDomainDelete::doApply : nonzero owner count");
beast::Journal const journal
virtual void erase(std::shared_ptr< SLE > const &sle)=0
Remove a peeked SLE.
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
TER doApply() override
Attempt to delete the Permissioned Domain.
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.
T::value_type at(TypedField< T > const &f) const
Get the value of a field.
bool isFieldPresent(SField const &field) const
uint256 getFieldH256(SField const &field) const
AccountID getAccountID(SField const &field) const
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Keylet account(AccountID const &id) noexcept
AccountID root.
Keylet permissionedDomain(AccountID const &account, std::uint32_t seq) noexcept
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.
TERSubset< CanCvtToNotTEC > NotTEC
State information when determining if a tx is likely to claim a fee.
State information when preflighting a tx.