From f050d0b8f4c4d20736a05480096b9d13abe84e41 Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Mon, 20 Nov 2023 12:50:43 +0100 Subject: [PATCH] Update feat type prefixes, replace metadata feat --- tips/TIP-0044/tip-0044.md | 82 ++++++++++++++++++++++++++++++++++----- 1 file changed, 73 insertions(+), 9 deletions(-) diff --git a/tips/TIP-0044/tip-0044.md b/tips/TIP-0044/tip-0044.md index 0871285a9..668e78c17 100644 --- a/tips/TIP-0044/tip-0044.md +++ b/tips/TIP-0044/tip-0044.md @@ -279,7 +279,7 @@ controlled by a specific foundry is the same as the `Foundry ID`.
Metadata Feature -
Defines metadata (arbitrary binary data) that will be stored in the output. Defined in TIP-38 (Metadata Feature).
+
Defines a map of key-value pairs that is stored in the output. Defined in TIP-38 (Metadata Feature).
- - - + + + + + + +
@@ -298,9 +298,41 @@ controlled by a specific foundry is the same as the `Foundry ID`. Set to value 2 to denote a Metadata Feature.
Data(uint16)ByteArrayBinary data. A leading uint16 denotes its length.Entries Countuint8The number of entries in the map.
Entries anyOf +
+ Metadata Entry +
A map entry consisting of a string key and an arbitrary byte value.
+ + + + + + + + + + + + + + + + +
+ Name + + Type + + Description +
Key(uint8)ByteArrayA string which may only consist of ASCII characters. A leading uint8 denotes its length.
Value(uint16)ByteArrayAn array of arbitrary binary data. A leading uint16 denotes its length.
+
+
@@ -322,7 +354,7 @@ controlled by a specific foundry is the same as the `Foundry ID`. Feature Type uint8 - Set to value 4 to denote a Native Token Feature. + Set to value 5 to denote a Native Token Feature. Token ID @@ -348,7 +380,7 @@ controlled by a specific foundry is the same as the `Foundry ID`.
Metadata Feature -
Defines metadata (arbitrary binary data) that will be stored in the output. Defined in TIP-38 (Metadata Feature).
+
Defines a map of key-value pairs that is stored in the output. Defined in TIP-38 (Metadata Feature).
- - - + + + + + + +
@@ -367,9 +399,41 @@ controlled by a specific foundry is the same as the `Foundry ID`. Set to value 2 to denote a Metadata Feature.
Data(uint16)ByteArrayBinary data. A leading uint16 denotes its length.Entries Countuint8The number of entries in the map.
Entries anyOf +
+ Metadata Entry +
A map entry consisting of a string key and an arbitrary byte value.
+ + + + + + + + + + + + + + + + +
+ Name + + Type + + Description +
Key(uint8)ByteArrayA string which may only consist of ASCII characters. A leading uint8 denotes its length.
Value(uint16)ByteArrayAn array of arbitrary binary data. A leading uint16 denotes its length.
+
+