20#include <xrpl/protocol/NFTokenOfferID.h>
21#include <xrpl/protocol/jss.h>
28 TxMeta const& transactionMeta)
33 TxType const tt = serializedTx->getTxnType();
34 if (!(tt == ttNFTOKEN_MINT && serializedTx->isFieldPresent(sfAmount)) &&
35 tt != ttNFTOKEN_CREATE_OFFER)
50 if (node.getFieldU16(sfLedgerEntryType) != ltNFTOKEN_OFFER ||
51 node.getFName() != sfCreatedNode)
54 return node.getFieldH256(sfLedgerIndex);
63 TxMeta const& transactionMeta)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool canHaveNFTokenOfferID(std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta)
Add an offer_id field to the meta output parameter.
TxType
Transaction type identifiers.
std::optional< uint256 > getOfferIDFromCreatedOffer(TxMeta const &transactionMeta)
void insertNFTokenOfferID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)
std::string to_string(base_uint< Bits, Tag > const &a)