#pragma once #include #include #include #include #include #include #include #include namespace xrpl { class SetRegularKey : public Transactor { public: static constexpr auto kConsequencesFactory = ConsequencesFactoryType::Blocker; explicit SetRegularKey(ApplyContext& ctx) : Transactor(ctx) { } static NotTEC preflight(PreflightContext const& ctx); static XRPAmount calculateBaseFee(ReadView const& view, STTx const& tx); TER doApply() override; void visitInvariantEntry(bool isDelete, SLE::const_ref before, SLE::const_ref after) override; [[nodiscard]] bool finalizeInvariants( STTx const& tx, TER result, XRPAmount fee, ReadView const& view, beast::Journal const& j) override; }; } // namespace xrpl