Skip to content

Commit 349543a

Browse files
authored
fix: support official x402 resource servers (#806)
* fix: support official x402 resource servers * test: expand Coinbase x402 interoperability
1 parent 4c9ce16 commit 349543a

6 files changed

Lines changed: 613 additions & 11 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mppx': patch
3+
---
4+
5+
Added CI interoperability coverage against the Coinbase x402 resource server and facilitator implementations.

.github/workflows/verify.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
--name mppx-x402-anvil \
254254
-p 18546:8545 \
255255
--entrypoint anvil \
256-
ghcr.io/foundry-rs/foundry:latest \
256+
ghcr.io/foundry-rs/foundry@sha256:ede4c35d3e9310f6c77f09952cd666e17e4ee7cd5228290d8b4fc9d5cdd37eb1 \
257257
--host 0.0.0.0 \
258258
--port 8545 \
259259
--chain-id 31337 \
@@ -280,11 +280,14 @@ jobs:
280280
-v "${PWD}:/workspace" \
281281
-w /workspace \
282282
--entrypoint forge \
283-
ghcr.io/foundry-rs/foundry:latest \
283+
ghcr.io/foundry-rs/foundry@sha256:ede4c35d3e9310f6c77f09952cd666e17e4ee7cd5228290d8b4fc9d5cdd37eb1 \
284284
build
285285
286286
- name: Run x402 localnet tests
287-
run: pnpm exec vp test --run --project node src/x402/Exact.localnet.test.ts --reporter=verbose --bail=1
287+
run: pnpm exec vp test --run --project x402-localnet --reporter=verbose --bail=1
288+
289+
- name: Run Coinbase x402 client interoperability tests
290+
run: pnpm exec vp test --run --project x402-coinbase-client --reporter=verbose --bail=1
288291

289292
test-html:
290293
name: Test HTML

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"@types/node": "^25.6.0",
3939
"@types/ws": "^8.18.1",
4040
"@typescript/native-preview": "7.0.0-dev.20260707.2",
41+
"@x402/core": "2.22.0",
42+
"@x402/evm": "2.22.0",
43+
"@x402/express": "2.22.0",
4144
"browserslist": "^4.28.7",
4245
"elysia": "^1.4.29",
4346
"eslint-plugin-compat": "^7.0.2",

pnpm-lock.yaml

Lines changed: 156 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)