Skip to content

Commit

Permalink
Extend properties CDDL with attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Feb 26, 2025
1 parent 973e744 commit ed04f74
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/src/inscriptions/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,40 @@ of the properties value is as follows:
```cddl
Properties = {
? 0: [*GalleryItem],
? 1: Attributes,
* any => any,
}
GalleryItem = {
? 0: bstr .size (32..36),
? 0: bytes .size (32..36), ; inscription ID
? 1: Attributes,
* any => any,
}
Attributes = {
? 0: text, ; title
? 1: text, ; description
? 2: text, ; alt text
? 3: text, ; author
? 4: Traits, ; traits
}
Traits = {
* text => Value
}
Value =
Proportion /
bool /
bytes /
float /
integer /
tdate /
text /
time /
uri
Proportion = #6.6582895(float)
```

The above CDDL schema is provided as a convenience. As always, the ordinals
Expand Down

0 comments on commit ed04f74

Please sign in to comment.