1#ifndef XRPL_TEST_JTX_NFT_H_INCLUDED
2#define XRPL_TEST_JTX_NFT_H_INCLUDED
4#include <test/jtx/Account.h>
5#include <test/jtx/Env.h>
6#include <test/jtx/owners.h>
8#include <xrpl/basics/strHex.h>
196 uint256 const& sellOfferIndex);
Immutable cryptographic account descriptor.
A transaction testing environment.
Sets the optional amount field on an NFTokenMint.
void operator()(Env &, JTx &jtx) const
amount(STAmount const amount)
Sets the optional NFTokenBrokerFee field in a brokerOffer transaction.
STAmount const brokerFee_
brokerFee(STAmount const fee)
void operator()(Env &, JTx &jtx) const
Sets the optional Destination field on an NFTokenOffer.
void operator()(Env &, JTx &jtx) const
destination(jtx::Account const &dest)
Sets the optional Expiration field on an NFTokenOffer.
void operator()(Env &, JTx &jtx) const
expiration(std::uint32_t const &expires)
Sets the optional Issuer on an NFTokenMint.
issuer(jtx::Account const &issue)
void operator()(Env &, JTx &jtx) const
Sets the optional Owner on an NFTokenOffer.
owner(jtx::Account const &ownedBy)
void operator()(Env &, JTx &jtx) const
Sets the optional RootIndex field when canceling NFTokenOffers.
void operator()(Env &, JTx &jtx) const
rootIndex(uint256 const &index)
Sets the optional URI on an NFTokenMint.
uri(std::string const &u)
void operator()(Env &, JTx &jtx) const
Sets the optional TransferFee on an NFTokenMint.
void operator()(Env &, JTx &jtx) const
xferFee(std::uint16_t fee)
Json::Value clearMinter(jtx::Account const &account)
Clear any authorized minter from an account root.
uint256 getNextID(jtx::Env const &env, jtx::Account const &issuer, std::uint32_t nfTokenTaxon, std::uint16_t flags, std::uint16_t xferFee)
Get the next NFTokenID that will be issued.
uint256 getID(jtx::Env const &env, jtx::Account const &issuer, std::uint32_t nfTokenTaxon, std::uint32_t nftSeq, std::uint16_t flags, std::uint16_t xferFee)
Get the NFTokenID for a particular nftSequence.
Json::Value setMinter(jtx::Account const &account, jtx::Account const &minter)
Set the authorized minter on an account root.
Json::Value createOffer(jtx::Account const &account, uint256 const &nftokenID, STAmount const &amount)
Create an NFTokenOffer.
Json::Value acceptSellOffer(jtx::Account const &account, uint256 const &offerIndex)
Accept an NFToken sell offer.
Json::Value modify(jtx::Account const &account, uint256 const &nftokenID)
Modify an NFToken.
Json::Value acceptBuyOffer(jtx::Account const &account, uint256 const &offerIndex)
Accept an NFToken buy offer.
Json::Value mint(jtx::Account const &account, std::uint32_t nfTokenTaxon)
Mint an NFToken.
Json::Value burn(jtx::Account const &account, uint256 const &nftokenID)
Burn an NFToken.
Json::Value cancelOffer(jtx::Account const &account, std::initializer_list< uint256 > const &nftokenOffers)
Cancel NFTokenOffers.
Json::Value brokerOffers(jtx::Account const &account, uint256 const &buyOfferIndex, uint256 const &sellOfferIndex)
Broker two NFToken offers.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string strHex(FwdIt begin, FwdIt end)
std::string to_string(base_uint< Bits, Tag > const &a)
Execution context for applying a JSON transaction.