mirror of
https://github.com/XRPLF/rippled.git
synced 2026-01-30 19:45:24 +00:00
285 lines
46 KiB
HTML
285 lines
46 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: DepositAuthorized.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_42b876eb66f74e25995e23a7c0222dc7.html">rpc</a></li><li class="navelem"><a class="el" href="dir_202f05fcc82d395fac3f43e301f5a49f.html">handlers</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">DepositAuthorized.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include <xrpld/rpc/Context.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include <xrpld/rpc/detail/RPCLedgerHelpers.h></span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpl/ledger/CredentialHelpers.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpl/ledger/ReadView.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpl/protocol/ErrorCodes.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpl/protocol/Indexes.h></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <xrpl/protocol/RPCErr.h></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <xrpl/protocol/jss.h></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment">// {</span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment">// source_account : <ident></span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// destination_account : <ident></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">// ledger_hash : <ledger></span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">// ledger_index : <ledger_index></span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">// credentials : [<credentialID>,...]</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">// }</span></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a0010ad5bd6c9e1aab8dcff886b2a1c52"> 22</a></span><a class="code hl_function" href="namespacexrpl.html#a0010ad5bd6c9e1aab8dcff886b2a1c52">doDepositAuthorized</a>(<a class="code hl_struct" href="structxrpl_1_1RPC_1_1JsonContext.html">RPC::JsonContext</a>& context)</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> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>& params = context.<a class="code hl_variable" href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">params</a>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Validate source_account.</span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">if</span> (!params.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::source_account))</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a674f16f7613c9b58f17e00c4c7123ac1">RPC::missing_field_error</a>(jss::source_account);</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">if</span> (!params[jss::source_account].isString())</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</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#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>, <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::source_account, <span class="stringliteral">"a string"</span>));</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">auto</span> srcID = parseBase58<AccountID>(params[jss::source_account].asString());</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">if</span> (!srcID)</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf3ec9e73ea8f94c21f06d0613514ec38">rpcACT_MALFORMED</a>);</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">auto</span> <span class="keyword">const</span> srcAcct{std::move(srcID.value())};</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// Validate destination_account.</span></div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (!params.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::destination_account))</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a674f16f7613c9b58f17e00c4c7123ac1">RPC::missing_field_error</a>(jss::destination_account);</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">if</span> (!params[jss::destination_account].isString())</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</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#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>, <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::destination_account, <span class="stringliteral">"a string"</span>));</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="keyword">auto</span> dstID = parseBase58<AccountID>(params[jss::destination_account].asString());</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">if</span> (!dstID)</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">rpcError</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf3ec9e73ea8f94c21f06d0613514ec38">rpcACT_MALFORMED</a>);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">auto</span> <span class="keyword">const</span> dstAcct{std::move(dstID.value())};</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// Validate ledger.</span></div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<ReadView const></a> ledger;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> result = <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ad2e38924289124233ca731bb06f68345">RPC::lookupLedger</a>(ledger, context);</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span> (!ledger)</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// If source account is not in the ledger it can't be authorized.</span></div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">if</span> (!ledger->exists(<a class="code hl_function" href="namespacexrpl_1_1keylet.html#ac5d7a88f7cef6ac1ddf06020da8ded16">keylet::account</a>(srcAcct)))</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa949f2c42f40320f5320688fed244a544">rpcSRC_ACT_NOT_FOUND</a>, result);</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// If destination account is not in the ledger you can't deposit to it, eh?</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">auto</span> <span class="keyword">const</span> sleDest = ledger->read(<a class="code hl_function" href="namespacexrpl_1_1keylet.html#ac5d7a88f7cef6ac1ddf06020da8ded16">keylet::account</a>(dstAcct));</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">if</span> (!sleDest)</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> {</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fad8a6628ca96e50c31b7f22bdbbfe70d5">rpcDST_ACT_NOT_FOUND</a>, result);</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">bool</span> <span class="keyword">const</span> reqAuth = (sleDest->getFlags() & <a class="code hl_enumvalue" href="namespacexrpl.html#ada4805619214865518ed8c0b54a71bc1a081eb74c9925450a4a9c509dc1b9e5ce">lsfDepositAuth</a>) && (srcAcct != dstAcct);</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordtype">bool</span> <span class="keyword">const</span> credentialsPresent = params.<a class="code hl_function" href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">isMember</a>(jss::credentials);</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/set.html">std::set<std::pair<AccountID, Slice></a>> sorted;</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::shared_ptr<SLE const></a>> lifeExtender;</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">if</span> (credentialsPresent)</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> {</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">auto</span> <span class="keyword">const</span>& creds(params[jss::credentials]);</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">if</span> (!creds.isArray() || !creds)</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> {</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</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="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>,</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::credentials, <span class="stringliteral">"is non-empty array of CredentialID(hash256)"</span>));</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (creds.size() > <a class="code hl_variable" href="namespacexrpl.html#a9aa912e0c1bc077fc9cb9c6267bf129f">maxCredentialsArraySize</a>)</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> {</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</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#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>, <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::credentials, <span class="stringliteral">"array too long"</span>));</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> lifeExtender.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">reserve</a>(creds.size());</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span>& jo : creds)</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> {</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">if</span> (!jo.isString())</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</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="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>,</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::credentials, <span class="stringliteral">"an array of CredentialID(hash256)"</span>));</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> credH;</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keyword">auto</span> <span class="keyword">const</span> credS = jo.asString();</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">if</span> (!credH.<a class="code hl_function" href="classxrpl_1_1base__uint.html#a341fd439f9a09990fd34c6005d87f2ea">parseHex</a>(credS))</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#adacea89cc70d7238cdb1e5044c0d8932">RPC::make_error</a>(</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">rpcINVALID_PARAMS</a>,</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">RPC::expected_field_message</a>(jss::credentials, <span class="stringliteral">"an array of CredentialID(hash256)"</span>));</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> sleCred = ledger->read(<a class="code hl_function" href="namespacexrpl_1_1keylet.html#ae390c5f5319cc4ba27f2088f7ff382b9">keylet::credential</a>(credH));</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">if</span> (!sleCred)</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> {</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">rpcBAD_CREDENTIALS</a>, <span class="stringliteral">"credentials don't exist"</span>, result);</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">if</span> (!(sleCred->getFlags() & <a class="code hl_enumvalue" href="namespacexrpl.html#ada4805619214865518ed8c0b54a71bc1a4a071f96a7890032950c92e50510fdba">lsfAccepted</a>))</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> {</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">rpcBAD_CREDENTIALS</a>, <span class="stringliteral">"credentials aren't accepted"</span>, result);</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespacexrpl_1_1credentials.html#a3f935c38fe97b2a280a9e31376f17da0">credentials::checkExpired</a>(sleCred, ledger->header().parentCloseTime))</div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> {</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">rpcBAD_CREDENTIALS</a>, <span class="stringliteral">"credentials are expired"</span>, result);</div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> }</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">if</span> ((*sleCred)[sfSubject] != srcAcct)</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> {</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">rpcBAD_CREDENTIALS</a>, <span class="stringliteral">"credentials doesn't belong to the root account"</span>, result);</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">auto</span> [it, ins] = sorted.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/set/emplace.html">emplace</a>((*sleCred)[sfIssuer], (*sleCred)[sfCredentialType]);</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">if</span> (!ins)</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> {</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_function" href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">RPC::inject_error</a>(<a class="code hl_enumvalue" href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">rpcBAD_CREDENTIALS</a>, <span class="stringliteral">"duplicates in credentials"</span>, result);</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> lifeExtender.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">push_back</a>(std::move(sleCred));</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> }</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// If the two accounts are the same OR if that flag is</span></div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// not set, then the deposit should be fine.</span></div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordtype">bool</span> depositAuthorized = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (reqAuth)</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> depositAuthorized = ledger->exists(<a class="code hl_function" href="namespacexrpl_1_1keylet.html#a464d01b75a9c93efa1a6e8fcd0ca3358">keylet::depositPreauth</a>(dstAcct, srcAcct)) ||</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> (credentialsPresent && ledger->exists(<a class="code hl_function" href="namespacexrpl_1_1keylet.html#a464d01b75a9c93efa1a6e8fcd0ca3358">keylet::depositPreauth</a>(dstAcct, sorted)));</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> result[jss::source_account] = params[jss::source_account].<a class="code hl_function" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>();</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> result[jss::destination_account] = params[jss::destination_account].<a class="code hl_function" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>();</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">if</span> (credentialsPresent)</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> result[jss::credentials] = params[jss::credentials];</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> result[jss::deposit_authorized] = depositAuthorized;</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</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_ab0d86bf425efefd03513e8dbfaca317b"><div class="ttname"><a href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">Json::Value::asString</a></div><div class="ttdeci">std::string asString() const</div><div class="ttdoc">Returns the unquoted string value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8cpp_source.html#l00457">json_value.cpp:457</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_abfa90c81f6aee7877bd5fb4c8445994f"><div class="ttname"><a href="classJson_1_1Value.html#abfa90c81f6aee7877bd5fb4c8445994f">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(char const *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#l00978">json_value.cpp:978</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint< 256 ></a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1base__uint_html_a341fd439f9a09990fd34c6005d87f2ea"><div class="ttname"><a href="classxrpl_1_1base__uint.html#a341fd439f9a09990fd34c6005d87f2ea">xrpl::base_uint::parseHex</a></div><div class="ttdeci">constexpr bool parseHex(std::string_view sv)</div><div class="ttdoc">Parse a hex string into a base_uint.</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00472">base_uint.h:472</a></div></div>
|
|
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set/emplace.html">std::set::emplace</a></div><div class="ttdeci">T emplace(T... args)</div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a113f5d9f23954da3ce8ee1ec93c7beb9"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a113f5d9f23954da3ce8ee1ec93c7beb9">xrpl::RPC::expected_field_message</a></div><div class="ttdeci">std::string expected_field_message(std::string const &name, std::string const &type)</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00281">ErrorCodes.h:281</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_a674f16f7613c9b58f17e00c4c7123ac1"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#a674f16f7613c9b58f17e00c4c7123ac1">xrpl::RPC::missing_field_error</a></div><div class="ttdeci">Json::Value missing_field_error(std::string const &name)</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00227">ErrorCodes.h:227</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_ab38ba029a2ca4a73976be8418028b4b5"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#ab38ba029a2ca4a73976be8418028b4b5">xrpl::RPC::inject_error</a></div><div class="ttdeci">void inject_error(error_code_i code, Json::Value &json)</div><div class="ttdoc">Add or update the json update to reflect the error code.</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8cpp_source.html#l00164">ErrorCodes.cpp:164</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1RPC_html_ad2e38924289124233ca731bb06f68345"><div class="ttname"><a href="namespacexrpl_1_1RPC.html#ad2e38924289124233ca731bb06f68345">xrpl::RPC::lookupLedger</a></div><div class="ttdeci">Status lookupLedger(std::shared_ptr< ReadView const > &ledger, JsonContext const &context, Json::Value &result)</div><div class="ttdoc">Looks up a ledger from a request and fills a Json::Value with ledger data.</div><div class="ttdef"><b>Definition</b> <a href="RPCLedgerHelpers_8cpp_source.html#l00314">RPCLedgerHelpers.cpp:314</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_1credentials_html_a3f935c38fe97b2a280a9e31376f17da0"><div class="ttname"><a href="namespacexrpl_1_1credentials.html#a3f935c38fe97b2a280a9e31376f17da0">xrpl::credentials::checkExpired</a></div><div class="ttdeci">bool checkExpired(std::shared_ptr< SLE const > const &sleCredential, NetClock::time_point const &closed)</div><div class="ttdef"><b>Definition</b> <a href="CredentialHelpers_8cpp_source.html#l00012">CredentialHelpers.cpp:12</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1keylet_html_a464d01b75a9c93efa1a6e8fcd0ca3358"><div class="ttname"><a href="namespacexrpl_1_1keylet.html#a464d01b75a9c93efa1a6e8fcd0ca3358">xrpl::keylet::depositPreauth</a></div><div class="ttdeci">Keylet depositPreauth(AccountID const &owner, AccountID const &preauthorized) noexcept</div><div class="ttdoc">A DepositPreauth.</div><div class="ttdef"><b>Definition</b> <a href="Indexes_8cpp_source.html#l00299">Indexes.cpp:299</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1keylet_html_ac5d7a88f7cef6ac1ddf06020da8ded16"><div class="ttname"><a href="namespacexrpl_1_1keylet.html#ac5d7a88f7cef6ac1ddf06020da8ded16">xrpl::keylet::account</a></div><div class="ttdeci">Keylet account(AccountID const &id) noexcept</div><div class="ttdoc">AccountID root.</div><div class="ttdef"><b>Definition</b> <a href="Indexes_8cpp_source.html#l00160">Indexes.cpp:160</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_1_1keylet_html_ae390c5f5319cc4ba27f2088f7ff382b9"><div class="ttname"><a href="namespacexrpl_1_1keylet.html#ae390c5f5319cc4ba27f2088f7ff382b9">xrpl::keylet::credential</a></div><div class="ttdeci">Keylet credential(AccountID const &subject, AccountID const &issuer, Slice const &credType) noexcept</div><div class="ttdef"><b>Definition</b> <a href="Indexes_8cpp_source.html#l00486">Indexes.cpp:486</a></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>
|
|
<div class="ttc" id="anamespacexrpl_html_a0010ad5bd6c9e1aab8dcff886b2a1c52"><div class="ttname"><a href="namespacexrpl.html#a0010ad5bd6c9e1aab8dcff886b2a1c52">xrpl::doDepositAuthorized</a></div><div class="ttdeci">Json::Value doDepositAuthorized(RPC::JsonContext &context)</div><div class="ttdef"><b>Definition</b> <a href="DepositAuthorized_8cpp_source.html#l00022">DepositAuthorized.cpp:22</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a9aa912e0c1bc077fc9cb9c6267bf129f"><div class="ttname"><a href="namespacexrpl.html#a9aa912e0c1bc077fc9cb9c6267bf129f">xrpl::maxCredentialsArraySize</a></div><div class="ttdeci">std::size_t constexpr maxCredentialsArraySize</div><div class="ttdoc">The maximum number of credentials can be passed in array.</div><div class="ttdef"><b>Definition</b> <a href="Protocol_8h_source.html#l00224">Protocol.h:224</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ab2aea6659695e209e9affb77e421f43e"><div class="ttname"><a href="namespacexrpl.html#ab2aea6659695e209e9affb77e421f43e">xrpl::rpcError</a></div><div class="ttdeci">Json::Value rpcError(error_code_i iError)</div><div class="ttdef"><b>Definition</b> <a href="RPCErr_8cpp_source.html#l00012">RPCErr.cpp:12</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ada4805619214865518ed8c0b54a71bc1a081eb74c9925450a4a9c509dc1b9e5ce"><div class="ttname"><a href="namespacexrpl.html#ada4805619214865518ed8c0b54a71bc1a081eb74c9925450a4a9c509dc1b9e5ce">xrpl::lsfDepositAuth</a></div><div class="ttdeci">@ lsfDepositAuth</div><div class="ttdef"><b>Definition</b> <a href="LedgerFormats_8h_source.html#l00117">LedgerFormats.h:117</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_ada4805619214865518ed8c0b54a71bc1a4a071f96a7890032950c92e50510fdba"><div class="ttname"><a href="namespacexrpl.html#ada4805619214865518ed8c0b54a71bc1a4a071f96a7890032950c92e50510fdba">xrpl::lsfAccepted</a></div><div class="ttdeci">@ lsfAccepted</div><div class="ttdef"><b>Definition</b> <a href="LedgerFormats_8h_source.html#l00185">LedgerFormats.h:185</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa219af1e4c435f8352cfb52a80d9bf083">xrpl::rpcBAD_CREDENTIALS</a></div><div class="ttdeci">@ rpcBAD_CREDENTIALS</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00133">ErrorCodes.h:133</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fa949f2c42f40320f5320688fed244a544"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fa949f2c42f40320f5320688fed244a544">xrpl::rpcSRC_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcSRC_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00103">ErrorCodes.h:103</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76fad8a6628ca96e50c31b7f22bdbbfe70d5"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76fad8a6628ca96e50c31b7f22bdbbfe70d5">xrpl::rpcDST_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcDST_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00086">ErrorCodes.h:86</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faefd5dbecf662df8c7b2be66d6d0d68ec">xrpl::rpcINVALID_PARAMS</a></div><div class="ttdeci">@ rpcINVALID_PARAMS</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00065">ErrorCodes.h:65</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_af6fadbc1b2101eff5fa78e7e2a50b76faf3ec9e73ea8f94c21f06d0613514ec38"><div class="ttname"><a href="namespacexrpl.html#af6fadbc1b2101eff5fa78e7e2a50b76faf3ec9e73ea8f94c21f06d0613514ec38">xrpl::rpcACT_MALFORMED</a></div><div class="ttdeci">@ rpcACT_MALFORMED</div><div class="ttdef"><b>Definition</b> <a href="ErrorCodes_8h_source.html#l00071">ErrorCodes.h:71</a></div></div>
|
|
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
|
|
<div class="ttc" id="areserve_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/reserve.html">std::vector::reserve</a></div><div class="ttdeci">T reserve(T... args)</div></div>
|
|
<div class="ttc" id="aset_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/set.html">std::set</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>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1JsonContext_html"><div class="ttname"><a href="structxrpl_1_1RPC_1_1JsonContext.html">xrpl::RPC::JsonContext</a></div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00033">Context.h:34</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1RPC_1_1JsonContext_html_a30603f408d454be67d5250a62bf39287"><div class="ttname"><a href="structxrpl_1_1RPC_1_1JsonContext.html#a30603f408d454be67d5250a62bf39287">xrpl::RPC::JsonContext::params</a></div><div class="ttdeci">Json::Value params</div><div class="ttdef"><b>Definition</b> <a href="Context_8h_source.html#l00044">Context.h:44</a></div></div>
|
|
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|