Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
NFTSellOffers.hpp
1//------------------------------------------------------------------------------
2/*
3 This file is part of clio: https://github.com/XRPLF/clio
4 Copyright (c) 2023, the clio developers.
5
6 Permission to use, copy, modify, and distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#pragma once
21
22#include "data/BackendInterface.hpp"
23#include "rpc/common/Types.hpp"
24#include "rpc/handlers/NFTOffersCommon.hpp"
25
26#include <memory>
27
28namespace rpc {
29
36public:
42 NFTSellOffersHandler(std::shared_ptr<BackendInterface> const& sharedPtrBackend)
43 : NFTOffersHandlerBase(sharedPtrBackend)
44 {
45 }
46
54 Result
55 process(Input input, Context const& ctx) const;
56};
57
58} // namespace rpc
Contains common functionality for handling the nft_offers command.
Definition NFTOffersCommon.hpp:48
The nft_sell_offers method returns a list of sell offers for a given NFToken object.
Definition NFTSellOffers.hpp:35
NFTSellOffersHandler(std::shared_ptr< BackendInterface > const &sharedPtrBackend)
Construct a new NFTSellOffersHandler object.
Definition NFTSellOffers.hpp:42
Result process(Input input, Context const &ctx) const
Process the NFTSellOffers command.
Definition NFTSellOffers.cpp:32
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:36
Context of an RPC call.
Definition Types.hpp:118
Result type used to return responses or error statuses to the Webserver subsystem.
Definition Types.hpp:129