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
Copy file name to clipboardExpand all lines: pages/lessons/projects/1.mdx
+31-48Lines changed: 31 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,20 @@ smart contract on either Jupiter, or Earth, and although you may be grounded to
18
18
the latter, you are going to deploy yours on a **blockchain**. Not a real
19
19
blockchain, well not at first. Hang on!
20
20
21
+
22
+
23
+
<SideDrawerbuttonText="wee Q"title="7i7o Rocks">
24
+
<Questionquestion="question-1" />
25
+
</SideDrawer>
26
+
<br/>
27
+
28
+
<SideDrawerbuttonText="ano'wee Q for the road"title="John n Maeve rock too">
29
+
<Questionquestion="question-2" />
30
+
</SideDrawer>
31
+
<br/>
32
+
<br/>
33
+
And now let's check if we were right :)
34
+
21
35
<SideDrawerbuttonText="A what chain?!!">
22
36
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!!
23
37
@@ -124,6 +138,18 @@ benefits to this decentralised model as we’ll continue to see.
124
138
125
139
</SideDrawer>
126
140
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
+
127
153
## Let’s get this party started!
128
154
129
155
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!
554
580
555
581
</SideDrawer>
556
582
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
-
583
583
## Compile & Deploy
584
584
585
585
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
704
704
What if you try out setting the message to `gm` and look at the logs again. Can
705
705
you see the magical spell that is being cast here?
706
706
707
-

707
+
{/*  */}
"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"
0 commit comments