xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::token Namespace Reference

Classes

class  XferFee
 Sets the optional TransferFee on an NFTokenMint. More...
class  Issuer
 Sets the optional Issuer on an NFTokenMint. More...
class  Uri
 Sets the optional URI on an NFTokenMint. More...
class  Amount
 Sets the optional amount field on an NFTokenMint. More...
class  Owner
 Sets the optional Owner on an NFTokenOffer. More...
class  Expiration
 Sets the optional Expiration field on an NFTokenOffer. More...
class  Destination
 Sets the optional Destination field on an NFTokenOffer. More...
class  RootIndex
 Sets the optional RootIndex field when canceling NFTokenOffers. More...
class  BrokerFee
 Sets the optional NFTokenBrokerFee field in a brokerOffer transaction. More...

Functions

json::Value mint (jtx::Account const &account, std::uint32_t tokenTaxon=0)
 Mint an NFToken.
uint256 getNextID (jtx::Env const &env, jtx::Account const &account, std::uint32_t nftokenTaxon, std::uint16_t flags=0, std::uint16_t xferFee=0)
 Get the next NFTokenID that will be issued.
uint256 getID (jtx::Env const &env, jtx::Account const &account, std::uint32_t tokenTaxon, std::uint32_t nftSeq, std::uint16_t flags=0, std::uint16_t xferFee=0)
 Get the NFTokenID for a particular nftSequence.
json::Value burn (jtx::Account const &account, uint256 const &nftokenID)
 Burn an NFToken.
json::Value createOffer (jtx::Account const &account, uint256 const &nftokenID, STAmount const &amount)
 Create an NFTokenOffer.
template<typename T>
static json::Value cancelOfferImpl (jtx::Account const &account, T const &nftokenOffers)
json::Value cancelOffer (jtx::Account const &account, std::initializer_list< uint256 > const &nftokenOffers={})
 Cancel NFTokenOffers.
json::Value cancelOffer (jtx::Account const &account, std::vector< uint256 > const &nftokenOffers)
json::Value acceptBuyOffer (jtx::Account const &account, uint256 const &offerIndex)
 Accept an NFToken buy offer.
json::Value acceptSellOffer (jtx::Account const &account, uint256 const &offerIndex)
 Accept an NFToken sell offer.
json::Value brokerOffers (jtx::Account const &account, uint256 const &buyOfferIndex, uint256 const &sellOfferIndex)
 Broker two NFToken offers.
json::Value setMinter (jtx::Account const &account, jtx::Account const &minter)
 Set the authorized minter on an account root.
json::Value clearMinter (jtx::Account const &account)
 Clear any authorized minter from an account root.
json::Value modify (jtx::Account const &account, uint256 const &nftokenID)
 Modify an NFToken.

Function Documentation

◆ mint()

json::Value xrpl::test::jtx::token::mint ( jtx::Account const & account,
std::uint32_t nfTokenTaxon )

Mint an NFToken.

Definition at line 23 of file token.cpp.

◆ getNextID()

uint256 xrpl::test::jtx::token::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.

Definition at line 57 of file token.cpp.

◆ getID()

uint256 xrpl::test::jtx::token::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.

Definition at line 70 of file token.cpp.

◆ burn()

json::Value xrpl::test::jtx::token::burn ( jtx::Account const & account,
uint256 const & nftokenID )

Burn an NFToken.

Definition at line 86 of file token.cpp.

◆ createOffer()

json::Value xrpl::test::jtx::token::createOffer ( jtx::Account const & account,
uint256 const & nftokenID,
STAmount const & amount )

Create an NFTokenOffer.

Definition at line 96 of file token.cpp.

◆ cancelOfferImpl()

template<typename T>
json::Value xrpl::test::jtx::token::cancelOfferImpl ( jtx::Account const & account,
T const & nftokenOffers )
static

Definition at line 126 of file token.cpp.

◆ cancelOffer() [1/2]

json::Value xrpl::test::jtx::token::cancelOffer ( jtx::Account const & account,
std::initializer_list< uint256 > const & nftokenOffers )

Cancel NFTokenOffers.

Definition at line 141 of file token.cpp.

◆ cancelOffer() [2/2]

json::Value xrpl::test::jtx::token::cancelOffer ( jtx::Account const & account,
std::vector< uint256 > const & nftokenOffers )

Definition at line 147 of file token.cpp.

◆ acceptBuyOffer()

json::Value xrpl::test::jtx::token::acceptBuyOffer ( jtx::Account const & account,
uint256 const & offerIndex )

Accept an NFToken buy offer.

Definition at line 159 of file token.cpp.

◆ acceptSellOffer()

json::Value xrpl::test::jtx::token::acceptSellOffer ( jtx::Account const & account,
uint256 const & offerIndex )

Accept an NFToken sell offer.

Definition at line 169 of file token.cpp.

◆ brokerOffers()

json::Value xrpl::test::jtx::token::brokerOffers ( jtx::Account const & account,
uint256 const & buyOfferIndex,
uint256 const & sellOfferIndex )

Broker two NFToken offers.

Definition at line 179 of file token.cpp.

◆ setMinter()

json::Value xrpl::test::jtx::token::setMinter ( jtx::Account const & account,
jtx::Account const & minter )

Set the authorized minter on an account root.

Definition at line 199 of file token.cpp.

◆ clearMinter()

json::Value xrpl::test::jtx::token::clearMinter ( jtx::Account const & account)

Clear any authorized minter from an account root.

Definition at line 207 of file token.cpp.

◆ modify()

json::Value xrpl::test::jtx::token::modify ( jtx::Account const & account,
uint256 const & nftokenID )

Modify an NFToken.

Definition at line 213 of file token.cpp.