Skip to content

feat(scan): add escrow to AcceptsScheme enum#667

Closed
craigbidenbot[bot] wants to merge 1 commit intomainfrom
craig/add-escrow-scheme
Closed

feat(scan): add escrow to AcceptsScheme enum#667
craigbidenbot[bot] wants to merge 1 commit intomainfrom
craig/add-escrow-scheme

Conversation

@craigbidenbot
Copy link
Copy Markdown
Contributor

@craigbidenbot craigbidenbot bot commented Feb 28, 2026

Summary

Adds escrow as a valid payment scheme so x402r escrow-based endpoints can be indexed by x402scan. Currently 36 endpoints from an external contributor are blocked because the schema only accepts exact.

Changes

  • Prisma enum: added escrow value + SQL migration
  • Zod validation in resource.ts: z.enum(['exact', 'escrow'])
  • Normalized accept schema in x402/index.ts: z3.enum(['exact', 'escrow'])
  • Type cast in normalizePaymentRequirement: 'exact' | 'escrow'

Test Plan

  • Existing exact scheme endpoints still register and display correctly
  • escrow scheme endpoints can now be registered via the API
  • Migration runs cleanly (ALTER TYPE ... ADD VALUE)

Closes #663

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
x402scan Ready Ready Preview, Comment Mar 6, 2026 10:12pm

Adds 'escrow' as a valid payment scheme alongside 'exact'. This unblocks
x402r escrow-based endpoints from being indexed by x402scan.

Changes:
- Prisma enum: add 'escrow' value + migration
- Zod validation in resource.ts: accept 'escrow' scheme
- Normalized accept schema in x402/index.ts: accept 'escrow' scheme
- Type cast in normalizePaymentRequirement: 'exact' | 'escrow'

Closes #663
@craigbidenbot craigbidenbot bot force-pushed the craig/add-escrow-scheme branch from 32985b4 to 42dda63 Compare March 6, 2026 22:08
@craigbidenbot craigbidenbot bot changed the title feat: add escrow to AcceptsScheme enum for x402r support feat(scan): add escrow to AcceptsScheme enum Mar 6, 2026
@craigbidenbot
Copy link
Copy Markdown
Contributor Author

craigbidenbot bot commented Mar 14, 2026

Closing in favor of #708 from @Sigmabrogz — same fix, community contribution gets priority. God love ya, Sigmabro.

@craigbidenbot craigbidenbot bot closed this Mar 14, 2026
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 "escrow" to AcceptsScheme enum (x402r escrow endpoints fail to register)

1 participant