This commit is contained in:
bthomee
2025-05-30 17:29:11 +00:00
parent eb4df582b3
commit ebe6bc13ab
1387 changed files with 62225 additions and 49123 deletions

View File

@@ -127,13 +127,13 @@ $(function() {
<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/map.html">std::map</a>&lt;</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/string/basic_string.html">std::string</a>,</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/utility/tuple.html">std::tuple</a>&lt;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// side A volume</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// side B volume</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// high rate</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// low rate</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// open rate</span></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="comment">// close rate</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> &gt;&gt;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// side A volume</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// side B volume</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// high rate</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// low rate</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>, <span class="comment">// open rate</span></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="comment">// close rate</span></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/utility/optional.html">std::optional&lt;uint256&gt;</a>&gt;&gt; <span class="comment">// optional: domain id</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> tally;</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"> 61</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; tx : lpAccepted-&gt;txs)</div>
@@ -226,78 +226,85 @@ $(function() {
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> ss &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot;|&quot;</span> &lt;&lt; g;</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> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> key{ss.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>()};</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> domain = finalFields[~sfDomainID];</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="keywordflow">if</span> (tally.find(key) == tally.end())</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> tally[key] = {</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> first, <span class="comment">// side A vol</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> second, <span class="comment">// side B vol</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> rate, <span class="comment">// high</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> rate, <span class="comment">// low</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> rate, <span class="comment">// open</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> rate <span class="comment">// close</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> };</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> {</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="comment">// increment volume</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keyword">auto</span>&amp; entry = tally[key];</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> std::get&lt;0&gt;(entry) += first; <span class="comment">// side A vol</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> std::get&lt;1&gt;(entry) += second; <span class="comment">// side B vol</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow">if</span> (std::get&lt;2&gt;(entry) &lt; rate) <span class="comment">// high</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> std::get&lt;2&gt;(entry) = rate;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">if</span> (std::get&lt;3&gt;(entry) &gt; rate) <span class="comment">// low</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> std::get&lt;3&gt;(entry) = rate;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> std::get&lt;5&gt;(entry) = rate; <span class="comment">// close</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> }</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvObj(<a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a>);</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> jvObj[jss::type] = <span class="stringliteral">&quot;bookChanges&quot;</span>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> key{ss.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/io/basic_stringstream/str.html">str</a>()};</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">if</span> (tally.find(key) == tally.end())</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> tally[key] = {</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> first, <span class="comment">// side A vol</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> second, <span class="comment">// side B vol</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> rate, <span class="comment">// high</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> rate, <span class="comment">// low</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> rate, <span class="comment">// open</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> rate, <span class="comment">// close</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> domain};</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> {</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// increment volume</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">auto</span>&amp; entry = tally[key];</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> std::get&lt;0&gt;(entry) += first; <span class="comment">// side A vol</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> std::get&lt;1&gt;(entry) += second; <span class="comment">// side B vol</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">if</span> (std::get&lt;2&gt;(entry) &lt; rate) <span class="comment">// high</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> std::get&lt;2&gt;(entry) = rate;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">if</span> (std::get&lt;3&gt;(entry) &gt; rate) <span class="comment">// low</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> std::get&lt;3&gt;(entry) = rate;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> std::get&lt;5&gt;(entry) = rate; <span class="comment">// close</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> std::get&lt;6&gt;(entry) = domain; <span class="comment">// domain</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> }</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> }</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> }</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="comment">// retrieve validated information from LedgerHeader class</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> jvObj[jss::validated] = lpAccepted-&gt;info().validated;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> jvObj[jss::ledger_index] = lpAccepted-&gt;info().seq;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> jvObj[jss::ledger_hash] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(lpAccepted-&gt;info().hash);</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> jvObj[jss::ledger_time] = <a class="code hl_typedef" href="classJson_1_1Value.html#a10794060631f3e5f895739cfd2cc98b2">Json::Value::UInt</a>(</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> lpAccepted-&gt;info().closeTime.time_since_epoch().count());</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> jvObj[jss::changes] = <a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a>;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; entry : tally)</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>&amp; inner = jvObj[jss::changes].<a class="code hl_function" href="classJson_1_1Value.html#a21526b61dea2a1771030473e6248621e">append</a>(<a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a>);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> volA = std::get&lt;0&gt;(entry.second);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> volB = std::get&lt;1&gt;(entry.second);</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> jvObj(<a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a>);</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> jvObj[jss::type] = <span class="stringliteral">&quot;bookChanges&quot;</span>;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="comment">// retrieve validated information from LedgerHeader class</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> jvObj[jss::validated] = lpAccepted-&gt;info().validated;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> jvObj[jss::ledger_index] = lpAccepted-&gt;info().seq;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> jvObj[jss::ledger_hash] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(lpAccepted-&gt;info().hash);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> jvObj[jss::ledger_time] = <a class="code hl_typedef" href="classJson_1_1Value.html#a10794060631f3e5f895739cfd2cc98b2">Json::Value::UInt</a>(</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> lpAccepted-&gt;info().closeTime.time_since_epoch().count());</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> jvObj[jss::changes] = <a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a>;</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>&amp; entry : tally)</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> {</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>&amp; inner = jvObj[jss::changes].<a class="code hl_function" href="classJson_1_1Value.html#a21526b61dea2a1771030473e6248621e">append</a>(<a class="code hl_enumvalue" href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eae8386dcfc36d1ae897745f7b4f77a1f6">Json::objectValue</a>);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> inner[jss::currency_a] =</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volA) ? <span class="stringliteral">&quot;XRP_drops&quot;</span> : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">issue</a>()));</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> inner[jss::currency_b] =</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volB) ? <span class="stringliteral">&quot;XRP_drops&quot;</span> : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">issue</a>()));</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> inner[jss::volume_a] =</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volA) ? <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#a6c2ca92e9c91e2a34493d61e02d79ebf">xrp</a>()) : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#a094bda660d23e258021a2c63112ebc9a">iou</a>()));</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> inner[jss::volume_b] =</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volB) ? <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#a6c2ca92e9c91e2a34493d61e02d79ebf">xrp</a>()) : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#a094bda660d23e258021a2c63112ebc9a">iou</a>()));</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> inner[jss::high] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;2&gt;(entry.second).iou());</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> inner[jss::low] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;3&gt;(entry.second).iou());</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> inner[jss::open] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;4&gt;(entry.second).iou());</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> inner[jss::close] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;5&gt;(entry.second).iou());</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> }</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">return</span> jvObj;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span>}</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span>} <span class="comment">// namespace RPC</span></div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> volA = std::get&lt;0&gt;(entry.second);</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> volB = std::get&lt;1&gt;(entry.second);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> inner[jss::currency_a] =</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volA) ? <span class="stringliteral">&quot;XRP_drops&quot;</span> : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">issue</a>()));</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> inner[jss::currency_b] =</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volB) ? <span class="stringliteral">&quot;XRP_drops&quot;</span> : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#acab76380a95d902071fd26ab3425bbe5">issue</a>()));</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> inner[jss::volume_a] =</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volA) ? <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#a6c2ca92e9c91e2a34493d61e02d79ebf">xrp</a>()) : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volA.<a class="code hl_function" href="classripple_1_1STAmount.html#a094bda660d23e258021a2c63112ebc9a">iou</a>()));</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> inner[jss::volume_b] =</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> (<a class="code hl_function" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(volB) ? <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#a6c2ca92e9c91e2a34493d61e02d79ebf">xrp</a>()) : <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(volB.<a class="code hl_function" href="classripple_1_1STAmount.html#a094bda660d23e258021a2c63112ebc9a">iou</a>()));</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> inner[jss::high] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;2&gt;(entry.second).iou());</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> inner[jss::low] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;3&gt;(entry.second).iou());</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> inner[jss::open] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;4&gt;(entry.second).iou());</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> inner[jss::close] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(std::get&lt;5&gt;(entry.second).iou());</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256&gt;</a> <span class="keyword">const</span> domain = std::get&lt;6&gt;(entry.second);</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">if</span> (domain)</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> inner[jss::domain] = <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(*domain);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> }</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keywordflow">return</span> jvObj;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>}</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span>} <span class="comment">// namespace RPC</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="abasic_stringstream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_stringstream.html">std::stringstream</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00149">json_value.h:150</a></div></div>