-
Notifications
You must be signed in to change notification settings - Fork 0
core: add commerce-payments v1 canonical addresses + drop SKALE #121
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
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 |
|---|---|---|
|
|
@@ -89,6 +89,44 @@ export const recorders = { | |
| '0xa83A44836e16A35505EFA9c6b6a1BD9C0Ecc40E9' as const satisfies Address, | ||
| } as const satisfies RecorderSingletonAddresses | ||
|
|
||
| // --------------------------------------------------------------------------- | ||
| // commerce-payments v1 primitives — canonical CREATE2 addresses | ||
| // --------------------------------------------------------------------------- | ||
| // | ||
| // Upstream `base/[email protected]` contracts redeployed at canonical | ||
| // CREATE2 addresses via CreateX permissionless salts. Same address on every | ||
| // chain. These replace the legacy CREATE3 `authCaptureEscrow` / | ||
| // `tokenCollector` constants above; the existing legacy addresses are kept in | ||
| // place for now to avoid breaking existing tests/consumers, and will be | ||
| // retired in the SDK v2 migration. | ||
| // | ||
| // Salt namespace: `commerce-payments::v1::<ContractName>`. | ||
| // Source of truth: `x402r-contracts/script/PredictAddresses.s.sol`. | ||
|
|
||
| /** AuthCaptureEscrow at canonical CREATE2 address (commerce-payments v1.0.0). */ | ||
| export const commercePaymentsAuthCaptureEscrow = | ||
| '0xF8211868187974a7Fb9d99b8fFB171AD70665Dc6' as const satisfies Address | ||
|
|
||
| /** ERC3009PaymentCollector(escrow, multicall3) at canonical CREATE2 address. */ | ||
| export const commercePaymentsErc3009PaymentCollector = | ||
| '0x7561DC178D9aD5bc5fb103C01f448A510d2A36D0' as const satisfies Address | ||
|
|
||
| /** Permit2PaymentCollector(escrow, permit2, multicall3) at canonical CREATE2 address. */ | ||
| export const commercePaymentsPermit2PaymentCollector = | ||
| '0xD8490609d2da0ee626b0e676941b225cbc1A8C08' as const satisfies Address | ||
|
|
||
| /** Convenience bundle of all three primitive addresses. */ | ||
| export const commercePaymentsAddresses = { | ||
| authCaptureEscrow: commercePaymentsAuthCaptureEscrow, | ||
| erc3009PaymentCollector: commercePaymentsErc3009PaymentCollector, | ||
| permit2PaymentCollector: commercePaymentsPermit2PaymentCollector, | ||
| } as const | ||
|
|
||
| // `x402rChains` below is the canonical chain registry. The commerce-payments | ||
| // v1 primitives + the x402r-authored contracts deploy to the same set of | ||
| // chains; the registry is the source of truth for both. As of 2026-04-29, | ||
| // the primitives are deployed on every chain listed here. | ||
|
|
||
| /** | ||
| * Runtime codehash of RecorderCombinator contract. | ||
| * All RecorderCombinator instances share identical runtime bytecode — | ||
|
|
@@ -175,11 +213,17 @@ export const x402rChains = { | |
| 59144, | ||
| '0x176211869cA2b568f2A7D4EE941E073a821EE1ff', | ||
| ), | ||
|
|
||
| 1187947933: chainConfig( | ||
| 'SKALE Base', | ||
| 1187947933, | ||
| '0x85889c8c714505E0c94b30fcfcF64fE3Ac8FCb20', | ||
| 56: chainConfig( | ||
| 'BNB Smart Chain', | ||
| 56, | ||
| '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', | ||
| ), | ||
| // Tempo's canonical USD-pegged stablecoin is pathUSD (predeploy TIP-20). | ||
| // Native USDC is not yet issued on Tempo. | ||
| 4217: chainConfig( | ||
| 'Tempo', | ||
| 4217, | ||
| '0x20c0000000000000000000000000000000000000', | ||
| ), | ||
| } as const satisfies Record<number, X402rChainConfig> | ||
|
|
||
|
|
||
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.
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.
Do we need to remove certain things as well
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.
yeah but later. this is just addresses. you can build on top of it if you want