-
Notifications
You must be signed in to change notification settings - Fork 620
[SDK] Fix waitUntil facilitator parameter not being respected #8184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] Fix waitUntil facilitator parameter not being respected #8184
Conversation
🦋 Changeset detectedLatest commit: 0fafe9f The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughReplaces the Next.js paywall middleware with a typed Next.js API route, adds an auto-assign GitHub Actions workflow, adds a changeset, and renames the x402 facilitator parameter Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant R as Next.js API /api/paywall
participant F as Thirdweb Facilitator
participant X as X402 Service
C->>R: GET /api/paywall?chainId=&amount=&tokenAddress=&decimals=&waitUntil (or X-PAYMENT header)
R->>R: Parse query/headers, validate chainId, build price/asset, set waitUntil
R->>F: settle({ network, price, asset, waitUntil, facilitator })
F->>X: POST /settle (payload includes waitUntil)
X-->>F: Settlement response (status, headers, body)
alt status 200
F-->>R: Success + headers
R-->>C: 200 JSON (receipt) + allowed headers
else non-200
F-->>R: Error response + headers
R-->>C: forwarded status + body + headers
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (4)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
apps/{dashboard,playground-web}/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/thirdweb/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-05-27T19:56:16.920ZApplied to files:
🧬 Code graph analysis (2)apps/playground-web/src/app/api/paywall/route.ts (3)
packages/thirdweb/src/x402/facilitator.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/auto-assign.yml (1)
14-17: Include first-time contributor associationsAuthors with
FIRST_TIMERorFIRST_TIMER_CONTRIBUTORassociations currently skip assignment, defeating the “always assign the author” goal for new contributors. Add those associations to the guard so the workflow behaves consistently.github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'COLLABORATOR' || - github.event.pull_request.author_association == 'CONTRIBUTOR' + github.event.pull_request.author_association == 'CONTRIBUTOR' || + github.event.pull_request.author_association == 'FIRST_TIMER' || + github.event.pull_request.author_association == 'FIRST_TIMER_CONTRIBUTOR'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (5)
.changeset/ten-donuts-fail.md(1 hunks).github/workflows/auto-assign.yml(1 hunks)apps/playground-web/src/app/api/paywall/route.ts(1 hunks)apps/playground-web/src/middleware.ts(0 hunks)packages/thirdweb/src/x402/facilitator.ts(4 hunks)
💤 Files with no reviewable changes (1)
- apps/playground-web/src/middleware.ts
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from@/typesor localtypes.tsbarrels
Prefer type aliases over interface except for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial,Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from@/typeswhere applicable
Prefertypealiases overinterfaceexcept for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size
Files:
apps/playground-web/src/app/api/paywall/route.tspackages/thirdweb/src/x402/facilitator.ts
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (CLAUDE.md)
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)
Files:
apps/playground-web/src/app/api/paywall/route.tspackages/thirdweb/src/x402/facilitator.ts
apps/{dashboard,playground-web}/**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from@/components/ui/*(Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
UseNavLinkfor internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Usecn()from@/lib/utilsfor conditional class logic
Use design system tokens (e.g.,bg-card,border-border,text-muted-foreground)
Server Components (Node edge): Start files withimport "server-only";
Client Components (browser): Begin files with'use client';
Always callgetAuthToken()to retrieve JWT from cookies on server side
UseAuthorization: Bearerheader – never embed tokens in URLs
Return typed results (e.g.,Project[],User[]) – avoidany
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stablequeryKeysfor React Query cache hits
ConfigurestaleTime/cacheTimein React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never importposthog-jsin server components
Files:
apps/playground-web/src/app/api/paywall/route.ts
packages/thirdweb/**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
packages/thirdweb/**/*.{ts,tsx}: Every public symbol must have comprehensive TSDoc with at least one compiling@exampleand a custom tag (@beta,@internal,@experimental, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
Lazy‑load heavy dependencies inside async paths (e.g.,const { jsPDF } = await import("jspdf"))
Files:
packages/thirdweb/src/x402/facilitator.ts
.changeset/*.md
📄 CodeRabbit inference engine (AGENTS.md)
.changeset/*.md: Each change inpackages/*must include a changeset for the appropriate package
Version bump rules: patch for non‑API changes; minor for new/modified public API
Files:
.changeset/ten-donuts-fail.md
🧬 Code graph analysis (2)
apps/playground-web/src/app/api/paywall/route.ts (2)
packages/thirdweb/src/x402/facilitator.ts (1)
facilitator(107-262)apps/playground-web/src/app/payments/x402/components/constants.ts (1)
token(4-9)
packages/thirdweb/src/x402/facilitator.ts (3)
packages/thirdweb/src/exports/x402.ts (1)
WaitUntil(6-6)packages/thirdweb/src/x402/schemas.ts (1)
FacilitatorSettleResponse(58-60)packages/ai-sdk-provider/src/types.ts (1)
DEFAULT_BASE_URL(10-10)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: E2E Tests (pnpm, esbuild)
- GitHub Check: E2E Tests (pnpm, webpack)
- GitHub Check: E2E Tests (pnpm, vite)
- GitHub Check: Size
- GitHub Check: Unit Tests
- GitHub Check: Build Packages
- GitHub Check: Lint Packages
- GitHub Check: Analyze (javascript)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8184 +/- ##
=======================================
Coverage 55.04% 55.04%
=======================================
Files 919 919
Lines 60562 60562
Branches 4126 4131 +5
=======================================
Hits 33337 33337
Misses 27121 27121
Partials 104 104
🚀 New features to boost your workflow:
|
11629cf to
e254a69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
♻️ Duplicate comments (1)
apps/playground-web/src/app/api/paywall/route.ts (1)
30-63: Validate query parameters before use.The validation issues flagged in the previous review comment are still present. The code does not validate that
chainIdanddecimalsare valid numbers, andwaitUntilis not constrained to allowed values. This can lead to runtime exceptions when callingdefineChain(NaN)ortoUnits()with invalid decimals.Please apply the comprehensive validation diff from the previous review comment to fix these issues.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (5)
.changeset/ten-donuts-fail.md(1 hunks).github/workflows/auto-assign.yml(1 hunks)apps/playground-web/src/app/api/paywall/route.ts(1 hunks)apps/playground-web/src/middleware.ts(0 hunks)packages/thirdweb/src/x402/facilitator.ts(4 hunks)
💤 Files with no reviewable changes (1)
- apps/playground-web/src/middleware.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- .changeset/ten-donuts-fail.md
- .github/workflows/auto-assign.yml
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from@/typesor localtypes.tsbarrels
Prefer type aliases over interface except for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial,Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from@/typeswhere applicable
Prefertypealiases overinterfaceexcept for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size
Files:
apps/playground-web/src/app/api/paywall/route.tspackages/thirdweb/src/x402/facilitator.ts
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (CLAUDE.md)
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)
Files:
apps/playground-web/src/app/api/paywall/route.tspackages/thirdweb/src/x402/facilitator.ts
apps/{dashboard,playground-web}/**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from@/components/ui/*(Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
UseNavLinkfor internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Usecn()from@/lib/utilsfor conditional class logic
Use design system tokens (e.g.,bg-card,border-border,text-muted-foreground)
Server Components (Node edge): Start files withimport "server-only";
Client Components (browser): Begin files with'use client';
Always callgetAuthToken()to retrieve JWT from cookies on server side
UseAuthorization: Bearerheader – never embed tokens in URLs
Return typed results (e.g.,Project[],User[]) – avoidany
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stablequeryKeysfor React Query cache hits
ConfigurestaleTime/cacheTimein React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never importposthog-jsin server components
Files:
apps/playground-web/src/app/api/paywall/route.ts
packages/thirdweb/**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
packages/thirdweb/**/*.{ts,tsx}: Every public symbol must have comprehensive TSDoc with at least one compiling@exampleand a custom tag (@beta,@internal,@experimental, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
Lazy‑load heavy dependencies inside async paths (e.g.,const { jsPDF } = await import("jspdf"))
Files:
packages/thirdweb/src/x402/facilitator.ts
🧬 Code graph analysis (2)
apps/playground-web/src/app/api/paywall/route.ts (2)
packages/thirdweb/src/x402/facilitator.ts (1)
facilitator(107-262)apps/playground-web/src/app/payments/x402/components/constants.ts (1)
token(4-9)
packages/thirdweb/src/x402/facilitator.ts (3)
packages/thirdweb/src/exports/x402.ts (1)
WaitUntil(6-6)packages/thirdweb/src/x402/schemas.ts (1)
FacilitatorSettleResponse(58-60)packages/ai-sdk-provider/src/types.ts (1)
DEFAULT_BASE_URL(10-10)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Size
- GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
packages/thirdweb/src/x402/facilitator.ts (1)
18-18: LGTM! Parameter rename fixes typo consistently.The rename from
waitUtiltowaitUntilis correctly applied across the type definitions (ThirdwebX402FacilitatorConfig, ThirdwebX402Facilitator.settle) and implementation. The payload construction now correctly sendswaitUntilinstead ofwaitUtil, and the parameter resolution at line 195 properly reads from both the function parameter and config property.Note: This is a breaking change to the public API. Ensure it's documented in the changeset and migration guide if needed.
Also applies to: 43-43, 188-188, 195-195, 204-204
e254a69 to
7a08ea7
Compare
7a08ea7 to
0fafe9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
♻️ Duplicate comments (3)
apps/playground-web/src/app/api/paywall/route.ts (3)
15-18: Validate required environment variables at initialization.Environment variables are cast to
stringwithout checking if they exist. If any are missing, the application will fail at runtime with confusing errors. This concern was previously raised and remains unaddressed.
31-45: Validate chainId, decimals, and waitUntil before using them.The code does not validate that
chainIdis a valid integer,decimalsis numeric, orwaitUntilis one of the allowed values. This can cause runtime errors when invalid input is provided (e.g.,?chainId=mainnetresults inNaN). This concern was previously raised and remains unaddressed.
47-64: Add error handling for settlePayment.The
settlePaymentcall can throw exceptions (network errors, facilitator errors), but there's no try-catch block. Unhandled exceptions result in a 500 response without a meaningful error message. This concern was previously raised and remains unaddressed.
🧹 Nitpick comments (3)
apps/playground-web/src/app/api/paywall/route.ts (3)
10-10: Add explicit return type annotation.Per coding guidelines, TypeScript functions should have explicit return types. The GET handler should specify its return type.
Apply this diff:
-export async function GET(request: NextRequest) { +export async function GET(request: NextRequest): Promise<NextResponse> {
16-16: Remove commented-out code.The commented line referencing
ENGINE_BACKEND_SMART_WALLETshould be removed to keep the codebase clean. If this alternative configuration is needed, consider using an environment variable to toggle between options rather than leaving dead code.Apply this diff:
const BACKEND_WALLET_ADDRESS = process.env.ENGINE_BACKEND_WALLET as string; -// const BACKEND_WALLET_ADDRESS = process.env.ENGINE_BACKEND_SMART_WALLET as string; const ENGINE_VAULT_ACCESS_TOKEN = process.env
42-42: Simplify decimals handling.Line 42 converts
token.decimals(a number) to a string, but lines 53 and 56 immediately parse it back to an integer. This is redundant and can be simplified.Apply this diff:
-const decimals = queryParams.get("decimals") || token.decimals.toString(); +const decimals = queryParams.get("decimals") ? parseInt(queryParams.get("decimals")!) : token.decimals;Then update lines 53 and 56 to use
decimalsdirectly:price: { - amount: toUnits(amount, parseInt(decimals)).toString(), + amount: toUnits(amount, decimals).toString(), asset: { address: tokenAddress as `0x${string}`, - decimals: decimals ? parseInt(decimals) : token.decimals, + decimals, }, },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (5)
.changeset/ten-donuts-fail.md(1 hunks).github/workflows/auto-assign.yml(1 hunks)apps/playground-web/src/app/api/paywall/route.ts(1 hunks)apps/playground-web/src/middleware.ts(0 hunks)packages/thirdweb/src/x402/facilitator.ts(4 hunks)
💤 Files with no reviewable changes (1)
- apps/playground-web/src/middleware.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- .github/workflows/auto-assign.yml
- .changeset/ten-donuts-fail.md
- packages/thirdweb/src/x402/facilitator.ts
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from@/typesor localtypes.tsbarrels
Prefer type aliases over interface except for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial,Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose
**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from@/typeswhere applicable
Prefertypealiases overinterfaceexcept for nominal shapes
Avoidanyandunknownunless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size
Files:
apps/playground-web/src/app/api/paywall/route.ts
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (CLAUDE.md)
Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)
Files:
apps/playground-web/src/app/api/paywall/route.ts
apps/{dashboard,playground-web}/**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from@/components/ui/*(Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
UseNavLinkfor internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Usecn()from@/lib/utilsfor conditional class logic
Use design system tokens (e.g.,bg-card,border-border,text-muted-foreground)
Server Components (Node edge): Start files withimport "server-only";
Client Components (browser): Begin files with'use client';
Always callgetAuthToken()to retrieve JWT from cookies on server side
UseAuthorization: Bearerheader – never embed tokens in URLs
Return typed results (e.g.,Project[],User[]) – avoidany
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stablequeryKeysfor React Query cache hits
ConfigurestaleTime/cacheTimein React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never importposthog-jsin server components
Files:
apps/playground-web/src/app/api/paywall/route.ts
🧠 Learnings (1)
📚 Learning: 2025-05-27T19:56:16.920Z
Learnt from: MananTank
PR: thirdweb-dev/js#7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_hooks/useTokenTransfers.ts:41-44
Timestamp: 2025-05-27T19:56:16.920Z
Learning: When reviewing hooks that use environment variables like NEXT_PUBLIC_DASHBOARD_THIRDWEB_CLIENT_ID for API calls, MananTank prefers not to add explicit validation checks for these variables, trusting they will be set in the deployment environment.
Applied to files:
apps/playground-web/src/app/api/paywall/route.ts
🧬 Code graph analysis (1)
apps/playground-web/src/app/api/paywall/route.ts (2)
packages/thirdweb/src/x402/facilitator.ts (1)
facilitator(107-262)apps/playground-web/src/app/payments/x402/components/constants.ts (1)
token(4-9)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Size
- GitHub Check: E2E Tests (pnpm, webpack)
- GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
apps/playground-web/src/app/api/paywall/route.ts (3)
1-6: LGTM!The imports are appropriate for the paywall route implementation.
62-62: Correctly passes waitUntil parameter (PR fix).The
waitUntilparameter is now correctly passed tosettlePayment, which forwards it to the facilitator'ssettlefunction. This addresses the core issue described in the PR.
66-89: LGTM!The response handling correctly differentiates between successful payments (status 200) and payment requests, properly propagating headers and status codes in both cases.

PR-Codex overview
This PR focuses on updating the
waitUtilparameter towaitUntilin various parts of the codebase and adding a GitHub Actions workflow for auto-assigning authors to pull requests. It also modifies theGETfunction in the API route to handle payment processing.Detailed summary
waitUtiltowaitUntilinfacilitator.tsand related functions.settlefunction to usewaitUntilparameter..github/workflows/auto-assign.ymlfor auto-assigning authors.GETfunction inroute.tsto process payments with the newwaitUntilparameter and improved error handling.Summary by CodeRabbit