Skip to main content

Module annotation

Module annotation 

Source
Expand description

What frontends show for a spot token or a HIP-3 perp: the text setTokenAnnotation and setPerpAnnotation carry, checked against the lengths the docs give. The venue counts those lengths in UTF-8 bytes, not characters: testnet refused a Chinese display name of 6 characters and 18 bytes, and took one of 2 characters and 6 bytes.

Structs§

Annotation
A token’s or perp’s annotation: a category, a description, a display name frontends show instead of the listed name (None to keep the listed name) and up to two keywords searches match against.

Constants§

MAX_CATEGORY_LEN
The longest category, in bytes.
MAX_DESCRIPTION_LEN
The longest description, in bytes.
MAX_DISPLAY_NAME_LEN
The longest display name, in bytes.
MAX_KEYWORDS
The most keywords an annotation takes.
MAX_KEYWORD_LEN
The longest keyword, in bytes.