Skip to content

feat(contract): add anchor status enum distinguishing pending, confirmed, and failed - #1163

Closed
jeffrey-graham wants to merge 2 commits into
mind-vault-1:mainfrom
jeffrey-graham:feat/issue-995-anchor-status-enum
Closed

jeffrey-graham wants to merge 2 commits into
mind-vault-1:mainfrom
jeffrey-graham:feat/issue-995-anchor-status-enum

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #995

Summary

  • Adds AnchorStatus (Pending = 0, Confirmed = 1, Failed = 2) and get_anchor_status(resource_id, buyer).
  • Returns Confirmed when a canonical PurchaseReceiptAnchor exists (monotonic), Failed when an AnchorFailure record or rejected AnchorAttempts entry exists, and Pending otherwise.
  • Adds test coverage for Pending -> Failed -> Confirmed lifecycle transitions and monotonic confirmation guarantees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Contract] [Feature] Add anchor status enum distinguishing pending, confirmed, and failed

1 participant