1#include <xrpl/protocol/Issue.h>
3#include <xrpl/basics/contract.h>
4#include <xrpl/json/json_errors.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/AccountID.h>
7#include <xrpl/protocol/UintTypes.h>
8#include <xrpl/protocol/jss.h>
94 "issueFromJson can only be specified with an 'object' Json value");
97 if (v.
isMember(jss::mpt_issuance_id))
136 return Issue{currency, *issuer};
bool isNull() const
isNull() tests to see if this field is null.
std::string asString() const
Returns the unquoted string value.
bool isMember(char const *key) const
Return true if the object has a member named key.
A currency issued by an account.
void setJson(json::Value &jv) const
std::string getText() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Issue const & xrpIssue()
Returns an asset specifier that represents XRP.
Issue issueFromJson(json::Value const &v)
bool isXRP(AccountID const &c)
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
bool toCurrency(Currency &, std::string const &)
Tries to convert a string to a Currency, returns true on success.
std::ostream & operator<<(std::ostream &out, BaseUInt< Bits, Tag > const &u)
std::string to_string(BaseUInt< Bits, Tag > const &a)
json::Value toJson(Asset const &asset)
AccountID const & noAccount()
A placeholder for empty accounts.
bool isConsistent(Asset const &asset)
Currency const & noCurrency()
A placeholder for empty currencies.
AccountID const & xrpAccount()
Compute AccountID from public key.
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)