mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
deploy: 9fcb28acad
This commit is contained in:
@@ -65,10 +65,10 @@ $(function() {
|
||||
<div class="title">protocol </div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>Classes and functions for handling data and values associated with the Ripple protocol.</p>
|
||||
<div class="textblock"><p>Classes and functions for handling data and values associated with the XRP Ledger protocol.</p>
|
||||
<h1><a class="anchor" id="autotoc_md260"></a>
|
||||
Serialized Objects</h1>
|
||||
<p>In ripple objects transmitted over the network must be serialized into a canonical format. The prefix "ST" refers to classes that deal with the serialized format of ripple objects.</p>
|
||||
<p>Objects transmitted over the network must be serialized into a canonical format. The prefix "ST" refers to classes that deal with the serialized format.</p>
|
||||
<p>The term "Tx" or "tx" is an abbreviation for "Transaction", a commonly occurring object type.</p>
|
||||
<h2><a class="anchor" id="autotoc_md261"></a>
|
||||
Optional Fields</h2>
|
||||
@@ -83,7 +83,13 @@ Optional Fields</h2>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Typically, for things that are guaranteed to exist, you use <code>x[sfFoo]</code> and avoid having to deal with a container that may or may not hold a value. For things not guaranteed to exist, you use <code>x[~sfFoo]</code> because you want such a container. It avoids having to look something up twice, once just to see if it exists and a second time to get/set its value. (<a href="https://github.com/ripple/rippled/blob/35f4698aed5dce02f771b34cfbb690495cb5efcc/src/ripple/app/tx/impl/PayChan.cpp#L229-L236">Real example</a>)</p>
|
||||
<p>The source of this "type magic" is in <a href="./SField.h#L296-L302">SField.h</a>. </p>
|
||||
<p>The source of this "type magic" is in <a href="./SField.h#L296-L302">SField.h</a>.</p>
|
||||
<h2><a class="anchor" id="autotoc_md262"></a>
|
||||
Related Resources</h2>
|
||||
<ul>
|
||||
<li><a href="https://github.com/XRPLF/xrpl.js/tree/main/packages/ripple-binary-codec/src/enums">ripple-binary-codec SField enums</a></li>
|
||||
<li><a href="https://github.com/XRPLF/sFieldRegistry">SFCode Registry Tables</a> </li>
|
||||
</ul>
|
||||
</div></div><!-- contents -->
|
||||
</div><!-- PageDoc -->
|
||||
<!-- start footer part -->
|
||||
|
||||
Reference in New Issue
Block a user