2#include <test/jtx/Env.h>
4#include <xrpl/basics/contract.h>
5#include <xrpl/beast/unit_test/suite.h>
6#include <xrpl/json/json_reader.h>
7#include <xrpl/json/json_value.h>
8#include <xrpl/protocol/ErrorCodes.h>
9#include <xrpl/protocol/STParsedJSON.h>
28 "Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
34 "Account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
41 "Account" : "rPcNzota6B8YBokhYtcTNqQVCngtbnWfux",
47 "TransactionType" : "SignerListSet"
53 "Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
59 "Account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
71 "TransactionType" : "SignerListSet"
77 "Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
83 "Account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
90 "Account" : "rPcNzota6B8YBokhYtcTNqQVCngtbnWfux",
95 "TransactionType" : "SignerListSet"
101 "Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
107 "Account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
114 "Amount" : "1000000",
115 "Account" : "rPcNzota6B8YBokhYtcTNqQVCngtbnWfux",
121 "TransactionType" : "SignerListSet"
127 "Account" : "rDg53Haik2475DJx8bjMDSDPj4VX7htaMd",
133 "Account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
140 "Amount" : "10000000",
146 "TransactionType" : "SignerListSet"
165 for (
auto const&
test : kTestArray)
172 "Internal InnerObjectFormatsParsedJSON error. Bad JSON.");
175 bool const noObj = !parsed.
object.has_value();
176 if (noObj ==
test.expectFail)
182 std::string errStr(
"Unexpected STParsedJSON result on:\n");
void pass()
Record a successful test condition.
void fail(String const &reason, char const *file, int line)
Record a failure.
Unserialize a JSON document into a Value.
bool parse(std::string const &document, Value &root)
Read a Value from a JSON document.
Holds the serialized result of parsing an input JSON object.
std::optional< STObject > object
The STObject if the parse was successful.
A transaction testing environment.
bool containsError(json::Value const &json)
Returns true if the json contains an rpc error specification.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
BEAST_DEFINE_TESTSUITE(AccountTxPaging, app, xrpl)
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)