20 #include <ripple/basics/Log.h>
21 #include <ripple/basics/StringUtilities.h>
22 #include <ripple/basics/safe_cast.h>
23 #include <ripple/beast/core/LexicalCast.h>
24 #include <ripple/protocol/LedgerFormats.h>
25 #include <ripple/protocol/STInteger.h>
26 #include <ripple/protocol/TER.h>
27 #include <ripple/protocol/TxFormats.h>
56 <<
"Unknown result code in metadata: " <<
value_;
59 return beast::lexicalCastThrow<std::string>(
value_);
73 <<
"Unknown result code in metadata: " <<
value_;
101 safe_cast<LedgerEntryType>(
value_));
104 return item->getName();
113 return item->getName();
116 return beast::lexicalCastThrow<std::string>(
value_);
125 safe_cast<LedgerEntryType>(
value_));
128 return item->getName();
137 return item->getName();
162 return beast::lexicalCastThrow<std::string>(
value_);
190 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