20#include <xrpl/json/json_errors.h>
21#include <xrpl/protocol/MPTIssue.h>
22#include <xrpl/protocol/jss.h>
79 Throw<std::runtime_error>(
80 "mptIssueFromJson can only be specified with an 'object' Json "
86 Throw<std::runtime_error>(
87 "mptIssueFromJson, MPTIssue should not have currency or issuer");
95 "mptIssueFromJson MPTID must be a string Json value");
101 Throw<Json::error>(
"mptIssueFromJson MPTID is invalid");
std::string asString() const
Returns the unquoted string value.
bool isMember(const char *key) const
Return true if the object has a member named key.
std::string getText() const
MPTID const & getMptID() const
AccountID const & getIssuer() const
void setJson(Json::Value &jv) const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
base_uint< 192 > MPTID
MPTID is a 192-bit value representing MPT Issuance ID, which is a concatenation of a 32-bit sequence ...
MPTIssue mptIssueFromJson(Json::Value const &jv)
Json::Value to_json(Asset const &asset)
std::string to_string(base_uint< Bits, Tag > const &a)