-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marketplace implementation addresses (#5822)
TOOL-2814 ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces support for `ZkSync` chains by adding implementations for contracts and adjusting methods to handle `ZkSync` specific logic, including fetching default constructor parameters and deploying contracts. ### Detailed summary - Added `ZKSYNC_IMPLEMENTATIONS` and `ZKSYNC_WETH` records for various `ZkSync` chains. - Updated `CustomContractForm` to handle `MarketplaceV3` differently for `ZkSync` chains. - Introduced a test for retrieving default constructor parameters for `ZkSync`. - Modified `getAllDefaultConstructorParamsForImplementation` to return `nativeTokenWrapper` for `ZkSync`. - Updated contract deployment logic in `bootstrap.ts` to use `ZkSync` implementations. - Added a test case for saving implementations for `ZkSync` chains. - Enhanced contract fetching logic in `getOrDeployInfraContract` for `WETH9` on `ZkSync`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
243c497
commit 3718020
Showing
6 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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
20 changes: 20 additions & 0 deletions
20
packages/thirdweb/src/contract/deployment/zksync/implementations.ts
This file contains 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,20 @@ | ||
export const ZKSYNC_IMPLEMENTATIONS: Record<number, Record<string, string>> = { | ||
[300]: { | ||
MarketplaceV3: "0x58e0F289C7dD2025eBd0696d913ECC0fdc1CC8bc", | ||
}, | ||
[302]: { | ||
MarketplaceV3: "0x8b0DBCf5b7D01eBB0F24525CE8AB72F16CE4F8C8", | ||
}, | ||
[324]: { | ||
MarketplaceV3: "0xBc02441a36Bb4029Cd191b20243c2e41B862F118", | ||
}, | ||
[11124]: { | ||
MarketplaceV3: "0x2dA4Dd326A6482679547071be21f74685d730504", | ||
}, | ||
}; | ||
|
||
export const ZKSYNC_WETH: Record<number, string> = { | ||
[300]: "0x0462C05457Fed440740Ff3696bDd2D0577411e34", | ||
[324]: "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", | ||
[11124]: "0x9EDCde0257F2386Ce177C3a7FCdd97787F0D841d", | ||
}; |
This file contains 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 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