This commit is contained in:
manojsdoshi
2020-06-01 21:57:45 +00:00
parent 9facc04fc4
commit afa79b0356
1940 changed files with 36875 additions and 32960 deletions

View File

@@ -133,7 +133,7 @@ $(function() {
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a> env(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code" href="namespaceripple_1_1test_1_1jtx.html#a37cf35ddf6bc8f4c6cbfa3fba57d6815">XRP</a>(1000), alice, becky, carol);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">// becky is authorized to deposit to herself.</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#a29be7c9889d2cec117499fd643f7d0dc">validateDepositAuthResult</a>(</div>
@@ -161,7 +161,7 @@ $(function() {
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="stringliteral">&quot;deposit_authorized&quot;</span>,</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#ada85c761546ceef57ac3ccca85748695">depositAuthArgs</a>(alice, becky).toStyledString()),</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">false</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// becky is still authorized to deposit to herself.</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#a29be7c9889d2cec117499fd643f7d0dc">validateDepositAuthResult</a>(</div>
@@ -181,7 +181,7 @@ $(function() {
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="comment">// becky creates a deposit authorization for alice.</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; env(deposit::auth(becky, alice));</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// alice is now authorized to deposit to becky.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#a29be7c9889d2cec117499fd643f7d0dc">validateDepositAuthResult</a>(</div>
@@ -201,7 +201,7 @@ $(function() {
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">// becky clears the the DepositAuth flag so carol becomes authorized.</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; env(<a class="code" href="namespaceripple_1_1test_1_1jtx.html#a18cde110bb3ad7dce97ac11a4b251d0e">fclear</a>(becky, <a class="code" href="namespaceripple.html#ac8702c2a063621ce9c6b31ed17e7bb9c">asfDepositAuth</a>));</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#a29be7c9889d2cec117499fd643f7d0dc">validateDepositAuthResult</a>(</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a0f3a59ffc07ea469d2999d1ae0aeea77">rpc</a>(</div>
@@ -320,7 +320,7 @@ $(function() {
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; verifyErr(result, <span class="stringliteral">&quot;srcActNotFound&quot;</span>, <span class="stringliteral">&quot;Source account not found.&quot;</span>);</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; }</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code" href="namespaceripple_1_1test_1_1jtx.html#a37cf35ddf6bc8f4c6cbfa3fba57d6815">XRP</a>(1000), alice);</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; {</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="comment">// becky is not yet funded.</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> args{<a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#ada85c761546ceef57ac3ccca85748695">depositAuthArgs</a>(alice, becky)};</div>
@@ -330,7 +330,7 @@ $(function() {
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; result, <span class="stringliteral">&quot;dstActNotFound&quot;</span>, <span class="stringliteral">&quot;Destination account not found.&quot;</span>);</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; }</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">fund</a>(<a class="code" href="namespaceripple_1_1test_1_1jtx.html#a37cf35ddf6bc8f4c6cbfa3fba57d6815">XRP</a>(1000), becky);</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">close</a>();</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; env.<a class="code" href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">close</a>();</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; {</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="comment">// Once becky is funded try it again and see it succeed.</span></div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> args{<a class="code" href="classripple_1_1test_1_1DepositAuthorized__test.html#ada85c761546ceef57ac3ccca85748695">depositAuthArgs</a>(alice, becky)};</div>
@@ -367,14 +367,14 @@ $(function() {
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a18cde110bb3ad7dce97ac11a4b251d0e"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a18cde110bb3ad7dce97ac11a4b251d0e">ripple::test::jtx::fclear</a></div><div class="ttdeci">Json::Value fclear(Account const &amp;account, std::uint32_t off)</div><div class="ttdoc">Remove account flag.</div><div class="ttdef"><b>Definition:</b> <a href="flags_8h_source.html#l00040">flags.h:40</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_aa52f7873b95d29627d6e83ba96f69aaa"><div class="ttname"><a href="classJson_1_1Value.html#aa52f7873b95d29627d6e83ba96f69aaa">Json::Value::removeMember</a></div><div class="ttdeci">Value removeMember(const char *key)</div><div class="ttdoc">Remove and return the named member.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00907">json_value.cpp:907</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_abc1dc9c86060f4d385dc66b2a31c0bd6"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#abc1dc9c86060f4d385dc66b2a31c0bd6">ripple::test::jtx::Env::close</a></div><div class="ttdeci">void close(NetClock::time_point closeTime, boost::optional&lt; std::chrono::milliseconds &gt; consensusDelay=boost::none)</div><div class="ttdoc">Close and advance the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00111">Env.cpp:111</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_ae2349266cb09d1f1c3de06606ebdf9e2"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">ripple::test::jtx::Env::fund</a></div><div class="ttdeci">void fund(bool setDefaultRipple, STAmount const &amp;amount, Account const &amp;account)</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00201">Env.cpp:201</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_a2c5dcd5bbad5c5b767ff713b6f7cb1ed"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#a2c5dcd5bbad5c5b767ff713b6f7cb1ed">ripple::test::jtx::Env::close</a></div><div class="ttdeci">bool close(NetClock::time_point closeTime, boost::optional&lt; std::chrono::milliseconds &gt; consensusDelay=boost::none)</div><div class="ttdoc">Close and advance the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00111">Env.cpp:111</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_ae2349266cb09d1f1c3de06606ebdf9e2"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#ae2349266cb09d1f1c3de06606ebdf9e2">ripple::test::jtx::Env::fund</a></div><div class="ttdeci">void fund(bool setDefaultRipple, STAmount const &amp;amount, Account const &amp;account)</div><div class="ttdef"><b>Definition:</b> <a href="Env_8cpp_source.html#l00209">Env.cpp:209</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1DepositAuthorized__test_html_a29be7c9889d2cec117499fd643f7d0dc"><div class="ttname"><a href="classripple_1_1test_1_1DepositAuthorized__test.html#a29be7c9889d2cec117499fd643f7d0dc">ripple::test::DepositAuthorized_test::validateDepositAuthResult</a></div><div class="ttdeci">void validateDepositAuthResult(Json::Value const &amp;result, bool authorized)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuthorized__test_8cpp_source.html#l00047">DepositAuthorized_test.cpp:47</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Account_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Account.html">ripple::test::jtx::Account</a></div><div class="ttdoc">Immutable cryptographic account descriptor.</div><div class="ttdef"><b>Definition:</b> <a href="Account_8h_source.html#l00037">Account.h:37</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1DepositAuthorized__test_html"><div class="ttname"><a href="classripple_1_1test_1_1DepositAuthorized__test.html">ripple::test::DepositAuthorized_test</a></div><div class="ttdef"><b>Definition:</b> <a href="DepositAuthorized__test_8cpp_source.html#l00026">DepositAuthorized_test.cpp:26</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1DepositAuthorized__test_html_ada85c761546ceef57ac3ccca85748695"><div class="ttname"><a href="classripple_1_1test_1_1DepositAuthorized__test.html#ada85c761546ceef57ac3ccca85748695">ripple::test::DepositAuthorized_test::depositAuthArgs</a></div><div class="ttdeci">static Json::Value depositAuthArgs(jtx::Account const &amp;source, jtx::Account const &amp;dest, std::string const &amp;ledger=&quot;&quot;)</div><div class="ttdef"><b>Definition:</b> <a href="DepositAuthorized__test_8cpp_source.html#l00031">DepositAuthorized_test.cpp:31</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html">ripple::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00114">Env.h:114</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_a0f3a59ffc07ea469d2999d1ae0aeea77"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#a0f3a59ffc07ea469d2999d1ae0aeea77">ripple::test::jtx::Env::rpc</a></div><div class="ttdeci">Json::Value rpc(std::unordered_map&lt; std::string, std::string &gt; const &amp;headers, std::string const &amp;cmd, Args &amp;&amp;... args)</div><div class="ttdoc">Execute an RPC command.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00676">Env.h:676</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html_a0f3a59ffc07ea469d2999d1ae0aeea77"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html#a0f3a59ffc07ea469d2999d1ae0aeea77">ripple::test::jtx::Env::rpc</a></div><div class="ttdeci">Json::Value rpc(std::unordered_map&lt; std::string, std::string &gt; const &amp;headers, std::string const &amp;cmd, Args &amp;&amp;... args)</div><div class="ttdoc">Execute an RPC command.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00682">Env.h:682</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00145">json_value.h:145</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>