3#include "data/BackendInterface.hpp"
4#include "rpc/common/SpecBackend.hpp"
5#include "rpc/common/Types.hpp"
7#include <boost/json/array.hpp>
8#include <boost/json/conversion.hpp>
9#include <boost/json/value.hpp>
10#include <rpcspec/handlers/noripple_check/Types.hpp>
30 std::shared_ptr<BackendInterface> sharedPtrBackend_;
63 : sharedPtrBackend_(std::move(sharedPtrBackend))
85 tag_invoke(boost::json::value_from_tag, boost::json::value& jv, Output
const& output);
static constexpr auto kLimitDefault
Default value of the limit parameter.
Definition NoRippleCheck.hpp:35
NoRippleCheckHandler(std::shared_ptr< BackendInterface > sharedPtrBackend)
Construct a new NoRippleCheckHandler object.
Definition NoRippleCheck.hpp:62
HandlerReturnType< Output > Result
The result type of the command: either the Output or an error status.
Definition NoRippleCheck.hpp:55
Result process(Input const &input, Context const &ctx) const
Process the NoRippleCheck command.
Definition NoRippleCheck.cpp:38
static constexpr auto kLimitMax
Maximum allowed value of the limit parameter.
Definition NoRippleCheck.hpp:34
static constexpr auto kLimitMin
Minimum allowed value of the limit parameter.
Definition NoRippleCheck.hpp:33
friend void tag_invoke(boost::json::value_from_tag, boost::json::value &jv, Output const &output)
Convert the Output to a JSON object.
Definition NoRippleCheck.cpp:174
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:17
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:63
spec::HandlerFor< InputT, boost::json::value > HandlerFor
The spec-driven base every typed handler inherits.
Definition SpecBackend.hpp:24
Context of an RPC call.
Definition Types.hpp:102
A struct to hold the output data of the command.
Definition NoRippleCheck.hpp:40
std::string ledgerHash
Hash of the ledger used.
Definition NoRippleCheck.hpp:41
std::optional< boost::json::array > transactions
Transactions fixing the problems, if requested.
Definition NoRippleCheck.hpp:48
std::vector< std::string > problems
Human-readable descriptions of problems found.
Definition NoRippleCheck.hpp:43
bool validated
Whether the ledger is validated.
Definition NoRippleCheck.hpp:49
uint32_t ledgerIndex
Sequence of the ledger used.
Definition NoRippleCheck.hpp:42
Result type used to return responses or error statuses to the Webserver subsystem.
Definition Types.hpp:132