feat: add support for MegaETH network#1893
Closed
Vinicius-Fiorio wants to merge 1 commit intoProjectOpenSea:mainfrom
Closed
feat: add support for MegaETH network#1893Vinicius-Fiorio wants to merge 1 commit intoProjectOpenSea:mainfrom
Vinicius-Fiorio wants to merge 1 commit intoProjectOpenSea:mainfrom
Conversation
2 tasks
Collaborator
|
Thanks for the contribution! We've incorporated your changes with some cleanup in #1896 (renamed the fee recipient constant, fixed a test bug, and adjusted the chain grouping). Closing this in favor of that PR. |
Collaborator
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.
Add Support for MegaETH
This PR adds full support for MegaETH (Chain.MegaETH) to the opensea-js
The integration follows the existing multi-chain architecture and mirrors the implementation pattern used for other alternate-protocol chains such as Gunzilla and Somnia.
No breaking changes were introduced.
Changes Included
1. Chain Integration
Chain.MegaETH2. Alternate Protocol Routing
MegaETH uses the alternate Seaport deployment.
Updated:
As a result, MegaETH now correctly resolves to:
ALTERNATE_SEAPORT_V1_6_ADDRESSALTERNATE_CONDUIT_ADDRESSALTERNATE_SIGNED_ZONE_V2_ADDRESSvia:
getSeaportAddressgetDefaultConduitgetSignedZone3. Fee Recipient
Added a dedicated fee recipient constant:
Integrated inside
getFeeRecipientinto:4. Offer Payment Token
MegaETH uses the standard OP-stack wrapped ETH address:
Added to:
getOfferPaymentTokengetNativeWrapTokenAddress(via default flow)5. Listing Payment Token
Listings on MegaETH use native ETH:
Integrated into
getListingPaymentToken.6. Test Coverage
Added basic test cases in
chain.spec.tscovering:All tests pass successfully.
Architectural Consistency
The implementation: