This commit is contained in:
bthomee
2025-07-16 11:52:14 +00:00
parent 2a15aed979
commit 0afa602eb2
105 changed files with 7564 additions and 7555 deletions

View File

@@ -131,7 +131,7 @@ $(function() {
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> {</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// featureDepositAuth is disabled.</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() - featureDepositAuth);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() - featureDepositAuth);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code hl_variable" href="namespaceripple_1_1test_1_1jtx.html#aea9cd3d4e6b5df2e62d53b34b605957e">XRP</a>(10000), alice);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// Note that, to support old behavior, invalid flags are ignored.</span></div>
@@ -430,27 +430,27 @@ $(function() {
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <span class="keyword">auto</span> <span class="keyword">const</span> noRippleNext = i &amp; 0x2;</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> <span class="keyword">auto</span> <span class="keyword">const</span> withDepositAuth = i &amp; 0x4;</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> testIssuer(</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() | featureDepositAuth,</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() | featureDepositAuth,</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> noRipplePrev,</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> noRippleNext,</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> withDepositAuth);</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> </div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordflow">if</span> (!withDepositAuth)</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> testIssuer(</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() - featureDepositAuth,</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() - featureDepositAuth,</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> noRipplePrev,</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> noRippleNext,</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> withDepositAuth);</div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> testNonIssuer(</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() | featureDepositAuth,</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() | featureDepositAuth,</div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> noRipplePrev,</div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> noRippleNext,</div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> withDepositAuth);</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> <span class="keywordflow">if</span> (!withDepositAuth)</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> testNonIssuer(</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() - featureDepositAuth,</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() - featureDepositAuth,</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> noRipplePrev,</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> noRippleNext,</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> withDepositAuth);</div>
@@ -498,7 +498,7 @@ $(function() {
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">Account</a> <span class="keyword">const</span> becky{<span class="stringliteral">&quot;becky&quot;</span>};</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> {</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> <span class="comment">// featureDepositPreauth is disabled.</span></div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() - featureDepositPreauth);</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() - featureDepositPreauth);</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code hl_variable" href="namespaceripple_1_1test_1_1jtx.html#aea9cd3d4e6b5df2e62d53b34b605957e">XRP</a>(10000), alice, becky);</div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a69095691c9bcfab1f3d69c645f2dbe33">close</a>();</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> </div>
@@ -908,7 +908,7 @@ $(function() {
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno"> 830</span> {</div>
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno"> 831</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">&quot;Payment failure with disabled credentials rule.&quot;</span>);</div>
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno"> 832</span> </div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno"> 833</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>() - featureCredentials);</div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno"> 833</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">testable_amendments</a>() - featureCredentials);</div>
<div class="line"><a id="l00834" name="l00834"></a><span class="lineno"> 834</span> </div>
<div class="line"><a id="l00835" name="l00835"></a><span class="lineno"> 835</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code hl_variable" href="namespaceripple_1_1test_1_1jtx.html#aea9cd3d4e6b5df2e62d53b34b605957e">XRP</a>(5000), issuer, bob, alice);</div>
<div class="line"><a id="l00836" name="l00836"></a><span class="lineno"> 836</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a69095691c9bcfab1f3d69c645f2dbe33">close</a>();</div>
@@ -1641,7 +1641,7 @@ $(function() {
<div class="line"><a id="l01563" name="l01563"></a><span class="lineno"> 1563</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l01564" name="l01564"></a><span class="lineno"> 1564</span> <a class="code hl_function" href="structripple_1_1test_1_1DepositPreauth__test.html#a1c2c6d2d07beab92b3ae3ec9e489be96">testEnable</a>();</div>
<div class="line"><a id="l01565" name="l01565"></a><span class="lineno"> 1565</span> <a class="code hl_function" href="structripple_1_1test_1_1DepositPreauth__test.html#a840339b04907dfa664edb242a7e63108">testInvalid</a>();</div>
<div class="line"><a id="l01566" name="l01566"></a><span class="lineno"> 1566</span> <span class="keyword">auto</span> <span class="keyword">const</span> supported{<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">jtx::supported_amendments</a>()};</div>
<div class="line"><a id="l01566" name="l01566"></a><span class="lineno"> 1566</span> <span class="keyword">auto</span> <span class="keyword">const</span> supported{<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">jtx::testable_amendments</a>()};</div>
<div class="line"><a id="l01567" name="l01567"></a><span class="lineno"> 1567</span> <a class="code hl_function" href="structripple_1_1test_1_1DepositPreauth__test.html#a8b2ffb2dc3b3da05eec147da8c814afc">testPayment</a>(supported - featureDepositPreauth - featureCredentials);</div>
<div class="line"><a id="l01568" name="l01568"></a><span class="lineno"> 1568</span> <a class="code hl_function" href="structripple_1_1test_1_1DepositPreauth__test.html#a8b2ffb2dc3b3da05eec147da8c814afc">testPayment</a>(supported - featureDepositPreauth);</div>
<div class="line"><a id="l01569" name="l01569"></a><span class="lineno"> 1569</span> <a class="code hl_function" href="structripple_1_1test_1_1DepositPreauth__test.html#a8b2ffb2dc3b3da05eec147da8c814afc">testPayment</a>(supported - featureCredentials);</div>
@@ -1727,10 +1727,10 @@ $(function() {
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a47cac3a8bfbc8c14ae8da735ec52ebbf"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a47cac3a8bfbc8c14ae8da735ec52ebbf">ripple::test::jtx::trust</a></div><div class="ttdeci">Json::Value trust(Account const &amp;account, STAmount const &amp;amount, std::uint32_t flags)</div><div class="ttdoc">Modify a trust line.</div><div class="ttdef"><b>Definition:</b> <a href="trust_8cpp_source.html#l00032">trust.cpp:32</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a50cacef3867fc01273aa9c29231f9a7c"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a50cacef3867fc01273aa9c29231f9a7c">ripple::test::jtx::fset</a></div><div class="ttdeci">Json::Value fset(Account const &amp;account, std::uint32_t on, std::uint32_t off=0)</div><div class="ttdoc">Add and/or remove flag.</div><div class="ttdef"><b>Definition:</b> <a href="flags_8cpp_source.html#l00029">flags.cpp:29</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a66b99468a4160bccaa9959a444b40d40"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a66b99468a4160bccaa9959a444b40d40">ripple::test::jtx::pay</a></div><div class="ttdeci">Json::Value pay(AccountID const &amp;account, AccountID const &amp;to, AnyAmount amount)</div><div class="ttdoc">Create a payment.</div><div class="ttdef"><b>Definition:</b> <a href="pay_8cpp_source.html#l00030">pay.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a8e5379a68ca5b5ae718e77312c2f1f94"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a8e5379a68ca5b5ae718e77312c2f1f94">ripple::test::jtx::testable_amendments</a></div><div class="ttdeci">FeatureBitset testable_amendments()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00074">Env.h:74</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_ac423e2aa3fd7a14ae651849b430994f1"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#ac423e2aa3fd7a14ae651849b430994f1">ripple::test::jtx::offer</a></div><div class="ttdeci">Json::Value offer(Account const &amp;account, STAmount const &amp;takerPays, STAmount const &amp;takerGets, std::uint32_t flags)</div><div class="ttdoc">Create an offer.</div><div class="ttdef"><b>Definition:</b> <a href="offer_8cpp_source.html#l00029">offer.cpp:29</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_ae64f812b5cb3805c184e07d6b1b643de"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#ae64f812b5cb3805c184e07d6b1b643de">ripple::test::jtx::tickets</a></div><div class="ttdeci">owner_count&lt; ltTICKET &gt; tickets</div><div class="ttdoc">Match the number of tickets on the account.</div><div class="ttdef"><b>Definition:</b> <a href="ticket_8h_source.html#l00064">ticket.h:64</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aea9cd3d4e6b5df2e62d53b34b605957e"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aea9cd3d4e6b5df2e62d53b34b605957e">ripple::test::jtx::XRP</a></div><div class="ttdeci">XRP_t const XRP</div><div class="ttdoc">Converts to XRP Issue or STAmount.</div><div class="ttdef"><b>Definition:</b> <a href="amount_8cpp_source.html#l00105">amount.cpp:105</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_af5441d84d5977d52246c5226313560d4"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">ripple::test::jtx::supported_amendments</a></div><div class="ttdeci">FeatureBitset supported_amendments()</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00074">Env.h:74</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_html_a312c0517d6310ac2b24dec7c286ce429"><div class="ttname"><a href="namespaceripple_1_1test.html#a312c0517d6310ac2b24dec7c286ce429">ripple::test::ledgerEntryDepositPreauth</a></div><div class="ttdeci">static Json::Value ledgerEntryDepositPreauth(jtx::Env &amp;env, jtx::Account const &amp;acc, std::vector&lt; jtx::deposit::AuthorizeCredentials &gt; const &amp;auth)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuth__test_8cpp_source.html#l00393">DepositAuth_test.cpp:393</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_html_a54c411cd7076541bcdac6e918424d7c6"><div class="ttname"><a href="namespaceripple_1_1test.html#a54c411cd7076541bcdac6e918424d7c6">ripple::test::hasDepositAuth</a></div><div class="ttdeci">static bool hasDepositAuth(jtx::Env const &amp;env, jtx::Account const &amp;acct)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuth__test_8cpp_source.html#l00039">DepositAuth_test.cpp:39</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_html_a95819c5e0e7ed797436fa48695febd32"><div class="ttname"><a href="namespaceripple_1_1test.html#a95819c5e0e7ed797436fa48695febd32">ripple::test::reserve</a></div><div class="ttdeci">static XRPAmount reserve(jtx::Env &amp;env, std::uint32_t count)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuth__test_8cpp_source.html#l00032">DepositAuth_test.cpp:32</a></div></div>