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.

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 characters.
MAX_DESCRIPTION_LEN
The longest description, in characters.
MAX_DISPLAY_NAME_LEN
The longest display name, in characters.
MAX_KEYWORDS
The most keywords an annotation takes.
MAX_KEYWORD_LEN
The longest keyword, in characters.