Skip to content

feat: governance-gated storage migrations for yield_vault and optimis… - #1025

Merged
edehvictor merged 3 commits into
edehvictor:mainfrom
harystyleseze:feat/issue-896-governance-storage-migrations
Jul 27, 2026
Merged

feat: governance-gated storage migrations for yield_vault and optimis…#1025
edehvictor merged 3 commits into
edehvictor:mainfrom
harystyleseze:feat/issue-896-governance-storage-migrations

Conversation

@harystyleseze

Copy link
Copy Markdown
Contributor

Closes #908
Closes #916
Closes #910
Closes #896

…tic_governance

Add a versioned storage schema (StorageVersion) and an admin-gated
migrate_storage entrypoint to both contracts. Migrations are strictly
sequential (to_version must equal current + 1), rejecting repeated and
out-of-order/skipped calls with InvalidMigrationVersion before any
state mutation. Each successful migration emits a versioned migrate
event with (old_version, new_version, executor) for indexer audit
trails.

Also fixes pre-existing compile errors in yield_vault (admin.rs
verify_admin_operation, oracle.rs TWAP confidence, events.rs
emit_versioned_event) surfaced by the locked soroban-sdk 22.0.11 that
were blocking cargo test/build for the whole crate; these functions
were unrelated to and untouched in their logic by this change.

Closes edehvictor#896
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@harystyleseze is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@harystyleseze 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

@edehvictor edehvictor left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the implementation!

@edehvictor
edehvictor merged commit 45d214f into edehvictor:main Jul 27, 2026
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants