This commit is contained in:
intelliot
2023-09-08 05:51:22 +00:00
parent cb896142f7
commit 268f86ca2a
16 changed files with 1329 additions and 1103 deletions

View File

@@ -367,7 +367,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00089">AccountID.h:89</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_ad6d4df2227321bab05e86667609a7fad"><div class="ttname"><a href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(const char *key) const</div><div class="ttdoc">Return true if the object has a member named key.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00932">json_value.cpp:932</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="anamespaceripple_html_af487c2d8c871030560b07f7b7c118fd1"><div class="ttname"><a href="namespaceripple.html#af487c2d8c871030560b07f7b7c118fd1">ripple::sfAMMID</a></div><div class="ttdeci">const SF_UINT256 sfAMMID</div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html_a3351e0244f921234d5ba005a07ddf539"><div class="ttname"><a href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">ripple::ReadView::read</a></div><div class="ttdeci">virtual std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const =0</div><div class="ttdoc">Return the state item associated with a key.</div></div>
<div class="ttc" id="anamespaceripple_html_aee9f82c657b04d4d79bbd225a60ca815"><div class="ttname"><a href="namespaceripple.html#aee9f82c657b04d4d79bbd225a60ca815">ripple::getAccount</a></div><div class="ttdeci">std::optional&lt; AccountID &gt; getAccount(Json::Value const &amp;v, Json::Value &amp;result)</div><div class="ttdef"><b>Definition:</b> <a href="AMMInfo_8cpp_source.html#l00032">AMMInfo.cpp:32</a></div></div>

View File

