Skip to content

Commit 63d00aa

Browse files
committed
wip: scaffolding for quizzes
1 parent b94e088 commit 63d00aa

File tree

17 files changed

+428
-2
lines changed

17 files changed

+428
-2
lines changed

pages/lessons/fundamentals/wolovim-part-1.mdx

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ icons:
1515

1616
So, you’ve heard about this [Ethereum](https://ethereum.org/) thing and are ready to venture down the rabbit hole? This post will quickly cover some blockchain basics, then get you interacting with a simulated Ethereum node – reading block data, checking account balances, and sending transactions. Along the way, we’ll highlight the differences between traditional ways of building apps and this new decentralized paradigm.
1717

18+
<SideDrawer buttonText="Warm-up Questions" title="TODO">
19+
<Question question="eth-intro-1/1-intro/Q1" />
20+
<Question question="eth-intro-1/1-intro/Q2" />
21+
<Question question="eth-intro-1/1-intro/Q3" />
22+
<Question question="eth-intro-1/1-intro/Q4" />
23+
<Question question="eth-intro-1/1-intro/Q5" />
24+
</SideDrawer>
25+
<br/>
26+
1827
### **(Soft) prerequisites**
1928

2029
This post aspires to be accessible to a wide range of developers. Python tools will be involved, but they are just a vehicle for the ideas – no problem if you are not a Python developer. I will, however, be making just a few assumptions about what you already know, so we can quickly move on the Ethereum-specific bits.
@@ -30,7 +39,7 @@ Again, if any of these are untrue, or you don’t plan to reproduce the code in
3039

3140
### **Blockchains, briefly**
3241

33-
There are many ways to describe Ethereum, but at its heart is a blockchain. Blockchains are made up of a series of blocks, so let’s start there. In the simplest terms, each block on the Ethereum blockchain is just some metadata and a list of transactions. In JSON format, that looks something like this:
42+
There are many ways to describe Ethereum, but at its heart is a blockchain. Blockchains are made up of a series of blocks, so let’s start there. In the simplest terms, each block on the Ethereum blockchain is some metadata and a list of transactions. In JSON format, that looks something like this:
3443

3544
```python
3645
{
@@ -83,6 +92,15 @@ w3.eth.get_block('latest')
8392
w3.eth.send_transaction({'from': ..., 'to': ..., 'value': ...})
8493
```
8594

95+
<SideDrawer buttonText="Check-in 1" title="TODO">
96+
<Question question="eth-intro-1/1-intro/Q1" />
97+
<Question question="eth-intro-1/1-intro/Q2" />
98+
<Question question="eth-intro-1/1-intro/Q3" />
99+
<Question question="eth-intro-1/1-intro/Q4" />
100+
<Question question="eth-intro-1/1-intro/Q5" />
101+
</SideDrawer>
102+
<br/>
103+
86104
### **Installation**
87105

88106
In this walkthrough, we’ll just be working within a Python interpreter. We won't be creating any directories, files, classes or functions.
@@ -125,7 +143,7 @@ This will print out some information about the versions of Python and IPython yo
125143
In [1]:
126144
```
127145

128-
You’re looking at an interactive Python shell now. Essentially, its a sandbox to play in. If you’ve made it this far, its time to import Web.py:
146+
You’re looking at an interactive Python shell now. Essentially, its a sandbox to play in. If you’ve made it this far, its time to import web3.py:
129147

130148
```python
131149
In [1]: from web3 import Web3
@@ -180,6 +198,17 @@ That simulated node is called [**eth-tester**](https://github.com/ethereum/eth-
180198
In [4]: w3 = Web3(Web3.EthereumTesterProvider())
181199
```
182200

201+
Before we move on, does all that make sense? Test yourself:
202+
203+
<SideDrawer buttonText="Check-in 2" title="TODO">
204+
<Question question="eth-intro-1/1-intro/Q1" />
205+
<Question question="eth-intro-1/1-intro/Q2" />
206+
<Question question="eth-intro-1/1-intro/Q3" />
207+
<Question question="eth-intro-1/1-intro/Q4" />
208+
<Question question="eth-intro-1/1-intro/Q5" />
209+
</SideDrawer>
210+
<br/>
211+
183212
Now you’re ready to surf the chain! That’s not a thing people say. I just made that up. Let’s take a quick tour.
184213

185214
### **The quick tour**
@@ -294,6 +323,8 @@ The latter looks good! The balance went from 1,000,000 to 1,000,003 ether. But w
294323
**Note**: On the public network, transaction fees are variable based on network demand and how quickly you'd like a transaction to be processed.
295324
</Callout>
296325

326+
<Quiz quiz="eth-intro-1-quiz" />
327+
297328
### **And breathe**
298329

299330
We’ve been at this for a while, so this seems as good a place as any to take a break. The rabbit hole continues on, and we’ll continue exploring in part two of this series. Some concepts to come: a deeper look into accounts, smart contracts, tooling and how to stake out on your own as an Ethereum developer. Have follow-up questions? Requests for new content? Let me know on [Twitter](https://twitter.com/wolovim).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"question": "TODO",
3+
"options": [
4+
{
5+
"answer": "True"
6+
},
7+
{
8+
"answer": "False",
9+
"correct": true
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)