Skip to content

Commit

Permalink
Update feat type prefixes, replace metadata feat
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Nov 20, 2023
1 parent 4e22d7e commit f050d0b
Showing 1 changed file with 73 additions and 9 deletions.
82 changes: 73 additions & 9 deletions tips/TIP-0044/tip-0044.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ controlled by a specific foundry is the same as the `Foundry ID`.
<td colspan="2">
<details>
<summary>Metadata Feature</summary>
<blockquote>Defines metadata (arbitrary binary data) that will be stored in the output. Defined in <a href='../TIP-0038/tip-0038.md#metadata-feature'>TIP-38 (Metadata Feature)</a>.</blockquote>
<blockquote>Defines a map of key-value pairs that is stored in the output. Defined in <a href='../TIP-0038/tip-0038.md#metadata-feature'>TIP-38 (Metadata Feature)</a>.</blockquote>
<table>
<tr>
<td>
Expand All @@ -298,9 +298,41 @@ controlled by a specific foundry is the same as the `Foundry ID`.
<td>Set to <strong>value 2</strong> to denote a <i>Metadata Feature</i>.</td>
</tr>
<tr>
<td>Data</td>
<td>(uint16)ByteArray</td>
<td>Binary data. A leading uint16 denotes its length.</td>
<td>Entries Count</td>
<td>uint8</td>
<td>The number of entries in the map.</td>
</tr>
<tr>
<td valign="top">Entries <code>anyOf</code></td>
<td colspan="2">
<details>
<summary>Metadata Entry</summary>
<blockquote>A map entry consisting of a string key and an arbitrary byte value.</blockquote>
<table>
<tr>
<td>
<b>Name</b>
</td>
<td>
<b>Type</b>
</td>
<td>
<b>Description</b>
</td>
</tr>
<tr>
<td>Key</td>
<td>(uint8)ByteArray</td>
<td>A string which may only consist of ASCII characters. A leading uint8 denotes its length.</td>
</tr>
<tr>
<td>Value</td>
<td>(uint16)ByteArray</td>
<td>An array of arbitrary binary data. A leading uint16 denotes its length.</td>
</tr>
</table>
</details>
</td>
</tr>
</table>
</details>
Expand All @@ -322,7 +354,7 @@ controlled by a specific foundry is the same as the `Foundry ID`.
<tr>
<td>Feature Type</td>
<td>uint8</td>
<td>Set to <strong>value 4</strong> to denote a <i>Native Token Feature</i>.</td>
<td>Set to <strong>value 5</strong> to denote a <i>Native Token Feature</i>.</td>
</tr>
<tr>
<td>Token ID</td>
Expand All @@ -348,7 +380,7 @@ controlled by a specific foundry is the same as the `Foundry ID`.
<td colspan="2">
<details>
<summary>Metadata Feature</summary>
<blockquote>Defines metadata (arbitrary binary data) that will be stored in the output. Defined in <a href='../TIP-0038/tip-0038.md#metadata-feature'>TIP-38 (Metadata Feature)</a>.</blockquote>
<blockquote>Defines a map of key-value pairs that is stored in the output. Defined in <a href='../TIP-0038/tip-0038.md#metadata-feature'>TIP-38 (Metadata Feature)</a>.</blockquote>
<table>
<tr>
<td>
Expand All @@ -367,9 +399,41 @@ controlled by a specific foundry is the same as the `Foundry ID`.
<td>Set to <strong>value 2</strong> to denote a <i>Metadata Feature</i>.</td>
</tr>
<tr>
<td>Data</td>
<td>(uint16)ByteArray</td>
<td>Binary data. A leading uint16 denotes its length.</td>
<td>Entries Count</td>
<td>uint8</td>
<td>The number of entries in the map.</td>
</tr>
<tr>
<td valign="top">Entries <code>anyOf</code></td>
<td colspan="2">
<details>
<summary>Metadata Entry</summary>
<blockquote>A map entry consisting of a string key and an arbitrary byte value.</blockquote>
<table>
<tr>
<td>
<b>Name</b>
</td>
<td>
<b>Type</b>
</td>
<td>
<b>Description</b>
</td>
</tr>
<tr>
<td>Key</td>
<td>(uint8)ByteArray</td>
<td>A string which may only consist of ASCII characters. A leading uint8 denotes its length.</td>
</tr>
<tr>
<td>Value</td>
<td>(uint16)ByteArray</td>
<td>An array of arbitrary binary data. A leading uint16 denotes its length.</td>
</tr>
</table>
</details>
</td>
</tr>
</table>
</details>
Expand Down

0 comments on commit f050d0b

Please sign in to comment.