feat: e2e test optimization and v1 compat tests#8
Merged
Conversation
…t SDKs Verify the existing v1/v2 auto-detection and routing behavior end-to-end without modifying source code. Covers client payload creation, HTTP header encoding, round-tripper flow, and mixed v1+v2 scheme registration. Python (25 new test cases): - Unit: v1 payload creation (async+sync), auto-adaptive routing, v1 hooks - Integration: parameterized sync/async v1 flow, auto-adaptive routing, HTTP layer - HTTP: v1 handle_402, v1 round-tripper with X-PAYMENT header TypeScript (16 new test cases): - Unit: v1 payload creation, auto-adaptive v1/v2 routing, version isolation - HTTP: v1/v2 header encoding, body parsing, settle response, priority tests
The assets field from PaymentOption was not forwarded to ResourceConfig in buildPaymentRequirementsFromOptions, causing AssetRegistry-based price resolution to never trigger via the HTTP middleware path.
Project only has Python + TypeScript SDKs. Coinbase Go SDK compatibility tests will be added in a separate test directory later.
…runner Previously the hardcoded check at startup required SVM env vars even when running EVM-only tests (e.g. --families=evm). Move validation after scenario filtering so only variables for the actually-tested protocol families are required.
…LU token Migrate all e2e test infrastructure to BSC Testnet (eip155:97) using DHLU token (0x375cADdd2cB68cE82e3D9B075D551067a7b4B816, decimals: 6, EIP712 name="DA HULU", version="1"). DHLU supports EIP-3009, EIP-2612, and ERC-20 approval, enabling all payment transfer methods with a single token. - Update v2 servers (express, hono, next, fastapi, flask) with pre-parsed DHLU price objects (also fixes permit2 endpoints that had extra at wrong level when using $0.001 shorthand) - Update MCP servers (TypeScript, Python) with DHLU price config - Update facilitators (TypeScript, Python) RPC URLs and network IDs - Update clients (fetch, axios, mcp-typescript) chain references - Update legacy servers/clients to use bsc-testnet network name - Update permit2-approval script for BSC Testnet + DHLU
a8c32c7 to
81c44ed
Compare
chore: resolve dev/v2 merge conflicts in tron mechanism
c49290e to
8158f77
Compare
boboliu-1010
pushed a commit
that referenced
this pull request
Apr 24, 2026
- solutions.md #7: BSC testnet has no EIP-2612 permit-capable token. Captures why exact_permit_testnet returns 404 and lists the options (Sepolia / custom test token / rely on unit suites), so the next person doesn't rediscover it. - solutions.md #8: integration runner doesn't expand ${VAR:-default}. Captures the os.path.expandvars limitation that caused the testnet scenarios to silently break on a literal fallback string. - testnet/README.md: add "Current status" table with today's verified BSC tx hash as evidence, and a "Gotchas" section linking back to solutions #7 / #8, the tx-hash regex, and the log locations. No code change — just freezing today's testnet run state so future attempts start from known ground. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 tasks
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.
Summary
This PR optimizes the E2E test suite and adds compatibility tests for the x402 v1/v2 auto-adaptive protocol. It also migrates the test network to BSC Testnet and streamlines the facilitator startup.
Key Changes
.github/workflows/e2e_tests.yml)..gitignoreto better handle E2E test results and local development files.Verification