mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
deploy: 0a34b5c691
This commit is contained in:
@@ -996,9 +996,9 @@ $(function() {
|
||||
<div class="line"><a id="l00918" name="l00918"></a><span class="lineno"> 918</span> </div>
|
||||
<div class="line"><a id="l00919" name="l00919"></a><span class="lineno"> 919</span> <span class="comment">// bob does not have permission to set domain</span></div>
|
||||
<div class="line"><a id="l00920" name="l00920"></a><span class="lineno"> 920</span> <span class="comment">// on behalf of alice</span></div>
|
||||
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno"> 921</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> domain = <span class="stringliteral">"example.com"</span>;</div>
|
||||
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno"> 921</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a> = <span class="stringliteral">"example.com"</span>;</div>
|
||||
<div class="line"><a id="l00922" name="l00922"></a><span class="lineno"> 922</span> <span class="keyword">auto</span> jt = <a class="code hl_enumvalue" href="namespaceripple.html#ac34a69f56216ea1e430c09ba049bf0aea5483bf26dec486ec0175e2a3ca816a0a">noop</a>(alice);</div>
|
||||
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno"> 923</span> jt[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(domain);</div>
|
||||
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno"> 923</span> jt[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a>);</div>
|
||||
<div class="line"><a id="l00924" name="l00924"></a><span class="lineno"> 924</span> jt[sfDelegate.fieldName] = bob.human();</div>
|
||||
<div class="line"><a id="l00925" name="l00925"></a><span class="lineno"> 925</span> jt[sfFlags.fieldName] = <a class="code hl_variable" href="namespaceripple.html#ac6935ad0ddb8c447dd408f2404a97b40">tfFullyCanonicalSig</a>;</div>
|
||||
<div class="line"><a id="l00926" name="l00926"></a><span class="lineno"> 926</span> </div>
|
||||
@@ -1015,7 +1015,7 @@ $(function() {
|
||||
<div class="line"><a id="l00937" name="l00937"></a><span class="lineno"> 937</span> </div>
|
||||
<div class="line"><a id="l00938" name="l00938"></a><span class="lineno"> 938</span> <span class="comment">// bob set account domain on behalf of alice</span></div>
|
||||
<div class="line"><a id="l00939" name="l00939"></a><span class="lineno"> 939</span> env(jt);</div>
|
||||
<div class="line"><a id="l00940" name="l00940"></a><span class="lineno"> 940</span> BEAST_EXPECT((*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#af928cd176555b2cf28da85e274c571bc">le</a>(alice))[sfDomain] == <a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(domain));</div>
|
||||
<div class="line"><a id="l00940" name="l00940"></a><span class="lineno"> 940</span> BEAST_EXPECT((*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#af928cd176555b2cf28da85e274c571bc">le</a>(alice))[sfDomain] == <a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a>));</div>
|
||||
<div class="line"><a id="l00941" name="l00941"></a><span class="lineno"> 941</span> </div>
|
||||
<div class="line"><a id="l00942" name="l00942"></a><span class="lineno"> 942</span> <span class="comment">// bob can reset domain</span></div>
|
||||
<div class="line"><a id="l00943" name="l00943"></a><span class="lineno"> 943</span> jt[sfDomain.fieldName] = <span class="stringliteral">""</span>;</div>
|
||||
@@ -1033,7 +1033,7 @@ $(function() {
|
||||
<div class="line"><a id="l00955" name="l00955"></a><span class="lineno"> 955</span> </div>
|
||||
<div class="line"><a id="l00956" name="l00956"></a><span class="lineno"> 956</span> <span class="comment">// bob tries to update domain and set email hash,</span></div>
|
||||
<div class="line"><a id="l00957" name="l00957"></a><span class="lineno"> 957</span> <span class="comment">// but he does not have permission to set email hash</span></div>
|
||||
<div class="line"><a id="l00958" name="l00958"></a><span class="lineno"> 958</span> jt[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(domain);</div>
|
||||
<div class="line"><a id="l00958" name="l00958"></a><span class="lineno"> 958</span> jt[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a>);</div>
|
||||
<div class="line"><a id="l00959" name="l00959"></a><span class="lineno"> 959</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> mh(<span class="stringliteral">"5F31A79367DC3137FADA860C05742EE6"</span>);</div>
|
||||
<div class="line"><a id="l00960" name="l00960"></a><span class="lineno"> 960</span> jt[sfEmailHash.fieldName] = mh;</div>
|
||||
<div class="line"><a id="l00961" name="l00961"></a><span class="lineno"> 961</span> env(jt, <a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1ter.html">ter</a>(<a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38ca9af7057961bc54674f4a6c2dd8ed6ab9">tecNO_PERMISSION</a>));</div>
|
||||
@@ -1044,7 +1044,7 @@ $(function() {
|
||||
<div class="line"><a id="l00966" name="l00966"></a><span class="lineno"> 966</span> env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#a69095691c9bcfab1f3d69c645f2dbe33">close</a>();</div>
|
||||
<div class="line"><a id="l00967" name="l00967"></a><span class="lineno"> 967</span> env(jt);</div>
|
||||
<div class="line"><a id="l00968" name="l00968"></a><span class="lineno"> 968</span> BEAST_EXPECT(<a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>((*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#af928cd176555b2cf28da85e274c571bc">le</a>(alice))[sfEmailHash]) == mh);</div>
|
||||
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno"> 969</span> BEAST_EXPECT((*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#af928cd176555b2cf28da85e274c571bc">le</a>(alice))[sfDomain] == <a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(domain));</div>
|
||||
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno"> 969</span> BEAST_EXPECT((*env.<a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1Env.html#af928cd176555b2cf28da85e274c571bc">le</a>(alice))[sfDomain] == <a class="code hl_function" href="namespaceripple.html#a93f2333b362ee67694b78f55eadf7805">makeSlice</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a>));</div>
|
||||
<div class="line"><a id="l00970" name="l00970"></a><span class="lineno"> 970</span> </div>
|
||||
<div class="line"><a id="l00971" name="l00971"></a><span class="lineno"> 971</span> <span class="comment">// bob does not have permission to set message key for alice</span></div>
|
||||
<div class="line"><a id="l00972" name="l00972"></a><span class="lineno"> 972</span> <span class="keyword">auto</span> <span class="keyword">const</span> rkp = <a class="code hl_function" href="namespaceripple.html#ac52a0a522fc11bdd47fce39bd29f97bc">randomKeyPair</a>(<a class="code hl_enumvalue" href="namespaceripple.html#a9de744cfdefe1132969eb982e57e4ddea8183aa2c95dc1385c8f58bf1917fcb0b">KeyType::ed25519</a>);</div>
|
||||
@@ -1139,7 +1139,7 @@ $(function() {
|
||||
<div class="line"><a id="l01061" name="l01061"></a><span class="lineno"> 1061</span> <span class="stringliteral">"9633EC8AF54F16B5286DB1D7B519EF49EEFC050C0C8AC4384F1D88ACD1BFDF"</span></div>
|
||||
<div class="line"><a id="l01062" name="l01062"></a><span class="lineno"> 1062</span> <span class="stringliteral">"05"</span>;</div>
|
||||
<div class="line"><a id="l01063" name="l01063"></a><span class="lineno"> 1063</span> <span class="keyword">auto</span> jt2 = <a class="code hl_enumvalue" href="namespaceripple.html#ac34a69f56216ea1e430c09ba049bf0aea5483bf26dec486ec0175e2a3ca816a0a">noop</a>(alice);</div>
|
||||
<div class="line"><a id="l01064" name="l01064"></a><span class="lineno"> 1064</span> jt2[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(domain);</div>
|
||||
<div class="line"><a id="l01064" name="l01064"></a><span class="lineno"> 1064</span> jt2[sfDomain.fieldName] = <a class="code hl_function" href="namespaceripple.html#a86e358ce3f06ff049af13c2342791cf8">strHex</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1domain.html">domain</a>);</div>
|
||||
<div class="line"><a id="l01065" name="l01065"></a><span class="lineno"> 1065</span> jt2[sfDelegate.fieldName] = bob.human();</div>
|
||||
<div class="line"><a id="l01066" name="l01066"></a><span class="lineno"> 1066</span> jt2[sfWalletLocator.fieldName] = locator;</div>
|
||||
<div class="line"><a id="l01067" name="l01067"></a><span class="lineno"> 1067</span> jt2[sfFlags.fieldName] = <a class="code hl_variable" href="namespaceripple.html#ac6935ad0ddb8c447dd408f2404a97b40">tfFullyCanonicalSig</a>;</div>
|
||||
@@ -1554,6 +1554,7 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1MPTTester_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1MPTTester.html">ripple::test::jtx::MPTTester</a></div><div class="ttdef"><b>Definition:</b> <a href="mpt_8h_source.html#l00144">mpt.h:145</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1balance_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1balance.html">ripple::test::jtx::balance</a></div><div class="ttdoc">A balance matches.</div><div class="ttdef"><b>Definition:</b> <a href="balance_8h_source.html#l00038">balance.h:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1did_1_1uri_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1did_1_1uri.html">ripple::test::jtx::did::uri</a></div><div class="ttdoc">Sets the optional URI on a DIDSet.</div><div class="ttdef"><b>Definition:</b> <a href="did_8h_source.html#l00059">did.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1domain_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1domain.html">ripple::test::jtx::domain</a></div><div class="ttdoc">Set the domain on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="domain_8h_source.html#l00029">domain.h:30</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1fee_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1fee.html">ripple::test::jtx::fee</a></div><div class="ttdoc">Set the fee on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="fee_8h_source.html#l00036">fee.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1flags_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1flags.html">ripple::test::jtx::flags</a></div><div class="ttdoc">Match set account flags.</div><div class="ttdef"><b>Definition:</b> <a href="flags_8h_source.html#l00124">flags.h:125</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1msig_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1msig.html">ripple::test::jtx::msig</a></div><div class="ttdoc">Set a multisignature on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="multisign_8h_source.html#l00066">multisign.h:67</a></div></div>
|
||||
@@ -1561,9 +1562,9 @@ $(function() {
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1ter_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1ter.html">ripple::test::jtx::ter</a></div><div class="ttdoc">Set the expected result code for a JTx The test will fail if the code doesn't match.</div><div class="ttdef"><b>Definition:</b> <a href="ter_8h_source.html#l00034">ter.h:35</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
||||
<div class="ttc" id="anamespaceJson_html_a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4"><div class="ttname"><a href="namespaceJson.html#a7d654b75c16a57007925868e38212b4eadc8f264f36b55b063c78126b335415f4">Json::arrayValue</a></div><div class="ttdeci">@ arrayValue</div><div class="ttdoc">array value (ordered list)</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00045">json_value.h:45</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a151731f161a5d0dd5049636e1cdc7699"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a151731f161a5d0dd5049636e1cdc7699">ripple::keylet::delegate</a></div><div class="ttdeci">Keylet delegate(AccountID const &account, AccountID const &authorizedAccount) noexcept</div><div class="ttdoc">A keylet for Delegate object.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00458">Indexes.cpp:458</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_aa756e0f59b26042ed00a4d0ba6e96951"><div class="ttname"><a href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">ripple::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#l00177">Indexes.cpp:177</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_acd4d51d467fc6e75745baf179a7965ef"><div class="ttname"><a href="namespaceripple_1_1keylet.html#acd4d51d467fc6e75745baf179a7965ef">ripple::keylet::ownerDir</a></div><div class="ttdeci">Keylet ownerDir(AccountID const &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#l00367">Indexes.cpp:367</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_a151731f161a5d0dd5049636e1cdc7699"><div class="ttname"><a href="namespaceripple_1_1keylet.html#a151731f161a5d0dd5049636e1cdc7699">ripple::keylet::delegate</a></div><div class="ttdeci">Keylet delegate(AccountID const &account, AccountID const &authorizedAccount) noexcept</div><div class="ttdoc">A keylet for Delegate object.</div><div class="ttdef"><b>Definition:</b> <a href="Indexes_8cpp_source.html#l00465">Indexes.cpp:465</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_aa756e0f59b26042ed00a4d0ba6e96951"><div class="ttname"><a href="namespaceripple_1_1keylet.html#aa756e0f59b26042ed00a4d0ba6e96951">ripple::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#l00184">Indexes.cpp:184</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1keylet_html_acd4d51d467fc6e75745baf179a7965ef"><div class="ttname"><a href="namespaceripple_1_1keylet.html#acd4d51d467fc6e75745baf179a7965ef">ripple::keylet::ownerDir</a></div><div class="ttdeci">Keylet ownerDir(AccountID const &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#l00374">Indexes.cpp:374</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_1_1check_html_a026568d2c61a6be3ef305377a62ed301"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx_1_1check.html#a026568d2c61a6be3ef305377a62ed301">ripple::test::jtx::check::create</a></div><div class="ttdeci">Json::Value create(A const &account, A const &dest, STAmount const &sendMax)</div><div class="ttdoc">Create a check.</div><div class="ttdef"><b>Definition:</b> <a href="TestHelpers_8h_source.html#l00450">TestHelpers.h:450</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_1_1delegate_html_a709f300dec58074240338d43fbade25f"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx_1_1delegate.html#a709f300dec58074240338d43fbade25f">ripple::test::jtx::delegate::entry</a></div><div class="ttdeci">Json::Value entry(jtx::Env &env, jtx::Account const &account, jtx::Account const &authorize)</div><div class="ttdef"><b>Definition:</b> <a href="delegate_8cpp_source.html#l00055">delegate.cpp:55</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_1_1delegate_html_acc50c63fcad6be739504dfa3e9a63ad3"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx_1_1delegate.html#acc50c63fcad6be739504dfa3e9a63ad3">ripple::test::jtx::delegate::set</a></div><div class="ttdeci">Json::Value set(jtx::Account const &account, jtx::Account const &authorize, std::vector< std::string > const &permissions)</div><div class="ttdef"><b>Definition:</b> <a href="delegate_8cpp_source.html#l00031">delegate.cpp:31</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user