Skip to content

Strengthen event schema validation and replay protections #560

Description

@grantfox-oss

Make event emission and replay handling resilient to malformed payloads, duplicate events, and schema drift during contract runtime.

  • Affected files: app/contract/contracts/Folder/src/events.rs, app/contract/contracts/Folder/src/events_test.rs, app/contract/contracts/Folder/src/metadata.rs, app/contract/contracts/Folder/src/lib.rs, app/contract/contracts/Folder/src/nonce.rs, app/contract/contracts/Folder/src/test.rs, app/contract/contracts/Folder/src/types.rs, app/contract/README.md
  • Acceptance criteria:
    • Event emission validates required fields, namespaces, and replay attributes before publishing.
    • Duplicate or replayed events are rejected or safely deduplicated according to the contract contract semantics.
    • Tests cover schema mismatch, invalid event topics, and deterministic replay-field enforcement.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions