rippled
Loading...
Searching...
No Matches
NFTokenOfferID.h
1#ifndef XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED
2#define XRPL_PROTOCOL_NFTOKENOFFERID_H_INCLUDED
3
4#include <xrpl/basics/base_uint.h>
5#include <xrpl/json/json_forwards.h>
6#include <xrpl/protocol/STTx.h>
7#include <xrpl/protocol/TxMeta.h>
8
9#include <memory>
10#include <optional>
11
12namespace ripple {
13
21bool
23 std::shared_ptr<STTx const> const& serializedTx,
24 TxMeta const& transactionMeta);
25
27getOfferIDFromCreatedOffer(TxMeta const& transactionMeta);
28
29void
31 Json::Value& response,
32 std::shared_ptr<STTx const> const& transaction,
33 TxMeta const& transactionMeta);
36} // namespace ripple
37
38#endif
Represents a JSON value.
Definition json_value.h:130
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
bool canHaveNFTokenOfferID(std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta)
Add an offer_id field to the meta output parameter.
std::optional< uint256 > getOfferIDFromCreatedOffer(TxMeta const &transactionMeta)
void insertNFTokenOfferID(Json::Value &response, std::shared_ptr< STTx const > const &transaction, TxMeta const &transactionMeta)