Skip to content

feat(aid_escrow): add optional receipt_hash field to claim/disburseme… - #820

Open
Richardkingz2019 wants to merge 3 commits into
Pulsefy:mainfrom
Richardkingz2019:feat/issue-568-receipt-hash-commitment
Open

feat(aid_escrow): add optional receipt_hash field to claim/disburseme…#820
Richardkingz2019 wants to merge 3 commits into
Pulsefy:mainfrom
Richardkingz2019:feat/issue-568-receipt-hash-commitment

Conversation

@Richardkingz2019

Copy link
Copy Markdown

…nt events

Add an optional receipt_hash field to PackageClaimed and PackageDisbursed events to anchor off-chain receipts. The receipt hash is read from package metadata key 'receipt_hash' and defaults to an empty string when absent, ensuring full backward compatibility.

Changes:

  • Add receipt_hash: String field to PackageClaimed and PackageDisbursed event structs
  • Add receipt_hash_from_metadata() helper to extract the hash from package metadata
  • Wire receipt_hash through finalize_claim() and disburse() to events
  • Update test snapshots to include the new field
  • Add unit tests for both presence and absence of receipt_hash in claim and disbursement events

Closes #568

Closes #568

…nt events

Add an optional receipt_hash field to PackageClaimed and PackageDisbursed
events to anchor off-chain receipts. The receipt hash is read from package
metadata key 'receipt_hash' and defaults to an empty string when absent,
ensuring full backward compatibility.

Changes:
- Add receipt_hash: String field to PackageClaimed and PackageDisbursed
  event structs
- Add receipt_hash_from_metadata() helper to extract the hash from
  package metadata
- Wire receipt_hash through finalize_claim() and disburse() to events
- Update test snapshots to include the new field
- Add unit tests for both presence and absence of receipt_hash in
  claim and disbursement events

Closes Pulsefy#568
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Richardkingz2019 is attempting to deploy a commit to the Cedarich's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Cedarich Cedarich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly fix workflow

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.

Add Claim Receipt Hash Commitment (Optional Metadata)

2 participants