Description
Build collision detection for Soroban contract storage keys to prevent template-generated contracts from accidentally using conflicting storage namespaces that could corrupt contract state.
Requirements and Context
- Correctness: Storage key collisions must be detected before deployment
- Testing: Test collision detection across template configurations
- Documentation: Document the storage key namespacing scheme
Suggested Execution
Branch: feat/issue-080-soroban-storage-key-collision-detection
Implement Changes
- Add storage key namespace analysis to the Soroban contract validator
- Detect when two generated storage keys would collide
- Reject configurations that produce colliding storage keys
- Surface a clear error indicating which keys collide
Test and Commit
- Test detection of colliding storage keys
- Test acceptance of non-colliding configurations
- Document the storage key namespacing scheme
Example Commit Message
feat(soroban): add storage key namespace collision detection
- Analyze generated storage keys for collisions
- Reject configurations with colliding keys
- Surface clear collision error messages
Guidelines
- Analyze keys statically before deployment
- Provide actionable errors indicating the colliding keys
- Align with Soroman storage key conventions
Description
Build collision detection for Soroban contract storage keys to prevent template-generated contracts from accidentally using conflicting storage namespaces that could corrupt contract state.
Requirements and Context
Suggested Execution
Branch:
feat/issue-080-soroban-storage-key-collision-detectionImplement Changes
Test and Commit
Example Commit Message
Guidelines