Skip to content

Commit d2fe0da

Browse files
committed
Add content to mini-quizzes on NFTs-ID and JSON-IPFS-PINATA
1 parent ffda9e4 commit d2fe0da

File tree

16 files changed

+100
-41
lines changed

16 files changed

+100
-41
lines changed

pages/lessons/projects/2.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { LessonHeader } from '../../../components/mdx/LessonHeader'
2727

2828
Welcome to this lesson on creating a series of NFTs using Solidity smart contracts with a range of developer tools. If you are new to programming, we recommend you first complete our *Getting Started with Smart Contract Development* project, where you can learn the basics of Solidity and the some of the concepts we use in this lesson. We alst have a series of follow-up projects to this one, the next one being *TierNFTs*, but let's not get ahead of ourselves just yet.
2929

30-
We have some checkpoint questions for you throughout the lesson for testing either your previous knowledge, predicting next steps in the lesson, or letting you see for yourself how well you're absorbing the new content. Needless to say, there's a quiz at the end, so make sure you're checking out all the side-drawers for a deeper dive of the new concepts. To complete the lesson, expect somewhere between two and six hours depending on your previous experience and the need to learn new ideas. Let's make developing enjoyable, so take care of your well-being - we have a pomodoro timer ⌛ for you in the menu header to let you ensure you’re taking regular breaks, and please *do* go outside and 'touch some grass'😊. Nature is the source of our well-being.
30+
We have some checkpoint questions for you throughout the lesson for testing either your previous knowledge, predicting next steps in the lesson, or letting you see for yourself how well you're absorbing the new content. Needless to say, there's a quiz at the end, so make sure you're checking out all the side-drawers for a deeper dive of the new concepts. To complete the lesson, expect somewhere between two and six hours depending on your previous experience and the need to learn new ideas. Let's make developing enjoyable, by taking care of our well-being. We have a pomodoro timer ⌛ for you to set in the menu header so you can take regular breaks, and please *do* go outside and 'touch some grass'😊. Nature is the source of much of our well-being.
3131

3232
PART 1 INTRO
3333
## What are we buidling?
@@ -631,7 +631,7 @@ create the NFT tokenURI? There's where we are going to get the pinata link with
631631
the CID to our folder.
632632

633633
And, if we filled our JSON files correctly, each with the corresponding CID of
634-
our media, with should be good to go.
634+
our media, we should be good to go.
635635

636636
Here is a screenshot of how we have set up our files in pinata for this project:
637637

utils/questions/lesson-2/2-tools-environment/Q2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"question": "What is the purpose of the --save-dev flag when installing dependencies with npm? ",
2+
"question": "What is the --save-dev flag for when installing dependencies with npm? ",
33
"options": [
44
{
55
"answer": "It specifies the version of the dependency to install."

utils/questions/lesson-2/2-tools-environment/Q3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"answer": "They provide rigorously audited and safe contracts"
99
},
1010
{
11-
"answer": "They allow for easier collaboration and interoperability"
11+
"answer": "They allow for easier human collaboration and technical interoperability"
1212
},
1313
{
1414
"answer": "All of the above",

utils/questions/lesson-2/2-tools-environment/Q4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"question": "We will learn later, but what do you think the purpose of the .gitignore file created by Hardhat is?",
2+
"question": "We will cover this later, but what do you think the purpose of the .gitignore file created by Hardhat is?",
33
"options": [
44
{
55
"answer": "To hide your project's dependencies."
@@ -8,7 +8,7 @@
88
"answer": "To store your project's source code in a private Github repository."
99
},
1010
{
11-
"answer": "To ignore certain files from being committed to version control",
11+
"answer": "To ensure that certain files not tracked by Git remain untracked",
1212
"correct": true
1313
}
1414
]
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
2-
"question": "",
2+
"question": "What do you think the ```code .``` command in your console is going to do? ",
33
"options": [
44
{
5-
"answer": ""
5+
"answer": "Create an empty file named ProjectNFT.sol. "
66
},
77
{
8-
"answer": "",
8+
"answer": "Open your code editor",
99
"correct": true
10+
},
11+
{
12+
"answer": "Copy the code of your new contract"
13+
},
14+
{
15+
"answer": "Compile your new contract"
1016
}
1117
]
1218
}

utils/questions/lesson-2/3-sol-erc/Q2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"answer": "Tells us we can't mint any more NFTs"
66
},
77
{
8-
"answer": "Stores the number of NFTs that have been minted so far ",
8+
"answer": "Stores the current number of minted NFTs",
99
"correct": true
1010
},
1111
{
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"question": "",
2+
"question": "What is a tokenURI?",
33
"options": [
44
{
5-
"answer": ""
5+
"answer": "A function that creates a unique NFT token ID"
66
},
77
{
8-
"answer": "",
8+
"answer": "A web address that points to an NFT's content and information",
99
"correct": true
10+
},
11+
{
12+
"answer": "A web address that points to the NFT's blockchain."
1013
}
1114
]
1215
}

utils/questions/lesson-2/4-nft-id/Q2.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
2-
"question": "",
2+
"question": "What does the override modifier do?",
33
"options": [
44
{
5-
"answer": ""
5+
"answer": "It indicates that this function creates a different experience"
66
},
77
{
8-
"answer": "",
8+
"answer": "It adds a state variable to the contract"
9+
},
10+
{
11+
"answer": "It lets a variable convert to a more human readable name"
12+
},
13+
{
14+
"answer": "It lets a function replace one inside the inherited contract",
915
"correct": true
1016
}
1117
]

utils/questions/lesson-2/4-nft-id/Q3.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
{
2-
"question": "",
2+
"question": "What is the purpose of the mint function? ",
33
"options": [
44
{
5-
"answer": ""
5+
"answer": "a. To add a new item to our inherited ERC721 contract. "
66
},
77
{
8-
"answer": "",
8+
"answer": "b. To increment the total supply of our collection by 1"
9+
},
10+
{
11+
"answer": "c. To create a new NFT and add it to our ProjectNFT contract"
12+
},
13+
{
14+
"answer": "Both a and b"
15+
},
16+
{
17+
"answer": "Both b and c",
918
"correct": true
1019
}
1120
]
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
2-
"question": "",
2+
"question": "What does the ipfsBaseURI state variable do?",
33
"options": [
44
{
5-
"answer": ""
5+
"answer": "It stores the unique URI of an NFT"
66
},
77
{
8-
"answer": "",
8+
"answer": "It stores the base of the URI for the NFTs",
99
"correct": true
10+
},
11+
{
12+
"answer": "It stores the media for the NFTs"
13+
},
14+
{
15+
"answer": "It stores the total supply of NFTs in the contract"
1016
}
1117
]
1218
}

0 commit comments

Comments
 (0)