Skip to content

Commit 8e8f198

Browse files
committed
Add two of the four mini-quizzes
1 parent 06a7966 commit 8e8f198

File tree

11 files changed

+71
-68
lines changed

11 files changed

+71
-68
lines changed

pages/lessons/projects/3.mdx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ Let's pause here for a few questions to give you a taste of what's to come, and
4848
<Question question="lesson-3/1-intro/Q5" />
4949
</SideDrawer>
5050
<br/>
51-
How did that go? No pressure if there were some gaps. We're here to bridge them together!
52-
53-
Did you set the pomodoro yet? ⌛😊
51+
How did that go? No pressure if there were some gaps. We're here to bridge them together! ⌛ And have you set your pomodoro yet? 😊 🌱
5452

5553
PART
5654

@@ -360,18 +358,16 @@ contract TierNFT is ERC721 {
360358
</details>
361359
<br/>
362360
363-
<SideDrawer buttonText="Checkpoint Questions" title="Creating a Robust Development Environment">
361+
<SideDrawer buttonText="Checkpoint Questions" title="Minting Tiers with Solidity">
364362
<Question question="lesson-3/2-set-up-mint-tiers/Q1" />
365363
<Question question="lesson-3/2-set-up-mint-tiers/Q2" />
366364
<Question question="lesson-3/2-set-up-mint-tiers/Q3" />
367365
<Question question="lesson-3/2-set-up-mint-tiers/Q4" />
368366
<Question question="lesson-3/2-set-up-mint-tiers/Q5" />
369-
</SideDrawer>
370-
<br/>
371-
372-
Pomodoro ⌛😊
367+
</SideDrawer>
368+
⌛ Pomodoro? 😊 🌱
373369
374-
PART 3
370+
<br/>
375371
376372
### Create tokenURI function
377373
@@ -821,16 +817,15 @@ contract TierNFT is ERC721, Ownable {
821817
</details>
822818
<br/>
823819

824-
<SideDrawer buttonText="Checkpoint Questions" title="Creating a Robust Development Environment">
820+
<SideDrawer buttonText="Checkpoint Questions" title="Giving Colour and Access to our Tokens">
825821
<Question question="lesson-3/3-uri-svg-withdraw/Q1" />
826822
<Question question="lesson-3/3-uri-svg-withdraw/Q2" />
827823
<Question question="lesson-3/3-uri-svg-withdraw/Q3" />
828824
<Question question="lesson-3/3-uri-svg-withdraw/Q4" />
829825
<Question question="lesson-3/3-uri-svg-withdraw/Q5" />
830826
</SideDrawer>
827+
⌛ Pomodoro? 😊 🌱
831828
<br/>
832-
⌛ Pomodoro 😊
833-
PART 4
834829

835830
### Time for our Deploy Script
836831

@@ -1041,17 +1036,16 @@ main().catch((error) => {
10411036
- `let totalSupply = await contract.totalSupply()` - is calling the
10421037
`totalSupply()` function to check if the 3 NFTs minted correctly.
10431038
<br/>
1044-
<SideDrawer buttonText="Checkpoint Questions" title="Creating a Robust Development Environment">
1039+
<SideDrawer buttonText="Checkpoint Questions" title="Getting Our Tokens Out to the World">
10451040
<Question question="lesson-3/4-deploy-scripts/Q1" />
10461041
<Question question="lesson-3/4-deploy-scripts/Q2" />
10471042
<Question question="lesson-3/4-deploy-scripts/Q3" />
10481043
<Question question="lesson-3/4-deploy-scripts/Q4" />
10491044
<Question question="lesson-3/4-deploy-scripts/Q5" />
10501045
</SideDrawer>
1046+
⌛ Pomodoro? 😊 🌱
10511047
<br/>
10521048

1053-
PART 5
1054-
⌛ Pomodoro 😊
10551049
### Let’s mint!
10561050

10571051
To mint our tier NFTs we will run the following command.

utils/questions/lesson-3/1-intro/Q1.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which steps are needed to code a basic smart contract for deployment?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "Create a smart contract using a code editor."
66
},
77
{
8-
"answer": "Trustless",
9-
"correct": true
8+
"answer": "Create a project template."
9+
},
10+
{
11+
"answer": "Install dependencies."
1012
},
1113
{
12-
"answer": "Decentralized",
14+
"answer": "All of the above.",
1315
"correct": true
1416
}
1517
]
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "What does the term 'gas' refer to in the context of Ethereum?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "Digital currency used for transactions."
66
},
77
{
8-
"answer": "Trustless",
8+
"answer": "Unit of measure for computational effort.",
99
"correct": true
1010
},
1111
{
12-
"answer": "Decentralized",
13-
"correct": true
12+
"answer": "A poisonous fossil fuel."
13+
},
14+
{
15+
"answer": "Encryption algorithm used in smart contracts."
1416
}
1517
]
1618
}

