20#include <xrpl/basics/base_uint.h>
21#include <xrpl/basics/contract.h>
22#include <xrpl/json/json_errors.h>
23#include <xrpl/json/json_value.h>
24#include <xrpl/protocol/AccountID.h>
25#include <xrpl/protocol/MPTIssue.h>
26#include <xrpl/protocol/UintTypes.h>
27#include <xrpl/protocol/jss.h>
82 Throw<std::runtime_error>(
83 "mptIssueFromJson can only be specified with an 'object' Json "
89 Throw<std::runtime_error>(
90 "mptIssueFromJson, MPTIssue should not have currency or issuer");
98 "mptIssueFromJson MPTID must be a string Json value");
104 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)