@@ -127,7 +127,7 @@ $(function() {
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
<div class="ttc" id="anamespaceripple_html_a82ca6b1deeb34acfc5b0b4159b393786"><div class="ttname"><a href="namespaceripple.html#a82ca6b1deeb34acfc5b0b4159b393786">ripple::doLedgerGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status &gt; doLedgerGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHandler_8cpp_source.html#l00105">LedgerHandler.cpp:105</a></div></div>
<div class="ttc" id="anamespaceripple_html_aeaa95680c026e10fbdfbbb02300f89b8"><div class="ttname"><a href="namespaceripple.html#aeaa95680c026e10fbdfbbb02300f89b8">ripple::doLedgerDiffGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status &gt; doLedgerDiffGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerDiffRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerDiff_8cpp_source.html#l00006">LedgerDiff.cpp:6</a></div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00438">LedgerEntry.cpp:438</a></div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00466">LedgerEntry.cpp:466</a></div></div>
<div class="ttc" id="anamespaceripple_html_af3192f02f7c3e68a904df994498c955d"><div class="ttname"><a href="namespaceripple.html#af3192f02f7c3e68a904df994498c955d">ripple::doLedgerDataGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status &gt; doLedgerDataGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerDataRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerData_8cpp_source.html#l00135">LedgerData.cpp:135</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<!-- start footer part -->

View File

@@ -839,7 +839,7 @@ $(function() {
<div class="ttc" id="aclassripple_1_1InfoSub_html_adfb3fe4247bc77767d7a6cf82bee297c"><div class="ttname"><a href="classripple_1_1InfoSub.html#adfb3fe4247bc77767d7a6cf82bee297c">ripple::InfoSub::pointer</a></div><div class="ttdeci">std::shared_ptr&lt; InfoSub &gt; pointer</div><div class="ttdef"><b>Definition:</b> <a href="InfoSub_8h_source.html#l00054">InfoSub.h:54</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_a57929fa83c551514e364fe6981b0c104"><div class="ttname"><a href="classripple_1_1Application.html#a57929fa83c551514e364fe6981b0c104">ripple::Application::getLedgerMaster</a></div><div class="ttdeci">virtual LedgerMaster &amp; getLedgerMaster()=0</div></div>
<div class="ttc" id="anamespaceripple_html_ae08fe18f17b24699ce41d3898fbb8c2ca2e40ad879e955201df4dedbf8d479a12"><div class="ttname"><a href="namespaceripple.html#ae08fe18f17b24699ce41d3898fbb8c2ca2e40ad879e955201df4dedbf8d479a12">ripple::Role::USER</a></div><div class="ttdeci">@ USER</div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00438">LedgerEntry.cpp:438</a></div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00466">LedgerEntry.cpp:466</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html_aca56b7c63030174e59720ab51d739422"><div class="ttname"><a href="classripple_1_1Application.html#aca56b7c63030174e59720ab51d739422">ripple::Application::config</a></div><div class="ttdeci">virtual Config &amp; config()=0</div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1GRPCContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1GRPCContext.html">ripple::RPC::GRPCContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00070">Context.h:70</a></div></div>
<div class="ttc" id="anamespaceripple_html_a3cdb42706b673600d3abe99394d68d5b"><div class="ttname"><a href="namespaceripple.html#a3cdb42706b673600d3abe99394d68d5b">ripple::getP2pForwardingStub</a></div><div class="ttdeci">std::unique_ptr&lt; org::xrpl::rpc::v1::XRPLedgerAPIService::Stub &gt; getP2pForwardingStub(RPC::Context &amp;context)</div><div class="ttdoc">Get stub used to forward gRPC requests to a p2p node.</div><div class="ttdef"><b>Definition:</b> <a href="P2pProxy_8cpp_source.html#l00035">P2pProxy.cpp:35</a></div></div>

View File

@@ -330,7 +330,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a07dd67952f9aad3b87dd9c774c954f32"><div class="ttname"><a href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">ripple::doLedgerAccept</a></div><div class="ttdeci">Json::Value doLedgerAccept(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerAccept_8cpp_source.html#l00035">LedgerAccept.cpp:35</a></div></div>
<div class="ttc" id="anamespaceripple_html_afa09d325fc5234ca4b49c56222815d72"><div class="ttname"><a href="namespaceripple.html#afa09d325fc5234ca4b49c56222815d72">ripple::doUnlList</a></div><div class="ttdeci">Json::Value doUnlList(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="UnlList_8cpp_source.html#l00030">UnlList.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a966f8872c94e046474d270a697e4ed6f"><div class="ttname"><a href="namespaceripple.html#a966f8872c94e046474d270a697e4ed6f">ripple::doGetCounts</a></div><div class="ttdeci">Json::Value doGetCounts(RPC::JsonContext &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="GetCounts_8cpp_source.html#l00161">GetCounts.cpp:161</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00040">LedgerEntry.cpp:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00041">LedgerEntry.cpp:41</a></div></div>
<div class="ttc" id="anamespaceripple_html_aac2c4941d67ae8e5074e0b3a669898a7"><div class="ttname"><a href="namespaceripple.html#aac2c4941d67ae8e5074e0b3a669898a7">ripple::doLedgerCurrent</a></div><div class="ttdeci">Json::Value doLedgerCurrent(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerCurrent_8cpp_source.html#l00030">LedgerCurrent.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_acee6f754675c22b999fa6aabf1601e2c"><div class="ttname"><a href="namespaceripple.html#acee6f754675c22b999fa6aabf1601e2c">ripple::doAccountCurrencies</a></div><div class="ttdeci">Json::Value doAccountCurrencies(RPC::JsonContext &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="AccountCurrenciesHandler_8cpp_source.html#l00032">AccountCurrenciesHandler.cpp:32</a></div></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 class="ttdoc">STL class.</div></div>

View File

@@ -247,7 +247,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a07dd67952f9aad3b87dd9c774c954f32"><div class="ttname"><a href="namespaceripple.html#a07dd67952f9aad3b87dd9c774c954f32">ripple::doLedgerAccept</a></div><div class="ttdeci">Json::Value doLedgerAccept(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerAccept_8cpp_source.html#l00035">LedgerAccept.cpp:35</a></div></div>
<div class="ttc" id="anamespaceripple_html_afa09d325fc5234ca4b49c56222815d72"><div class="ttname"><a href="namespaceripple.html#afa09d325fc5234ca4b49c56222815d72">ripple::doUnlList</a></div><div class="ttdeci">Json::Value doUnlList(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="UnlList_8cpp_source.html#l00030">UnlList.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a966f8872c94e046474d270a697e4ed6f"><div class="ttname"><a href="namespaceripple.html#a966f8872c94e046474d270a697e4ed6f">ripple::doGetCounts</a></div><div class="ttdeci">Json::Value doGetCounts(RPC::JsonContext &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="GetCounts_8cpp_source.html#l00161">GetCounts.cpp:161</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00040">LedgerEntry.cpp:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00041">LedgerEntry.cpp:41</a></div></div>
<div class="ttc" id="anamespaceripple_html_aac2c4941d67ae8e5074e0b3a669898a7"><div class="ttname"><a href="namespaceripple.html#aac2c4941d67ae8e5074e0b3a669898a7">ripple::doLedgerCurrent</a></div><div class="ttdeci">Json::Value doLedgerCurrent(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerCurrent_8cpp_source.html#l00030">LedgerCurrent.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_acee6f754675c22b999fa6aabf1601e2c"><div class="ttname"><a href="namespaceripple.html#acee6f754675c22b999fa6aabf1601e2c">ripple::doAccountCurrencies</a></div><div class="ttdeci">Json::Value doAccountCurrencies(RPC::JsonContext &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="AccountCurrenciesHandler_8cpp_source.html#l00032">AccountCurrenciesHandler.cpp:32</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1c3ae70640623c5f899cc3cf756f8435"><div class="ttname"><a href="namespaceripple.html#a1c3ae70640623c5f899cc3cf756f8435">ripple::doValidationCreate</a></div><div class="ttdeci">Json::Value doValidationCreate(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="ValidationCreate_8cpp_source.html#l00045">ValidationCreate.cpp:45</a></div></div>

View File

@@ -90,118 +90,116 @@ $(function() {
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/Issue.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/AccountID.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/UintTypes.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/jss.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea"> 29</a></span>&#160;<a class="code" href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">Issue::getText</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> ret;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; ret.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/reserve.html">reserve</a>(64);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; ret = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>))</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; ret += <span class="stringliteral">&quot;/&quot;</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>))</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; ret += <span class="stringliteral">&quot;0&quot;</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a> == <a class="code" href="namespaceripple.html#a065cda95aed9cb1d66fb81cad0867ef6">noAccount</a>())</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; ret += <span class="stringliteral">&quot;1&quot;</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; ret += <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;}</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2d78e5bca80e5cc7997e7195c6ff4222"> 52</a></span>&#160;<a class="code" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">isConsistent</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; ac)</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>) == <a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;}</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespaceripple.html#acdb860e5a7358efb9a0a69c9ea437f9b"> 58</a></span>&#160;<a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; ac)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>))</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>) + <span class="stringliteral">&quot;/&quot;</span> + <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1"> 67</a></span>&#160;<a class="code" href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">to_json</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; is)</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;{</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> jv;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; jv[jss::currency] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(is.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(is.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>))</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; jv[jss::issuer] = <a class="code" href="namespaceripple.html#a08a13b62b18272366f788632359e8793">toBase58</a>(is.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">return</span> jv;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;}</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;Issue</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69"> 77</a></span>&#160;<a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(<a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>&amp; v)</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;{</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">if</span> (!v.<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="stringliteral">&quot;issueFromJson can only be specified with a &#39;object&#39; Json value&quot;</span>);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span> curStr = v[jss::currency];</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span> issStr = v[jss::issuer];</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span> (!curStr.<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="stringliteral">&quot;issueFromJson currency must be a string Json value&quot;</span>);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> currency = <a class="code" href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">to_currency</a>(curStr.<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">if</span> (currency == <a class="code" href="namespaceripple.html#a0d78fe5b5eff36774b5be525cbcc3972">badCurrency</a>() || currency == <a class="code" href="namespaceripple.html#a46d77721784151245d971c433809471f">noCurrency</a>())</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; {</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="stringliteral">&quot;issueFromJson currency must be a valid currency&quot;</span>);</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/json/json_errors.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/AccountID.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/UintTypes.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/jss.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea"> 30</a></span>&#160;<a class="code" href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">Issue::getText</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> ret;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; ret.<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/reserve.html">reserve</a>(64);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; ret = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>))</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; ret += <span class="stringliteral">&quot;/&quot;</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>))</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; ret += <span class="stringliteral">&quot;0&quot;</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a> == <a class="code" href="namespaceripple.html#a065cda95aed9cb1d66fb81cad0867ef6">noAccount</a>())</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; ret += <span class="stringliteral">&quot;1&quot;</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; ret += <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; }</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;}</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespaceripple.html#a2d78e5bca80e5cc7997e7195c6ff4222"> 53</a></span>&#160;<a class="code" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">isConsistent</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; ac)</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>) == <a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="namespaceripple.html#acdb860e5a7358efb9a0a69c9ea437f9b"> 59</a></span>&#160;<a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; ac)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;{</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>))</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>) + <span class="stringliteral">&quot;/&quot;</span> + <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(ac.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;}</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1"> 68</a></span>&#160;<a class="code" href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">to_json</a>(<a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; is)</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;{</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> jv;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; jv[jss::currency] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(is.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(is.<a class="code" href="classripple_1_1Issue.html#a4b723aa4198e4c630e41de06586e2fe7">currency</a>))</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; jv[jss::issuer] = <a class="code" href="namespaceripple.html#a08a13b62b18272366f788632359e8793">toBase58</a>(is.<a class="code" href="classripple_1_1Issue.html#a46e4805870b1bad6a8691bed0b8acec8">account</a>);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">return</span> jv;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;}</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;Issue</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69"> 78</a></span>&#160;<a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(<a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>&amp; v)</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;{</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">if</span> (!v.<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; Throw&lt;Json::error&gt;(</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="stringliteral">&quot;issueFromJson can only be specified with a &#39;object&#39; Json value&quot;</span>);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; }</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span> curStr = v[jss::currency];</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span> issStr = v[jss::issuer];</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">if</span> (!curStr.<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; Throw&lt;Json::error&gt;(</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="stringliteral">&quot;issueFromJson currency must be a string Json value&quot;</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> currency = <a class="code" href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">to_currency</a>(curStr.<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">if</span> (currency == <a class="code" href="namespaceripple.html#a0d78fe5b5eff36774b5be525cbcc3972">badCurrency</a>() || currency == <a class="code" href="namespaceripple.html#a46d77721784151245d971c433809471f">noCurrency</a>())</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; Throw&lt;Json::error&gt;(<span class="stringliteral">&quot;issueFromJson currency must be a valid currency&quot;</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; }</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">isXRP</a>(currency))</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; {</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">if</span> (!issStr.<a class="code" href="classJson_1_1Value.html#abde4070e21e46dc4f8203f66582cb19f">isNull</a>())</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; Throw&lt;std::runtime_error&gt;(<span class="stringliteral">&quot;Issue, XRP should not have issuer&quot;</span>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; Throw&lt;Json::error&gt;(<span class="stringliteral">&quot;Issue, XRP should not have issuer&quot;</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespaceripple.html#af13e153259f9f64839b634f3b9642dcb">xrpIssue</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; }</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">if</span> (!issStr.<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="stringliteral">&quot;issueFromJson issuer must be a string Json value&quot;</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issuer = parseBase58&lt;AccountID&gt;(issStr.<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">if</span> (!issuer)</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; {</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; Throw&lt;std::runtime_error&gt;(</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="stringliteral">&quot;issueFromJson issuer must be a valid account&quot;</span>);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Issue.html">Issue</a>{currency, *issuer};</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="namespaceripple.html#a57fc6390c5bb0ccc71bd157b72e675ed"> 127</a></span>&#160;<a class="code" href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">operator&lt;&lt;</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp; os, <a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; x)</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;{</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; os &lt;&lt; <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(x);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; Throw&lt;Json::error&gt;(<span class="stringliteral">&quot;issueFromJson issuer must be a string Json value&quot;</span>);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issuer = parseBase58&lt;AccountID&gt;(issStr.<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">if</span> (!issuer)</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; {</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; Throw&lt;Json::error&gt;(<span class="stringliteral">&quot;issueFromJson issuer must be a valid account&quot;</span>);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1Issue.html">Issue</a>{currency, *issuer};</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;}</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="namespaceripple.html#a57fc6390c5bb0ccc71bd157b72e675ed"> 125</a></span>&#160;<a class="code" href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">operator&lt;&lt;</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp; os, <a class="code" href="classripple_1_1Issue.html">Issue</a> <span class="keyword">const</span>&amp; x)</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;{</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; os &lt;&lt; <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(x);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">return</span> os;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;}</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespaceripple_html_a0d78fe5b5eff36774b5be525cbcc3972"><div class="ttname"><a href="namespaceripple.html#a0d78fe5b5eff36774b5be525cbcc3972">ripple::badCurrency</a></div><div class="ttdeci">Currency const &amp; badCurrency()</div><div class="ttdoc">We deliberately disallow the currency that looks like &quot;XRP&quot; because too many people were using it ins...</div><div class="ttdef"><b>Definition:</b> <a href="UintTypes_8cpp_source.html#l00135">UintTypes.cpp:135</a></div></div>
<div class="ttc" id="anamespaceripple_html_a791ac17da7afb28eaa4c229daa4ccef5"><div class="ttname"><a href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">ripple::to_currency</a></div><div class="ttdeci">bool to_currency(Currency &amp;currency, std::string const &amp;code)</div><div class="ttdoc">Tries to convert a string to a Currency, returns true on success.</div><div class="ttdef"><b>Definition:</b> <a href="UintTypes_8cpp_source.html#l00080">UintTypes.cpp:80</a></div></div>
@@ -217,11 +215,11 @@ $(function() {
<div class="ttc" id="aclassJson_1_1Value_html_abde4070e21e46dc4f8203f66582cb19f"><div class="ttname"><a href="classJson_1_1Value.html#abde4070e21e46dc4f8203f66582cb19f">Json::Value::isNull</a></div><div class="ttdeci">bool isNull() const</div><div class="ttdoc">isNull() tests to see if this field is null.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00967">json_value.cpp:967</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad2cbc273400d06e5ff80501de15410e3"><div class="ttname"><a href="namespaceripple.html#ad2cbc273400d06e5ff80501de15410e3">ripple::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, TOffer&lt; TIn, TOut &gt; const &amp;offer)</div><div class="ttdef"><b>Definition:</b> <a href="Offer_8h_source.html#l00303">Offer.h:303</a></div></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00029">Issue.cpp:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00030">Issue.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00089">AccountID.h:89</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00067">Issue.cpp:67</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00068">Issue.cpp:68</a></div></div>
<div class="ttc" id="anamespaceripple_html_af13e153259f9f64839b634f3b9642dcb"><div class="ttname"><a href="namespaceripple.html#af13e153259f9f64839b634f3b9642dcb">ripple::xrpIssue</a></div><div class="ttdeci">Issue const &amp; xrpIssue()</div><div class="ttdoc">Returns an asset specifier that represents XRP.</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00105">Issue.h:105</a></div></div>
<div class="ttc" id="anamespaceripple_html_af9776f187d3686a7fba4c2d2fbeebdf4"><div class="ttname"><a href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">ripple::to_string</a></div><div class="ttdeci">std::string to_string(Manifest const &amp;m)</div><div class="ttdoc">Format the specified manifest to a string for debugging purposes.</div><div class="ttdef"><b>Definition:</b> <a href="app_2misc_2impl_2Manifest_8cpp_source.html#l00041">app/misc/impl/Manifest.cpp:41</a></div></div>
<div class="ttc" id="anamespaceripple_html_a065cda95aed9cb1d66fb81cad0867ef6"><div class="ttname"><a href="namespaceripple.html#a065cda95aed9cb1d66fb81cad0867ef6">ripple::noAccount</a></div><div class="ttdeci">AccountID const &amp; noAccount()</div><div class="ttdoc">A placeholder for empty accounts.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8cpp_source.html#l00175">AccountID.cpp:175</a></div></div>

View File

@@ -191,14 +191,14 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a4a7f562868748b9246dbcab39091021c"><div class="ttname"><a href="namespaceripple.html#a4a7f562868748b9246dbcab39091021c">ripple::operator==</a></div><div class="ttdeci">bool operator==(Manifest const &amp;lhs, Manifest const &amp;rhs)</div><div class="ttdef"><b>Definition:</b> <a href="Manifest_8h_source.html#l00165">Manifest.h:165</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 160, detail::CurrencyTag &gt;</a></div></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00029">Issue.cpp:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00030">Issue.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a21696ba0d0fac348f88f1b9da51091b0"><div class="ttname"><a href="namespaceripple.html#a21696ba0d0fac348f88f1b9da51091b0">ripple::xrpAccount</a></div><div class="ttdeci">AccountID const &amp; xrpAccount()</div><div class="ttdoc">Compute AccountID from public key.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8cpp_source.html#l00168">AccountID.cpp:168</a></div></div>
<div class="ttc" id="anamespaceripple_html_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00089">AccountID.h:89</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_aca4fa5e360c85db5e4764cadd3aef887"><div class="ttname"><a href="classripple_1_1Issue.html#aca4fa5e360c85db5e4764cadd3aef887">ripple::Issue::Issue</a></div><div class="ttdeci">Issue(Currency const &amp;c, AccountID const &amp;a)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00045">Issue.h:45</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a0d3f0ef9f3ef8b22371de5f34740d38f"><div class="ttname"><a href="classripple_1_1Issue.html#a0d3f0ef9f3ef8b22371de5f34740d38f">ripple::Issue::Issue</a></div><div class="ttdeci">Issue()</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00041">Issue.h:41</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00067">Issue.cpp:67</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00068">Issue.cpp:68</a></div></div>
<div class="ttc" id="anamespacebeast_html_a4a9eebb8b68941c49b07763d7a95d456"><div class="ttname"><a href="namespacebeast.html#a4a9eebb8b68941c49b07763d7a95d456">beast::hash_append</a></div><div class="ttdeci">std::enable_if_t&lt; is_contiguously_hashable&lt; T, Hasher &gt;::value &gt; hash_append(Hasher &amp;h, T const &amp;t) noexcept</div><div class="ttdoc">Logically concatenate input data to a Hasher.</div><div class="ttdef"><b>Definition:</b> <a href="hash__append_8h_source.html#l00236">hash_append.h:236</a></div></div>
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
<div class="ttc" id="anamespaceripple_html_af13e153259f9f64839b634f3b9642dcb"><div class="ttname"><a href="namespaceripple.html#af13e153259f9f64839b634f3b9642dcb">ripple::xrpIssue</a></div><div class="ttdeci">Issue const &amp; xrpIssue()</div><div class="ttdoc">Returns an asset specifier that represents XRP.</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00105">Issue.h:105</a></div></div>

View File

@@ -91,479 +91,508 @@ $(function() {
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;ripple/app/main/Application.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/StringUtilities.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;ripple/basics/strHex.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/ledger/ReadView.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/net/RPCErr.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/ErrorCodes.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/Indexes.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/jss.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/Context.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/GRPCHandlers.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/impl/RPCHelpers.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment">// {</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// ledger_hash : &lt;ledger&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">// ledger_index : &lt;ledger_index&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">// ...</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">// }</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="namespaceripple.html#a24a33406a7f084c597b43440d319b388"> 40</a></span>&#160;<a class="code" href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">doLedgerEntry</a>(<a class="code" href="structripple_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>&amp; context)</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> lpLedger;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">auto</span> jvResult = <a class="code" href="namespaceripple_1_1RPC.html#aaebfaaee35308269fab499f4e203a8c9">RPC::lookupLedger</a>(lpLedger, context);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordflow">if</span> (!lpLedger)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> uNodeIndex;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">bool</span> bNodeBinary = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139">LedgerEntryType</a> expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::index))</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::index].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; {</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; }</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account_root))</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ac03405d2da6d19e17f321a6b7f7a412e">ltACCOUNT_ROOT</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> account = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::account_root].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">if</span> (!account || account-&gt;<a class="code" href="classripple_1_1base__uint.html#a6fd7dba1ad932f4c1246c9a090c145e5">isZero</a>())</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">keylet::account</a>(*account).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::check))</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; {</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ad7915d2d8a69386a38eebd7b859dcb6d">ltCHECK</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::check].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; }</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::deposit_preauth))</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ad4c4cc29cde0b459bc454c5e70f2b3ac">ltDEPOSIT_PREAUTH</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; !uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner) ||</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::owner].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::authorized) ||</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::authorized].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> owner = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::owner].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::authorized]</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; .<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">if</span> (!owner)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedOwner&quot;</span>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a>)</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAuthorized&quot;</span>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#a67984ec9aed38198ec52136ad2cd86c0">keylet::depositPreauth</a>(*owner, *<a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a>).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; }</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::directory))</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a1ca6f5da9e86f814af3d6f8b3631ebe8">ltDIR_NODE</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#abde4070e21e46dc4f8203f66582cb19f">isNull</a>())</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; {</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/json/json_errors.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/ledger/ReadView.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/net/RPCErr.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/ErrorCodes.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/Indexes.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/jss.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/Context.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/GRPCHandlers.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;ripple/rpc/impl/RPCHelpers.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">// {</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment">// ledger_hash : &lt;ledger&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">// ledger_index : &lt;ledger_index&gt;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">// ...</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">// }</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="namespaceripple.html#a24a33406a7f084c597b43440d319b388"> 41</a></span>&#160;<a class="code" href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">doLedgerEntry</a>(<a class="code" href="structripple_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>&amp; context)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> lpLedger;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">auto</span> jvResult = <a class="code" href="namespaceripple_1_1RPC.html#aaebfaaee35308269fab499f4e203a8c9">RPC::lookupLedger</a>(lpLedger, context);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">if</span> (!lpLedger)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> uNodeIndex;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">bool</span> bNodeBinary = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139">LedgerEntryType</a> expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">try</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; {</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::index))</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::index].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account_root))</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ac03405d2da6d19e17f321a6b7f7a412e">ltACCOUNT_ROOT</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> account = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::account_root].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">if</span> (!account || account-&gt;<a class="code" href="classripple_1_1base__uint.html#a6fd7dba1ad932f4c1246c9a090c145e5">isZero</a>())</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">keylet::account</a>(*account).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; }</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::check))</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; {</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ad7915d2d8a69386a38eebd7b859dcb6d">ltCHECK</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::check].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::deposit_preauth))</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; {</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139ad4c4cc29cde0b459bc454c5e70f2b3ac">ltDEPOSIT_PREAUTH</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; {</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; !uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; }</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner) ||</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::owner].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; jss::authorized) ||</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::authorized]</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; .<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; }</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> owner = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::owner]</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; .<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::deposit_preauth][jss::authorized]</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; .<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">if</span> (!owner)</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedOwner&quot;</span>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a>)</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAuthorized&quot;</span>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#a67984ec9aed38198ec52136ad2cd86c0">keylet::depositPreauth</a>(*owner, *<a class="code" href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">authorized</a>).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::directory))</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; {</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a1ca6f5da9e86f814af3d6f8b3631ebe8">ltDIR_NODE</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#abde4070e21e46dc4f8203f66582cb19f">isNull</a>())</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; {</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; }</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; }</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::sub_index) &amp;&amp;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::sub_index].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; {</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> uSubIndex =</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::sub_index)</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; ? context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::sub_index].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>()</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; : 0;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::dir_root))</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; }</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; {</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::sub_index) &amp;&amp;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::sub_index].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; }</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> uDirRoot;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner))</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; {</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="comment">// May not specify both dir_root and owner.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; }</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!uDirRoot.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::dir_root]</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; .<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; {</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; {</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#a7e018eaf4a4da32d3f6f75f864cb85d1">keylet::page</a>(uDirRoot, uSubIndex).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; }</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner))</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; {</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> ownerID = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::owner].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">if</span> (!ownerID)</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; {</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; }</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; {</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#a7e018eaf4a4da32d3f6f75f864cb85d1">keylet::page</a>(<a class="code" href="namespaceripple_1_1keylet.html#aa9b2ba2df3c3da4cecd1c07cccf7c7f9">keylet::ownerDir</a>(*ownerID), uSubIndex).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; }</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; {</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; }</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; }</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; }</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::escrow))</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; {</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a5df3cc4f053931df9fc48283f5a02e27">ltESCROW</a>;</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; {</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; {</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; }</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner) ||</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::seq) ||</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; {</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; }</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::owner].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedOwner&quot;</span>;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#ab8e22fa493e990a1fdcb5bb3d2cfbfa2">keylet::escrow</a>(</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; *<span class="keywordtype">id</span>, context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>())</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; .<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; }</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; }</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::offer))</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; {</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a8a24a7b08fcdd8a76109f80f056a176d">ltOFFER</a>;</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; {</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; {</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; }</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; }</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account) ||</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::seq) ||</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; {</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; }</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; {</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::account].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#a5d33427228ab1869c37fcf11132865f6">keylet::offer</a>(</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; *<span class="keywordtype">id</span>, context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>())</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; .<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; }</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::payment_channel))</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; {</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a9e06c2e5bc18cc01158409a566acd2fd">ltPAYCHAN</a>;</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::payment_channel].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; {</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; }</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; }</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ripple_state))</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; {</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a0dca36851b869200981387f3b9f5cdee">ltRIPPLE_STATE</a>;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; <a class="code" href="classripple_1_1base__uint.html">Currency</a> uCurrency;</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> jvRippleState = context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ripple_state];</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <span class="keywordflow">if</span> (!jvRippleState.<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>() ||</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; !jvRippleState.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::currency) ||</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; !jvRippleState.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::accounts) ||</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; !jvRippleState[jss::accounts].<a class="code" href="classJson_1_1Value.html#a1627eb9d6568d6d0252fa8bb711c0a59">isArray</a>() ||</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; 2 != jvRippleState[jss::accounts].<a class="code" href="classJson_1_1Value.html#a23c7027ca674f989f90564d63ef36c74">size</a>() ||</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; !jvRippleState[jss::accounts][0u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; !jvRippleState[jss::accounts][1u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; (jvRippleState[jss::accounts][0u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>() ==</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; jvRippleState[jss::accounts][1u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; {</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; }</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; {</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> id1 = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; jvRippleState[jss::accounts][0u].asString());</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> id2 = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; jvRippleState[jss::accounts][1u].asString());</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">if</span> (!id1 || !id2)</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; {</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; }</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">to_currency</a>(</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; uCurrency, jvRippleState[jss::currency].asString()))</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; {</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedCurrency&quot;</span>;</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; }</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; {</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#ad7913ec52c58534ee1601ab21956123f">keylet::line</a>(*id1, *id2, uCurrency).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; }</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; }</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; }</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ticket))</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; {</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139aa28c736ec52242ffe39aaa030db1accd">ltTICKET</a>;</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; {</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; {</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; }</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; }</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account) ||</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ticket_seq) ||</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::ticket_seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; {</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; }</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; {</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::account].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; uNodeIndex = <a class="code" href="namespaceripple.html#a8c00e62edb06efd9df0fc8bf0cbec613">getTicketIndex</a>(</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; *<span class="keywordtype">id</span>, context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::ticket_seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>());</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; }</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; }</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::nft_page))</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; {</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a015332bb6ea4b653c8017459df83d455">ltNFTOKEN_PAGE</a>;</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::nft_page].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; {</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::nft_page].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; {</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> uSubIndex =</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::sub_index)</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; ? context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::sub_index].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>()</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; : 0;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::dir_root))</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; {</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> uDirRoot;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner))</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; {</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="comment">// May not specify both dir_root and owner.</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!uDirRoot.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::dir_root]</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; .<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; }</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; {</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#a7e018eaf4a4da32d3f6f75f864cb85d1">keylet::page</a>(uDirRoot, uSubIndex).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner))</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; {</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> ownerID = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::directory][jss::owner].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">if</span> (!ownerID)</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; {</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; }</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; {</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#a7e018eaf4a4da32d3f6f75f864cb85d1">keylet::page</a>(<a class="code" href="namespaceripple_1_1keylet.html#aa9b2ba2df3c3da4cecd1c07cccf7c7f9">keylet::ownerDir</a>(*ownerID), uSubIndex)</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; .<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; }</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; }</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; {</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; }</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; }</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::escrow))</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; {</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a5df3cc4f053931df9fc48283f5a02e27">ltESCROW</a>;</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; {</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; }</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; }</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::owner) ||</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::seq) ||</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; {</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; }</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; {</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::owner].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedOwner&quot;</span>;</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#ab8e22fa493e990a1fdcb5bb3d2cfbfa2">keylet::escrow</a>(</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; *<span class="keywordtype">id</span>, context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::escrow][jss::seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>())</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; .<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; }</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::offer))</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; {</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a8a24a7b08fcdd8a76109f80f056a176d">ltOFFER</a>;</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; {</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; {</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; }</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; }</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account) ||</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::seq) ||</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; {</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; }</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; {</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::account].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; uNodeIndex =</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <a class="code" href="namespaceripple_1_1keylet.html#a5d33427228ab1869c37fcf11132865f6">keylet::offer</a>(</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; *<span class="keywordtype">id</span>, context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::offer][jss::seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>())</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; .<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; }</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; }</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::payment_channel))</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; {</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a9e06c2e5bc18cc01158409a566acd2fd">ltPAYCHAN</a>;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::payment_channel].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; {</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; }</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; }</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ripple_state))</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; {</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a0dca36851b869200981387f3b9f5cdee">ltRIPPLE_STATE</a>;</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <a class="code" href="classripple_1_1base__uint.html">Currency</a> uCurrency;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a> jvRippleState = context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ripple_state];</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; <span class="keywordflow">if</span> (!jvRippleState.<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>() ||</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; !jvRippleState.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::currency) ||</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; !jvRippleState.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::accounts) ||</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; !jvRippleState[jss::accounts].<a class="code" href="classJson_1_1Value.html#a1627eb9d6568d6d0252fa8bb711c0a59">isArray</a>() ||</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; 2 != jvRippleState[jss::accounts].<a class="code" href="classJson_1_1Value.html#a23c7027ca674f989f90564d63ef36c74">size</a>() ||</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; !jvRippleState[jss::accounts][0u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; !jvRippleState[jss::accounts][1u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>() ||</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; (jvRippleState[jss::accounts][0u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>() ==</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; jvRippleState[jss::accounts][1u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; {</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; }</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; {</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> id1 = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; jvRippleState[jss::accounts][0u].asString());</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> id2 = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; jvRippleState[jss::accounts][1u].asString());</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; <span class="keywordflow">if</span> (!id1 || !id2)</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; {</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; }</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">to_currency</a>(</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; uCurrency,</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; jvRippleState[jss::currency].asString()))</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; {</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedCurrency&quot;</span>;</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; }</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; {</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#ad7913ec52c58534ee1601ab21956123f">keylet::line</a>(*id1, *id2, uCurrency).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; }</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; }</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; }</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ticket))</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; {</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139aa28c736ec52242ffe39aaa030db1accd">ltTICKET</a>;</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; {</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; {</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; }</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; }</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::account) ||</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::ticket_seq) ||</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::ticket_seq].<a class="code" href="classJson_1_1Value.html#ab6798954f6e80281cf22708ef45198a7">isIntegral</a>())</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; {</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; }</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; {</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = parseBase58&lt;AccountID&gt;(</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::account].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>());</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedAddress&quot;</span>;</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; uNodeIndex = <a class="code" href="namespaceripple.html#a8c00e62edb06efd9df0fc8bf0cbec613">getTicketIndex</a>(</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; *<span class="keywordtype">id</span>,</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::ticket][jss::ticket_seq].<a class="code" href="classJson_1_1Value.html#a74b305583ec3aacf4f9dd06e799dc265">asUInt</a>());</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; }</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; }</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::nft_page))</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; {</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; }</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; }</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::amm))</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; {</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a659b874174037570d1cba218239a2f91">ltAMM</a>;</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; {</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; {</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; }</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; }</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::asset) ||</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::asset2))</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a015332bb6ea4b653c8017459df83d455">ltNFTOKEN_PAGE</a>;</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; </div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::nft_page].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; {</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::nft_page].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; {</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; }</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; }</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; {</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; }</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; }</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::amm))</div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160; {</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; }</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; {</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; <span class="keywordflow">try</span></div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; {</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issue =</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; <a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm][jss::asset]);</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issue2 =</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm][jss::asset2]);</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#abdda705f5bcd7002243740a748496454">keylet::amm</a>(issue, issue2).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; }</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a> <span class="keyword">const</span>&amp;)</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; {</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; }</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; }</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; }</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; {</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(<span class="stringliteral">&quot;params&quot;</span>) &amp;&amp;</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>].<a class="code" href="classJson_1_1Value.html#a1627eb9d6568d6d0252fa8bb711c0a59">isArray</a>() &amp;&amp;</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>].<a class="code" href="classJson_1_1Value.html#a23c7027ca674f989f90564d63ef36c74">size</a>() == 1 &amp;&amp;</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>][0u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; {</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>][0u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>&#160; expectedType = <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a659b874174037570d1cba218239a2f91">ltAMM</a>;</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="keywordflow">if</span> (!context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>())</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; {</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160; {</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160; }</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; }</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::asset) ||</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; !context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm].<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::asset2))</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; {</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; }</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; {</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; <span class="keywordflow">try</span></div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; {</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issue =</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm][jss::asset]);</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> issue2 =</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160; <a class="code" href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">issueFromJson</a>(context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::amm][jss::asset2]);</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; uNodeIndex = <a class="code" href="namespaceripple_1_1keylet.html#abdda705f5bcd7002243740a748496454">keylet::amm</a>(issue, issue2).<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>;</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; }</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <span class="keywordflow">catch</span> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a> <span class="keyword">const</span>&amp;)</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; }</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; }</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; }</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160; {</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1Context.html#a0eab3b46cc23d67a6d16d1fb6bcaf0a2">apiVersion</a> &lt; 2u)</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;unknownOption&quot;</span>;</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;invalidParams&quot;</span>;</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; }</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; }</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; </div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; <span class="keywordflow">if</span> (uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#ad2bffc75e554b89befbb9388e07392c0">isNonZero</a>())</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; {</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> sleNode = lpLedger-&gt;<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a78921721302f172696ebc5c64e279763">keylet::unchecked</a>(uNodeIndex));</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::binary))</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; bNodeBinary = context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::binary].<a class="code" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>();</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; </div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; <span class="keywordflow">if</span> (!sleNode)</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; {</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; <span class="comment">// Not found.</span></div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;entryNotFound&quot;</span>;</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; }</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; (expectedType != <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>) &amp;&amp; (expectedType != sleNode-&gt;getType()))</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; {</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;unexpectedLedgerType&quot;</span>;</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; }</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bNodeBinary)</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(<span class="stringliteral">&quot;params&quot;</span>) &amp;&amp;</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>].<a class="code" href="classJson_1_1Value.html#a1627eb9d6568d6d0252fa8bb711c0a59">isArray</a>() &amp;&amp;</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>].<a class="code" href="classJson_1_1Value.html#a23c7027ca674f989f90564d63ef36c74">size</a>() == 1 &amp;&amp;</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>][0u].<a class="code" href="classJson_1_1Value.html#a71e1f82cf1c3eaf969d400dcffb163a6">isString</a>())</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; {</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="keywordflow">if</span> (!uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#a698d3fd0c0f0155995c87d2f48ac90d5">parseHex</a>(</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[<span class="stringliteral">&quot;params&quot;</span>][0u].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>()))</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160; {</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;malformedRequest&quot;</span>;</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160; }</div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; }</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160; {</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1Context.html#a0eab3b46cc23d67a6d16d1fb6bcaf0a2">apiVersion</a> &lt; 2u)</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;unknownOption&quot;</span>;</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;invalidParams&quot;</span>;</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; }</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; }</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; }</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; <span class="keywordflow">catch</span> (<a class="code" href="structJson_1_1error.html">Json::error</a>&amp; e)</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; {</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1Context.html#a0eab3b46cc23d67a6d16d1fb6bcaf0a2">apiVersion</a> &gt; 1u)</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160; {</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; </div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; sleNode-&gt;add(s);</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; </div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160; jvResult[jss::node_binary] = <a class="code" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>());</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; jvResult[jss::index] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(uNodeIndex);</div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; }</div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; {</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; jvResult[jss::node] = sleNode-&gt;getJson(<a class="code" href="namespaceripple.html#a169967ff418b80729654b6d45ade8711a334c4a4c42fdb79d7ebc3e73b517e6f8">JsonOptions::none</a>);</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; jvResult[jss::index] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(uNodeIndex);</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; }</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; }</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; </div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160;}</div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; </div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status&gt;</a></div>
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f"> 438</a></span>&#160;<a class="code" href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">doLedgerEntryGrpc</a>(</div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; <a class="code" href="structripple_1_1RPC_1_1GRPCContext.html">RPC::GRPCContext&lt;org::xrpl::rpc::v1::GetLedgerEntryRequest&gt;</a>&amp; context)</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160;{</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160; org::xrpl::rpc::v1::GetLedgerEntryRequest&amp; request = context.<a class="code" href="structripple_1_1RPC_1_1GRPCContext.html#af072cfd1412032444cefd2f4dcf29555">params</a>;</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; org::xrpl::rpc::v1::GetLedgerEntryResponse response;</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; grpc::Status status = grpc::Status::OK;</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> ledger;</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> status = <a class="code" href="namespaceripple_1_1RPC.html#a104dbc5195143f3a17ab8b9af1ada0fc">RPC::ledgerFromRequest</a>(ledger, context))</div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; {</div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; grpc::Status errorStatus;</div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160; <span class="keywordflow">if</span> (status.toErrorCode() == <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">rpcINVALID_PARAMS</a>)</div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; {</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; errorStatus = grpc::Status(</div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; grpc::StatusCode::INVALID_ARGUMENT, status.message());</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; }</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; {</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; errorStatus =</div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; }</div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160; <span class="comment">// For apiVersion 2 onwards, any parsing failures that throw</span></div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="comment">// this</span></div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160; <span class="comment">// exception return an invalidParam error.</span></div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; uNodeIndex = beast::zero;</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;invalidParams&quot;</span>;</div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160; }</div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; <span class="keywordflow">throw</span>;</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; }</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; <span class="keywordflow">if</span> (uNodeIndex.<a class="code" href="classripple_1_1base__uint.html#ad2bffc75e554b89befbb9388e07392c0">isNonZero</a>())</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; {</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> sleNode = lpLedger-&gt;<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a78921721302f172696ebc5c64e279763">keylet::unchecked</a>(uNodeIndex));</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160; <span class="keywordflow">if</span> (context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::binary))</div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; bNodeBinary = context.<a class="code" href="structripple_1_1RPC_1_1JsonContext.html#a036b2c14552fbca49011c3d0e78017fa">params</a>[jss::binary].<a class="code" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>();</div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; </div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; <span class="keywordflow">if</span> (!sleNode)</div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160; {</div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160; <span class="comment">// Not found.</span></div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;entryNotFound&quot;</span>;</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160; }</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; (expectedType != <a class="code" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>) &amp;&amp; (expectedType != sleNode-&gt;getType()))</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; {</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160; jvResult[jss::error] = <span class="stringliteral">&quot;unexpectedLedgerType&quot;</span>;</div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160; }</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (bNodeBinary)</div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; {</div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160; </div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; sleNode-&gt;add(s);</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160; </div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; jvResult[jss::node_binary] = <a class="code" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>());</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; jvResult[jss::index] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(uNodeIndex);</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; }</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; {</div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; jvResult[jss::node] = sleNode-&gt;getJson(<a class="code" href="namespaceripple.html#a169967ff418b80729654b6d45ade8711a334c4a4c42fdb79d7ebc3e73b517e6f8">JsonOptions::none</a>);</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160; jvResult[jss::index] = <a class="code" href="namespaceripple.html#af9776f187d3686a7fba4c2d2fbeebdf4">to_string</a>(uNodeIndex);</div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; }</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; }</div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160; </div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; <span class="keyword">auto</span> key = <a class="code" href="classripple_1_1base__uint.html#ad70fd469f70ad3533eb0cee8e18fa095">uint256::fromVoidChecked</a>(request.key());</div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160; <span class="keywordflow">if</span> (!key)</div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; {</div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; grpc::Status errorStatus{</div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; grpc::StatusCode::INVALID_ARGUMENT, <span class="stringliteral">&quot;index malformed&quot;</span>};</div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; }</div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; </div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> sleNode = ledger-&gt;<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a78921721302f172696ebc5c64e279763">keylet::unchecked</a>(*key));</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160; <span class="keywordflow">if</span> (!sleNode)</div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; {</div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; grpc::Status errorStatus{</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; grpc::StatusCode::NOT_FOUND, <span class="stringliteral">&quot;object not found&quot;</span>};</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; }</div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; {</div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; sleNode-&gt;add(s);</div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; </div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; <span class="keyword">auto</span>&amp; stateObject = *response.mutable_ledger_object();</div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; stateObject.set_data(s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>().<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/data.html">data</a>(), s.<a class="code" href="classripple_1_1Serializer.html#aa5c7aa53db0c7c90c6a86dd5144e9255">getLength</a>());</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; stateObject.set_key(request.key());</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; *(response.mutable_ledger()) = request.ledger();</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; <span class="keywordflow">return</span> {response, status};</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; }</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160;}</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160; <span class="keywordflow">return</span> jvResult;</div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160;}</div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; </div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair&lt;org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status&gt;</a></div>
<div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f"> 466</a></span>&#160;<a class="code" href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">doLedgerEntryGrpc</a>(</div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160; <a class="code" href="structripple_1_1RPC_1_1GRPCContext.html">RPC::GRPCContext&lt;org::xrpl::rpc::v1::GetLedgerEntryRequest&gt;</a>&amp; context)</div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160;{</div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; org::xrpl::rpc::v1::GetLedgerEntryRequest&amp; request = context.<a class="code" href="structripple_1_1RPC_1_1GRPCContext.html#af072cfd1412032444cefd2f4dcf29555">params</a>;</div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; org::xrpl::rpc::v1::GetLedgerEntryResponse response;</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160; grpc::Status status = grpc::Status::OK;</div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; </div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;ReadView const&gt;</a> ledger;</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; <span class="keywordflow">if</span> (<span class="keyword">auto</span> status = <a class="code" href="namespaceripple_1_1RPC.html#a104dbc5195143f3a17ab8b9af1ada0fc">RPC::ledgerFromRequest</a>(ledger, context))</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160; {</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; grpc::Status errorStatus;</div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; <span class="keywordflow">if</span> (status.toErrorCode() == <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">rpcINVALID_PARAMS</a>)</div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; {</div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160; errorStatus = grpc::Status(</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; grpc::StatusCode::INVALID_ARGUMENT, status.message());</div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160; }</div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160; {</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; errorStatus =</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; grpc::Status(grpc::StatusCode::NOT_FOUND, status.message());</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; }</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160; }</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160; </div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160; <span class="keyword">auto</span> key = <a class="code" href="classripple_1_1base__uint.html#ad70fd469f70ad3533eb0cee8e18fa095">uint256::fromVoidChecked</a>(request.key());</div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; <span class="keywordflow">if</span> (!key)</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160; {</div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; grpc::Status errorStatus{</div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; grpc::StatusCode::INVALID_ARGUMENT, <span class="stringliteral">&quot;index malformed&quot;</span>};</div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160; }</div>
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span>&#160; </div>
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> sleNode = ledger-&gt;<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(<a class="code" href="namespaceripple_1_1keylet.html#a78921721302f172696ebc5c64e279763">keylet::unchecked</a>(*key));</div>
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160; <span class="keywordflow">if</span> (!sleNode)</div>
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; {</div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160; grpc::Status errorStatus{</div>
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160; grpc::StatusCode::NOT_FOUND, <span class="stringliteral">&quot;object not found&quot;</span>};</div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>&#160; <span class="keywordflow">return</span> {response, errorStatus};</div>
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; }</div>
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>&#160; {</div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160; <a class="code" href="classripple_1_1Serializer.html">Serializer</a> s;</div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160; sleNode-&gt;add(s);</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160; </div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; <span class="keyword">auto</span>&amp; stateObject = *response.mutable_ledger_object();</div>
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>&#160; stateObject.set_data(s.<a class="code" href="classripple_1_1Serializer.html#a5f8c275ba7cfa80e56671b6935e29242">peekData</a>().<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/data.html">data</a>(), s.<a class="code" href="classripple_1_1Serializer.html#aa5c7aa53db0c7c90c6a86dd5144e9255">getLength</a>());</div>
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>&#160; stateObject.set_key(request.key());</div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; *(response.mutable_ledger()) = request.ledger();</div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160; <span class="keywordflow">return</span> {response, status};</div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; }</div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160;}</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructJson_1_1error_html"><div class="ttname"><a href="structJson_1_1error.html">Json::error</a></div><div class="ttdef"><b>Definition:</b> <a href="json__errors_8h_source.html#l00027">json_errors.h:27</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_aa9b2ba2df3c3da4cecd1c07cccf7c7f9"><div class="ttname"><a href="namespaceripple_1_1keylet.html#aa9b2ba2df3c3da4cecd1c07cccf7c7f9">ripple::keylet::ownerDir</a></div><div class="ttdeci">Keylet ownerDir(AccountID const &amp;id) noexcept</div><div class="ttdoc">The root page of an account's directory.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00304">Indexes.cpp:304</a></div></div>
<div class="ttc" id="anamespaceripple_html_a791ac17da7afb28eaa4c229daa4ccef5"><div class="ttname"><a href="namespaceripple.html#a791ac17da7afb28eaa4c229daa4ccef5">ripple::to_currency</a></div><div class="ttdeci">bool to_currency(Currency &amp;currency, std::string const &amp;code)</div><div class="ttdoc">Tries to convert a string to a Currency, returns true on success.</div><div class="ttdef"><b>Definition:</b> <a href="UintTypes_8cpp_source.html#l00080">UintTypes.cpp:80</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1JsonContext.html">ripple::RPC::JsonContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00053">Context.h:53</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac151bf19e1f4daae2b04c65c65117139aa28c736ec52242ffe39aaa030db1accd"><div class="ttname"><a href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139aa28c736ec52242ffe39aaa030db1accd">ripple::ltTICKET</a></div><div class="ttdeci">@ ltTICKET</div><div class="ttdoc">A ledger object which describes a ticket.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerFormats_8h_source.html#l00080">LedgerFormats.h:80</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00040">LedgerEntry.cpp:40</a></div></div>
<div class="ttc" id="anamespaceripple_html_a24a33406a7f084c597b43440d319b388"><div class="ttname"><a href="namespaceripple.html#a24a33406a7f084c597b43440d319b388">ripple::doLedgerEntry</a></div><div class="ttdeci">Json::Value doLedgerEntry(RPC::JsonContext &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00041">LedgerEntry.cpp:41</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_a8cf96c0f2a552051fcfc78ffee60e037"><div class="ttname"><a href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">Json::Value::isObject</a></div><div class="ttdeci">bool isObject() const</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l01027">json_value.cpp:1027</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">ripple::rpcINVALID_PARAMS</a></div><div class="ttdeci">@ rpcINVALID_PARAMS</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00084">ErrorCodes.h:84</a></div></div>
@@ -588,7 +617,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_af29446cc3ca3e9303e16a330774f7b76"><div class="ttname"><a href="namespaceripple.html#af29446cc3ca3e9303e16a330774f7b76">ripple::authorized</a></div><div class="ttdeci">static bool authorized(Port const &amp;port, std::map&lt; std::string, std::string &gt; const &amp;h)</div><div class="ttdef"><b>Definition:</b> <a href="ServerHandler_8cpp_source.html#l00085">ServerHandler.cpp:85</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_a50c370db96b4fdcdd202d9c2c38afce9"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a50c370db96b4fdcdd202d9c2c38afce9">ripple::keylet::account</a></div><div class="ttdeci">Keylet account(AccountID const &amp;id) noexcept</div><div class="ttdoc">AccountID root.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00134">Indexes.cpp:134</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac151bf19e1f4daae2b04c65c65117139a5df3cc4f053931df9fc48283f5a02e27"><div class="ttname"><a href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a5df3cc4f053931df9fc48283f5a02e27">ripple::ltESCROW</a></div><div class="ttdeci">@ ltESCROW</div><div class="ttdoc">A ledger object describing a single escrow.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerFormats_8h_source.html#l00124">LedgerFormats.h:124</a></div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00438">LedgerEntry.cpp:438</a></div></div>
<div class="ttc" id="anamespaceripple_html_a8bbd46fdc8783ec29538b3d4a2e8178f"><div class="ttname"><a href="namespaceripple.html#a8bbd46fdc8783ec29538b3d4a2e8178f">ripple::doLedgerEntryGrpc</a></div><div class="ttdeci">std::pair&lt; org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status &gt; doLedgerEntryGrpc(RPC::GRPCContext&lt; org::xrpl::rpc::v1::GetLedgerEntryRequest &gt; &amp;context)</div><div class="ttdef"><b>Definition:</b> <a href="LedgerEntry_8cpp_source.html#l00466">LedgerEntry.cpp:466</a></div></div>
<div class="ttc" id="anamespaceripple_html_a169967ff418b80729654b6d45ade8711a334c4a4c42fdb79d7ebc3e73b517e6f8"><div class="ttname"><a href="namespaceripple.html#a169967ff418b80729654b6d45ade8711a334c4a4c42fdb79d7ebc3e73b517e6f8">ripple::JsonOptions::none</a></div><div class="ttdeci">@ none</div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_a7e018eaf4a4da32d3f6f75f864cb85d1"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a7e018eaf4a4da32d3f6f75f864cb85d1">ripple::keylet::page</a></div><div class="ttdeci">Keylet page(uint256 const &amp;key, std::uint64_t index) noexcept</div><div class="ttdoc">A page in a directory.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00310">Indexes.cpp:310</a></div></div>
<div class="ttc" id="astructripple_1_1RPC_1_1GRPCContext_html"><div class="ttname"><a href="structripple_1_1RPC_1_1GRPCContext.html">ripple::RPC::GRPCContext</a></div><div class="ttdef"><b>Definition:</b> <a href="Context_8h_source.html#l00070">Context.h:70</a></div></div>
@@ -597,7 +626,7 @@ $(function() {
<div class="ttc" id="aruntime_error_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/runtime_error.html">std::runtime_error</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassJson_1_1Value_html_ad6d4df2227321bab05e86667609a7fad"><div class="ttname"><a href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(const char *key) const</div><div class="ttdoc">Return true if the object has a member named key.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00932">json_value.cpp:932</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_ad7913ec52c58534ee1601ab21956123f"><div class="ttname"><a href="namespaceripple_1_1keylet.html#ad7913ec52c58534ee1601ab21956123f">ripple::keylet::line</a></div><div class="ttdeci">Keylet line(AccountID const &amp;id0, AccountID const &amp;id1, Currency const &amp;currency) noexcept</div><div class="ttdoc">The index of a trust line for a given currency.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00194">Indexes.cpp:194</a></div></div>
<div class="ttc" id="anamespaceripple_1_1keylet_html_a78921721302f172696ebc5c64e279763"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a78921721302f172696ebc5c64e279763">ripple::keylet::unchecked</a></div><div class="ttdeci">Keylet unchecked(uint256 const &amp;key) noexcept</div><div class="ttdoc">Any ledger entry.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00298">Indexes.cpp:298</a></div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html_a3351e0244f921234d5ba005a07ddf539"><div class="ttname"><a href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">ripple::ReadView::read</a></div><div class="ttdeci">virtual std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const =0</div><div class="ttdoc">Return the state item associated with a key.</div></div>

File diff suppressed because it is too large Load Diff

View File

@@ -1768,7 +1768,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_a2853997797ff121f19b538ff9f8c4ba0"><div class="ttname"><a href="namespaceripple.html#a2853997797ff121f19b538ff9f8c4ba0">ripple::divRoundStrict</a></div><div class="ttdeci">STAmount divRoundStrict(STAmount const &amp;num, STAmount const &amp;den, Issue const &amp;issue, bool roundUp)</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8cpp_source.html#l01613">STAmount.cpp:1613</a></div></div>
<div class="ttc" id="aclassripple_1_1Number_html_a33e3d8e7a95979bd1eb22c59703c8534afed3119e1980867324d399f42cbf548d"><div class="ttname"><a href="classripple_1_1Number.html#a33e3d8e7a95979bd1eb22c59703c8534afed3119e1980867324d399f42cbf548d">ripple::Number::towards_zero</a></div><div class="ttdeci">@ towards_zero</div><div class="ttdef"><b>Definition:</b> <a href="Number_8h_source.html#l00161">Number.h:161</a></div></div>
<div class="ttc" id="anamespaceripple_html_a6f30ee31f9359c69a5294921d5c10d0b"><div class="ttname"><a href="namespaceripple.html#a6f30ee31f9359c69a5294921d5c10d0b">ripple::safe_cast</a></div><div class="ttdeci">constexpr std::enable_if_t&lt; std::is_same_v&lt; typename Dest::unit_type, typename Src::unit_type &gt; &amp;&amp;std::is_integral_v&lt; typename Dest::value_type &gt; &amp;&amp;std::is_integral_v&lt; typename Src::value_type &gt;, Dest &gt; safe_cast(Src s) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="FeeUnits_8h_source.html#l00536">FeeUnits.h:536</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00029">Issue.cpp:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00030">Issue.cpp:30</a></div></div>
<div class="ttc" id="aclassripple_1_1STAmount_html_aa40b0743a468d95eeaaf4914ea555866"><div class="ttname"><a href="classripple_1_1STAmount.html#aa40b0743a468d95eeaaf4914ea555866">ripple::STAmount::value</a></div><div class="ttdeci">STAmount const &amp; value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00440">STAmount.h:440</a></div></div>
<div class="ttc" id="ato_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a></div><div class="ttdeci">T to_string(T... args)</div></div>
<div class="ttc" id="anamespaceripple_html_abfd99ece02b928ee8520192a67595e46"><div class="ttname"><a href="namespaceripple.html#abfd99ece02b928ee8520192a67595e46">ripple::muldiv</a></div><div class="ttdeci">static std::uint64_t muldiv(std::uint64_t multiplier, std::uint64_t multiplicand, std::uint64_t divisor)</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8cpp_source.html#l01108">STAmount.cpp:1108</a></div></div>

View File

@@ -197,17 +197,17 @@ $(function() {
<div class="ttc" id="aclassripple_1_1STIssue_html_a70741f92ab7f71f6c227dbaed47087c3"><div class="ttname"><a href="classripple_1_1STIssue.html#a70741f92ab7f71f6c227dbaed47087c3">ripple::STIssue::getJson</a></div><div class="ttdeci">Json::Value getJson(JsonOptions) const override</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8cpp_source.html#l00063">STIssue.cpp:63</a></div></div>
<div class="ttc" id="aclassripple_1_1STBase_html_a84fe46ac92fe704869cc6d64c49dd1ba"><div class="ttname"><a href="classripple_1_1STBase.html#a84fe46ac92fe704869cc6d64c49dd1ba">ripple::STBase::emplace</a></div><div class="ttdeci">static STBase * emplace(std::size_t n, void *buf, T &amp;&amp;val)</div><div class="ttdef"><b>Definition:</b> <a href="STBase_8h_source.html#l00165">STBase.h:165</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html_a7e217eceb2b00cecc1956cf9cec38d4b"><div class="ttname"><a href="classripple_1_1STIssue.html#a7e217eceb2b00cecc1956cf9cec38d4b">ripple::STIssue::isEquivalent</a></div><div class="ttdeci">bool isEquivalent(const STBase &amp;t) const override</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8cpp_source.html#l00077">STIssue.cpp:77</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00029">Issue.cpp:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Issue_html_a2e58e7c6ac6ca280fa330040b32707ea"><div class="ttname"><a href="classripple_1_1Issue.html#a2e58e7c6ac6ca280fa330040b32707ea">ripple::Issue::getText</a></div><div class="ttdeci">std::string getText() const</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00030">Issue.cpp:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_a21696ba0d0fac348f88f1b9da51091b0"><div class="ttname"><a href="namespaceripple.html#a21696ba0d0fac348f88f1b9da51091b0">ripple::xrpAccount</a></div><div class="ttdeci">AccountID const &amp; xrpAccount()</div><div class="ttdoc">Compute AccountID from public key.</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8cpp_source.html#l00168">AccountID.cpp:168</a></div></div>
<div class="ttc" id="anamespaceripple_html_a20d30277b9c78756b3d14493055a307c"><div class="ttname"><a href="namespaceripple.html#a20d30277b9c78756b3d14493055a307c">ripple::isXRP</a></div><div class="ttdeci">bool isXRP(AccountID const &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="AccountID_8h_source.html#l00089">AccountID.h:89</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00311">Serializer.h:311</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html_ad5ffb0d204f6df68ac0405df1d9602de"><div class="ttname"><a href="classripple_1_1STIssue.html#ad5ffb0d204f6df68ac0405df1d9602de">ripple::STIssue::construct</a></div><div class="ttdeci">static std::unique_ptr&lt; STIssue &gt; construct(SerialIter &amp;, SField const &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8cpp_source.html#l00090">STIssue.cpp:90</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html"><div class="ttname"><a href="classripple_1_1STIssue.html">ripple::STIssue</a></div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8h_source.html#l00031">STIssue.h:31</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00040">Serializer.h:40</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html_a96daec54ca0c8ec7f6e7e683e9abbe0e"><div class="ttname"><a href="classripple_1_1Serializer.html#a96daec54ca0c8ec7f6e7e683e9abbe0e">ripple::Serializer::addBitString</a></div><div class="ttdeci">int addBitString(base_uint&lt; Bits, Tag &gt; const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00098">Serializer.h:98</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00067">Issue.cpp:67</a></div></div>
<div class="ttc" id="anamespaceripple_html_a626a46055ed3a84c6b4aab1ef87f79e1"><div class="ttname"><a href="namespaceripple.html#a626a46055ed3a84c6b4aab1ef87f79e1">ripple::to_json</a></div><div class="ttdeci">Json::Value to_json(Issue const &amp;is)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00068">Issue.cpp:68</a></div></div>
<div class="ttc" id="aclassripple_1_1SField_html"><div class="ttname"><a href="classripple_1_1SField.html">ripple::SField</a></div><div class="ttdoc">Identifies fields.</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00115">SField.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1STBase_html"><div class="ttname"><a href="classripple_1_1STBase.html">ripple::STBase</a></div><div class="ttdoc">A type which can be exported to a well known binary format.</div><div class="ttdef"><b>Definition:</b> <a href="STBase_8h_source.html#l00066">STBase.h:66</a></div></div>
<div class="ttc" id="anamespaceripple_html_af13e153259f9f64839b634f3b9642dcb"><div class="ttname"><a href="namespaceripple.html#af13e153259f9f64839b634f3b9642dcb">ripple::xrpIssue</a></div><div class="ttdeci">Issue const &amp; xrpIssue()</div><div class="ttdoc">Returns an asset specifier that represents XRP.</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8h_source.html#l00105">Issue.h:105</a></div></div>

View File

@@ -222,7 +222,7 @@ $(function() {
<div class="ttc" id="anamespaceripple_html_ae7f0e432d5fa980cfc588654bb6c77d7"><div class="ttname"><a href="namespaceripple.html#ae7f0e432d5fa980cfc588654bb6c77d7">ripple::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(CanonicalTXSet::Key const &amp;lhs, CanonicalTXSet::Key const &amp;rhs)</div><div class="ttdef"><b>Definition:</b> <a href="CanonicalTXSet_8cpp_source.html#l00025">CanonicalTXSet.cpp:25</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html_a7e217eceb2b00cecc1956cf9cec38d4b"><div class="ttname"><a href="classripple_1_1STIssue.html#a7e217eceb2b00cecc1956cf9cec38d4b">ripple::STIssue::isEquivalent</a></div><div class="ttdeci">bool isEquivalent(const STBase &amp;t) const override</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8cpp_source.html#l00077">STIssue.cpp:77</a></div></div>
<div class="ttc" id="aclassripple_1_1SerialIter_html"><div class="ttname"><a href="classripple_1_1SerialIter.html">ripple::SerialIter</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00311">Serializer.h:311</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html_abf650328333915d6c324be32fb356306"><div class="ttname"><a href="classripple_1_1STIssue.html#abf650328333915d6c324be32fb356306">ripple::STIssue::value</a></div><div class="ttdeci">Issue const &amp; value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8h_source.html#l00095">STIssue.h:95</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html_ad5ffb0d204f6df68ac0405df1d9602de"><div class="ttname"><a href="classripple_1_1STIssue.html#ad5ffb0d204f6df68ac0405df1d9602de">ripple::STIssue::construct</a></div><div class="ttdeci">static std::unique_ptr&lt; STIssue &gt; construct(SerialIter &amp;, SField const &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8cpp_source.html#l00090">STIssue.cpp:90</a></div></div>
<div class="ttc" id="aclassripple_1_1STIssue_html"><div class="ttname"><a href="classripple_1_1STIssue.html">ripple::STIssue</a></div><div class="ttdef"><b>Definition:</b> <a href="STIssue_8h_source.html#l00031">STIssue.h:31</a></div></div>

View File

@@ -1128,7 +1128,7 @@ $(function() {
<div class="ttc" id="aerrc_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/errc.html">std::errc</a></div></div>
<div class="ttc" id="anamespaceripple_html_a3c25b36b542a985c4f2d344df683a2dd"><div class="ttname"><a href="namespaceripple.html#a3c25b36b542a985c4f2d344df683a2dd">ripple::amountFromJson</a></div><div class="ttdeci">STAmount amountFromJson(SField const &amp;name, Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8cpp_source.html#l00916">STAmount.cpp:916</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint8_t</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00077">Issue.cpp:77</a></div></div>
<div class="ttc" id="anamespaceripple_html_a853eecfd00cbdc3b1f996e4c961eda69"><div class="ttname"><a href="namespaceripple.html#a853eecfd00cbdc3b1f996e4c961eda69">ripple::issueFromJson</a></div><div class="ttdeci">Issue issueFromJson(Json::Value const &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="Issue_8cpp_source.html#l00078">Issue.cpp:78</a></div></div>
<div class="ttc" id="anamespaceripple_html_a3e7e3f29aef85bcca06706da54e950fcaeaa9cf802e71e6cc4311ee75d896d809"><div class="ttname"><a href="namespaceripple.html#a3e7e3f29aef85bcca06706da54e950fcaeaa9cf802e71e6cc4311ee75d896d809">ripple::STI_VECTOR256</a></div><div class="ttdeci">@ STI_VECTOR256</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00076">SField.h:76</a></div></div>
<div class="ttc" id="afrom_chars_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/from_chars.html">std::from_chars</a></div><div class="ttdeci">T from_chars(T... args)</div></div>
<div class="ttc" id="anamespaceripple_1_1STParsedJSONDetail_html_a3dd70cd8b97f850ca18b354df806137b"><div class="ttname"><a href="namespaceripple_1_1STParsedJSONDetail.html#a3dd70cd8b97f850ca18b354df806137b">ripple::STParsedJSONDetail::to_unsigned</a></div><div class="ttdeci">constexpr std::enable_if_t&lt; std::is_unsigned&lt; U &gt;::value &amp;&amp;std::is_signed&lt; S &gt;::value, U &gt; to_unsigned(S value)</div><div class="ttdef"><b>Definition:</b> <a href="STParsedJSON_8cpp_source.html#l00050">STParsedJSON.cpp:50</a></div></div>

View File

@@ -177,7 +177,7 @@ Public Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00029">29</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00030">30</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>

View File

@@ -709,7 +709,7 @@ Private Member Functions</h2></td></tr>
<p>ledger <a class="el" href="namespaceripple_1_1RPC.html">RPC</a> requests as a way to drive input options to lookupLedger. </p>
<p>The point of this test is coverage for lookupLedger, not so much the ledger <a class="el" href="namespaceripple_1_1RPC.html">RPC</a> request. </p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01244">1244</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01442">1442</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
</div>
</div>
@@ -736,7 +736,7 @@ Private Member Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01439">1439</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01637">1637</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
</div>
</div>
@@ -763,7 +763,7 @@ Private Member Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01455">1455</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01653">1653</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
</div>
</div>
@@ -790,7 +790,7 @@ Private Member Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01673">1673</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01871">1871</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
</div>
</div>
@@ -817,7 +817,7 @@ Private Member Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01716">1716</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerRPC__test_8cpp_source.html#l01914">1914</a> of file <a class="el" href="LedgerRPC__test_8cpp_source.html">LedgerRPC_test.cpp</a>.</p>
</div>
</div>

View File

@@ -31722,7 +31722,7 @@ template&lt;class... Args&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00052">52</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00053">53</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>
@@ -31742,7 +31742,7 @@ template&lt;class... Args&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00058">58</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00059">59</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>
@@ -31762,7 +31762,7 @@ template&lt;class... Args&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00067">67</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00068">68</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>
@@ -31782,7 +31782,7 @@ template&lt;class... Args&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00077">77</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00078">78</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>
@@ -31812,7 +31812,7 @@ template&lt;class... Args&gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00127">127</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="Issue_8cpp_source.html#l00125">125</a> of file <a class="el" href="Issue_8cpp_source.html">Issue.cpp</a>.</p>
</div>
</div>
@@ -46240,7 +46240,7 @@ template&lt;typename L , typename R &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerEntry_8cpp_source.html#l00438">438</a> of file <a class="el" href="LedgerEntry_8cpp_source.html">LedgerEntry.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerEntry_8cpp_source.html#l00466">466</a> of file <a class="el" href="LedgerEntry_8cpp_source.html">LedgerEntry.cpp</a>.</p>
</div>
</div>
@@ -47287,7 +47287,7 @@ template&lt;typename L , typename R &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerEntry_8cpp_source.html#l00040">40</a> of file <a class="el" href="LedgerEntry_8cpp_source.html">LedgerEntry.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="LedgerEntry_8cpp_source.html#l00041">41</a> of file <a class="el" href="LedgerEntry_8cpp_source.html">LedgerEntry.cpp</a>.</p>
</div>
</div>