Skip to content

[CONTRACT] Implement temporary-storage idempotency windows for external triggers #186

@dinahmaccodes

Description

@dinahmaccodes

Tier: 🔴 Hard
Tags: contract, hard, soroban-rust, storage, idempotency

Description:

Use temporary storage for short-lived idempotency windows keyed by action hash to prevent accidental duplicate processing.

Tasks:

  • Add temporary-storage key schema for idempotency
  • Enforce duplicate rejection within configured window
  • Add tests for first-run and replay behavior

Acceptance Criteria:

  • Duplicate actions in-window are rejected
  • Keys expire naturally without persistent rent overhead

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions