Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::AMMInfoHandler Class Reference

AMMInfoHandler returns information about AMM pools. More...

#include <AMMInfo.hpp>

Inheritance diagram for rpc::AMMInfoHandler:
Collaboration diagram for rpc::AMMInfoHandler:

Classes

struct  Output
 A struct to hold the output data of the command. More...

Public Types

using Result = HandlerReturnType<Output>

Public Member Functions

 AMMInfoHandler (std::shared_ptr< BackendInterface > sharedPtrBackend, std::shared_ptr< data::AmendmentCenterInterface const > const &amendmentCenter)
 Construct a new AMMInfoHandler object.
Result process (Input const &input, Context const &ctx) const
 Process the AMMInfo command.

Friends

void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, AMMInfoHandler::Output const &output)
 Convert the Output to a JSON object.

Detailed Description

AMMInfoHandler returns information about AMM pools.

For more info see: https://xrpl.org/amm_info.html

Constructor & Destructor Documentation

◆ AMMInfoHandler()

rpc::AMMInfoHandler::AMMInfoHandler ( std::shared_ptr< BackendInterface > sharedPtrBackend,
std::shared_ptr< data::AmendmentCenterInterface const > const & amendmentCenter )
inline

Construct a new AMMInfoHandler object.

Parameters
sharedPtrBackendThe backend to use
amendmentCenterThe amendmentCenter to use

Member Function Documentation

◆ process()

AMMInfoHandler::Result rpc::AMMInfoHandler::process ( Input const & input,
Context const & ctx ) const
nodiscard

Process the AMMInfo command.

Parameters
inputThe input data for the command
ctxThe context of the request
Returns
The result of the operation

◆ tag_invoke

void tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
AMMInfoHandler::Output const & output )
friend

Convert the Output to a JSON object.

Parameters
[out]jvThe JSON object to convert to
outputThe output to convert

The documentation for this class was generated from the following files:
  • /__w/clio/clio/src/rpc/handlers/AMMInfo.hpp
  • /__w/clio/clio/src/rpc/handlers/AMMInfo.cpp