rippled
Classes | Functions
ripple::test::jtx::token Namespace Reference

Classes

class  brokerFee
 Sets the optional NFTokenBrokerFee field in a brokerOffer transaction. More...
 
class  destination
 Sets the optional Destination field on an NFTokenOffer. More...
 
class  expiration
 Sets the optional Expiration field on an NFTokenOffer. More...
 
class  issuer
 Sets the optional Issuer on an NFTokenMint. More...
 
class  owner
 Sets the optional Owner on an NFTokenOffer. More...
 
class  rootIndex
 Sets the optional RootIndex field when canceling NFTokenOffers. More...
 
class  uri
 Sets the optional URI on an NFTokenMint. More...
 
class  xferFee
 Sets the optional TransferFee on an NFTokenMint. More...
 

Functions

Json::Value mint (jtx::Account const &account, std::uint32_t tokenTaxon=0)
 Mint an NFToken. More...
 
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. More...
 
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. More...
 
Json::Value burn (jtx::Account const &account, uint256 const &nftokenID)
 Burn an NFToken. More...
 
Json::Value createOffer (jtx::Account const &account, uint256 const &nftokenID, STAmount const &amount)
 Create an NFTokenOffer. More...
 
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. More...
 
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. More...
 
Json::Value acceptSellOffer (jtx::Account const &account, uint256 const &offerIndex)
 Accept an NFToken sell offer. More...
 
Json::Value brokerOffers (jtx::Account const &account, uint256 const &buyOfferIndex, uint256 const &sellOfferIndex)
 Broker two NFToken offers. More...
 
Json::Value setMinter (jtx::Account const &account, jtx::Account const &minter)
 Set the authorized minter on an account root. More...
 
Json::Value clearMinter (jtx::Account const &account)
 Clear any authorized minter from an account root. More...
 

Function Documentation

◆ mint()

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

Mint an NFToken.

Definition at line 33 of file token.cpp.

◆ getNextID()

uint256 ripple::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 61 of file token.cpp.

◆ getID()

uint256 ripple::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 75 of file token.cpp.

◆ burn()

Json::Value ripple::test::jtx::token::burn ( jtx::Account const &  account,
uint256 const &  nftokenID 
)

Burn an NFToken.

Definition at line 96 of file token.cpp.

◆ createOffer()

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

Create an NFTokenOffer.

Definition at line 106 of file token.cpp.

◆ cancelOfferImpl()

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

Definition at line 139 of file token.cpp.

◆ cancelOffer() [1/2]

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

Cancel NFTokenOffers.

Definition at line 154 of file token.cpp.

◆ cancelOffer() [2/2]

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

Definition at line 162 of file token.cpp.

◆ acceptBuyOffer()

Json::Value ripple::test::jtx::token::acceptBuyOffer ( jtx::Account const &  account,
uint256 const &  offerIndex 
)

Accept an NFToken buy offer.

Definition at line 176 of file token.cpp.

◆ acceptSellOffer()

Json::Value ripple::test::jtx::token::acceptSellOffer ( jtx::Account const &  account,
uint256 const &  offerIndex 
)

Accept an NFToken sell offer.

Definition at line 186 of file token.cpp.

◆ brokerOffers()

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

Broker two NFToken offers.

Definition at line 196 of file token.cpp.

◆ setMinter()

Json::Value ripple::test::jtx::token::setMinter ( jtx::Account const &  account,
jtx::Account const &  minter 
)

Set the authorized minter on an account root.

Definition at line 216 of file token.cpp.

◆ clearMinter()

Json::Value ripple::test::jtx::token::clearMinter ( jtx::Account const &  account)

Clear any authorized minter from an account root.

Definition at line 224 of file token.cpp.