-
Notifications
You must be signed in to change notification settings - Fork 0
integrate v2, add EVM multi-chain support #14
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3a6be30
integrate v2, add EVM multichain support
Zlerp 43d1cee
update readme and changelog
Zlerp d2b922d
fix minor issues
Zlerp f54bb96
ensure network exists
Zlerp 55de078
ensure PAYMENT-REQUIRED header included in response; bump the gem ver…
Zlerp f79fc8d
update readme
Zlerp 7f7fcd2
Clarify token support requirements in README
Zlerp cd26035
resolve potential issues brought up by copilot.
Zlerp d88b764
final cleanup and update
Zlerp 0f24a41
handle cursor comment
Zlerp b5c6e98
remove all unused rpc-related code
Zlerp 0ec2b24
update x402-rails gemspec
Zlerp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| ## [0.3.0] - 2025-01-06 | ||
|
|
||
| ### Added | ||
| - **Protocol v2 support** - Now supports x402 protocol v2 with CAIP-2 network identifiers and `PAYMENT-SIGNATURE` header | ||
| - **Multi-chain accept** - `config.accept(chain:, currency:)` allows accepting payments on multiple chains simultaneously | ||
| - **Per-endpoint version** - Override protocol version per endpoint with `x402_paywall(amount:, version:)` | ||
| - **Custom chain CAIP-2 lookup** - `from_caip2()` now supports reverse lookup for custom registered chains | ||
|
|
||
| ### Changed | ||
| - Default protocol version is now v2 | ||
| - v2 responses use CAIP-2 format for network identifiers (e.g., `eip155:84532` instead of `base-sepolia`) | ||
|
|
||
| ### Fixed | ||
| - PaymentPayload v2 format now includes `scheme` and `network` at top level | ||
| - PaymentRequirement includes all required facilitator fields (`maxAmountRequired`, `description`, `resource`, `mimeType`) | ||
|
|
||
| ## [0.2.1] - Previous Release | ||
|
|
||
| - Initial stable release with v1 protocol support | ||
| - Custom chain and token registration | ||
| - Optimistic and non-optimistic settlement modes | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.