Vyper and Python Smart Contracts on Blockchain – Full Course for Beginners [English (Auto-generated)] [DownloadYoutubeSubtitles.com]
Vyper and Python Smart Contracts on Blockchain – Full Course for Beginners [English (Auto-generated)] [DownloadYoutubeSubtitles.com]
of conceptual information
githubschool
sync
computation to be decentralized
chance to win $1
this
hyperinflation in Zimbabwe
about
it last year 2022 there were a lot of
actually contributing
promises
connected
0o
we have
colins again
mine
blockchain
Pier C
uh four uh
match tob's
usage is
Base
programmatically algorithmically
of
disproportionately advantageous
to interact with a
knowledge or ZK rollups
it is an optimistic rollup or a ZK
right
how come
explain to
agreements
into the
library
first
others
create a
terminal button as
pragma version
going to be using
which means
0 AKA
0.4.1
learned
Viper
so we don't really
how to fix
unsigned integer
okay
we're looking
at external def
is clicking retrieve a
execution cost
extra extra
extra
the cost
boot
this
and we get a
parameters we be we'll do
Type U and
a list of un
public person
going to be a list of
person
we'll say
it'll be seven
return
then come
deploy
called name to
a type hashmap of
number
name equals
person
immediately get it
say cyphon
looking
Chan ID is 111
one one 5
solidity
try deploying
of the code
you soon
solidity file
also do
spdx
in a
have a minimum
at payable this is
8 9 10 1 2 3 4 5 6 7
$3,241 is 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5
2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 10 with
to like do 1 2 3 4 5 6 7 8 9 10 1 2
to make more
the remix
remix VM with
uint
Oracle responses
directly on chain
ether
different
this up in
Network
you
is actually 1 2 3 4 5 6 7 8 it's
actually
but
nothing inside of them inside the body
we can say
3,21 right so
be a
this
a unit 256
is fine and
five 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7
1 2 3 4 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6
this as with a
has 18 decimals
so we would do 5 /
the balance
external
external at view def get e to USD rate
returns a and
sell self
that internal
above
3 4 uh 1 2 3 4 5 6 7 8 9 10 1 2 3 4 five
around
and
it was
998 now I know this hasn't updated yet
this is
we'll call it
self. damic
boom
essentially
equals
for for
the
contract
the
U and 256 I in
range self.
balance to
do
is compiled
two
Constructor
going to say at
pragma version
then we would
we say
now just
constants and
this
transaction great we now have a contract
262,525
be self. minimum
do
to
function
have an
them as a
knowledge
next one
getting going
to
collab
Snippets of
another
next
could say my
update it to
equals
notations to do so
2 3 or 3
could say
do
2 print my
5 is 10 subtract 5 - 5 is 0 multiply
3.5
integer division
number
equals
do things like
is
math we could
function
def add
bottom 10 + 20 is 30
is plus Str
we'll
number in rank
list equals 0 1
print my number
whate
Google collab
see you
for
always hidden
get it
up
up
and if we click
different versions of
new
show python
do with
which paste python 3.11 which will show
move forward
selecting
new folder
being
add
tone than
are difficult
environment we could
do
directly in Titanoboa
do print boa do
3.11 basic
python
is
this one's
python
could be 3 1 2 3 4 5 6 7 8 9 10 11
I'll hit
file
titano package to
okay UV allows us to
can type UV
3.11
python
python
version in here
not
changed to
just do
setup
other window
it
keep
deactivate activate
uninstall
run
source.
R comma
as
favorites
file
favorites. VI
it as a variable called
let's keep
Ritz
contract
equals
w3.css
compilation details
web
3 web 3.
HTTP
paste that
text from
so I can do UV
heyo
well is it
this stuff in
constructor. build
it's
transaction
of
more
doe.
our
it's signed
do that as well
my quick rant
here so we still haven't even learned
say uh we would do
equals W3
reed.
we can
Key private
store path
as
fp.jpg
say print
decrypted
come
finishing this
deploy
let's get
directory boa
PM
deploy
favorites
contract is do
starting
actually let's do
starting
contract.
change it to
simulate
for
this is
to pull in all of
ourv environment
import
is the Anvil
we wanted
favorites contract.
we'll do
ending
favorites contract.
ending
number to
Network
Network
favoritz
favorite
favorite deployer
fave
favorit
import
we do favorite
contract.
retrieve
do
anvil
let's pop open a new terminal and let's
blockchain
us nice
you in a little
bit all right welcome back did you
welcome back
something like
tests in
ahead and
we'll do
mkd Mox
folder
so we'll say
def moccasin
SRC import
MOX
do favorites.
favorites
do uh
say
do MOX wallet
so
password.
unsafe
Echo
that in favorites.
line then uh
F ending number
script.
test we
updates to
two pass as
going to refactor
UV
pest.
fixture def
favoritz
that to
excited
to default key
account name
type
active
dot moccasin
block
good
test
I'm on a Apple
running
WSL windows
the musl or
if we run do ZK
local.
minute
this there's a
network
deploy
D- Network era VM and I hit
this no EIP
let's go
bridge
deploy D- network
transactions being
it's
contract
you
you soon
so let's jump
called
address so and
deploy
deore anit and it looks like my co-pilot
equals
original
do
do a little interface
new number U
interface
iore
favorites.
from
fav
contract
going to do a little
Factory takes in a f
oritz contract of type Viper contract
comma
favorites
we can say
contract equals
favorites contract.
have
well we called
from Factory
going to return a un
static
call of
brackets do
favoritz do
def store
basics of interfaces
do the
compiles
interface called
is my
if we go to interfaces in here if
three
version
do get price
so we'll do from
do a little mock
so you see
MOX
layout
something
contracts ourselves
we're going to deploy our own fake dummy
run UV add
from moccasin
what
here price
Mox
price feed
equals manifest named and what do we
no deployer
what if we do now --
password in here
correct address
for
verification
buy me a coffee
fuzz testing as
import deploy
starting values of
return Active
both passing
again
index0 funders at
do assert
all we'll
doet
balance balance of
uh send
here where is 64 so
report again
profile
indeed have an
fund and
the boa.com
name equals
do
HTTP 127.0.0.1
enter the
buy me a
get Active
network we'll do
active Active
network. manifest
our database
enter my password
I'll go
to the
withdrawing from
by me a
incredibly
everything passes on ZK
that
with this
GitHub do all of
very
section html/javascript
this section
eips
return my
I'll do MOX
working with
folder
ownable as Al
have to do
initializes e
constant
we have
try it
renounce
go to the
we'll do like
we'll do
to the
from
it implements
say initial
token. deploy
Line Print F
deployed
total
solidity
watched
excellent
if you want
in our code
this is chain
as indestructible or unbreakable or
was solveable
fuzz
test.
test.
import from
fixture like
fuzzer
from
fuzz solvable
solvable self. contract equals stateful
so we'll say
number called
hypothesis
going to call
inputs
good
your attention to
industry
hiring managers are basically just
here already
industry so
when you're
to get any
mock
going to be on
in here at like
tokens
import ERC
then
initializes ERC
we'll
going to be a
constant
sure
as con
do
the erc721
nfcu
erc721
deploy basic
to say
do
token metadata
could print
print token
token
URI token
nfts at
equals
URL chain ID is 31
wallet import
is
enter do
that in
stuff
HTTP
www.w3.org
these need to be in
plus
XML base
happy
base
welcome back
do pragma version
ownable as Al we'll do
def init
base
mood nft so M
so deploy mood
SVG
slash images
decode it to
happy SVG U
erc721
1024 equals
pass
SRC mood
be a constant U into
going to have
constant
string of
equals
U constant
stringified
and
combine
add external
930 1 2 3 4 5 6 7 8 940 1 2 3 4 5 6 7 8
9950 1 2 3 4 5 6 7 8 9 60 1 2 3 4 it's
number
that oops
aior dcode
internal at pure
defcor multi
equals comma
return aior
decoding it at
string 50
string string
coffee thing
raw
we have
redeploy oh what do I do at
an amount of type un
at
at
method uh or selector
call
version
external
will be false
response will be a
bytes
encode the
equal method ID
transfer address un
exciting now
an amount we'll do 31
right now
generated
like from
function signatures
verify transactions in
address address
pragma solidity 0.
external function
into
assert erc721
mood.
mint message.
t721 counter
NOP mint
looks
very
I see 42 4284
you
plus
address
saying up you're at
56% and
some
let's get
able to
started here
going to
going to create a
also say
moccasin
slash
setup
contracts ABI
do a little UV ad
give
give
networks.
efor do contracts
boa
network.
to
can do networks.
ABI equals
of we in here say--
saave uh D-
equals
of bo. env.
these lines
boa.edd c.
our address
usdc
MOX
moccasin
usdc
ahead
notebook.
jupter
balance of
Smart contracts
you can see a list of of a lot of the
we scroll down to uh
pool address
we'll do uh
well
to grab
allowance of
depositing
we'll do full
contract.
to do so but nice
address
script that we
usdc
in a tokens a tokens a
print aore
looking for
30% usdc
of bo.
we'll do this 1 2 3 4 5 6 7 8 9 10 11 12
13 14 15 16 17
at the
it was actually
0. or
decimals
if it has
around 97%
we're going to do a
then the a
we. balance of B
look up
should have no
swapping and
this in the
usdc data
equals
going to be
1,35
sell
equals
trades of
equals address
actually that's
do exact input
this
hard-coded 3,000 which stands for the 3%
going to
address
thing by time 0
deposit it back
balance of boa
actually
allocation
current
sense to
many
go to
run
deposit
allocation is
93% and
go to the
decentralized codebases
this
fluctuates
because money is
inaccurate picture
permissionless overcollateralization to
referring to is endogeneously
can
that's an exist
buy a
is always worth
we are
decentralized
do
pragma version
import
initializes ow
ATS
uncore.
will be a
EIP
constant
DSC engine. VI
or Al
header external
list of token
mutable of type
iore decentralized
decentralized
stablecoin
from
then
let's do from
token
a public
say
addresses at
okay
deposit collateral
underscore deposit
DSC
we'll say
collateral address
plus equals
amount
lateral for all like so we should emit
going to do v v header
event
collateral
will be a indexed
indexed un
we need to do from
could
say success
ic20 token
collateral
address.
it call
at
internal
external
much
at internal called
return a u
aggregator V3 interface .
import
aggregator V3
variable called
of Type U into
equals self
doore get
this is a un
be return a un to
256 and what we'll say is if total DSC
say
paste it to make
liquidation
double
Health
Factor
broken
Factor
for us I'm going to go to the top we're
to
in
decentralized
function
external
external
be a un
little self.
uncore
will be a
self.
deposited of from
a little
address.
a little at external at
external
token
doore deposit
external
redeem or
to burn some
burn
amount you
do
self.
the
our
covered type un
to un
times some
this is essentially it
do
deploy
import
moccasin booat
everything
and we're going to grab some contract
copy these
Agra G
deploy like
token. deploy
manifest
named
uh what do we call
finally do
SRC import
address comma
DSC
want to do DSC do
transfer
contract
minor so we go here
fixure scope
have to
do
active
wrapped Bitcoin
we're going to same we're going to do
manifest named
create a test
reverts if token
lengths are different like what if we
me from
exception
just
ethusd
different error
one bad
reverts if
little beheader
deposit
need
boa boa
dsce comma
collateral
deploy DSC
everything passes
hypothesis
do
init
self
all
lies
wrapped
for
for
from eth
thanks
import
buzzer equals
doing this at
say def
Supply like
the amount of we
equals St do
test.
strategies
it's zero
self. DS c.
deposit
collateral
U into
header
need to have
redeem st.
seed
max
have
function at
given
hypothesis import
into an error
ings integers
tokens still
it oh uh well failed
Trace
here external
passes
def update
times the
example
going to be
0.0 or
blockchain is a permissionless
adversarial environment and your
autonomous
decentralized algorithmically
algorithmically controlled stable coin
exogenously collateralized or
check.
our
with a mock
version
smart contract
this uh immutables
public immutable
for
going to be like 20
do make
basically
combination
in hash three
or kak
erc's import
just do assert
proposals were
now step by
ox19
the private
this is R lowercase R
transaction type 1
as
to help scale a
be at least
self.org
ourself however
stuff
domain
that
right
V4 with kak
readable
32 equals kachak
airdrop
invalid
to be an address
airdrop
can actually
deploy the
fixture def
test.
snck
token. Merkel
do what do we call
it airdrop
equals
in here so if I look up
get the
underscore count
address amount un
self.org
this is
import to bytes
that worked
default
welcome
these skills in
issues
single group or
entity then we have a problem the two
call function
the erc1
for in blockchain so
import ERC
simple
we'll say
decremented it to
logic it is now
function selector
transfer uh address un
and
greatest
time