diff --git a/AMMExtended__test_8cpp_source.html b/AMMExtended__test_8cpp_source.html index 86cb89bf64..be9c93dc7a 100644 --- a/AMMExtended__test_8cpp_source.html +++ b/AMMExtended__test_8cpp_source.html @@ -3531,14 +3531,14 @@ $(function() {
3461  {
3462  // test: book_offers shows offers
3463  // (should these actually be filtered?)
-
3464  auto offers = env.rpc(
+
3464  auto offers = env.rpc(
3465  "book_offers",
3466  "XRP",
3467  std::string("USD/") + G1.human())[jss::result][jss::offers];
3468  if (!BEAST_EXPECT(checkArraySize(offers, 1u)))
3469  return;
3470 
-
3471  offers = env.rpc(
+
3471  offers = env.rpc(
3472  "book_offers",
3473  std::string("USD/") + G1.human(),
3474  "XRP")[jss::result][jss::offers];
@@ -3996,6 +3996,7 @@ $(function() {
ripple::test::AMMExtended_test::receive_max
void receive_max()
Definition: AMMExtended_test.cpp:1506
ripple::test::jtx::drops
PrettyAmount drops(Integer i)
Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
Definition: amount.h:241
ripple::test::jtx::same
bool same(STPathSet const &st1, Args const &... args)
Definition: TestHelpers.h:150
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::test::jtx::AMM::ammAccount
AccountID const & ammAccount() const
Definition: AMM.h:255
ripple::test::AMMExtended_test::testPayStrand
void testPayStrand()
Definition: AMMExtended_test.cpp:3880
ripple::test::jtx::ter
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition: ter.h:33
@@ -4003,7 +4004,7 @@ $(function() {
ripple::test::jtx::owners
Match the number of items in the account's owner directory.
Definition: owners.h:69
ripple::test::jtx::AMMTest
Definition: AMMTest.h:90
ripple::test::jtx::ledgerEntryState
Json::Value ledgerEntryState(Env &env, Account const &acct_a, Account const &acct_b, std::string const &currency)
Definition: TestHelpers.cpp:177
-
ripple::test::jtx::Env::require
void require(Args const &... args)
Check a set of requirements.
Definition: Env.h:479
+
ripple::test::jtx::Env::require
void require(Args const &... args)
Check a set of requirements.
Definition: Env.h:490
ripple::test::AMMExtended_test::testCurrencyConversionEntire
void testCurrencyConversionEntire(FeatureBitset features)
Definition: AMMExtended_test.cpp:351
Json::arrayValue
@ arrayValue
array value (ordered list)
Definition: json_value.h:42
ripple::featureDepositPreauth
const uint256 featureDepositPreauth
@@ -4140,11 +4141,10 @@ $(function() {
ripple::tfImmediateOrCancel
constexpr std::uint32_t tfImmediateOrCancel
Definition: TxFlags.h:95
ripple::test::jtx::expectLine
bool expectLine(Env &env, AccountID const &account, STAmount const &value, bool defaultLimits)
Definition: TestHelpers.cpp:100
ripple::test::AMMExtended_test::testBridgedCross
void testBridgedCross(FeatureBitset features)
Definition: AMMExtended_test.cpp:719
-
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:301
+
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:312
ripple::xrpCurrency
Currency const & xrpCurrency()
XRP currency.
Definition: UintTypes.cpp:115
ripple::test::jtx::txfee
XRPAmount txfee(Env const &env, std::uint16_t n)
Definition: TestHelpers.cpp:87
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
ripple::test::jtx::ledgerEntryRoot
Json::Value ledgerEntryRoot(Env &env, Account const &acct)
Definition: TestHelpers.cpp:168
ripple::tfNoRippleDirect
constexpr std::uint32_t tfNoRippleDirect
Definition: TxFlags.h:102
Json::Value
Represents a JSON value.
Definition: json_value.h:145
diff --git a/AMMTest_8cpp_source.html b/AMMTest_8cpp_source.html index 0c0fd030cd..c451054ed6 100644 --- a/AMMTest_8cpp_source.html +++ b/AMMTest_8cpp_source.html @@ -415,7 +415,7 @@ $(function() {
std::unique_ptr
STL class.
ripple::test::jtx::AMMTest::find_paths_request
Json::Value find_paths_request(jtx::Env &env, jtx::Account const &src, jtx::Account const &dst, STAmount const &saDstAmount, std::optional< STAmount > const &saSendMax=std::nullopt, std::optional< Currency > const &saSrcCurrency=std::nullopt)
Definition: AMMTest.cpp:173
ripple::test::jtx::AMMTestBase::testAMM
void testAMM(std::function< void(jtx::AMM &, jtx::Env &)> &&cb, std::optional< std::pair< STAmount, STAmount >> const &pool=std::nullopt, std::uint16_t tfee=0, std::optional< jtx::ter > const &ter=std::nullopt, std::optional< FeatureBitset > const &features=std::nullopt)
testAMM() funds 30,000XRP and 30,000IOU for each non-XRP asset to Alice and Carol
Definition: AMMTest.cpp:101
-
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:301
+
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:312
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
Json::Value
Represents a JSON value.
Definition: json_value.h:145
ripple::XRPAmount
Definition: XRPAmount.h:46
diff --git a/AMM_8cpp_source.html b/AMM_8cpp_source.html index 0178220cc1..be1084e69b 100644 --- a/AMM_8cpp_source.html +++ b/AMM_8cpp_source.html @@ -238,7 +238,7 @@ $(function() {
167  if (ammAccount)
168  jv[jss::amm_account] = to_string(*ammAccount);
169  }
-
170  auto jr = env_.rpc("json", "amm_info", to_string(jv));
+
170  auto jr = env_.rpc("json", "amm_info", to_string(jv));
171  if (jr.isObject() && jr.isMember(jss::result) &&
172  jr[jss::result].isMember(jss::status))
173  return jr[jss::result];
@@ -835,6 +835,7 @@ $(function() {
ripple::Issue
A currency issued by an account.
Definition: Issue.h:35
ripple::sfAsset
const SF_ISSUE sfAsset
ripple::test::jtx::AMM::ammDelete
void ammDelete(AccountID const &deleter, std::optional< ter > const &ter=std::nullopt)
Definition: AMM.cpp:721
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::test::jtx::AMM::msig_
const std::optional< msig > msig_
Definition: AMM.h:77
ripple::test::jtx::AMM::ammAccount
AccountID const & ammAccount() const
Definition: AMM.h:255
ripple::STAmount::issue
Issue const & issue() const
Definition: STAmount.h:350
@@ -866,7 +867,7 @@ $(function() {
ripple::test::jtx::AMM::creatorAccount_
const Account creatorAccount_
Definition: AMM.h:65
ripple::sfPrice
const SF_AMOUNT sfPrice
ripple::STAmount::iou
IOUAmount iou() const
Definition: STAmount.cpp:360
-
ripple::test::jtx::Env::ter
TER ter() const
Return the TER for the last JTx.
Definition: Env.h:526
+
ripple::test::jtx::Env::ter
TER ter() const
Return the TER for the last JTx.
Definition: Env.h:537
ripple::ammAccountID
AccountID ammAccountID(std::uint16_t prefix, uint256 const &parentHash, uint256 const &ammID)
Calculate AMM account ID.
Definition: AMMCore.cpp:30
ripple::STAmount::xrp
XRPAmount xrp() const
Definition: STAmount.cpp:345
ripple::sfTradingFee
const SF_UINT16 sfTradingFee
@@ -942,10 +943,9 @@ $(function() {
ripple::sfAuctionSlot
const SField sfAuctionSlot
ripple::tesSUCCESS
@ tesSUCCESS
Definition: TER.h:236
ripple::test::jtx::AMM::bidMin_
std::optional< IOUAmount > bidMin_
Definition: AMM.h:74
-
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:301
+
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:312
ripple::test::jtx::create
Json::Value create(AccountID const &account, AccountID const &to, STAmount const &amount, NetClock::duration const &settleDelay, PublicKey const &pk, std::optional< NetClock::time_point > const &cancelAfter, std::optional< std::uint32_t > const &dstTag)
Definition: TestHelpers.cpp:250
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
ripple::ammAuctionTimeSlot
std::optional< std::uint8_t > ammAuctionTimeSlot(std::uint64_t current, STObject const &auctionSlot)
Get time slot of the auction slot.
Definition: AMMCore.cpp:107
Json::Value
Represents a JSON value.
Definition: json_value.h:145
ripple::test::jtx::AMM::balances
std::tuple< STAmount, STAmount, STAmount > balances(Issue const &issue1, Issue const &issue2, std::optional< AccountID > const &account=std::nullopt) const
Get AMM balances for the token pair.
Definition: AMM.cpp:178
diff --git a/AMM__test_8cpp_source.html b/AMM__test_8cpp_source.html index d5cb47528e..d8ba5f324f 100644 --- a/AMM__test_8cpp_source.html +++ b/AMM__test_8cpp_source.html @@ -4484,7 +4484,7 @@ $(function() {
4413  using namespace jtx;
4414  testAMM([&](AMM& amm, Env& env) {
4415  amm.setClose(false);
-
4416  auto const info = env.rpc(
+
4416  auto const info = env.rpc(
4417  "json",
4418  "account_info",
4419  std::string(
@@ -4913,6 +4913,7 @@ $(function() {
ripple::test::AMM_test::testBid
void testBid()
Definition: AMM_test.cpp:2519
ripple::test::AMM_test::testAmendment
void testAmendment()
Definition: AMM_test.cpp:3681
ripple::test::jtx::same
bool same(STPathSet const &st1, Args const &... args)
Definition: TestHelpers.h:150
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::temBAD_CURRENCY
@ temBAD_CURRENCY
Definition: TER.h:89
ripple::test::jtx::AMM::ammAccount
AccountID const & ammAccount() const
Definition: AMM.h:255
ripple::test::jtx::ter
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition: ter.h:33
@@ -5041,10 +5042,9 @@ $(function() {
ripple::tesSUCCESS
@ tesSUCCESS
Definition: TER.h:236
ripple::test::jtx::Account::pk
PublicKey const & pk() const
Return the public key.
Definition: Account.h:89
ripple::test::jtx::expectLine
bool expectLine(Env &env, AccountID const &account, STAmount const &value, bool defaultLimits)
Definition: TestHelpers.cpp:100
-
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:301
+
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:312
ripple::test::jtx::txfee
XRPAmount txfee(Env const &env, std::uint16_t n)
Definition: TestHelpers.cpp:87
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
ripple::tfNoRippleDirect
constexpr std::uint32_t tfNoRippleDirect
Definition: TxFlags.h:102
ripple::XRPAmount
Definition: XRPAmount.h:46
ripple::tfLimitLPToken
constexpr std::uint32_t tfLimitLPToken
Definition: TxFlags.h:173
diff --git a/AccountDelete__test_8cpp_source.html b/AccountDelete__test_8cpp_source.html index 805098c144..7e63791215 100644 --- a/AccountDelete__test_8cpp_source.html +++ b/AccountDelete__test_8cpp_source.html @@ -119,7 +119,7 @@ $(function() {
48  // We can't use env.meta() here, because meta() doesn't include
49  // delivered_amount.
50  env.close();
-
51  Json::Value const meta = env.rpc("tx", txHash)[jss::result][jss::meta];
+
51  Json::Value const meta = env.rpc("tx", txHash)[jss::result][jss::meta];
52 
53  // Expect there to be a DeliveredAmount field.
54  if (!BEAST_EXPECT(meta.isMember(sfDeliveredAmount.jsonName)))
@@ -1015,6 +1015,7 @@ $(function() {
std::shared_ptr
STL class.
ripple::test::jtx::drops
PrettyAmount drops(Integer i)
Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
Definition: amount.h:241
ripple::terINSUF_FEE_B
@ terINSUF_FEE_B
Definition: TER.h:209
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition: Env.cpp:382
ripple::test::jtx::ter
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition: ter.h:33
ripple::test::jtx::owners
Match the number of items in the account's owner directory.
Definition: owners.h:69
@@ -1105,10 +1106,9 @@ $(function() {
ripple::sfPublicKey
const SF_VL sfPublicKey
ripple::test::jtx::Account::pk
PublicKey const & pk() const
Return the public key.
Definition: Account.h:89
ripple::tfImmediateOrCancel
constexpr std::uint32_t tfImmediateOrCancel
Definition: TxFlags.h:95
-
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:301
+
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition: Env.h:312
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
ripple::tecNO_DST
@ tecNO_DST
Definition: TER.h:271
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
Json::Value
Represents a JSON value.
Definition: json_value.h:145
ripple::test::jtx::owner_count
Definition: owners.h:49
diff --git a/AccountInfo__test_8cpp_source.html b/AccountInfo__test_8cpp_source.html index eb56fc2227..c1073cea5a 100644 --- a/AccountInfo__test_8cpp_source.html +++ b/AccountInfo__test_8cpp_source.html @@ -111,14 +111,14 @@ $(function() {
40  Env env(*this);
41  {
42  // account_info with no account.
-
43  auto const info = env.rpc("json", "account_info", "{ }");
+
43  auto const info = env.rpc("json", "account_info", "{ }");
44  BEAST_EXPECT(
45  info[jss::result][jss::error_message] ==
46  "Missing field 'account'.");
47  }
48  {
49  // account_info with a malformed account string.
-
50  auto const info = env.rpc(
+
50  auto const info = env.rpc(
51  "json",
52  "account_info",
53  "{\"account\": "
@@ -131,7 +131,7 @@ $(function() {
60  {
61  // account_info with an account that's not in the ledger.
62  Account const bogie{"bogie"};
-
63  auto const info = env.rpc(
+
63  auto const info = env.rpc(
64  "json",
65  "account_info",
66  R"({ "account": ")" + bogie.human() + R"("})");
@@ -143,7 +143,7 @@ $(function() {
72  {
73  // Cannot use a seed as account
74  auto const info =
-
75  env.rpc("json", "account_info", R"({"account": "foo"})");
+
75  env.rpc("json", "account_info", R"({"account": "foo"})");
76  BEAST_EXPECT(
77  info[jss::result][jss::error_code] == rpcACT_MALFORMED);
78  BEAST_EXPECT(
@@ -734,6 +734,7 @@ $(function() {
ripple::asfDepositAuth
constexpr std::uint32_t asfDepositAuth
Definition: TxFlags.h:82
std::string
STL class.
ripple::keylet::signers
Keylet signers(AccountID const &account) noexcept
A SignerList.
Definition: Indexes.cpp:284
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::featureClawback
const uint256 featureClawback
std::string_view
STL class.
std::pair
@@ -766,7 +767,6 @@ $(function() {
ripple::test::AccountInfo_test::testErrors
void testErrors()
Definition: AccountInfo_test.cpp:37
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
ripple::asfDisallowIncomingNFTokenOffer
constexpr std::uint32_t asfDisallowIncomingNFTokenOffer
Definition: TxFlags.h:87
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
Json::Value
Represents a JSON value.
Definition: json_value.h:145
ripple::test::BEAST_DEFINE_TESTSUITE
BEAST_DEFINE_TESTSUITE(DeliverMin, app, ripple)
diff --git a/AccountObjects__test_8cpp_source.html b/AccountObjects__test_8cpp_source.html index 940d00e73b..6f8fcbdcc2 100644 --- a/AccountObjects__test_8cpp_source.html +++ b/AccountObjects__test_8cpp_source.html @@ -194,7 +194,7 @@ $(function() {
123 
124  // test error on no account
125  {
-
126  auto resp = env.rpc("json", "account_objects");
+
126  auto resp = env.rpc("json", "account_objects");
127  BEAST_EXPECT(resp[jss::error_message] == "Syntax error.");
128  }
129  // test error on malformed account string.
@@ -202,7 +202,7 @@ $(function() {
131  Json::Value params;
132  params[jss::account] =
133  "n94JNrQYkDrpt62bbSR7nVEhdyAvcJXRAsjEkFYyqRkh9SUTYEqV";
-
134  auto resp = env.rpc("json", "account_objects", to_string(params));
+
134  auto resp = env.rpc("json", "account_objects", to_string(params));
135  BEAST_EXPECT(
136  resp[jss::result][jss::error_message] == "Account malformed.");
137  }
@@ -210,7 +210,7 @@ $(function() {
139  {
140  Json::Value params;
141  params[jss::account] = Account{"bogie"}.human();
-
142  auto resp = env.rpc("json", "account_objects", to_string(params));
+
142  auto resp = env.rpc("json", "account_objects", to_string(params));
143  BEAST_EXPECT(
144  resp[jss::result][jss::error_message] == "Account not found.");
145  }
@@ -220,7 +220,7 @@ $(function() {
149  Json::Value params;
150  params[jss::account] = bob.human();
151  params[jss::ledger_index] = 10;
-
152  auto resp = env.rpc("json", "account_objects", to_string(params));
+
152  auto resp = env.rpc("json", "account_objects", to_string(params));
153  BEAST_EXPECT(
154  resp[jss::result][jss::error_message] == "ledgerNotFound");
155  }
@@ -231,7 +231,7 @@ $(function() {
160  Json::Value params;
161  params[jss::account] = bob.human();
162  params[jss::type] = 10;
-
163  auto resp = env.rpc("json", "account_objects", to_string(params));
+
163  auto resp = env.rpc("json", "account_objects", to_string(params));
164  BEAST_EXPECT(
165  resp[jss::result][jss::error_message] ==
166  "Invalid field 'type', not string.");
@@ -241,7 +241,7 @@ $(function() {
170  Json::Value params;
171  params[jss::account] = bob.human();
172  params[jss::type] = "expedited";
-
173  auto resp = env.rpc("json", "account_objects", to_string(params));
+
173  auto resp = env.rpc("json", "account_objects", to_string(params));
174  BEAST_EXPECT(
175  resp[jss::result][jss::error_message] ==
176  "Invalid field 'type'.");
@@ -251,7 +251,7 @@ $(function() {
180  Json::Value params;
181  params[jss::account] = bob.human();
182  params[jss::limit] = -1;
-
183  auto resp = env.rpc("json", "account_objects", to_string(params));
+
183  auto resp = env.rpc("json", "account_objects", to_string(params));
184  BEAST_EXPECT(
185  resp[jss::result][jss::error_message] ==
186  "Invalid field 'limit', not unsigned integer.");
@@ -268,42 +268,42 @@ $(function() {
197  Json::Value params;
198  params[jss::account] = bob.human();
199  params[jss::limit] = 1;
-
200  auto resp = env.rpc("json", "account_objects", to_string(params));
+
200  auto resp = env.rpc("json", "account_objects", to_string(params));
201 
202  auto resume_marker = resp[jss::result][jss::marker];
203  std::string mark = to_string(resume_marker);
204  params[jss::marker] = 10;
-
205  resp = env.rpc("json", "account_objects", to_string(params));
+
205  resp = env.rpc("json", "account_objects", to_string(params));
206  BEAST_EXPECT(
207  resp[jss::result][jss::error_message] ==
208  "Invalid field 'marker', not string.");
209 
210  params[jss::marker] = "This is a string with no comma";
-
211  resp = env.rpc("json", "account_objects", to_string(params));
+
211  resp = env.rpc("json", "account_objects", to_string(params));
212  BEAST_EXPECT(
213  resp[jss::result][jss::error_message] ==
214  "Invalid field 'marker'.");
215 
216  params[jss::marker] = "This string has a comma, but is not hex";
-
217  resp = env.rpc("json", "account_objects", to_string(params));
+
217  resp = env.rpc("json", "account_objects", to_string(params));
218  BEAST_EXPECT(
219  resp[jss::result][jss::error_message] ==
220  "Invalid field 'marker'.");
221 
222  params[jss::marker] = std::string(&mark[1U], 64);
-
223  resp = env.rpc("json", "account_objects", to_string(params));
+
223  resp = env.rpc("json", "account_objects", to_string(params));
224  BEAST_EXPECT(
225  resp[jss::result][jss::error_message] ==
226  "Invalid field 'marker'.");
227 
228  params[jss::marker] = std::string(&mark[1U], 65);
-
229  resp = env.rpc("json", "account_objects", to_string(params));
+
229  resp = env.rpc("json", "account_objects", to_string(params));
230  BEAST_EXPECT(
231  resp[jss::result][jss::error_message] ==
232  "Invalid field 'marker'.");
233 
234  params[jss::marker] = std::string(&mark[1U], 65) + "not hex";
-
235  resp = env.rpc("json", "account_objects", to_string(params));
+
235  resp = env.rpc("json", "account_objects", to_string(params));
236  BEAST_EXPECT(
237  resp[jss::result][jss::error_message] ==
238  "Invalid field 'marker'.");
@@ -312,7 +312,7 @@ $(function() {
241  // A hex digit is absent from the end of marker.
242  // No account objects returned.
243  params[jss::marker] = std::string(&mark[1U], 128);
-
244  resp = env.rpc("json", "account_objects", to_string(params));
+
244  resp = env.rpc("json", "account_objects", to_string(params));
245  BEAST_EXPECT(resp[jss::result][jss::account_objects].size() == 0);
246  }
247  }
@@ -351,7 +351,7 @@ $(function() {
280  {
281  Json::Value params;
282  params[jss::account] = bob.human();
-
283  auto resp = env.rpc("json", "account_objects", to_string(params));
+
283  auto resp = env.rpc("json", "account_objects", to_string(params));
284  BEAST_EXPECT(!resp.isMember(jss::marker));
285 
286  BEAST_EXPECT(resp[jss::result][jss::account_objects].size() == 4);
@@ -368,7 +368,7 @@ $(function() {
297  Json::Value params;
298  params[jss::account] = bob.human();
299  params[jss::type] = jss::state;
-
300  auto resp = env.rpc("json", "account_objects", to_string(params));
+
300  auto resp = env.rpc("json", "account_objects", to_string(params));
301  BEAST_EXPECT(!resp.isMember(jss::marker));
302 
303  BEAST_EXPECT(resp[jss::result][jss::account_objects].size() == 2);
@@ -388,7 +388,7 @@ $(function() {
317  for (int i = 0; i < 4; ++i)
318  {
319  auto resp =
-
320  env.rpc("json", "account_objects", to_string(params));
+
320  env.rpc("json", "account_objects", to_string(params));
321  auto& aobjs = resp[jss::result][jss::account_objects];
322  BEAST_EXPECT(aobjs.size() == 1);
323  auto& aobj = aobjs[0U];
@@ -433,13 +433,13 @@ $(function() {
362  // Unpaged
363  Json::Value params;
364  params[jss::account] = bob.human();
-
365  auto resp = env.rpc("json", "account_objects", to_string(params));
+
365  auto resp = env.rpc("json", "account_objects", to_string(params));
366  BEAST_EXPECT(!resp.isMember(jss::marker));
367  BEAST_EXPECT(resp[jss::result][jss::account_objects].size() == 0);
368 
369  // Limit == 1
370  params[jss::limit] = 1;
-
371  resp = env.rpc("json", "account_objects", to_string(params));
+
371  resp = env.rpc("json", "account_objects", to_string(params));
372  BEAST_EXPECT(!resp.isMember(jss::marker));
373  BEAST_EXPECT(resp[jss::result][jss::account_objects].size() == 0);
374  }
@@ -454,7 +454,7 @@ $(function() {
383  {
384  Json::Value params;
385  params[jss::account] = bob.human();
-
386  auto resp = env.rpc("json", "account_objects", to_string(params));
+
386  auto resp = env.rpc("json", "account_objects", to_string(params));
387  BEAST_EXPECT(!resp.isMember(jss::marker));
388 
389  unpaged = resp[jss::result][jss::account_objects];
@@ -465,7 +465,7 @@ $(function() {
394  Json::Value params;
395  params[jss::account] = bob.human();
396  params[jss::type] = jss::nft_page;
-
397  auto resp = env.rpc("json", "account_objects", to_string(params));
+
397  auto resp = env.rpc("json", "account_objects", to_string(params));
398  BEAST_EXPECT(!resp.isMember(jss::marker));
399  Json::Value& aobjs = resp[jss::result][jss::account_objects];
400  BEAST_EXPECT(aobjs.size() == 1);
@@ -480,7 +480,7 @@ $(function() {
409  params[jss::limit] = 1;
410 
411  Json::Value resp =
-
412  env.rpc("json", "account_objects", to_string(params));
+
412  env.rpc("json", "account_objects", to_string(params));
413  Json::Value& aobjs = resp[jss::result][jss::account_objects];
414  BEAST_EXPECT(aobjs.size() == 1);
415  auto& aobj = aobjs[0U];
@@ -505,7 +505,7 @@ $(function() {
434  {
435  Json::Value params;
436  params[jss::account] = bob.human();
-
437  auto resp = env.rpc("json", "account_objects", to_string(params));
+
437  auto resp = env.rpc("json", "account_objects", to_string(params));
438  BEAST_EXPECT(!resp.isMember(jss::marker));
439 
440  unpaged = resp[jss::result][jss::account_objects];
@@ -516,7 +516,7 @@ $(function() {
445  Json::Value params;
446  params[jss::account] = bob.human();
447  params[jss::type] = jss::nft_page;
-
448  auto resp = env.rpc("json", "account_objects", to_string(params));
+
448  auto resp = env.rpc("json", "account_objects", to_string(params));
449  BEAST_EXPECT(!resp.isMember(jss::marker));
450  Json::Value& aobjs = resp[jss::result][jss::account_objects];
451  BEAST_EXPECT(aobjs.size() == 1);
@@ -532,7 +532,7 @@ $(function() {
461  for (int i = 0; i < 5; ++i)
462  {
463  Json::Value resp =
-
464  env.rpc("json", "account_objects", to_string(params));
+
464  env.rpc("json", "account_objects", to_string(params));
465  Json::Value& aobjs = resp[jss::result][jss::account_objects];
466  BEAST_EXPECT(aobjs.size() == 1);
467  auto& aobj = aobjs[0U];
@@ -563,7 +563,7 @@ $(function() {
492  {
493  Json::Value params;
494  params[jss::account] = bob.human();
-
495  auto resp = env.rpc("json", "account_objects", to_string(params));
+
495  auto resp = env.rpc("json", "account_objects", to_string(params));
496  BEAST_EXPECT(!resp.isMember(jss::marker));
497 
498  unpaged = resp[jss::result][jss::account_objects];
@@ -574,7 +574,7 @@ $(function() {
503  Json::Value params;
504  params[jss::account] = bob.human();
505  params[jss::type] = jss::nft_page;
-
506  auto resp = env.rpc("json", "account_objects", to_string(params));
+
506  auto resp = env.rpc("json", "account_objects", to_string(params));
507  BEAST_EXPECT(!resp.isMember(jss::marker));
508  Json::Value& aobjs = resp[jss::result][jss::account_objects];
509  BEAST_EXPECT(aobjs.size() == 2);
@@ -587,7 +587,7 @@ $(function() {
516  for (int i = 0; i < 6; ++i)
517  {
518  Json::Value resp =
-
519  env.rpc("json", "account_objects", to_string(params));
+
519  env.rpc("json", "account_objects", to_string(params));
520  Json::Value& aobjs = resp[jss::result][jss::account_objects];
521  BEAST_EXPECT(aobjs.size() == 1);
522  auto& aobj = aobjs[0U];
@@ -641,7 +641,7 @@ $(function() {
570  if (marker)
571  params[jss::marker] = *marker;
572  params[jss::ledger_index] = "validated";
-
573  return env.rpc("json", "account_objects", to_string(params));
+
573  return env.rpc("json", "account_objects", to_string(params));
574  };
575 
576  // Make a lambda that easily identifies the size of account objects.
@@ -762,7 +762,7 @@ $(function() {
691  params[jss::account] = acct.human();
692  params[jss::type] = type;
693  params[jss::ledger_index] = "validated";
-
694  return scEnv.rpc("json", "account_objects", to_string(params));
+
694  return scEnv.rpc("json", "account_objects", to_string(params));
695  };
696 
697  Json::Value const resp =
@@ -809,7 +809,7 @@ $(function() {
738  params[jss::account] = acct.human();
739  params[jss::type] = type;
740  params[jss::ledger_index] = "validated";
-
741  return scEnv.rpc("json", "account_objects", to_string(params));
+
741  return scEnv.rpc("json", "account_objects", to_string(params));
742  };
743 
744  {
@@ -866,7 +866,7 @@ $(function() {
795  params[jss::account] = acct.human();
796  params[jss::type] = type;
797  params[jss::ledger_index] = "validated";
-
798  return scEnv.rpc("json", "account_objects", to_string(params));
+
798  return scEnv.rpc("json", "account_objects", to_string(params));
799  };
800 
801  {
@@ -980,7 +980,7 @@ $(function() {
909  Json::Value params;
910  params[jss::account] = gw.human();
911  params[jss::deletion_blockers_only] = true;
-
912  auto resp = env.rpc("json", "account_objects", to_string(params));
+
912  auto resp = env.rpc("json", "account_objects", to_string(params));
913 
914  std::vector<std::string> const expectedLedgerTypes = [] {
915  std::vector<std::string> v{
@@ -1017,7 +1017,7 @@ $(function() {
946  params[jss::account] = gw.human();
947  params[jss::deletion_blockers_only] = true;
948  params[jss::type] = jss::escrow;
-
949  auto resp = env.rpc("json", "account_objects", to_string(params));
+
949  auto resp = env.rpc("json", "account_objects", to_string(params));
950 
951  if (BEAST_EXPECT(acct_objs_is_size(resp, 1u)))
952  {
@@ -1126,6 +1126,7 @@ $(function() {
ripple::sfSendMax
const SF_AMOUNT sfSendMax
std::string
STL class.
ripple::test::jtx::drops
PrettyAmount drops(Integer i)
Returns an XRP PrettyAmount, which is trivially convertible to STAmount.
Definition: amount.h:241
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::sfDestination
const SF_ACCOUNT sfDestination
ripple::sfAmount
const SF_AMOUNT sfAmount
ripple::sfNFTokenID
const SF_UINT256 sfNFTokenID
@@ -1213,7 +1214,6 @@ $(function() {
ripple::sfPublicKey
const SF_VL sfPublicKey
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
ripple::test::jtx::getAccountLines
Json::Value getAccountLines(Env &env, AccountID const &acctId)
Definition: TestHelpers.cpp:40
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
ripple::test::jtx::XChainBridgeObjects::signers
const std::vector< signer > signers
Definition: xchain_bridge.h:188
Json::Value
Represents a JSON value.
Definition: json_value.h:145
ripple::test::jtx::owner_count
Definition: owners.h:49
diff --git a/AccountOffers__test_8cpp_source.html b/AccountOffers__test_8cpp_source.html index add693eb75..8a30835bc8 100644 --- a/AccountOffers__test_8cpp_source.html +++ b/AccountOffers__test_8cpp_source.html @@ -298,7 +298,7 @@ $(function() {
227 
228  {
229  // no account field
-
230  auto const jrr = env.rpc("account_offers");
+
230  auto const jrr = env.rpc("account_offers");
231  BEAST_EXPECT(jrr[jss::error] == "badSyntax");
232  BEAST_EXPECT(jrr[jss::status] == "error");
233  BEAST_EXPECT(jrr[jss::error_message] == "Syntax error.");
@@ -308,7 +308,7 @@ $(function() {
237  // empty string account
238  Json::Value jvParams;
239  jvParams[jss::account] = "";
-
240  auto const jrr = env.rpc(
+
240  auto const jrr = env.rpc(
241  "json",
242  "account_offers",
243  jvParams.toStyledString())[jss::result];
@@ -319,7 +319,7 @@ $(function() {
248 
249  {
250  // bogus account value
-
251  auto const jrr = env.rpc(
+
251  auto const jrr = env.rpc(
252  "account_offers", Account("bogus").human())[jss::result];
253  BEAST_EXPECT(jrr[jss::error] == "actNotFound");
254  BEAST_EXPECT(jrr[jss::status] == "error");
@@ -331,7 +331,7 @@ $(function() {
260  Json::Value jvParams;
261  jvParams[jss::account] = bob.human();
262  jvParams[jss::limit] = "0"; // NOT an integer
-
263  auto const jrr = env.rpc(
+
263  auto const jrr = env.rpc(
264  "json",
265  "account_offers",
266  jvParams.toStyledString())[jss::result];
@@ -347,7 +347,7 @@ $(function() {
276  Json::Value jvParams;
277  jvParams[jss::account] = bob.human();
278  jvParams[jss::marker] = "NOT_A_MARKER";
-
279  auto const jrr = env.rpc(
+
279  auto const jrr = env.rpc(
280  "json",
281  "account_offers",
282  jvParams.toStyledString())[jss::result];
@@ -361,7 +361,7 @@ $(function() {
290  Json::Value jvParams;
291  jvParams[jss::account] = bob.human();
292  jvParams[jss::marker] = 1;
-
293  auto const jrr = env.rpc(
+
293  auto const jrr = env.rpc(
294  "json",
295  "account_offers",
296  jvParams.toStyledString())[jss::result];
@@ -377,7 +377,7 @@ $(function() {
306  Json::Value jvParams;
307  jvParams[jss::account] = bob.human();
308  jvParams[jss::ledger_index] = 10u;
-
309  auto const jrr = env.rpc(
+
309  auto const jrr = env.rpc(
310  "json",
311  "account_offers",
312  jvParams.toStyledString())[jss::result];
@@ -405,6 +405,7 @@ $(function() {
ripple::test::jtx::XRP
const XRP_t XRP
Converts to XRP Issue or STAmount.
Definition: amount.cpp:105
ripple::test::jtx::checkArraySize
bool checkArraySize(Json::Value const &val, unsigned int size)
Definition: TestHelpers.cpp:48
Json::Value::isString
bool isString() const
Definition: json_value.cpp:1009
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
std::string::size
T size(T... args)
ripple::SField::fieldName
const std::string fieldName
Definition: SField.h:159
ripple::test::jtx::Account::human
std::string const & human() const
Returns the human readable public key.
Definition: Account.h:113
@@ -423,7 +424,6 @@ $(function() {
ripple::test::jtx::Account
Immutable cryptographic account descriptor.
Definition: Account.h:37
ripple::test::AccountOffers_test::run
void run() override
Definition: AccountOffers_test.cpp:320
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
ripple::test::AccountOffers_test::testNonAdminMinLimit
void testNonAdminMinLimit()
Definition: AccountOffers_test.cpp:38
Json::Value
Represents a JSON value.
Definition: json_value.h:145
Json::Value::asString
std::string asString() const
Returns the unquoted string value.
Definition: json_value.cpp:469
diff --git a/AccountTxPaging__test_8cpp_source.html b/AccountTxPaging__test_8cpp_source.html index 8c8aa56a43..bab746aa7f 100644 --- a/AccountTxPaging__test_8cpp_source.html +++ b/AccountTxPaging__test_8cpp_source.html @@ -128,7 +128,7 @@ $(function() {
57  if (marker)
58  jvc[jss::marker] = marker;
59 
-
60  return env.rpc("json", "account_tx", to_string(jvc))[jss::result];
+
60  return env.rpc("json", "account_tx", to_string(jvc))[jss::result];
61  }
62 
63  void
@@ -348,6 +348,7 @@ $(function() {
ripple::AccountTxPaging_test
Definition: AccountTxPaging_test.cpp:31
ripple::BEAST_DEFINE_TESTSUITE
BEAST_DEFINE_TESTSUITE(AccountTxPaging, app, ripple)
+
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:712
ripple::AccountTxPaging_test::run
void run() override
Definition: AccountTxPaging_test.cpp:268
ripple::AccountTxPaging_test::checkTransaction
bool checkTransaction(Json::Value const &tx, int sequence, int ledger)
Definition: AccountTxPaging_test.cpp:34
ripple::AccountTxPaging_test::testAccountTxPaging
void testAccountTxPaging()
Definition: AccountTxPaging_test.cpp:64
@@ -358,7 +359,6 @@ $(function() {
ripple::to_string
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
Definition: app/misc/impl/Manifest.cpp:41
ripple::test::jtx::Account
Immutable cryptographic account descriptor.
Definition: Account.h:37
ripple::test::jtx::Env
A transaction testing environment.
Definition: Env.h:117
-
ripple::test::jtx::Env::rpc
Json::Value rpc(std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition: Env.h:700
Json::Value
Represents a JSON value.
Definition: json_value.h:145