mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
deploy: 2406b28e64
This commit is contained in:
@@ -94,183 +94,184 @@ $(function() {
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#ifndef RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#define RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include <test/jtx/Account.h></span></div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <test/jtx/amount.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <test/jtx/ter.h></span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <xrpl/beast/unit_test/suite.h></span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <xrpl/protocol/Feature.h></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span>test {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span>jtx {</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">class </span><a class="code hl_enumvalue" href="namespaceripple.html#a22768e0a41b646442c98d38f2f2a307babd09c58ee620c0fdf33d2cdeb88eaaee">AMM</a>;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6"> 34</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> { <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">All</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a602a6e07ac0eb91355c6da3469eaf9b5">Acct</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a4f88cf4126c82068ff9f2f90d225a079">Gw</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6aae908268dcfdb25d40efca91954953c9">IOUOnly</a> };</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& gw,</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts,</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how);</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& gw,</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& xrp,</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts = {},</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how = <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">Fund::All</a>);</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> jtx::Env& env,</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& xrp,</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts = {},</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how = <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">Fund::All</a>);</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html"> 61</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">AMMTestBase</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>{</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54"> 64</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54">gw</a>;</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127"> 65</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127">carol</a>;</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21"> 66</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21">alice</a>;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d"> 67</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d">bob</a>;</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792"> 68</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792">USD</a>;</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c"> 69</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c">EUR</a>;</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6"> 70</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6">GBP</a>;</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c"> 71</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c">BTC</a>;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b"> 72</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b">BAD</a>;</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a66a1abfde9a52abe8b0c3de1392022bb">AMMTestBase</a>();</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afdb3804e5f9c1d6cd3dea67c22f6ef51">testAMM</a>(</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMM.html">jtx::AMM</a>&, <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>&)>&& cb,</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a><<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<STAmount, STAmount></a>> <span class="keyword">const</span>& pool = std::nullopt,</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> tfee = 0,</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<jtx::ter></a> <span class="keyword">const</span>& <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = std::nullopt,</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<FeatureBitset></a> <span class="keyword">const</span>& features = {<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>()});</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span>};</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest.html"> 90</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTest.html">AMMTest</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">jtx::AMMTestBase</a></div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span>{</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#aba3a020259e3a4c11a17c2f158c8d71e">reserve</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> count) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a7ade4a3adf6abbc6a83126be11f44539">ammCrtFee</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="comment">/* Path_test */</span></div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="comment"> /************************************************/</span></div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html"> 101</a></span> <span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html">gate</a></div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623"> 104</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>;</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908"> 105</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>;</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b"> 106</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// Thread safe, blocks until signaled or period expires.</span></div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// Returns `true` if signaled.</span></div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">template</span> <<span class="keyword">class</span> Rep, <span class="keyword">class</span> Period></div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889"> 113</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889">wait_for</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration<Rep, Period></a> <span class="keyword">const</span>& rel_time)</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> {</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock<std::mutex></a> lk(<a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>);</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">auto</span> b = <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable/wait_for.html">wait_for</a>(lk, rel_time, [<span class="keyword">this</span>] { <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a>; });</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> b;</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244"> 122</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244">signal</a>()</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> {</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lk(<a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>);</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable/notify_all.html">notify_all</a>();</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> }</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> };</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a></div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a2ad9589a49a3397b7c7697a6dc411843">pathTestEnv</a>();</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#ade92a8f64b0273f70f3a25ac9007feb9">find_paths_request</a>(</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& src,</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& dst,</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saDstAmount,</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& saSendMax = std::nullopt,</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Currency></a> <span class="keyword">const</span>& saSrcCurrency = std::nullopt);</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<STPathSet, STAmount, STAmount></a></div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a13536a06d69a305624970ebe4457cbe5">find_paths</a>(</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& src,</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& dst,</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saDstAmount,</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& saSendMax = std::nullopt,</div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Currency></a> <span class="keyword">const</span>& saSrcCurrency = std::nullopt);</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span>};</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span>} <span class="comment">// namespace jtx</span></div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span>} <span class="comment">// namespace test</span></div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="preprocessor">#endif </span><span class="comment">// RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></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#l00146">json_value.h:147</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00052">suite.h:53</a></div></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <test/jtx/Account.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <test/jtx/amount.h></span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <test/jtx/ter.h></span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <xrpl/beast/unit_test/suite.h></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <xrpl/protocol/Feature.h></span></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span>test {</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">namespace </span>jtx {</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">class </span><a class="code hl_enumvalue" href="namespaceripple.html#a22768e0a41b646442c98d38f2f2a307babd09c58ee620c0fdf33d2cdeb88eaaee">AMM</a>;</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6"> 35</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> { <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">All</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a602a6e07ac0eb91355c6da3469eaf9b5">Acct</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a4f88cf4126c82068ff9f2f90d225a079">Gw</a>, <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6aae908268dcfdb25d40efca91954953c9">IOUOnly</a> };</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& gw,</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts,</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how);</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& gw,</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& xrp,</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts = {},</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how = <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">Fund::All</a>);</div>
|
||||
<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><span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">fund</a>(</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> jtx::Env& env,</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<jtx::Account></a> <span class="keyword">const</span>& accounts,</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& xrp,</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<STAmount></a> <span class="keyword">const</span>& amts = {},</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_enumeration" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">Fund</a> how = <a class="code hl_enumvalue" href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6ab1c94ca2fbc3e78fc30069c8d0f01680">Fund::All</a>);</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html"> 62</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">AMMTestBase</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>{</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54"> 65</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54">gw</a>;</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127"> 66</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127">carol</a>;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21"> 67</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21">alice</a>;</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d"> 68</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d">bob</a>;</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792"> 69</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792">USD</a>;</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c"> 70</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c">EUR</a>;</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6"> 71</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6">GBP</a>;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c"> 72</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c">BTC</a>;</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b"> 73</a></span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1IOU.html">jtx::IOU</a> <span class="keyword">const</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b">BAD</a>;</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a66a1abfde9a52abe8b0c3de1392022bb">AMMTestBase</a>();</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afdb3804e5f9c1d6cd3dea67c22f6ef51">testAMM</a>(</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMM.html">jtx::AMM</a>&, <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>&)>&& cb,</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a><<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<STAmount, STAmount></a>> <span class="keyword">const</span>& pool = std::nullopt,</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> tfee = 0,</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<jtx::ter></a> <span class="keyword">const</span>& <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a> = std::nullopt,</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<FeatureBitset></a> <span class="keyword">const</span>& features = {<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#af5441d84d5977d52246c5226313560d4">supported_amendments</a>()});</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>};</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest.html"> 91</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTest.html">AMMTest</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">jtx::AMMTestBase</a></div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>{</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#aba3a020259e3a4c11a17c2f158c8d71e">reserve</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> count) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a7ade4a3adf6abbc6a83126be11f44539">ammCrtFee</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="comment">/* Path_test */</span></div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="comment"> /************************************************/</span></div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html"> 102</a></span> <span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html">gate</a></div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> {</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623"> 105</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>;</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908"> 106</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>;</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b"> 107</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// Thread safe, blocks until signaled or period expires.</span></div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="comment">// Returns `true` if signaled.</span></div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">template</span> <<span class="keyword">class</span> Rep, <span class="keyword">class</span> Period></div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889"> 114</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889">wait_for</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration<Rep, Period></a> <span class="keyword">const</span>& rel_time)</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> {</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock<std::mutex></a> lk(<a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>);</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">auto</span> b = <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable/wait_for.html">wait_for</a>(lk, rel_time, [<span class="keyword">this</span>] { <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a>; });</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">return</span> b;</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> }</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244"> 123</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244">signal</a>()</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> {</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lk(<a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">mutex_</a>);</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">signaled_</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">cv_</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable/notify_all.html">notify_all</a>();</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> };</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a></div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a2ad9589a49a3397b7c7697a6dc411843">pathTestEnv</a>();</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#ade92a8f64b0273f70f3a25ac9007feb9">find_paths_request</a>(</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& src,</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& dst,</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saDstAmount,</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& saSendMax = std::nullopt,</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Currency></a> <span class="keyword">const</span>& saSrcCurrency = std::nullopt);</div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<STPathSet, STAmount, STAmount></a></div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a13536a06d69a305624970ebe4457cbe5">find_paths</a>(</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a>& env,</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& src,</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Account.html">jtx::Account</a> <span class="keyword">const</span>& dst,</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saDstAmount,</div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<STAmount></a> <span class="keyword">const</span>& saSendMax = std::nullopt,</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Currency></a> <span class="keyword">const</span>& saSrcCurrency = std::nullopt);</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>};</div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span>} <span class="comment">// namespace jtx</span></div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>} <span class="comment">// namespace test</span></div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="preprocessor">#endif </span><span class="comment">// RIPPLE_TEST_JTX_AMMTEST_H_INCLUDED</span></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#l00147">json_value.h:148</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00054">suite.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00049">STAmount.h:50</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="XRPAmount_8h_source.html#l00039">XRPAmount.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">ripple::test::jtx::AMMTestBase</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00061">AMMTest.h:62</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a3baa0afcd265e9eb486f0d957e7d6b21"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21">ripple::test::jtx::AMMTestBase::alice</a></div><div class="ttdeci">jtx::Account const alice</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00066">AMMTest.h:66</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a4c4cf3fa89a4593e1baa3959d690c14c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c">ripple::test::jtx::AMMTestBase::BTC</a></div><div class="ttdeci">jtx::IOU const BTC</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00071">AMMTest.h:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a4edfbabbf5d3eba37156029f8a913792"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792">ripple::test::jtx::AMMTestBase::USD</a></div><div class="ttdeci">jtx::IOU const USD</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00068">AMMTest.h:68</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a632ccc576a9415e4648b80fa52886e54"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54">ripple::test::jtx::AMMTestBase::gw</a></div><div class="ttdeci">jtx::Account const gw</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00064">AMMTest.h:64</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a66a1abfde9a52abe8b0c3de1392022bb"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a66a1abfde9a52abe8b0c3de1392022bb">ripple::test::jtx::AMMTestBase::AMMTestBase</a></div><div class="ttdeci">AMMTestBase()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00087">AMMTest.cpp:87</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a6ffc2db0ebc33314843e07d5cdd4da2d"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d">ripple::test::jtx::AMMTestBase::bob</a></div><div class="ttdeci">jtx::Account const bob</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00067">AMMTest.h:67</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a80494932440025696dc4729725928d2c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c">ripple::test::jtx::AMMTestBase::EUR</a></div><div class="ttdeci">jtx::IOU const EUR</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00069">AMMTest.h:69</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a9d0ac4801a20f421e88095a5ed604dd6"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6">ripple::test::jtx::AMMTestBase::GBP</a></div><div class="ttdeci">jtx::IOU const GBP</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00070">AMMTest.h:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_aeedbd0d6402d225e41bd10251a7a0127"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127">ripple::test::jtx::AMMTestBase::carol</a></div><div class="ttdeci">jtx::Account const carol</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00065">AMMTest.h:65</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_afc93c39b82d9e1ffef2ef667cd23b76b"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b">ripple::test::jtx::AMMTestBase::BAD</a></div><div class="ttdeci">jtx::IOU const BAD</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00072">AMMTest.h:72</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_afdb3804e5f9c1d6cd3dea67c22f6ef51"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afdb3804e5f9c1d6cd3dea67c22f6ef51">ripple::test::jtx::AMMTestBase::testAMM</a></div><div class="ttdeci">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::vector< FeatureBitset > const &features={supported_amendments()})</div><div class="ttdoc">testAMM() funds 30,000XRP and 30,000IOU for each non-XRP asset to Alice and Carol</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00101">AMMTest.cpp:101</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html">ripple::test::jtx::AMMTest::gate</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00101">AMMTest.h:102</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a0cf421914280f0196f5b4898ca38c908"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">ripple::test::jtx::AMMTest::gate::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00105">AMMTest.h:105</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a22720e8295b35478cc46d1c4b1e65244"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244">ripple::test::jtx::AMMTest::gate::signal</a></div><div class="ttdeci">void signal()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00122">AMMTest.h:122</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a4b023593e882de402c895ea9cb89919b"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">ripple::test::jtx::AMMTest::gate::signaled_</a></div><div class="ttdeci">bool signaled_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00106">AMMTest.h:106</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a5cc359043024a19f716f42607bdae889"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889">ripple::test::jtx::AMMTest::gate::wait_for</a></div><div class="ttdeci">bool wait_for(std::chrono::duration< Rep, Period > const &rel_time)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00113">AMMTest.h:113</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a9abb37d9459f27b33f809aeefb8c8623"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">ripple::test::jtx::AMMTest::gate::cv_</a></div><div class="ttdeci">std::condition_variable cv_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00104">AMMTest.h:104</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html">ripple::test::jtx::AMMTest</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00090">AMMTest.h:91</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a13536a06d69a305624970ebe4457cbe5"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a13536a06d69a305624970ebe4457cbe5">ripple::test::jtx::AMMTest::find_paths</a></div><div class="ttdeci">std::tuple< STPathSet, STAmount, STAmount > find_paths(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)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00238">AMMTest.cpp:238</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a2ad9589a49a3397b7c7697a6dc411843"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a2ad9589a49a3397b7c7697a6dc411843">ripple::test::jtx::AMMTest::pathTestEnv</a></div><div class="ttdeci">jtx::Env pathTestEnv()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00165">AMMTest.cpp:165</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a7ade4a3adf6abbc6a83126be11f44539"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a7ade4a3adf6abbc6a83126be11f44539">ripple::test::jtx::AMMTest::ammCrtFee</a></div><div class="ttdeci">XRPAmount ammCrtFee(jtx::Env &env) const</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00159">AMMTest.cpp:159</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_aba3a020259e3a4c11a17c2f158c8d71e"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#aba3a020259e3a4c11a17c2f158c8d71e">ripple::test::jtx::AMMTest::reserve</a></div><div class="ttdeci">XRPAmount reserve(jtx::Env &env, std::uint32_t count) const</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00153">AMMTest.cpp:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_ade92a8f64b0273f70f3a25ac9007feb9"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#ade92a8f64b0273f70f3a25ac9007feb9">ripple::test::jtx::AMMTest::find_paths_request</a></div><div class="ttdeci">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)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00179">AMMTest.cpp:179</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html">ripple::test::jtx::AMMTestBase</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00062">AMMTest.h:63</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a3baa0afcd265e9eb486f0d957e7d6b21"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a3baa0afcd265e9eb486f0d957e7d6b21">ripple::test::jtx::AMMTestBase::alice</a></div><div class="ttdeci">jtx::Account const alice</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00067">AMMTest.h:67</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a4c4cf3fa89a4593e1baa3959d690c14c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4c4cf3fa89a4593e1baa3959d690c14c">ripple::test::jtx::AMMTestBase::BTC</a></div><div class="ttdeci">jtx::IOU const BTC</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00072">AMMTest.h:72</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a4edfbabbf5d3eba37156029f8a913792"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a4edfbabbf5d3eba37156029f8a913792">ripple::test::jtx::AMMTestBase::USD</a></div><div class="ttdeci">jtx::IOU const USD</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00069">AMMTest.h:69</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a632ccc576a9415e4648b80fa52886e54"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a632ccc576a9415e4648b80fa52886e54">ripple::test::jtx::AMMTestBase::gw</a></div><div class="ttdeci">jtx::Account const gw</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00065">AMMTest.h:65</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a66a1abfde9a52abe8b0c3de1392022bb"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a66a1abfde9a52abe8b0c3de1392022bb">ripple::test::jtx::AMMTestBase::AMMTestBase</a></div><div class="ttdeci">AMMTestBase()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00086">AMMTest.cpp:86</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a6ffc2db0ebc33314843e07d5cdd4da2d"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a6ffc2db0ebc33314843e07d5cdd4da2d">ripple::test::jtx::AMMTestBase::bob</a></div><div class="ttdeci">jtx::Account const bob</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00068">AMMTest.h:68</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a80494932440025696dc4729725928d2c"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a80494932440025696dc4729725928d2c">ripple::test::jtx::AMMTestBase::EUR</a></div><div class="ttdeci">jtx::IOU const EUR</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00070">AMMTest.h:70</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_a9d0ac4801a20f421e88095a5ed604dd6"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#a9d0ac4801a20f421e88095a5ed604dd6">ripple::test::jtx::AMMTestBase::GBP</a></div><div class="ttdeci">jtx::IOU const GBP</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00071">AMMTest.h:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_aeedbd0d6402d225e41bd10251a7a0127"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#aeedbd0d6402d225e41bd10251a7a0127">ripple::test::jtx::AMMTestBase::carol</a></div><div class="ttdeci">jtx::Account const carol</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00066">AMMTest.h:66</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_afc93c39b82d9e1ffef2ef667cd23b76b"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afc93c39b82d9e1ffef2ef667cd23b76b">ripple::test::jtx::AMMTestBase::BAD</a></div><div class="ttdeci">jtx::IOU const BAD</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00073">AMMTest.h:73</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTestBase_html_afdb3804e5f9c1d6cd3dea67c22f6ef51"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTestBase.html#afdb3804e5f9c1d6cd3dea67c22f6ef51">ripple::test::jtx::AMMTestBase::testAMM</a></div><div class="ttdeci">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::vector< FeatureBitset > const &features={supported_amendments()})</div><div class="ttdoc">testAMM() funds 30,000XRP and 30,000IOU for each non-XRP asset to Alice and Carol</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00100">AMMTest.cpp:100</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html">ripple::test::jtx::AMMTest::gate</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00102">AMMTest.h:103</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a0cf421914280f0196f5b4898ca38c908"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a0cf421914280f0196f5b4898ca38c908">ripple::test::jtx::AMMTest::gate::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00106">AMMTest.h:106</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a22720e8295b35478cc46d1c4b1e65244"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a22720e8295b35478cc46d1c4b1e65244">ripple::test::jtx::AMMTest::gate::signal</a></div><div class="ttdeci">void signal()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00123">AMMTest.h:123</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a4b023593e882de402c895ea9cb89919b"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a4b023593e882de402c895ea9cb89919b">ripple::test::jtx::AMMTest::gate::signaled_</a></div><div class="ttdeci">bool signaled_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00107">AMMTest.h:107</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a5cc359043024a19f716f42607bdae889"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a5cc359043024a19f716f42607bdae889">ripple::test::jtx::AMMTest::gate::wait_for</a></div><div class="ttdeci">bool wait_for(std::chrono::duration< Rep, Period > const &rel_time)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00114">AMMTest.h:114</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_1_1gate_html_a9abb37d9459f27b33f809aeefb8c8623"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest_1_1gate.html#a9abb37d9459f27b33f809aeefb8c8623">ripple::test::jtx::AMMTest::gate::cv_</a></div><div class="ttdeci">std::condition_variable cv_</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00105">AMMTest.h:105</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html">ripple::test::jtx::AMMTest</a></div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00091">AMMTest.h:92</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a13536a06d69a305624970ebe4457cbe5"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a13536a06d69a305624970ebe4457cbe5">ripple::test::jtx::AMMTest::find_paths</a></div><div class="ttdeci">std::tuple< STPathSet, STAmount, STAmount > find_paths(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)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00237">AMMTest.cpp:237</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a2ad9589a49a3397b7c7697a6dc411843"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a2ad9589a49a3397b7c7697a6dc411843">ripple::test::jtx::AMMTest::pathTestEnv</a></div><div class="ttdeci">jtx::Env pathTestEnv()</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00164">AMMTest.cpp:164</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_a7ade4a3adf6abbc6a83126be11f44539"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#a7ade4a3adf6abbc6a83126be11f44539">ripple::test::jtx::AMMTest::ammCrtFee</a></div><div class="ttdeci">XRPAmount ammCrtFee(jtx::Env &env) const</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00158">AMMTest.cpp:158</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_aba3a020259e3a4c11a17c2f158c8d71e"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#aba3a020259e3a4c11a17c2f158c8d71e">ripple::test::jtx::AMMTest::reserve</a></div><div class="ttdeci">XRPAmount reserve(jtx::Env &env, std::uint32_t count) const</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00152">AMMTest.cpp:152</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMMTest_html_ade92a8f64b0273f70f3a25ac9007feb9"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMMTest.html#ade92a8f64b0273f70f3a25ac9007feb9">ripple::test::jtx::AMMTest::find_paths_request</a></div><div class="ttdeci">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)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00178">AMMTest.cpp:178</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1AMM_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1AMM.html">ripple::test::jtx::AMM</a></div><div class="ttdoc">Convenience class to test AMM functionality.</div><div class="ttdef"><b>Definition:</b> <a href="AMM_8h_source.html#l00121">AMM.h:122</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:38</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#l00116">Env.h:117</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1IOU_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1IOU.html">ripple::test::jtx::IOU</a></div><div class="ttdoc">Converts to IOU Issue or STAmount.</div><div class="ttdef"><b>Definition:</b> <a href="src_2test_2jtx_2amount_8h_source.html#l00292">src/test/jtx/amount.h:293</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1ter_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1ter.html">ripple::test::jtx::ter</a></div><div class="ttdoc">Set the expected result code for a JTx The test will fail if the code doesn't match.</div><div class="ttdef"><b>Definition:</b> <a href="ter_8h_source.html#l00033">ter.h:34</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#l00038">Account.h:39</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#l00117">Env.h:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1IOU_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1IOU.html">ripple::test::jtx::IOU</a></div><div class="ttdoc">Converts to IOU Issue or STAmount.</div><div class="ttdef"><b>Definition:</b> <a href="src_2test_2jtx_2amount_8h_source.html#l00293">src/test/jtx/amount.h:294</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1ter_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1ter.html">ripple::test::jtx::ter</a></div><div class="ttdoc">Set the expected result code for a JTx The test will fail if the code doesn't match.</div><div class="ttdef"><b>Definition:</b> <a href="ter_8h_source.html#l00034">ter.h:35</a></div></div>
|
||||
<div class="ttc" id="acondition_variable_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a></div></div>
|
||||
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::duration</a></div></div>
|
||||
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a></div></div>
|
||||
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div></div>
|
||||
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a7465bcfa8bde2f58f93cee57934f7df8"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">ripple::test::jtx::fund</a></div><div class="ttdeci">void fund(jtx::Env &env, jtx::Account const &gw, std::vector< jtx::Account > const &accounts, std::vector< STAmount > const &amts, Fund how)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00035">AMMTest.cpp:35</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#l00070">Env.h:70</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aff98aceb75526246bab03273ec360fb6"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">ripple::test::jtx::Fund</a></div><div class="ttdeci">Fund</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00034">AMMTest.h:34</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a7465bcfa8bde2f58f93cee57934f7df8"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a7465bcfa8bde2f58f93cee57934f7df8">ripple::test::jtx::fund</a></div><div class="ttdeci">void fund(jtx::Env &env, jtx::Account const &gw, std::vector< jtx::Account > const &accounts, std::vector< STAmount > const &amts, Fund how)</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8cpp_source.html#l00034">AMMTest.cpp:34</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#l00071">Env.h:71</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aff98aceb75526246bab03273ec360fb6"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6">ripple::test::jtx::Fund</a></div><div class="ttdeci">Fund</div><div class="ttdef"><b>Definition:</b> <a href="AMMTest_8h_source.html#l00035">AMMTest.h:35</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aff98aceb75526246bab03273ec360fb6a4f88cf4126c82068ff9f2f90d225a079"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a4f88cf4126c82068ff9f2f90d225a079">ripple::test::jtx::Fund::Gw</a></div><div class="ttdeci">@ Gw</div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aff98aceb75526246bab03273ec360fb6a602a6e07ac0eb91355c6da3469eaf9b5"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6a602a6e07ac0eb91355c6da3469eaf9b5">ripple::test::jtx::Fund::Acct</a></div><div class="ttdeci">@ Acct</div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_aff98aceb75526246bab03273ec360fb6aae908268dcfdb25d40efca91954953c9"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#aff98aceb75526246bab03273ec360fb6aae908268dcfdb25d40efca91954953c9">ripple::test::jtx::Fund::IOUOnly</a></div><div class="ttdeci">@ IOUOnly</div></div>
|
||||
|
||||
Reference in New Issue
Block a user