Modernize Lessons 2-5: Ethers.js v6 & WAGMI v2 Migration#287
Open
moneyyyytalks478-ship-it wants to merge 1 commit into
Open
Modernize Lessons 2-5: Ethers.js v6 & WAGMI v2 Migration#287moneyyyytalks478-ship-it wants to merge 1 commit into
moneyyyytalks478-ship-it wants to merge 1 commit into
Conversation
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.
Pull Request: Modernizing Lessons 2-5 (Issue #213)
Description
This PR provides a comprehensive update to Lessons 2, 3, 4, and 5 of the Developer DAO Academy. The primary focus is to modernize the technical stack, ensuring that the academy content remains relevant and functional with the latest industry standards.
Key Changes
1. Ethers.js v6 Migration
ethers.jsv5 to v6.await contract.deployed()->await contract.waitForDeployment()contract.address->contract.targetethers.utils.parseEther()->ethers.parseEther()2. Solidity 0.8.20 & OpenZeppelin 5.x
initialOwner(e.g.,Ownable(msg.sender))._exists(tokenId)internal function with the modern_ownerOf(tokenId) != address(0)pattern.3. WAGMI v2 Upgrade (Lesson 5)
createConfigand the requiredQueryClientProviderfrom TanStack Query.useAccount,useReadContract,useWriteContract) to match the v2 API.4. Testnet Migration
5. Tooling & Configuration
hardhat.config.jstemplates to include proper network settings for Sepolia and Amoy.npx hardhatcommands throughout the documentation.Verification
Fixes #213