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>
343 return safe_cast<TERUnderlyingType>(v);
349 return safe_cast<TERUnderlyingType>(v);
355 return safe_cast<TERUnderlyingType>(v);
361 return safe_cast<TERUnderlyingType>(v);
367 return safe_cast<TERUnderlyingType>(v);
373 return safe_cast<TERUnderlyingType>(v);
379 template <
template <
typename>
class Trait>
408 Trait<std::remove_cv_t<std::remove_reference_t<T>>>::value>>
420 template <
typename T>
429 explicit operator bool()
const
445 return os << rhs.
code_;
473 template <
typename L,
typename R>
483 template <
typename L,
typename R>
493 template <
typename L,
typename R>
503 template <
typename L,
typename R>
513 template <
typename L,
typename R>
523 template <
typename L,
typename R>
543 template <
typename FROM>
574 template <
typename FROM>
@ tecXCHAIN_ACCOUNT_CREATE_TOO_MANY
@ tecXCHAIN_PROOF_UNKNOWN_KEY
@ tecXCHAIN_CLAIM_NO_QUORUM
friend std::ostream & operator<<(std::ostream &os, TERSubset const &rhs)
std::unordered_map< TERUnderlyingType, std::pair< char const *const, char const *const > > const & transResults()
@ tecXCHAIN_SENDING_ACCOUNT_MISMATCH
@ temXCHAIN_EQUAL_DOOR_ACCOUNTS
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
@ temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT
bool operator==(Manifest const &lhs, Manifest const &rhs)
std::optional< TER > transCode(std::string const &token)
@ temXCHAIN_BRIDGE_BAD_ISSUES
constexpr TERSubset(T rhs)
@ tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR
@ 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
@ tecXCHAIN_ACCOUNT_CREATE_PAST
constexpr auto operator=(T rhs) -> std::enable_if_t< Trait< T >::value, TERSubset & >
@ tecXCHAIN_PAYMENT_FAILED
@ temBAD_SEND_XRP_NO_DIRECT
@ tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE
@ tecXCHAIN_BAD_TRANSFER_ISSUE
@ 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)
@ tecXCHAIN_CREATE_ACCOUNT_DISABLED
@ tecNFTOKEN_BUY_SELL_MISMATCH
@ tecNO_LINE_INSUF_RESERVE
@ tecINSUFFICIENT_PAYMENT
@ tecXCHAIN_REWARD_MISMATCH
static constexpr TERSubset fromInt(int from)
@ tecNO_SUITABLE_NFTOKEN_PAGE
@ tecMAX_SEQUENCE_REACHED
@ tecINSUFFICIENT_RESERVE
@ temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT
@ telCAN_NOT_QUEUE_BALANCE
@ temXCHAIN_BRIDGE_NONDOOR_OWNER
@ tecXCHAIN_NO_SIGNERS_LIST
@ temBAD_NFTOKEN_TRANSFER_FEE
bool isTemMalformed(TER x)
constexpr TERSubset & operator=(TERSubset const &rhs)=default
@ telCAN_NOT_QUEUE_BLOCKED
@ tecCRYPTOCONDITION_ERROR
@ tecXCHAIN_INSUFF_CREATE_AMOUNT