Skip to content

Fix KYC-transfer test gap, unknown contract errors, expiry docs, carbon standard allowlist - #729

Merged
abore9769 merged 2 commits into
VERITOKEN-xx:mainfrom
kanengchik:fix/issues-666-667-668-669
Sep 1, 2026
Merged

Fix KYC-transfer test gap, unknown contract errors, expiry docs, carbon standard allowlist#729
abore9769 merged 2 commits into
VERITOKEN-xx:mainfrom
kanengchik:fix/issues-666-667-668-669

Conversation

@kanengchik

Copy link
Copy Markdown
Contributor

Summary

  • Add integration test asserting a KYC-approved sender cannot transfer to a recipient with no KYC record; expects KycNotApproved.
  • parseContractError now returns a well-defined UnknownContractError fallback instead of silently degrading when a contract error code isn't in the lookup table.
  • Documented the units of expiration_ledger (ledger sequence) in rwa-token and expiry (UNIX timestamp) in kyc-registry to prevent mixing time domains.
  • Added an allowlist for carbon standard metadata (VCS, Gold Standard, CDM, ACR, CAR) via a new validateCarbonStandard validator.

Closes #666
Closes #667
Closes #668
Closes #669

Test plan

  • cargo test -p integration-tests --features testutils
  • npm test in sdk
  • npm test in frontend

…standard allowlist

- Add integration test asserting transfer to a non-KYC recipient is
  rejected with KycNotApproved (closes VERITOKEN-xx#666)
- Make parseContractError return a well-defined UnknownContractError
  fallback instead of silently degrading for unmapped codes (closes VERITOKEN-xx#667)
- Document the unit of allowance/KYC expiry fields to prevent mixing
  ledger-sequence and UNIX-timestamp time domains (closes VERITOKEN-xx#668)
- Restrict carbon standard metadata to a known allowlist (VCS, Gold
  Standard, CDM, ACR, CAR) (closes VERITOKEN-xx#669)
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

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

@abore9769
abore9769 merged commit 45fb7ad into VERITOKEN-xx:main Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment