Module namespace

Source

Structs§

NamespaceMetadata
Metadata stored for each namespace
NamespacePath
NamespacePricingConfig

Enums§

NamespaceOwnership
Describes the ownership of the namespace.

Constants§

MAX_NAMESPACE_PATH_LENGTH
Number of total bytes a namespace path can contain. This might have to increase in the future, but is a good enough default value. If it ends up being formalized, the length can be described as a u8.
MAX_NAMESPACE_SEGMENTS
Max number of segments in a path. In the common prefix case, an agent will have up to 8 levels of depth to use, 2 being allocated to the agent prefix notation.
MAX_SEGMENT_LENGTH
Number of total bytes a segment can contain. 63 plus dot.
NAMESPACE_SEPARATOR

Functions§

calculate_cost
Calculates the total cost for registering, (Fee, Deposit)
create_namespace
delete_namespace
find_missing_paths