20 #ifndef RIPPLE_TEST_JTX_NFT_H_INCLUDED
21 #define RIPPLE_TEST_JTX_NFT_H_INCLUDED
23 #include <test/jtx/Account.h>
24 #include <test/jtx/Env.h>
25 #include <test/jtx/owners.h>
27 #include <ripple/basics/strHex.h>
200 uint256 const& sellOfferIndex);
232 #endif // RIPPLE_TEST_JTX_NFT_H_INCLUDED
Sets the optional Expiration field on an NFTokenOffer.
Sets the optional Destination field on an NFTokenOffer.
rootIndex(uint256 const &index)
void operator()(Env &, JTx &jtx) const
Json::Value acceptBuyOffer(jtx::Account const &account, uint256 const &offerIndex)
Accept an NFToken buy offer.
Json::Value brokerOffers(jtx::Account const &account, uint256 const &buyOfferIndex, uint256 const &sellOfferIndex)
Broker two NFToken offers.
Sets the optional Issuer on an NFTokenMint.
xferFee(std::uint16_t fee)
owner(jtx::Account const &ownedBy)
brokerFee(STAmount const fee)
Json::Value acceptSellOffer(jtx::Account const &account, uint256 const &offerIndex)
Accept an NFToken sell offer.
void operator()(Env &, JTx &jtx) const
issuer(jtx::Account const &issue)
Sets the optional URI on an NFTokenMint.
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.
void operator()(Env &, JTx &jtx) const
Sets the optional RootIndex field when canceling NFTokenOffers.
Sets the optional Owner on an NFTokenOffer.
Json::Value cancelOffer(jtx::Account const &account, std::initializer_list< uint256 > const &nftokenOffers)
Cancel NFTokenOffers.
Sets the optional NFTokenBrokerFee field in a brokerOffer transaction.
Sets the optional TransferFee on an NFTokenMint.
const STAmount brokerFee_
destination(jtx::Account const &dest)
Json::Value burn(jtx::Account const &account, uint256 const &nftokenID)
Burn an NFToken.
Execution context for applying a JSON transaction.
void operator()(Env &, JTx &jtx) const
Json::Value mint(jtx::Account const &account, std::uint32_t nfTokenTaxon)
Mint an NFToken.
uri(std::string const &u)
void operator()(Env &, JTx &jtx) const
Json::Value createOffer(jtx::Account const &account, uint256 const &nftokenID, STAmount const &amount)
Create an NFTokenOffer.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void operator()(Env &, JTx &jtx) const
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
Immutable cryptographic account descriptor.
std::string strHex(FwdIt begin, FwdIt end)
expiration(std::uint32_t const &expires)
void operator()(Env &, JTx &jtx) const
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.
A transaction testing environment.
Json::Value clearMinter(jtx::Account const &account)
Clear any authorized minter from an account root.
Json::Value setMinter(jtx::Account const &account, jtx::Account const &minter)
Set the authorized minter on an account root.
void operator()(Env &, JTx &jtx) const