20 #include <ripple/app/tx/impl/DeleteOracle.h>
21 #include <ripple/ledger/Sandbox.h>
22 #include <ripple/ledger/View.h>
23 #include <ripple/protocol/Feature.h>
24 #include <ripple/protocol/Rules.h>
25 #include <ripple/protocol/TxFlags.h>
40 JLOG(ctx.
j.
debug()) <<
"Oracle Delete: invalid flags.";
57 JLOG(ctx.
j.
debug()) <<
"Oracle Delete: Oracle does not exist.";
63 JLOG(ctx.
j.
debug()) <<
"Oracle Delete: invalid account.";
82 JLOG(j.
fatal()) <<
"Unable to delete Oracle from owner.";
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
const SF_UINT64 sfOwnerNode
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
static NotTEC preflight(PreflightContext const &ctx)
Keylet oracle(AccountID const &account, std::uint32_t const &documentID) noexcept
virtual void erase(std::shared_ptr< SLE > const &sle)=0
Remove a peeked SLE.
static TER deleteOracle(ApplyView &view, std::shared_ptr< SLE > const &sle, AccountID const &account, beast::Journal j)
static bool adjustOwnerCount(ApplyContext &ctx, int count)
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Writeable view to a ledger, for applying a transaction.
static TER preclaim(PreclaimContext const &ctx)
bool dirRemove(Keylet const &directory, std::uint64_t page, uint256 const &key, bool keepRoot)
Remove an entry from a directory.
Keylet account(AccountID const &id) noexcept
AccountID root.
AccountID getAccountID(SField const &field) const
virtual bool exists(Keylet const &k) const =0
Determine if a state item exists.
const SF_UINT32 sfOracleDocumentID
std::uint32_t getFlags() const
A generic endpoint for log messages.
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
State information when determining if a tx is likely to claim a fee.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const uint256 featurePriceOracle
const SF_ACCOUNT sfAccount
State information when preflighting a tx.
constexpr std::uint32_t tfUniversalMask
const SField sfPriceDataSeries
TERSubset< CanCvtToNotTEC > NotTEC