-
Notifications
You must be signed in to change notification settings - Fork 79
refactor: alien-gateway extract storage key builders into storage.rs #302
Copy link
Copy link
Closed
Labels
alien-gatewaycontractsrefactorstellar waveThis issue listed on Drip stellar wave contestThis issue listed on Drip stellar wave contest
Description
📝 Description
Storage keys like vec![Symbol::new(env, StellarAddress), address] are constructed inline. Any typo creates a silent wrong key. Create alien_gateway/storage.rs with stellar_address_key(addr), smt_root_key(), owner_key(), username_key(), created_at_key() helpers.
✅ Requirements
- Storage keys like vec![Symbol::new(env, StellarAddress), address] are constructed inline
- Any typo creates a silent wrong key
- Create alien_gateway/storage.rs with stellar_address_key(addr), smt_root_key(), owner_key(), username_key(), created_at_key() helpers.
🎯 Acceptance Criteria
- Implementation matches the description above
- Tests added or updated to cover the new behaviour
-
cargo testandcargo clippypass with no warnings - CI (Smart Contracts CI) passes
📁 Expected files to change
gateway-contract/contracts/core_contract/src/lib.rsgateway-contract/contracts/core_contract/src/test.rs
💬 Commit:
refactor: alien-gateway extract storage key builders into storage.rs
🌿 Branch:refactor/alien-gateway-extract-storage-key-builders-into-st| Priority: LOW | Difficulty: ☕ one-coffee
Type: Refactor · Priority: LOW · Difficulty: ☕ one-coffee · Track: Contract
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
alien-gatewaycontractsrefactorstellar waveThis issue listed on Drip stellar wave contestThis issue listed on Drip stellar wave contest