Skip to content

Commit f50a20e

Browse files
elPiablowolovim
authored andcommitted
Add 2 side questions, add intended final image, delete unnecessary inline quizzes
1 parent 63d7fb1 commit f50a20e

File tree

6 files changed

+62
-55
lines changed

6 files changed

+62
-55
lines changed

pages/lessons/projects/1.mdx

Lines changed: 31 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ smart contract on either Jupiter, or Earth, and although you may be grounded to
1818
the latter, you are going to deploy yours on a **blockchain**. Not a real
1919
blockchain, well not at first. Hang on!
2020

21+
22+
23+
<SideDrawer buttonText="wee Q" title="7i7o Rocks">
24+
<Question question="question-1" />
25+
</SideDrawer>
26+
<br/>
27+
28+
<SideDrawer buttonText="ano'wee Q for the road" title="John n Maeve rock too">
29+
<Question question="question-2" />
30+
</SideDrawer>
31+
<br/>
32+
<br/>
33+
And now let's check if we were right :)
34+
2135
<SideDrawer buttonText="A what chain?!!">
2236
A blockchain has quite a few layers to let function, but it basically gives us a place to do computation, and store information. So in one sense it functions as a database. Think about this. To get access to all of the information on a traditional database you need permission from a higher authority, right? Access to information on a public blockchain is permission**less**. Not only can we read the information on it, but anyone can also write information to it. And that’s where we come in and get this all started with our *smart contract*. And what is also different to a traditional database is that once the information goes onto this blockchain, it stays there forever, and ever, and ever….thanks to cryptography!!
2337

@@ -124,6 +138,18 @@ benefits to this decentralised model as we’ll continue to see.
124138

125139
</SideDrawer>
126140

141+
## What are we going to do?
142+
By the end of this lesson we’ll have learned a lot. A simple breakdown of the steps to get there is:
143+
- Set up our work environment
144+
- Create a Smart Contract
145+
- Learn basic Solidity concepts
146+
- Define variables
147+
- Create a function
148+
- Learn about events on the blockchain
149+
- Deploy our Smart Contract in Remix
150+
- At the end of the project, we’re really going to test your knowledge with a quiz, so take in whatever you can.
151+
- We might even have some questions along the way for fun to expand your already amazing mind!!
152+
127153
## Let’s get this party started!
128154

129155
We’re going to write a smart contract, which is going to be a “Web3
@@ -554,32 +580,6 @@ in future lessons, so no worries!
554580

555581
</SideDrawer>
556582

557-
We should ask the learner to sum up what they have learned. Some checkpoint
558-
questions:
559-
560-
Addresses: Apart from a user wallet, what else uses a blockchain (Ethereum)
561-
address?
562-
563-
Events: How many parameters can we have in an event?
564-
565-
Searching the chain: What can we use to find a past event?
566-
567-
Transactions: Ethereum uses something for transaction fees. What’s it called?
568-
569-
Logs: Where do the values for event parameters get stored?
570-
571-
Versions: What is the use of the **pragma solidity** statement in our smart
572-
contract?
573-
574-
State variables: Do state variables stay permanently on the blockchain?
575-
576-
Visibility: Can a view function modify the state of the blockchain?
577-
578-
Use cases of smart contract: What can we use a smart contract for?
579-
580-
see the Comment in the very last line of this lesson under ‘Now, please go ahead
581-
and hop in the forum/discord to tell us: what is your future in web3?’
582-
583583
## Compile & Deploy
584584

585585
Now that we have written our smart contract in full, we can compile it and
@@ -704,30 +704,13 @@ If you look closely, inside the “logs” part, our smart contract predicted a
704704
What if you try out setting the message to `gm` and look at the logs again. Can
705705
you see the magical spell that is being cast here?
706706

707-
![Wizard Wooshing on Successful Lesson](/assets/lessons/1/img_10.png)
707+
{/* ![Wizard Wooshing on Successful Lesson](/assets/lessons/1/img_10.png) */}
708+
![Genie Girl holds Ethereum Crystal Ball](/assets/lessons/1/img_11.png)
708709

709710
Before you go ahead and tell us: **what your future in web3 is**, have a check
710711
on what you didn’t know a little while ago, and what you know now!
711712

712-
Apart from a user wallet, what else uses a blockchain (Ethereum) address?
713-
714-
How many parameters can we have in an event?
715-
716-
What can we use to find a past event?
717-
718-
Ethereum uses something for transaction fees. What’s it called?
719-
720-
Where do the values for event parameters get stored?
721-
722-
What is the use of the **pragma solidity** statement in our smart contract?
723-
724-
Do state variables stay permanently on the blockchain?
725-
726-
Can a view function modify the state of the blockchain?
727-
728-
What can we use a smart contract for?
729-
730-
<Quiz quiz="quiz-lesson-1a"/>
713+
<Quiz quiz="quiz-1"/>
731714

732-
**Now, go to the community in Discord to share your new Open Sourcerer
733-
powers**......and find the answers too!!!
715+
Now, go to the community in **developerdao.peeranha.io** to share your new Open Sourcerer
716+
powers!

public/assets/lessons/1/img_11.png

1.68 MB
Loading

utils/questions/question-1.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": "True or False: In order to access and information to a public blockchain you need to have permission from the owner",
33
"options": [
44
{
5-
"answer": "Permissioned"
5+
"answer": "True"
66
},
77
{
8-
"answer": "Trustless",
9-
"correct": true
10-
},
11-
{
12-
"answer": "Decentralized",
8+
"answer": "False",
139
"correct": true
1410
}
1511
]

utils/questions/question-2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "Which statement is true?",
3+
"options": [
4+
{
5+
"answer": "It’s important to test your code rigorously because once deployed it resides on the Blockchain forever",
6+
"correct": true
7+
},
8+
{
9+
"answer": "The great thing about the blockchain is if you need to make corrections to buggy code you can just upload fixes which will automatically overwrite previous versions seamlessly"
10+
}
11+
]
12+
}

utils/questions/question-test.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"question": "Which of these properties does Ethereum have?",
3+
"options": [
4+
{
5+
"answer": "Permissioned"
6+
},
7+
{
8+
"answer": "Trustless",
9+
"correct": true
10+
},
11+
{
12+
"answer": "Decentralized",
13+
"correct": true
14+
}
15+
]
16+
}
File renamed without changes.

0 commit comments

Comments
 (0)