You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find the contract code in packages/hardhat/contracts/BatchGraduationNFT.sol. It's also available in the externalContracts.ts file in packages/nextjs/contracts/ (for front-end use in future issues).
Get your Batch Graduation NFT
1. Create your own branch
Before you begin, make sure you're working on a separate branch. Here's how:
Clone the repo to your local machine (If you haven't already)
Navigate to the cloned directory in your terminal.
Create a new branch using git checkout -b [your-branch-name]
💡 You'll notice that the dApp points to the Optimism chain. Check the scaffold.config.ts file to see how it's configured.
3. Understand the graduate Function
Check out the graduate function in the BatchRegistry.sol contract. After performing some validation checks, this function calls the mint function of the BatchGraduationNFT.sol contract to mint your NFT. Review the BatchGraduationNFT.sol contract to see how it works.
4. Set Up a Metadata Contract
You’ll need to deploy a Metadata Contract to set attributes (like color and name) for your personal NFT.
Create a Metadata.sol contract in packages/hardhat/contracts/.
You can interact with the BatchGraduationNFT in the /debug page.
5. Deploy and Interact
Update the BatchGraduationNFT.sol contract with the address of your Metadata Contract.
Once everything is set up, you can call the graduate function on the BatchRegistry contract.
6. View Your NFT:
Check if it appears on OpenSea or other platforms!
✅ Congrats you have now completed the Graduation NFT Challenge! Make sure to share it in the telegram! 🎉
Outline:
Alongside the BatchRegistry contract, a BatchGraduationNFT was deploy, you can see it in the hardhat/contracts folder
Check the graduate function on the BatchRegistry Contract. After doing some checks, it calls the mint function of the NFT contract
As you can see you'd need to deploy a Metadata Contract where you can set some attributes (color and name) for your personal NFT
You can interact with the BatchGraduationNFT in the /debug page (added in externalContracts.ts)
Once you set the address of the Metadata in the BatchGraduationNFT contract, you should be able to call graduate on the BatchRegistry contract.
Explain how they can see their minted NFT (getting the base64 contract, parse and render.... vs opensea?). We (as admins) could also provide some means to it (a hook / page)
(Everything is very open to suggestions!)
The text was updated successfully, but these errors were encountered:
This introduction to open source collaboration in the field of dApp development has been nothing but such a supportive and encouraging journey. Huge thank you to both @phipsae and @derrekcoleman for being the best batch dads 💖. I've learned a ton and will be putting everything I've gained into practice.
I wish the whole batch an amazing last few months of the year.
Goal
Get your graduation NFT! 🎓
💡 This issue doesn't require you to raise a PR, just get yourself the completion NFT. Create a local branch to work on this.
WARNING: You are only able to mint one NFT on mainnet, so be careful when adjusting metadata and testing to only
graduate
once on mainnet.BatchGraduationNFT contract
The BatchGraduationNFT contract is deployed on Optimism.
Check it out on Etherscan
Check it out on abi.ninja
You can find the contract code in
packages/hardhat/contracts/BatchGraduationNFT.sol
. It's also available in theexternalContracts.ts
file inpackages/nextjs/contracts/
(for front-end use in future issues).Get your Batch Graduation NFT
1. Create your own branch
Before you begin, make sure you're working on a separate branch. Here's how:
git checkout -b [your-branch-name]
2. Spin up Your Local SE-2
Set up your local environment:
yarn install
(install dependencies)yarn start
(starts SE2 front-end)💡 You'll notice that the dApp points to the Optimism chain. Check the
scaffold.config.ts
file to see how it's configured.3. Understand the graduate Function
Check out the
graduate
function in theBatchRegistry.sol
contract. After performing some validation checks, this function calls themint
function of theBatchGraduationNFT.sol
contract to mint your NFT. Review theBatchGraduationNFT.sol
contract to see how it works.4. Set Up a Metadata Contract
You’ll need to deploy a Metadata Contract to set attributes (like color and name) for your personal NFT.
Metadata.sol
contract inpackages/hardhat/contracts/
.BatchGraduationNFT
in the/debug
page.5. Deploy and Interact
BatchGraduationNFT.sol
contract with the address of your Metadata Contract.Once everything is set up, you can call the graduate function on the BatchRegistry contract.
6. View Your NFT:
Check if it appears on OpenSea or other platforms!
✅ Congrats you have now completed the Graduation NFT Challenge! Make sure to share it in the telegram! 🎉
Outline:
BatchRegistry
contract, aBatchGraduationNFT
was deploy, you can see it in the hardhat/contracts foldergraduate
function on theBatchRegistry
Contract. After doing some checks, it calls the mint function of the NFT contractMetadata
Contract where you can set some attributes (color and name) for your personal NFTBatchGraduationNFT
in the/debug
page (added inexternalContracts.ts
)Metadata
in theBatchGraduationNFT
contract, you should be able to callgraduate
on theBatchRegistry
contract.(Everything is very open to suggestions!)
The text was updated successfully, but these errors were encountered: