22#include "data/Types.hpp"
24#include <boost/asio/spawn.hpp>
46 [[nodiscard]]
virtual bool
54 [[nodiscard]]
virtual std::map<std::string, Amendment>
const&
62 [[nodiscard]]
virtual std::vector<Amendment>
const&
72 [[nodiscard]]
virtual bool
83 [[nodiscard]]
virtual bool
94 [[nodiscard]]
virtual std::vector<bool>
95 isEnabled(boost::asio::yield_context yield, std::vector<AmendmentKey>
const& keys, uint32_t seq)
const = 0;
The interface of an amendment center.
Definition AmendmentCenterInterface.hpp:36
virtual Amendment const & operator[](AmendmentKey const &key) const =0
Get an amendment by its key.
virtual std::map< std::string, Amendment > const & getSupported() const =0
Get all supported amendments as a map.
virtual std::vector< bool > isEnabled(boost::asio::yield_context yield, std::vector< AmendmentKey > const &keys, uint32_t seq) const =0
Check whether an amendment was/is enabled for a given sequence.
virtual std::vector< Amendment > const & getAll() const =0
Get all known amendments.
virtual Amendment const & getAmendment(AmendmentKey const &key) const =0
Get an amendment.
virtual bool isEnabled(AmendmentKey const &key, uint32_t seq) const =0
Check whether an amendment was/is enabled for a given sequence.
virtual bool isSupported(AmendmentKey const &key) const =0
Check whether an amendment is supported by Clio.
virtual bool isEnabled(boost::asio::yield_context yield, AmendmentKey const &key, uint32_t seq) const =0
Check whether an amendment was/is enabled for a given sequence.
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:70
A helper for amendment name to feature conversions.
Definition Types.hpp:286
Represents an amendment in the XRPL.
Definition Types.hpp:255