x402-demo: Base mainnet + CDP facilitator (durability) - #218
Merged
Conversation
Env-driven network (X402_NETWORK=eip155:8453 → Base mainnet) with the authenticated Coinbase CDP facilitator for verify/settle (the public x402.org facilitator is Sepolia-only). Default stays Base Sepolia. Drops railway.json watchPatterns, which never matched under the --path-as-root manual upload and silently SKIPPED deploys. This is the state already running in prod on x402.codespar.dev (deployed via manual railway up); this commit makes it durable in main. Only the four demo files change — no catalog packages touched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the mainnet x402-demo durable in main.
x402.codespar.devhas been selling on Base mainnet since 07-09 (deployed via manualrailway up), but the code only lived on an old divergent branch + the running container. This lands exactly that state, cleanly.server.ts— env-driven network:X402_NETWORK=eip155:8453→ Base mainnet via the authenticated CDP facilitator (the public x402.org facilitator is Sepolia-only). Default stays Sepolia.package.json/package-lock.json— adds@coinbase/x402(the CDP facilitator client).railway.json— dropswatchPatterns, which never matched under--path-as-rootmanual upload and silently SKIPPED deploys.Why a fresh branch
The original work sat on
feat/x402-cdp-connection, branched from an old main — diffing it now showed ~40 catalog packages as deletions (branch was behind). This PR is a fresh branch off currentorigin/maincarrying only the 4 demo files — no catalog packages touched.🤖 Generated with Claude Code