20 #include <ripple/app/ledger/AcceptedLedgerTx.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/basics/StringUtilities.h>
23 #include <ripple/protocol/UintTypes.h>
24 #include <ripple/protocol/jss.h>
33 , mMeta(txn->getTransactionID(), ledger->seq(), *met)
34 , mAffected(mMeta.getAffectedAccounts())
36 assert(!ledger->open());
63 if (account != amount.issue().account)
71 mJson[jss::transaction][jss::owner_funds] = ownerFunds.getText();
@ arrayValue
array value (ordered list)
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
static Sink & getNullSink()
Returns a Sink which does nothing.
Value & append(const Value &value)
Append value to array at the end.
@ objectValue
object value (collection of name/value pairs).
const SF_AMOUNT sfTakerGets
A generic endpoint for log messages.
std::string transHuman(TER code)
STAmount accountFunds(ReadView const &view, AccountID const &id, STAmount const &saDefault, FreezeHandling freezeHandling, beast::Journal j)
@ ttOFFER_CREATE
This transaction type creates an offer to trade one asset for another.
std::string getEscMeta() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< STTx const > mTxn
AcceptedLedgerTx(std::shared_ptr< ReadView const > const &ledger, std::shared_ptr< STTx const > const &, std::shared_ptr< STObject const > const &)
boost::container::flat_set< AccountID > mAffected
const SF_ACCOUNT sfAccount
std::string strHex(FwdIt begin, FwdIt end)
std::string sqlBlobLiteral(Blob const &blob)
Format arbitrary binary data as an SQLite "blob literal".