|
xrpld
|
Represents an IOU (issued currency) for testing. More...
#include <IOU.h>

Public Member Functions | |
| IOU (std::string_view currencyCode, Account const &issuer) | |
| Construct an IOU from a currency code and issuing account. | |
| IOU (Currency currency, Account const &issuer) | |
| Construct an IOU from a Currency and issuing account. | |
| Issue | issue () const |
| Get the Issue (currency + issuer pair). | |
| Asset | asset () const |
| Get the Asset. | |
| template<typename T> | |
| STAmount | amount (T value) const |
| Create an STAmount of this IOU. | |
| STAmount | amount (Number const &value) const |
| Create an STAmount of this IOU from a Number. | |
| Currency const & | currency () const |
| Get the currency. | |
| AccountID const & | issuer () const |
| Get the issuer account ID. | |
Private Attributes | |
| Currency | currency_ |
| AccountID | issuer_ |
Represents an IOU (issued currency) for testing.
Provides a clear, explicit API for creating currencies issued by an account. This replaces the cryptic Account::operator[] from the jtx framework.
| xrpl::test::IOU::IOU | ( | std::string_view | currencyCode, |
| Account const & | issuer ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |