-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Add metadata support to membership tokens including custom attributes, descriptions, and extensible properties for enhanced token functionality.
Files to Modify
contracts/manage_hub/src/membership_token.rs- Add metadata functionalitycontracts/manage_hub/src/types.rs- Add metadata structurescontracts/common_types/src/types.rs- Add metadata types and validationcontracts/manage_hub/src/lib.rs- Add metadata endpoints
Key Changes Required
- Metadata Structures - Create flexible metadata structures supporting various data types
- Metadata Management - Add functions to set, update, and retrieve token metadata
- Validation System - Implement metadata validation rules and size limits
- Query Functions - Add functions to search and filter tokens by metadata
- Extensible Attributes - Support custom attributes and properties for different use cases
- Metadata Transfer - Ensure metadata is properly handled during token transfers
Acceptance Criteria
- Add metadata structure to token definition with flexible attributes
- Implement set_token_metadata and get_token_metadata functions
- Add metadata validation and size limits (prevent abuse)
- Create metadata query functions with filtering capabilities
- Support for custom attributes and extensible properties
- Include metadata in token transfers and operations
- Add metadata versioning and update history
- Implement metadata-based token search and filtering
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program