mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d). This change specifically removes all copyright notices referencing Ripple, XRPLF, and certain affiliated contributors upon mutual agreement, so the notice in the LICENSE.md file applies throughout. Copyright notices referencing external contributions remain as-is. Duplicate verbiage is also removed.
39 lines
897 B
C++
39 lines
897 B
C++
#ifndef XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED
|
|
#define XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED
|
|
|
|
#include <xrpl/basics/base_uint.h>
|
|
#include <xrpl/json/json_forwards.h>
|
|
#include <xrpl/protocol/STTx.h>
|
|
#include <xrpl/protocol/TxMeta.h>
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
|
|
namespace ripple {
|
|
|
|
/**
|
|
Add an `offer_id` field to the `meta` output parameter.
|
|
The field is only added to successful NFTokenCreateOffer transactions.
|
|
|
|
Helper functions are not static because they can be used by Clio.
|
|
@{
|
|
*/
|
|
bool
|
|
canHaveNFTokenOfferID(
|
|
std::shared_ptr<STTx const> const& serializedTx,
|
|
TxMeta const& transactionMeta);
|
|
|
|
std::optional<uint256>
|
|
getOfferIDFromCreatedOffer(TxMeta const& transactionMeta);
|
|
|
|
void
|
|
insertNFTokenOfferID(
|
|
Json::Value& response,
|
|
std::shared_ptr<STTx const> const& transaction,
|
|
TxMeta const& transactionMeta);
|
|
/** @} */
|
|
|
|
} // namespace ripple
|
|
|
|
#endif
|