Skip to content

Rename TokenSymbol to Symbol #2683

@onurinanc

Description

@onurinanc

TokenSymbol is currently named as if it were specific to tokens, but the type itself is generic enough to represent any uppercase symbol with this encoding logic. Renaming it to Symbol would make the API more reusable, and avoid implying token specific naming.

As an example, this type could also be used for Role-Based Access Control identifiers, such as Symbol::new("MINTER"), which shows that the Symbol abstraction is applicable beyond TokenSymbol

Metadata

Metadata

Assignees

No one assigned

    Labels

    standardsRelated to standard note scripts or account components

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions