20 #ifndef RIPPLE_PROTOCOL_TER_H_INCLUDED
21 #define RIPPLE_PROTOCOL_TER_H_INCLUDED
23 #include <ripple/basics/safe_cast.h>
24 #include <ripple/json/json_value.h>
303 return safe_cast<TERUnderlyingType>(v);
309 return safe_cast<TERUnderlyingType>(v);
315 return safe_cast<TERUnderlyingType>(v);
321 return safe_cast<TERUnderlyingType>(v);
327 return safe_cast<TERUnderlyingType>(v);
333 return safe_cast<TERUnderlyingType>(v);
339 template <
template <
typename>
class Trait>
368 Trait<std::remove_cv_t<std::remove_reference_t<T>>>::value>>
380 template <
typename T>
389 explicit operator bool()
const
405 return os << rhs.
code_;
433 template <
typename L,
typename R>
443 template <
typename L,
typename R>
453 template <
typename L,
typename R>
463 template <
typename L,
typename R>
473 template <
typename L,
typename R>
483 template <
typename L,
typename R>
503 template <
typename FROM>
534 template <
typename FROM>
friend std::ostream & operator<<(std::ostream &os, TERSubset const &rhs)
constexpr friend TERUnderlyingType TERtoInt(TERSubset v)
std::string transToken(TER code)
@ telNETWORK_ID_MAKES_TX_NON_CANONICAL
constexpr TERUnderlyingType TERtoInt(TELcodes v)
@ tecCANT_ACCEPT_OWN_NFTOKEN_OFFER
bool operator==(Manifest const &lhs, Manifest const &rhs)
std::optional< TER > transCode(std::string const &token)
constexpr TERSubset(T rhs)
@ tecNFTOKEN_OFFER_TYPE_MISMATCH
bool operator<=(STAmount const &lhs, STAmount const &rhs)
@ temBAD_SEND_XRP_PARTIAL
bool operator>(STAmount const &lhs, STAmount const &rhs)
@ tefNFTOKEN_IS_NOT_TRANSFERABLE
bool operator<(CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs)
bool operator!=(Manifest const &lhs, Manifest const &rhs)
bool operator>=(STAmount const &lhs, STAmount const &rhs)
TERSubset< CanCvtToTER > TER
constexpr auto operator=(T rhs) -> std::enable_if_t< Trait< T >::value, TERSubset & >
@ temBAD_SEND_XRP_NO_DIRECT
@ telCAN_NOT_QUEUE_BLOCKS
constexpr TERSubset(int rhs)
std::string transHuman(TER code)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool transResultInfo(TER code, std::string &token, std::string &text)
@ tecNFTOKEN_BUY_SELL_MISMATCH
@ tecNO_LINE_INSUF_RESERVE
@ tecINSUFFICIENT_PAYMENT
static constexpr TERSubset fromInt(int from)
@ tecNO_SUITABLE_NFTOKEN_PAGE
@ tecMAX_SEQUENCE_REACHED
@ tecINSUFFICIENT_RESERVE
@ telCAN_NOT_QUEUE_BALANCE
@ temBAD_NFTOKEN_TRANSFER_FEE
bool isTemMalformed(TER x)
constexpr TERSubset & operator=(TERSubset const &rhs)=default
@ telCAN_NOT_QUEUE_BLOCKED
@ tecCRYPTOCONDITION_ERROR