Feature/contract upgrade mechanism - #148
Merged
manoahLinks merged 5 commits intoMar 29, 2026
Merged
Conversation
- Add shared upgradeable crate with timelock (~24h), pause/unpause, version tracking, admin transfer, and upgrade event emissions - Integrate upgrade functions into all 6 contracts (event_manager, marketplace, ticket_factory, ticket_nft, tba_registry, tba_account) - Fix pre-existing compile errors in event_manager (missing DataKey variants, Error variants, try_promote_from_waitlist stub, escrow balance) - Fix pre-existing broken unit tests across ticket_nft, ticket_factory, tba_account, tba_registry (unwrap on non-Result, unclosed delimiters, undefined variables) - Update integration tests for new initialize/constructor signatures
|
@devJaja 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a safe, planned upgrade path for all deployed CrowdPass Soroban contracts via a shared upgradeable crate.
Implements admin-controlled upgrades with a ~24h timelock, version tracking, emergency pause, and on-chain event
emissions for full transparency.
Fixes #100
Type of Change
Changes Made
transfer, and event emissions
tba_registry, tba_account
try_promote_from_waitlist, missing escrow balance tracking)
delimiters, spurious .unwrap() on non-Result types, broken test file structure)
Testing
Checklist
Additional Notes
Upgrade flow:
Emergency pause via pause() / unpause() blocks all state-mutating operations instantly without requiring an upgrade
cycle.