Skip to content
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

8. Get your Batch Graduation NFT! #3

Open
edakturk14 opened this issue Jul 27, 2024 · 2 comments
Open

8. Get your Batch Graduation NFT! #3

edakturk14 opened this issue Jul 27, 2024 · 2 comments
Labels
for all all members of the batch need to complete it smart contract smart contract work

Comments

@edakturk14
Copy link
Contributor

edakturk14 commented Jul 27, 2024

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.

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 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:

  1. Clone the repo to your local machine (If you haven't already)
  2. Navigate to the cloned directory in your terminal.
  3. Create a new branch using git checkout -b [your-branch-name]

2. Spin up Your Local SE-2

Set up your local environment:

  1. Run yarn install (install dependencies)
  2. Run yarn start (starts SE2 front-end)
  3. Go to http://localhost:3000/. You should see SE-2 app.

💡 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.

  1. Create a Metadata.sol contract in packages/hardhat/contracts/.
  2. You can interact with the BatchGraduationNFT in the /debug page.

5. Deploy and Interact

  1. 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! 🎉

@edakturk14 edakturk14 added the frontend frontend work label Jul 27, 2024
@edakturk14 edakturk14 changed the title 7. List the members of the batch (read BatchRegistry contract) 8. Get your Batch Graduation NFT! Aug 5, 2024
@edakturk14 edakturk14 added for all all members of the batch need to complete it smart contract smart contract work and removed frontend frontend work labels Aug 5, 2024
@MexicanAce
Copy link
Contributor

@edakturk14 @derrekcoleman The link to Etherscan and ABI Ninja are broken, I believe this is the contract address for the NFT: 0x0969A73CB2ee0e637c050Df7C96022E9C268FD89

@derrekcoleman
Copy link
Collaborator

Good catch, @MexicanAce! I just updated the links 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for all all members of the batch need to complete it smart contract smart contract work
Projects
None yet
Development

No branches or pull requests

3 participants