Skip to content

refactor(stellar): migrate wraith-names to persistent() storage - #92

Merged
truthixify merged 2 commits into
wraith-protocol:developfrom
debbieAmoni:feat/wraith-names-persistent-storage
Jun 26, 2026
Merged

truthixify merged 2 commits into
wraith-protocol:developfrom
debbieAmoni:feat/wraith-names-persistent-storage

Conversation

@debbieAmoni

Copy link
Copy Markdown
Contributor

Changes

  • Audit & removal of all instance() storage calls
  • Migrated replay protection keys to persistent storage for durability
  • Refactored extend_ttls() to only manage persistent entries
  • Fixed code duplication and malformed function signatures

Storage Decisions

  • Per-name data (Name, Reverse): persistent (scales with registry)
  • Replay protection: persistent (security-critical)
  • Instance storage: removed (doesn't scale)

Notes

Fixes #68

- Audit: removed all instance() storage calls, confirmed zero remaining
- Migrated replay protection keys (DataKey::Replay) to persistent() for durability
- Refactored extend_ttls() to only extend persistent entries
- Fixed code duplication in register_internal() and update_internal()
- Fixed malformed function signatures and import statements

Storage decisions:
- Per-name data (Name, Reverse): persistent (scales with registry size)
- Replay protection: persistent (security-critical, must survive contract)
- Instance storage: removed (doesn't scale, not needed)

Breaking change: existing deployments require fresh contract ID.
Keeper service (wraith-protocol#50) TTL maintenance now only extends persistent keys.

Fixes wraith-protocol#68
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@debbieAmoni Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@truthixify

Copy link
Copy Markdown
Contributor

Clean merge. MIGRATION_VERIFICATION.md + STORAGE.md + 23 lines of helper additions to wraith-names on top of the migration from #83. Thanks @debbieAmoni.

@truthixify
truthixify merged commit a3f73c9 into wraith-protocol:develop Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate wraith-names to persistent() storage everywhere

2 participants