Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Heimdall Review Status
|
3 tasks
9dd2539 to
164b75b
Compare
cc79b72 to
0d42a3f
Compare
Contributor
notorious-d-e-v
left a comment
There was a problem hiding this comment.
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
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.
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: