#ifndef XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED #define XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED #include #include #include #include #include #include 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 const& serializedTx, TxMeta const& transactionMeta); std::optional getOfferIDFromCreatedOffer(TxMeta const& transactionMeta); void insertNFTokenOfferID( Json::Value& response, std::shared_ptr const& transaction, TxMeta const& transactionMeta); /** @} */ } // namespace ripple #endif