1#include <test/jtx/Env.h>
2#include <test/jtx/WSClient.h>
3#include <test/jtx/amount.h>
5#include <xrpl/beast/unit_test/suite.h>
6#include <xrpl/json/json_value.h>
24 jv[
"streams"].
append(
"ledger");
void pass()
Record a successful test condition.
Value & append(Value const &value)
Append value to array at the end.
virtual Config & config()=0
void run() override
Runs the suite.
A transaction testing environment.
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
@ Array
array value (ordered list)
XrpT const XRP
Converts to XRP Issue or STAmount.
BEAST_DEFINE_TESTSUITE(AMMClawback, app, xrpl)
std::unique_ptr< WSClient > makeWSClient(Config const &cfg, bool v2, unsigned rpcVersion, std::unordered_map< std::string, std::string > const &headers)
Returns a client operating through WebSockets/S.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.