Skip to content

feat(contracts): batch doc verification, certification registry, and lifecycle integration tests#936

Merged
mftee merged 1 commit into
CodeGirlsInc:mainfrom
phertyameen:feat/contracts
May 31, 2026
Merged

feat(contracts): batch doc verification, certification registry, and lifecycle integration tests#936
mftee merged 1 commit into
CodeGirlsInc:mainfrom
phertyameen:feat/contracts

Conversation

@phertyameen
Copy link
Copy Markdown
Contributor

Summary

Three new additions to contracts/package/ - no existing contract files modified.

Changes

  • CT-19 document-verification/: verify_documents_batch verifies multiple doc hashes in one transaction; returns per-doc results and a matched/mismatched summary
  • CT-18 certification-registry/: admin-controlled on-chain cert registry for carriers; supports registration, public verification, and revocation across 5 cert types; expired certs auto-invalidate
  • CT-17 tests/integration/lifecycle.rs: end-to-end flows covering happy path, dispute + refund, and cancellation - each deploys fresh contract instances and a mock SEP-41 token

Testing

cargo test --manifest-path contracts/package/document-verification/Cargo.toml
cargo test --manifest-path contracts/package/certification-registry/Cargo.toml
cargo test --manifest-path contracts/package/tests/integration/Cargo.toml

Closes #925,
Closes #926,
Closes #927

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@phertyameen is attempting to deploy a commit to the Mftee's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@phertyameen 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

Copy link
Copy Markdown
Contributor

@mftee mftee left a comment

Choose a reason for hiding this comment

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

Perfect implementation

@mftee mftee merged commit 5492e38 into CodeGirlsInc:main May 31, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants