This commit is contained in:
bthomee
2026-01-28 10:13:01 -08:00
parent feb9060dd0
commit 9368c0d563
5641 changed files with 403487 additions and 442352 deletions

View File

@@ -101,38 +101,37 @@ $(document).ready(function() { init_codefold(0); });
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keywordflow">if</span> (context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa793d4a228ce40b8c6dfc549b47e8334">role</a> != <a class="code hl_enumvalue" href="namespacexrpl.html#a7fb64528931ecb2e6dd4bdb6741bd1a7a73acd9a5972130b75066c82595a1fae3">Role::ADMIN</a> &amp;&amp; !context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>.<a class="code hl_function" href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">config</a>().<a class="code hl_function" href="classxrpl_1_1Config.html#af157371e2cec213d30037e72154831fa">canSign</a>())</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> {</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">RPC::make_error</a>(</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa97873cc741794780ea5eef604550badc">rpcNOT_SUPPORTED</a>, <span class="stringliteral">&quot;Signing is not supported by this server.&quot;</span>);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> }</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a6ffe33d3c5b1974c798519eb84301dfa">loadType</a> = <a class="code hl_variable" href="namespacexrpl_1_1Resource.html#a356cf47ca4ba93250c9da2e4877fe7c9">Resource::feeHeavyBurdenRPC</a>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">auto</span> <span class="keyword">const</span> failHard = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::fail_hard].<a class="code hl_function" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>();</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">auto</span> <span class="keyword">const</span> failType = <a class="code hl_function" href="classxrpl_1_1NetworkOPs.html#a9878fdaa1c85d81ff65277097a564596">NetworkOPs::doFailHard</a>(failHard);</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a84ab11a51011275dd3fefd0b5bf551c5">RPC::transactionSignFor</a>(</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>,</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a>,</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> failType,</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa793d4a228ce40b8c6dfc549b47e8334">role</a>,</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">ledgerMaster</a>.<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">getValidatedLedgerAge</a>(),</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> ret[jss::deprecated] =</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="stringliteral">&quot;This command has been deprecated and will be &quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="stringliteral">&quot;removed in a future version of the server. Please &quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="stringliteral">&quot;migrate to a standalone signing tool.&quot;</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">RPC::make_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa97873cc741794780ea5eef604550badc">rpcNOT_SUPPORTED</a>, <span class="stringliteral">&quot;Signing is not supported by this server.&quot;</span>);</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> }</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a6ffe33d3c5b1974c798519eb84301dfa">loadType</a> = <a class="code hl_variable" href="namespacexrpl_1_1Resource.html#a356cf47ca4ba93250c9da2e4877fe7c9">Resource::feeHeavyBurdenRPC</a>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">auto</span> <span class="keyword">const</span> failHard = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>[jss::fail_hard].<a class="code hl_function" href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">asBool</a>();</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">auto</span> <span class="keyword">const</span> failType = <a class="code hl_function" href="classxrpl_1_1NetworkOPs.html#a9878fdaa1c85d81ff65277097a564596">NetworkOPs::doFailHard</a>(failHard);</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a84ab11a51011275dd3fefd0b5bf551c5">RPC::transactionSignFor</a>(</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>,</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa8b6cd5d5b9eb13f4a82b16979cbd3f0">apiVersion</a>,</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> failType,</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#aa793d4a228ce40b8c6dfc549b47e8334">role</a>,</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#ac2b68abc7374eacb59cd93164ccdbc77">ledgerMaster</a>.<a class="code hl_function" href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">getValidatedLedgerAge</a>(),</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1Context.html#a3819425c846e53ec0f1bcfa7407df609">app</a>);</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> ret[jss::deprecated] =</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="stringliteral">&quot;This command has been deprecated and will be &quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="stringliteral">&quot;removed in a future version of the server. Please &quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="stringliteral">&quot;migrate to a standalone signing tool.&quot;</span>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">return</span> ret;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>}</div>
</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>} <span class="comment">// namespace xrpl</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>} <span class="comment">// namespace xrpl</span></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00130">json_value.h:131</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_ab693fb7b9b1595bb0adc49658bbf780d"><div class="ttname"><a href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">Json::Value::asBool</a></div><div class="ttdeci">bool asBool() const</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00692">json_value.cpp:692</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html_ab693fb7b9b1595bb0adc49658bbf780d"><div class="ttname"><a href="classJson_1_1Value.html#ab693fb7b9b1595bb0adc49658bbf780d">Json::Value::asBool</a></div><div class="ttdeci">bool asBool() const</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00664">json_value.cpp:664</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Application_html_a31c486ede7ae3b9c56c4c57bc696e3bf"><div class="ttname"><a href="classxrpl_1_1Application.html#a31c486ede7ae3b9c56c4c57bc696e3bf">xrpl::Application::config</a></div><div class="ttdeci">virtual Config &amp; config()=0</div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_af157371e2cec213d30037e72154831fa"><div class="ttname"><a href="classxrpl_1_1Config.html#af157371e2cec213d30037e72154831fa">xrpl::Config::canSign</a></div><div class="ttdeci">bool canSign() const</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00330">Config.h:330</a></div></div>
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_a1ad1683200cece5f01a0f7fa1c1e8920"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">xrpl::LedgerMaster::getValidatedLedgerAge</a></div><div class="ttdeci">std::chrono::seconds getValidatedLedgerAge()</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l00171">LedgerMaster.cpp:171</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Config_html_af157371e2cec213d30037e72154831fa"><div class="ttname"><a href="classxrpl_1_1Config.html#af157371e2cec213d30037e72154831fa">xrpl::Config::canSign</a></div><div class="ttdeci">bool canSign() const</div><div class="ttdef"><b>Definition</b> <a href="Config_8h_source.html#l00324">Config.h:324</a></div></div>
<div class="ttc" id="aclassxrpl_1_1LedgerMaster_html_a1ad1683200cece5f01a0f7fa1c1e8920"><div class="ttname"><a href="classxrpl_1_1LedgerMaster.html#a1ad1683200cece5f01a0f7fa1c1e8920">xrpl::LedgerMaster::getValidatedLedgerAge</a></div><div class="ttdeci">std::chrono::seconds getValidatedLedgerAge()</div><div class="ttdef"><b>Definition</b> <a href="LedgerMaster_8cpp_source.html#l00156">LedgerMaster.cpp:156</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NetworkOPs_html_a9878fdaa1c85d81ff65277097a564596"><div class="ttname"><a href="classxrpl_1_1NetworkOPs.html#a9878fdaa1c85d81ff65277097a564596">xrpl::NetworkOPs::doFailHard</a></div><div class="ttdeci">static FailHard doFailHard(bool noMeansDont)</div><div class="ttdef"><b>Definition</b> <a href="NetworkOPs_8h_source.html#l00076">NetworkOPs.h:76</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a84ab11a51011275dd3fefd0b5bf551c5"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a84ab11a51011275dd3fefd0b5bf551c5">xrpl::RPC::transactionSignFor</a></div><div class="ttdeci">Json::Value transactionSignFor(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &amp;app)</div><div class="ttdoc">Returns a Json::objectValue.</div><div class="ttdef"><b>Definition</b> <a href="TransactionSign_8cpp_source.html#l01147">TransactionSign.cpp:1147</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a84ab11a51011275dd3fefd0b5bf551c5"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a84ab11a51011275dd3fefd0b5bf551c5">xrpl::RPC::transactionSignFor</a></div><div class="ttdeci">Json::Value transactionSignFor(Json::Value jvRequest, unsigned apiVersion, NetworkOPs::FailHard failType, Role role, std::chrono::seconds validatedLedgerAge, Application &amp;app)</div><div class="ttdoc">Returns a Json::objectValue.</div><div class="ttdef"><b>Definition</b> <a href="TransactionSign_8cpp_source.html#l01037">TransactionSign.cpp:1037</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1RPC_html_adacea89cc70d7238cdb1e5044c0d8932"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">xrpl::RPC::make_error</a></div><div class="ttdeci">Json::Value make_error(error_code_i code)</div><div class="ttdoc">Returns a new json object that reflects the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00190">ErrorCodes.cpp:190</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1Resource_html_a356cf47ca4ba93250c9da2e4877fe7c9"><div class="ttname"><a href="namespacexrpl_1_1Resource.html#a356cf47ca4ba93250c9da2e4877fe7c9">xrpl::Resource::feeHeavyBurdenRPC</a></div><div class="ttdeci">Charge const feeHeavyBurdenRPC</div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</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="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>