mirror of
https://github.com/XRPLF/rippled.git
synced 2026-01-30 11:35:23 +00:00
212 lines
32 KiB
HTML
212 lines
32 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: CreateOffer.h 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_c69db3203fa08a9ff994909ba6ee9783.html">app</a></li><li class="navelem"><a class="el" href="dir_4b2d6f306dc33741b6f38a59a670a446.html">tx</a></li><li class="navelem"><a class="el" href="dir_7b1ffcd2aae1e871efc2e94c72e78699.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">CreateOffer.h</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">#ifndef XRPL_TX_CREATEOFFER_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_TX_CREATEOFFER_H_INCLUDED</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 <xrpld/app/tx/detail/Transactor.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpl/protocol/Quality.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">class </span>PaymentSandbox;</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">class </span>Sandbox;</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="foldopen" id="foldopen00014" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="classxrpl_1_1CreateOffer.html"> 14</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1CreateOffer.html">CreateOffer</a> : <span class="keyword">public</span> <a class="code hl_class" href="classxrpl_1_1Transactor.html">Transactor</a></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span>{</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classxrpl_1_1CreateOffer.html#a35270bfcb1eb564dfadb00d87adfec4a"> 17</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_enumeration" href="classxrpl_1_1Transactor.html#a9420945fd34d224b81b68fd3dcc9fed6">ConsequencesFactoryType</a> <a class="code hl_variable" href="classxrpl_1_1CreateOffer.html#a35270bfcb1eb564dfadb00d87adfec4a">ConsequencesFactory</a>{<a class="code hl_enumvalue" href="classxrpl_1_1Transactor.html#a9420945fd34d224b81b68fd3dcc9fed6a0512ccca18ad134fcb5eec993d41603a">Custom</a>};</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="foldopen" id="foldopen00020" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classxrpl_1_1CreateOffer.html#a20677f0b36a8aa108a168abce5ef2ee3"> 20</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a20677f0b36a8aa108a168abce5ef2ee3">CreateOffer</a>(<a class="code hl_class" href="classxrpl_1_1ApplyContext.html">ApplyContext</a>& ctx) : <a class="code hl_class" href="classxrpl_1_1Transactor.html">Transactor</a>(ctx)</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>
|
|
<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> <span class="keyword">static</span> <a class="code hl_class" href="classxrpl_1_1TxConsequences.html">TxConsequences</a></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a537cc418e18b2fbb7dfbb808f7ac27ee">makeTxConsequences</a>(<a class="code hl_struct" href="structxrpl_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx);</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">static</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a6d086cc40ac4c849b13125814e8aaea9">checkExtraFeatures</a>(<a class="code hl_struct" href="structxrpl_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx);</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a4e478067416cc04e1e0011c0275e9cf3">getFlagsMask</a>(<a class="code hl_struct" href="structxrpl_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx);</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">static</span> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">NotTEC</a></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#af23f551ae962c5d85da1e4535569604b">preflight</a>(<a class="code hl_struct" href="structxrpl_1_1PreflightContext.html">PreflightContext</a> <span class="keyword">const</span>& ctx);</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">static</span> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a18fe222aa2cf61d0100a2081fd326788">preclaim</a>(<a class="code hl_struct" href="structxrpl_1_1PreclaimContext.html">PreclaimContext</a> <span class="keyword">const</span>& ctx);</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a3fd3a0c86bfb49bd89157a64ac5491b2">doApply</a>() <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TER, bool></a></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#aebc3aeca0aecfe715243074dc2023eaf">applyGuts</a>(<a class="code hl_class" href="classxrpl_1_1Sandbox.html">Sandbox</a>& <a class="code hl_function" href="classxrpl_1_1Transactor.html#a9d90f09b3f9c786a878f206bd10e2890">view</a>, <a class="code hl_class" href="classxrpl_1_1Sandbox.html">Sandbox</a>& view_cancel);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Determine if we are authorized to hold the asset we want to get.</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">static</span> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#af8774ec0e95951ff564a9bdc052f9113">checkAcceptAsset</a>(</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_class" href="classxrpl_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>& <a class="code hl_function" href="classxrpl_1_1Transactor.html#a9d90f09b3f9c786a878f206bd10e2890">view</a>,</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_enumeration" href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074e">ApplyFlags</a> <span class="keyword">const</span> flags,</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">AccountID</a> <span class="keyword">const</span> <span class="keywordtype">id</span>,</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span> j,</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_class" href="classxrpl_1_1Issue.html">Issue</a> <span class="keyword">const</span>& issue);</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> <span class="comment">// Use the payment flow code to perform offer crossing.</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<TER, Amounts></a></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#ad7f1a79651d8138901ca0292fce5cfe1">flowCross</a>(</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_class" href="classxrpl_1_1PaymentSandbox.html">PaymentSandbox</a>& psb,</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_class" href="classxrpl_1_1PaymentSandbox.html">PaymentSandbox</a>& psbCancel,</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> Amounts <span class="keyword">const</span>& takerAmount,</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256></a> <span class="keyword">const</span>& domainID);</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> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#a7c7813079c5a8c56fb0ac235bf8249b1">format_amount</a>(<a class="code hl_class" href="classxrpl_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount);</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> <a class="code hl_class" href="classxrpl_1_1TERSubset.html">TER</a></div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_function" href="classxrpl_1_1CreateOffer.html#ac2ec3f9e54ad2ec73e4743eea64cfda9">applyHybrid</a>(</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_class" href="classxrpl_1_1Sandbox.html">Sandbox</a>& sb,</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<STLedgerEntry></a> sleOffer,</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_struct" href="structxrpl_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>& offer_index,</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_class" href="classxrpl_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saTakerPays,</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_class" href="classxrpl_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& saTakerGets,</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">SLE::ref</a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256></a>)> <span class="keyword">const</span>& setDir);</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a7cc37e23d3c55fa04080fc3c34d244ba"> 79</a></span><span class="keyword">using </span><a class="code hl_class" href="classxrpl_1_1CreateOffer.html">OfferCreate</a> = <a class="code hl_class" href="classxrpl_1_1CreateOffer.html">CreateOffer</a>;</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>} <span class="comment">// namespace xrpl</span></div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
|
|
<div class="ttc" id="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#l00040">Journal.h:41</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ApplyContext_html"><div class="ttname"><a href="classxrpl_1_1ApplyContext.html">xrpl::ApplyContext</a></div><div class="ttdoc">State information when applying a tx.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00017">ApplyContext.h:18</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html">xrpl::CreateOffer</a></div><div class="ttdoc">Transactor specialized for creating offers in the ledger.</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8h_source.html#l00014">CreateOffer.h:15</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a18fe222aa2cf61d0100a2081fd326788"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a18fe222aa2cf61d0100a2081fd326788">xrpl::CreateOffer::preclaim</a></div><div class="ttdeci">static TER preclaim(PreclaimContext const &ctx)</div><div class="ttdoc">Enforce constraints beyond those of the Transactor base class.</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00127">CreateOffer.cpp:127</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a20677f0b36a8aa108a168abce5ef2ee3"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a20677f0b36a8aa108a168abce5ef2ee3">xrpl::CreateOffer::CreateOffer</a></div><div class="ttdeci">CreateOffer(ApplyContext &ctx)</div><div class="ttdoc">Construct a Transactor subclass that creates an offer in the ledger.</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8h_source.html#l00020">CreateOffer.h:20</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a35270bfcb1eb564dfadb00d87adfec4a"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a35270bfcb1eb564dfadb00d87adfec4a">xrpl::CreateOffer::ConsequencesFactory</a></div><div class="ttdeci">static constexpr ConsequencesFactoryType ConsequencesFactory</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8h_source.html#l00017">CreateOffer.h:17</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a3fd3a0c86bfb49bd89157a64ac5491b2"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a3fd3a0c86bfb49bd89157a64ac5491b2">xrpl::CreateOffer::doApply</a></div><div class="ttdeci">TER doApply() override</div><div class="ttdoc">Precondition: fee collection is likely.</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00836">CreateOffer.cpp:836</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a4e478067416cc04e1e0011c0275e9cf3"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a4e478067416cc04e1e0011c0275e9cf3">xrpl::CreateOffer::getFlagsMask</a></div><div class="ttdeci">static std::uint32_t getFlagsMask(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00037">CreateOffer.cpp:37</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a537cc418e18b2fbb7dfbb808f7ac27ee"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a537cc418e18b2fbb7dfbb808f7ac27ee">xrpl::CreateOffer::makeTxConsequences</a></div><div class="ttdeci">static TxConsequences makeTxConsequences(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00017">CreateOffer.cpp:17</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a6d086cc40ac4c849b13125814e8aaea9"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a6d086cc40ac4c849b13125814e8aaea9">xrpl::CreateOffer::checkExtraFeatures</a></div><div class="ttdeci">static bool checkExtraFeatures(PreflightContext const &ctx)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00028">CreateOffer.cpp:28</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_a7c7813079c5a8c56fb0ac235bf8249b1"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#a7c7813079c5a8c56fb0ac235bf8249b1">xrpl::CreateOffer::format_amount</a></div><div class="ttdeci">static std::string format_amount(STAmount const &amount)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00444">CreateOffer.cpp:444</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_ac2ec3f9e54ad2ec73e4743eea64cfda9"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#ac2ec3f9e54ad2ec73e4743eea64cfda9">xrpl::CreateOffer::applyHybrid</a></div><div class="ttdeci">TER applyHybrid(Sandbox &sb, std::shared_ptr< STLedgerEntry > sleOffer, Keylet const &offer_index, STAmount const &saTakerPays, STAmount const &saTakerGets, std::function< void(SLE::ref, std::optional< uint256 >)> const &setDir)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00453">CreateOffer.cpp:453</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_ad7f1a79651d8138901ca0292fce5cfe1"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#ad7f1a79651d8138901ca0292fce5cfe1">xrpl::CreateOffer::flowCross</a></div><div class="ttdeci">std::pair< TER, Amounts > flowCross(PaymentSandbox &psb, PaymentSandbox &psbCancel, Amounts const &takerAmount, std::optional< uint256 > const &domainID)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00271">CreateOffer.cpp:271</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_aebc3aeca0aecfe715243074dc2023eaf"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#aebc3aeca0aecfe715243074dc2023eaf">xrpl::CreateOffer::applyGuts</a></div><div class="ttdeci">std::pair< TER, bool > applyGuts(Sandbox &view, Sandbox &view_cancel)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00499">CreateOffer.cpp:499</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_af23f551ae962c5d85da1e4535569604b"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#af23f551ae962c5d85da1e4535569604b">xrpl::CreateOffer::preflight</a></div><div class="ttdeci">static NotTEC preflight(PreflightContext const &ctx)</div><div class="ttdoc">Enforce constraints beyond those of the Transactor base class.</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00049">CreateOffer.cpp:49</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1CreateOffer_html_af8774ec0e95951ff564a9bdc052f9113"><div class="ttname"><a href="classxrpl_1_1CreateOffer.html#af8774ec0e95951ff564a9bdc052f9113">xrpl::CreateOffer::checkAcceptAsset</a></div><div class="ttdeci">static TER checkAcceptAsset(ReadView const &view, ApplyFlags const flags, AccountID const id, beast::Journal const j, Issue const &issue)</div><div class="ttdef"><b>Definition</b> <a href="CreateOffer_8cpp_source.html#l00196">CreateOffer.cpp:196</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Issue_html"><div class="ttname"><a href="classxrpl_1_1Issue.html">xrpl::Issue</a></div><div class="ttdoc">A currency issued by an account.</div><div class="ttdef"><b>Definition</b> <a href="Issue_8h_source.html#l00013">Issue.h:14</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1PaymentSandbox_html"><div class="ttname"><a href="classxrpl_1_1PaymentSandbox.html">xrpl::PaymentSandbox</a></div><div class="ttdoc">A wrapper which makes credits unavailable to balances.</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00089">PaymentSandbox.h:90</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ReadView_html"><div class="ttname"><a href="classxrpl_1_1ReadView.html">xrpl::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00031">ReadView.h:32</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1STAmount_html"><div class="ttname"><a href="classxrpl_1_1STAmount.html">xrpl::STAmount</a></div><div class="ttdef"><b>Definition</b> <a href="STAmount_8h_source.html#l00030">STAmount.h:31</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Sandbox_html"><div class="ttname"><a href="classxrpl_1_1Sandbox.html">xrpl::Sandbox</a></div><div class="ttdoc">Discardable, editable view to a ledger.</div><div class="ttdef"><b>Definition</b> <a href="Sandbox_8h_source.html#l00015">Sandbox.h:16</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1TERSubset_html"><div class="ttname"><a href="classxrpl_1_1TERSubset.html">xrpl::TERSubset</a></div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00395">TER.h:396</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transactor_html"><div class="ttname"><a href="classxrpl_1_1Transactor.html">xrpl::Transactor</a></div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00106">Transactor.h:107</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transactor_html_a9420945fd34d224b81b68fd3dcc9fed6"><div class="ttname"><a href="classxrpl_1_1Transactor.html#a9420945fd34d224b81b68fd3dcc9fed6">xrpl::Transactor::ConsequencesFactoryType</a></div><div class="ttdeci">ConsequencesFactoryType</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00123">Transactor.h:123</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transactor_html_a9420945fd34d224b81b68fd3dcc9fed6a0512ccca18ad134fcb5eec993d41603a"><div class="ttname"><a href="classxrpl_1_1Transactor.html#a9420945fd34d224b81b68fd3dcc9fed6a0512ccca18ad134fcb5eec993d41603a">xrpl::Transactor::Custom</a></div><div class="ttdeci">@ Custom</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00123">Transactor.h:123</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1Transactor_html_a9d90f09b3f9c786a878f206bd10e2890"><div class="ttname"><a href="classxrpl_1_1Transactor.html#a9d90f09b3f9c786a878f206bd10e2890">xrpl::Transactor::view</a></div><div class="ttdeci">ApplyView & view()</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00129">Transactor.h:129</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1TxConsequences_html"><div class="ttname"><a href="classxrpl_1_1TxConsequences.html">xrpl::TxConsequences</a></div><div class="ttdoc">Class describing the consequences to the account of applying a transaction if the transaction consume...</div><div class="ttdef"><b>Definition</b> <a href="applySteps_8h_source.html#l00037">applySteps.h:38</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< 160, detail::AccountIDTag ></a></div></div>
|
|
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</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="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_abd040209899a4fb5e9c298f9156a074e"><div class="ttname"><a href="namespacexrpl.html#abd040209899a4fb5e9c298f9156a074e">xrpl::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00011">ApplyView.h:11</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
|
<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="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_1Keylet_html"><div class="ttname"><a href="structxrpl_1_1Keylet.html">xrpl::Keylet</a></div><div class="ttdoc">A pair of SHAMap key and LedgerEntryType.</div><div class="ttdef"><b>Definition</b> <a href="Keylet_8h_source.html#l00019">Keylet.h:20</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1PreclaimContext_html"><div class="ttname"><a href="structxrpl_1_1PreclaimContext.html">xrpl::PreclaimContext</a></div><div class="ttdoc">State information when determining if a tx is likely to claim a fee.</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00053">Transactor.h:54</a></div></div>
|
|
<div class="ttc" id="astructxrpl_1_1PreflightContext_html"><div class="ttname"><a href="structxrpl_1_1PreflightContext.html">xrpl::PreflightContext</a></div><div class="ttdoc">State information when preflighting a tx.</div><div class="ttdef"><b>Definition</b> <a href="Transactor_8h_source.html#l00015">Transactor.h:16</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>
|