20 #include <ripple/basics/Log.h>
21 #include <ripple/basics/StringUtilities.h>
22 #include <ripple/basics/safe_cast.h>
23 #include <ripple/protocol/LedgerFormats.h>
24 #include <ripple/protocol/STInteger.h>
25 #include <ripple/protocol/TxFormats.h>
26 #include <ripple/protocol/TER.h>
27 #include <ripple/beast/core/LexicalCast.h>
56 <<
"Unknown result code in metadata: " <<
value_;
59 return beast::lexicalCastThrow <std::string> (
value_);
74 <<
"Unknown result code in metadata: " <<
value_;
102 safe_cast<LedgerEntryType> (
value_));
105 return item->getName ();
111 safe_cast<TxType> (
value_));
114 return item->getName ();
117 return beast::lexicalCastThrow <std::string> (
value_);
127 safe_cast<LedgerEntryType> (
value_));
130 return item->getName ();
136 safe_cast<TxType> (
value_));
139 return item->getName ();
164 return beast::lexicalCastThrow <std::string> (
value_);
193 return beast::lexicalCastThrow <std::string> (
value_);
const SF_U16 sfLedgerEntryType(access, STI_UINT16, 1, "LedgerEntryType", SField::sMD_Never)
beast::Journal debugLog()
Returns a debug journal.
Json::Value getJson(JsonOptions) const override
const SF_U16 sfTransactionType(access, STI_UINT16, 2, "TransactionType")
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool transResultInfo(TER code, std::string &token, std::string &text)
static constexpr TERSubset fromInt(int from)
const SF_U8 sfTransactionResult(access, STI_UINT8, 3, "TransactionResult")
std::string getText() const override
std::string strHex(FwdIt begin, FwdIt end)
SerializedTypeID getSType() const override