Skip to content

feat: add immutable condition proof API#57

Merged
elizabetheonoja-art merged 2 commits intoLeaseFlow-Protocol:mainfrom
kryputh:feat/issue-12-immutable-condition-proof-api
Mar 24, 2026
Merged

feat: add immutable condition proof API#57
elizabetheonoja-art merged 2 commits intoLeaseFlow-Protocol:mainfrom
kryputh:feat/issue-12-immutable-condition-proof-api

Conversation

@kryputh
Copy link
Copy Markdown
Contributor

@kryputh kryputh commented Mar 23, 2026

Fixes #12

Summary

  • add an API for tenants to record baseline property condition during the first 24 hours after move-in
  • hash uploaded photo content and note content for immutable condition evidence
  • store proof records by lease_id and expose them for the Soroban arbitration hook

Changes

  • added POST /leases/:leaseId/condition-proofs
  • added GET /leases/:leaseId/condition-proofs
  • added GET /leases/:leaseId/condition-proofs/arbitration-hook
  • added a JSON-backed condition proof store
  • added hashing and 24-hour window enforcement in the service layer
  • added tests for successful proof creation, window rejection, and arbitration packet retrieval

Testing

  • npm.cmd test -- --runInBand

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 23, 2026

@kryputh Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@kryputh
Copy link
Copy Markdown
Contributor Author

kryputh commented Mar 23, 2026

fixed

@elizabetheonoja-art elizabetheonoja-art merged commit f883f10 into LeaseFlow-Protocol:main Mar 24, 2026
1 check failed
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.

#12 Add Automated_Move-In_Inspection_Workflow

2 participants