|
xrpld
|
The shared body of the nft_buy_offers and nft_sell_offers handlers. More...
#include <NFTOffersCommon.h>


Classes | |
| struct | Output |
| The data an NFT offers request produces, written out by writeResult(). More... | |
Static Public Member Functions | |
| static void | writeResult (json::Value &value, Output const &output) |
| Write the output of process() into the response. | |
Protected Member Functions | |
| NFTOffersHandlerBase (JsonContext &context) | |
| Construct a handler for a single request. | |
| std::expected< Output, ::rpc::Status > | enumerateOffers (Input const &input, Keylet const &directory) const |
| Enumerate one page of an NFT offer directory. | |
Private Attributes | |
| std::reference_wrapper< JsonContext > | context_ |
The shared body of the nft_buy_offers and nft_sell_offers handlers.
The request is parsed by ::rpc::spec::handlers::nft_offers_common. The two handlers differ only in the offer directory they enumerate.
Definition at line 28 of file NFTOffersCommon.h.
|
explicitprotected |
Construct a handler for a single request.
| context | The context of the request being handled. |
Definition at line 58 of file NFTOffersCommon.cpp.
|
static |
Write the output of process() into the response.
| value | The response to write into. |
| output | The output process() returned. |
Definition at line 141 of file NFTOffersCommon.cpp.
|
nodiscardprotected |
Enumerate one page of an NFT offer directory.
| input | The request, parsed and validated by the spec. |
| directory | The buy or sell offer directory of the NFT. |
Definition at line 63 of file NFTOffersCommon.cpp.
|
private |
Definition at line 70 of file NFTOffersCommon.h.