20 #include <ripple/protocol/Quality.h>
21 #include <ripple/protocol/SField.h>
22 #include <test/jtx/quality.h>
29 : qIn_(static_cast<
std::uint32_t>((percent / 100) * QUALITY_ONE))
31 assert(percent <= 400 && percent >= 0);
35 : qOut_(static_cast<
std::uint32_t>((percent / 100) * QUALITY_ONE))
37 assert(percent <= 400 && percent >= 0);
43 jt.
jv[field.jsonName] = value;
static void insertQualityIntoJtx(SField const &field, std::uint32_t value, JTx &jt)
const SF_UINT32 sfQualityOut
const SF_UINT32 sfQualityIn
qualityInPercent(double percent)
void operator()(Env &, JTx &jtx) const
Execution context for applying a JSON transaction.
void operator()(Env &, JTx &jtx) const
void operator()(Env &, JTx &jtx) const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void operator()(Env &, JTx &jtx) const
qualityOutPercent(double percent)
A transaction testing environment.