utils/questions/lesson-3/1-intro/Q3.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which of the following describes a URI?",
33
"options": [
44
{
5-
"answer": "Permissioned"
6-
},
7-
{
8-
"answer": "Trustless",
5+
"answer": "A Uniform Resource Identifier.",
96
"correct": true
107
},
118
{
12-
"answer": "Decentralized",
9+
"answer": "A web address that points to content and information.",
1310
"correct": true
1411
}
1512
]
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which of the following go into hardhat.config.js in an NFT project?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "NFT_NAME."
66
},
77
{
8-
"answer": "Trustless",
8+
"answer": "RPC_API_KEY.",
99
"correct": true
1010
},
1111
{
12-
"answer": "Decentralized",
13-
"correct": true
12+
"answer": "tokenURI."
13+
},
14+
{
15+
"answer": "All of the above."
1416
}
1517
]
1618
}

utils/questions/lesson-3/1-intro/Q5.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which answer is truthier?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "We need a .json file to store our NFT data."
66
},
77
{
8-
"answer": "Trustless",
9-
"correct": true
10-
},
11-
{
12-
"answer": "Decentralized",
8+
"answer": "We can store NFT data in a smart contract.",
139
"correct": true
1410
}
1511
]
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which contract does the TierNFT contract inherit from?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "ERC20"
66
},
77
{
8-
"answer": "Trustless",
8+
"answer": "ERC721",
99
"correct": true
1010
},
1111
{
12-
"answer": "Decentralized",
13-
"correct": true
12+
"answer": "SafeMath"
13+
},
14+
{
15+
"answer": "OpenZeppelin"
1416
}
1517
]
1618
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "What is the totalSupply variable for in the contract?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "Storing the value of the current tier."
66
},
77
{
8-
"answer": "Trustless",
9-
"correct": true
8+
"answer": "It determines the price of each NFT"
109
},
1110
{
12-
"answer": "Decentralized",
11+
"answer": "Tracking the total number of NFTs minted",
1312
"correct": true
13+
},
14+
{
15+
"answer": "To calculate the total value of all NFTs"
1416
}
1517
]
1618
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "What does the tokenTier mapping do?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "Store the total supply of each tier."
66
},
77
{
8-
"answer": "Trustless",
8+
"answer": " It maps the token ID to its corresponding tier.",
99
"correct": true
1010
},
1111
{
12-
"answer": "Decentralized",
13-
"correct": true
12+
"answer": "It maps tierId to the public."
13+
},
14+
{
15+
"answer": "It maps tokenTier to the totalSupply."
1416
}
1517
]
1618
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"question": "Which of these properties does Ethereum have?",
2+
"question": "Which tier does an address belong to if they send a value of 0.03 ether to the mint function?",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "Tier 0 (Basic)."
66
},
77
{
8-
"answer": "Trustless",
8+
"answer": " Tier 1 (Medium).",
99
"correct": true
1010
},
1111
{
12-
"answer": "Decentralized",
13-
"correct": true
12+
"answer": "Tier 2 (Premium)."
13+
},
14+
{
15+
"answer": "There is no possible token for 0.03 ether."
1416
}
1517
]
1618
}

0 commit comments

Comments
 (0)