Corrections to currency serialization

This commit is contained in:
mDuo13
2018-11-28 18:41:28 -08:00
parent 589934d9d1
commit e0d1e9b3f8
5 changed files with 151 additions and 62 deletions

View File

@@ -28,11 +28,12 @@
<coordinates>
<x>80</x>
<y>120</y>
<w>300</w>
<h>40</h>
<w>200</w>
<h>60</h>
</coordinates>
<panel_attributes>Type code (8 bits)
0x00 for ISO 4217/pseudo-ISO currency</panel_attributes>
0x00 for ISO 4217 or
pseudo-ISO currency</panel_attributes>
<additional_attributes/>
</element>
<element>
@@ -43,7 +44,7 @@
<w>220</w>
<h>30</h>
</coordinates>
<panel_attributes>Reserved (96 bits)</panel_attributes>
<panel_attributes>Reserved (88 bits)</panel_attributes>
<additional_attributes/>
</element>
<element>
@@ -51,45 +52,10 @@
<coordinates>
<x>460</x>
<y>70</y>
<w>20</w>
<w>180</w>
<h>30</h>
</coordinates>
<panel_attributes/>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>460</x>
<y>90</y>
<w>40</w>
<h>60</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;40.0;20.0;40.0</additional_attributes>
</element>
<element>
<id>Text</id>
<coordinates>
<x>480</x>
<y>120</y>
<w>250</w>
<h>60</h>
</coordinates>
<panel_attributes>Version (8 bits)
Increment if currency is reissued
with the same code</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>490</x>
<y>70</y>
<w>150</w>
<h>30</h>
</coordinates>
<panel_attributes>Reserved (24 bits)</panel_attributes>
<panel_attributes>Reserved (40 bits)</panel_attributes>
<additional_attributes/>
</element>
<element>
@@ -120,10 +86,10 @@ with the same code</panel_attributes>
<x>310</x>
<y>90</y>
<w>40</w>
<h>50</h>
<h>60</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;30.0;20.0;30.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;40.0;20.0;40.0</additional_attributes>
</element>
<element>
<id>Text</id>
@@ -131,9 +97,32 @@ with the same code</panel_attributes>
<x>330</x>
<y>110</y>
<w>130</w>
<h>40</h>
</coordinates>
<panel_attributes>3 chars of ASCII
(can't be "XRP")</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLPackage</id>
<coordinates>
<x>30</x>
<y>220</y>
<w>620</w>
<h>70</h>
</coordinates>
<panel_attributes>Special Case XRP Currency Code</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>40</x>
<y>250</y>
<w>600</w>
<h>30</h>
</coordinates>
<panel_attributes>3 chars of ASCII</panel_attributes>
<panel_attributes>0x00000000000000000000000000000000000000000 (160 bits of 0's)</panel_attributes>
<additional_attributes/>
</element>
</diagram>

View File

@@ -4,12 +4,12 @@
<element>
<id>UMLPackage</id>
<coordinates>
<x>20</x>
<y>20</y>
<x>30</x>
<y>250</y>
<w>650</w>
<h>70</h>
</coordinates>
<panel_attributes>Issued Currency Number Format</panel_attributes>
<panel_attributes>Special Case (Issued currency amount = 0)</panel_attributes>
<additional_attributes/>
</element>
<element>
@@ -61,17 +61,17 @@
<coordinates>
<x>60</x>
<y>70</y>
<w>50</w>
<h>60</h>
<w>40</w>
<h>90</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;40.0;30.0;40.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;70.0;20.0;70.0</additional_attributes>
</element>
<element>
<id>Text</id>
<coordinates>
<x>90</x>
<y>100</y>
<x>80</x>
<y>130</y>
<w>260</w>
<h>30</h>
</coordinates>
@@ -82,8 +82,8 @@ style=wordwrap</panel_attributes>
<element>
<id>Text</id>
<coordinates>
<x>70</x>
<y>130</y>
<x>60</x>
<y>170</y>
<w>270</w>
<h>30</h>
</coordinates>
@@ -96,10 +96,102 @@ style=wordwrap</panel_attributes>
<coordinates>
<x>30</x>
<y>70</y>
<w>60</w>
<h>90</h>
<w>50</w>
<h>130</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;70.0;40.0;70.0</additional_attributes>
<additional_attributes>10.0;10.0;10.0;110.0;30.0;110.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>140</x>
<y>70</y>
<w>90</w>
<h>60</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;40.0;70.0;40.0</additional_attributes>
</element>
<element>
<id>Text</id>
<coordinates>
<x>210</x>
<y>100</y>
<w>280</w>
<h>30</h>
</coordinates>
<panel_attributes>Unsigned integer; original value +97
style=wordwrap</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>500</x>
<y>70</y>
<w>50</w>
<h>100</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;80.0;30.0;80.0</additional_attributes>
</element>
<element>
<id>Text</id>
<coordinates>
<x>530</x>
<y>110</y>
<w>150</w>
<h>90</h>
</coordinates>
<panel_attributes>Normalized to the range
(10¹⁵, 10¹⁶-1) inclusive
style=wordwrap</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLPackage</id>
<coordinates>
<x>20</x>
<y>20</y>
<w>650</w>
<h>70</h>
</coordinates>
<panel_attributes>Issued Currency Number Format</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>40</x>
<y>280</y>
<w>630</w>
<h>30</h>
</coordinates>
<panel_attributes>0x8000000000000000000000000000000000000000</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>60</x>
<y>300</y>
<w>90</w>
<h>60</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>10.0;10.0;10.0;40.0;70.0;40.0</additional_attributes>
</element>
<element>
<id>Text</id>
<coordinates>
<x>130</x>
<y>330</y>
<w>280</w>
<h>30</h>
</coordinates>
<panel_attributes>Most significant bit is 1, the rest is 0's
style=wordwrap</panel_attributes>
<additional_attributes/>
</element>
</diagram>