Skip to content

Add lib.rs entrypoint deprecation marker and DeprecatedCall event #681

Description

@greatest0fallt1me

Description

The contract has accumulated multiple legacy entrypoints (e.g. early dispute filing variants) that should be phased out. Introduce a #[deprecated] annotation pattern plus a DeprecatedCall(entrypoint: Symbol) event so callers are signalled at runtime and indexers can chart usage decay.

Requirements and Context

  • Helper emit_deprecated(env, entrypoint) in events.rs
  • Apply to at least two known legacy entrypoints
  • Document deprecation policy in docs/
  • Must be secure, tested, and documented
  • Should be efficient and easy to review

Suggested Execution

  1. Fork the repo and create a branch
    git checkout -b feature/deprecated-entrypoint-events
  2. Implement changes
    • contracts/predictify-hybrid/src/lib.rs
    • contracts/predictify-hybrid/src/events.rs
  3. Test and commit
    • cargo test -p predictify-hybrid deprecated_call
    • Cover edge cases
    • Include test output and notes in the PR

Example commit message

feat: mark legacy entrypoints with deprecation event

Acceptance Criteria

  • At least two entrypoints emit the deprecation event
  • Doc section explains policy
  • Behaviour of deprecated entrypoints unchanged

Guidelines

  • Clear documentation and inline comments
  • Real Soroban SDK idioms in any new helper code
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

GRANTFOX OSSGrantFox open-source campaign taskOFFICIAL CAMPAIGNOfficial GrantFox campaign issueStellar WaveIssues in the Stellar wave programdocumentationDocumentationenhancementNew feature or improvementrustRust implementationsmart-contractSoroban smart-contract worksorobanSoroban SDK / Stellar

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions