x402
x402 copied to clipboard
feat: shared middleware function to build payment requirements
Description
let’s have a single builder to construct PaymentRequirements, as mentioned in commit 26f132bf.
besides, this will simplify maintenance and prevent implementation drifts
Tests
cd typescript && \
pnpm build && \
pnpm lint:check && \
pnpm --filter x402 exec vitest run src/shared/middleware.test.ts --reporter=verbose
Checklist
- [x] formatted and linted code
- [x] all new and existing tests pass
- [x] signed commits
🟡 Heimdall Review Status
| Requirement | Status | More Info | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Reviews |
🟡
0/1
|
Denominator calculation
|
@0xf333 is attempting to deploy a commit to the Coinbase Team on Vercel.
A member of the Team first needs to authorize it.