-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description:
Implement upgrade and migration hooks so that a new contract version can be deployed and state (or key config) can be migrated under admin control.
Requirements and Context:
- Must be secure, tested, and documented
- Should allow admin to set a new implementation address (upgrade pattern)
- Should support migration of config or critical state to new contract if needed
- Should emit upgrade/migration events
- Must restrict upgrade to admin and follow Soroban upgrade patterns
- Should document upgrade procedure and compatibility
Suggested Execution:
-
Fork the repo and create a branch
git checkout -b feature/contract-upgrade-migration
-
Implement changes
- Write contract: upgrade logic and migration entrypoints
- Add upgrade_manager module:
src/upgrade_manager.rs - Update storage and events; add documentation and NatSpec-style comments
-
Test and commit
- Run tests; cover upgrade flow, migration, rollback if applicable
- Include test output and security notes
Example Commit Message:
feat: implement contract upgrade and migration hooks for state migration
Guidelines:
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program