1#include <xrpl/basics/base_uint.h>
2#include <xrpl/basics/contract.h>
3#include <xrpl/json/json_errors.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/AccountID.h>
6#include <xrpl/protocol/MPTIssue.h>
7#include <xrpl/protocol/UintTypes.h>
8#include <xrpl/protocol/jss.h>
63 Throw<std::runtime_error>(
64 "mptIssueFromJson can only be specified with an 'object' Json "
70 Throw<std::runtime_error>(
71 "mptIssueFromJson, MPTIssue should not have currency or issuer");
79 "mptIssueFromJson MPTID must be a string Json value");
85 Throw<Json::error>(
"mptIssueFromJson MPTID is invalid");
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.
std::string getText() const
AccountID const & getIssuer() const
void setJson(Json::Value &jv) const
constexpr MPTID const & getMptID() 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)