-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslides.txt
81 lines (61 loc) · 1.12 KB
/
slides.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
intro
@kvbik
jakub vysoky
devcon devops python
github.com/kvbik/web3django
web3py.readthedocs.io/en/stable/examples.html
docs.djangoproject.com/en/5.0/intro/tutorial01/
web1,2,3
by skylar in his keynote
zen of python
`import this`
main point:
pythonic
batteries included
let's take web2 app
web:
frontend
backend
django python web framework
models
templates
views
model Order
description
price
created
user
model Payment
order
currency
amount
account
expiration
is_paid
django admin
=> magical app
ethereum chains
mainnet/testnet
layer 2 (arbitrum, optimism, ..)
other chains (polygon, bnb, ..)
ethereum addresses
we can create many addresses
https://etherscan.io/
ethereum tokens
wei??? just decimal points
1 eth == 10**18 wei
https://eth-converter.com/
ethereum nodes
ideally run your own locally
when lazy, use eg infura
def confirm(self):
w3 = Web3(Web3.HTTPProvider(settings.INFURA_URL))
balance = w3.eth.get_balance(self.address)
if balance >= self.amount:
self.is_paid = True
self.save()
ethereum erc20
...
conversion rate challenge
???
django pony & devcon deva