-
Notifications
You must be signed in to change notification settings - Fork 1k
Development v2 #705
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
Development v2 #705
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Heimdall Review Status
|
9dd2539 to
164b75b
Compare
cc79b72 to
0d42a3f
Compare
notorious-d-e-v
left a comment
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.
Nice work @CarsonRoscoe -- huge lift!
If it would be helpful, I'm happy to implement the changes that come out of this review.
Would love to get some more eyes on it too @amilz @alexanderguy @GuiBibeau
typescript/packages/mechanisms/svm/src/exact/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
typescript/packages/mechanisms/svm/src/exact/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
typescript/packages/mechanisms/svm/src/exact/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
typescript/packages/mechanisms/svm/src/exact/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
typescript/packages/mechanisms/svm/src/exact/v1/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
typescript/packages/mechanisms/svm/src/exact/v1/facilitator/scheme.ts
Outdated
Show resolved
Hide resolved
41ee265 to
0b61b04
Compare
* go settlement failure and initOnStart fixes * update go unit tests * update readmes
* add multiple payment options for go * fix SyncFacilitatorOnStart
* add hooks for advanced go example * fix legacy ts deps
* add miniapp example * fix format * add mcp example * fix format
* add manifest to miniapp * fix format
* port new website to public repo * chore: update pnpm-lock.yaml with motion dependency * feat: add x402 V2 launch blog post and update hero code snippet - Add /writing/x402-v2-launch blog post page - Add blog images (blog_intro.png, blog_x402_layers.png, homepage_build5.png) - Enable Writing nav link in NavBar and Footer - Update hero code snippet to show V2 SDK usage - Fix CodeSnippet to support multi-line code * feat: edit nav for mobile * Revert "feat: edit nav for mobile" This reverts commit 475999a. * feat: add ecosystem page and minor home page tweaks * feat: fix typography in ecosystem * homepage qa fixes * feat: add ecosystem icons and fix halftone * cleanup assets * fix: minor bug on faq * feat: add hamburger menu to mobile
* Update readme * Install instructions and typos
avidreder
left a comment
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.
LGTM
x402 v2 Development
Overview
x402 v2 introduces a modular architecture separating the specification, facilitator, and SDK layers.
This branch is dedicated to building the reference SDKs as we build out v2.
/legacysubfolder. The legacy typescript packages can be found in/typescript/packages/legacy, the legacy go package in/go/legacy, examples in/examples/typescript/legacy, e2e tests in/e2e/legacy, etc.typescript,go,examplesande2efolders are current.TypeScript Packages
@x402/core@x402/evm@x402/svm@x402/extensions@x402/express@x402/hono@x402/next@x402/fetch@x402/axios@x402/paywallGo Packages
x402X402Client,X402ResourceServer,X402Facilitatorx402/httpx402/http/ginx402/mechanisms/evmx402/mechanisms/svmx402/signers/evmx402/signers/svmx402/extensionsPython Packages
Will be added shortly
Testing
The v2 implementation includes unit tests, integration tests, and e2e tests.
Running Tests
TypeScript:
Go:
E2E (all languages):
Usage Patterns
TypeScript and Go follow nearly identical usage patterns. The examples below use TypeScript for demonstration purposes.
Client (TypeScript)
The
x402Clientuses a builder pattern to register payment schemes:Server (TypeScript)
The
x402ResourceServeruses a builder pattern to register verification schemes:Facilitator (TypeScript)
The
x402Facilitatorverifies and settles payments on-chain:Backwards Compatibility
The EVM and SVM mechanism packages export v1 schemes from a
/v1/subpath for backwards compatibility with legacy x402 servers and clients. These must be registered using.registerV1().Client:
Facilitator: