20 #ifndef RIPPLE_APP_LEDGER_LEDGERTOJSON_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_LEDGERTOJSON_H_INCLUDED
23 #include <ripple/app/ledger/Ledger.h>
24 #include <ripple/app/misc/TxQ.h>
25 #include <ripple/basics/StringUtilities.h>
26 #include <ripple/json/Object.h>
27 #include <ripple/protocol/STTx.h>
28 #include <ripple/protocol/jss.h>
71 template <
class Object>
Blob serializeBlob(Object const &o)
Serialize an object to a blob.
std::string serializeHex(STObject const &o)
Serialize an object to a hex string.
std::vector< TxQ::TxDetails > txQueue
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
LedgerFill(ReadView const &l, int o=0, std::vector< TxQ::TxDetails > q={}, LedgerEntryType t=ltINVALID)
LedgerEntryType
Ledger entry types.
Blob const & peekData() const
void addJson(Json::Value &json, LedgerFill const &fill)
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
std::string strHex(FwdIt begin, FwdIt end)