Files
rippled/include/xrpl/protocol/NFTokenID.h
Pratik Mankawde 63d91b24b9 first itr
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
2026-01-22 11:03:40 +00:00

45 lines
971 B
C++

#ifndef XRPL_PROTOCOL_NFTOKENID_H_INCLUDED
#define XRPL_PROTOCOL_NFTOKENID_H_INCLUDED
#include <xrpl/basics/base_uint.h>
#include <xrpl/json/json_forwards.h>
#include <memory>
#include <optional>
#include <vector>
namespace xrpl {
class STTx;
class TxMeta;
/**
Add a `nftoken_ids` field to the `meta` output parameter.
The field is only added to successful NFTokenMint, NFTokenAcceptOffer,
and NFTokenCancelOffer transactions.
Helper functions are not static because they can be used by Clio.
@{
*/
bool
canHaveNFTokenID(
std::shared_ptr<STTx const> const& serializedTx,
TxMeta const& transactionMeta);
std::optional<uint256>
getNFTokenIDFromPage(TxMeta const& transactionMeta);
std::vector<uint256>
getNFTokenIDFromDeletedOffer(TxMeta const& transactionMeta);
void
insertNFTokenID(
Json::Value& response,
std::shared_ptr<STTx const> const& transaction,
TxMeta const& transactionMeta);
/** @} */
} // namespace xrpl
#endif