Skip to content

Add Shulam compliance wrapper for BankrClient#10

Open
shulam-pay wants to merge 1 commit intoBankrBot:mainfrom
shulam-pay:feat/shulam-compliance-wrapper
Open

Add Shulam compliance wrapper for BankrClient#10
shulam-pay wants to merge 1 commit intoBankrBot:mainfrom
shulam-pay:feat/shulam-compliance-wrapper

Conversation

@shulam-pay
Copy link

Summary

  • CompliantBankrClient extends BankrClient with automatic pre-screening
  • Throws ComplianceHoldError on held/blocked addresses (with status, walletAddress, matchConfidence)
  • 5-minute TTL screening cache to reduce API calls
  • Raw fetch screener with exponential backoff on 429
  • README with quickstart, API reference, and error handling guide

Test plan

  • Clear addresses pass through to BankrClient.prompt()
  • Held/blocked addresses throw ComplianceHoldError
  • Cache TTL expiry works correctly
  • 23 unit tests passing in source repo
  • Manual integration test with @bankr/sdk

🤖 Generated with Claude Code

- CompliantBankrClient extends BankrClient with pre-screening
- ComplianceHoldError thrown on held/blocked addresses
- 5-minute TTL screening cache
- Raw fetch screener with 429 backoff
- README with quickstart and API reference

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant