-
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
Implement upgrade functionality allowing tokens to be upgraded to new versions with enhanced features while preserving ownership and history.
Files to Modify
contracts/manage_hub/src/upgrade.rs- Create upgrade modulecontracts/manage_hub/src/types.rs- Add upgrade structurescontracts/manage_hub/src/migration.rs- Add migration helperscontracts/manage_hub/src/lib.rs- Add upgrade endpoints
Key Changes Required
- Upgrade Function - Upgrade tokens to new versions
- Version Tracking - Track token versions and upgrade history
- Migration Logic - Migrate data from old to new versions
- Backward Compatibility - Maintain compatibility with old versions
- Upgrade Authorization - Control who can trigger upgrades
- Rollback Mechanism - Add ability to rollback failed upgrades
Acceptance Criteria
- Implement upgrade_token function with version parameter
- Add version tracking to token structure
- Create migration functions for data transformation
- Emit TokenUpgraded events
- Add get_token_version query function
- Support batch upgrades for multiple tokens
- Implement upgrade authorization checks
- Add upgrade history tracking
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program