Learn how Logan Paul's alleged scam, CryptoZoo, works under the hood on the Ethereum blockchain. Let's break down the Solidity smart contracts, fungible tokens, NFTs, IPFS, and other import web3 technology related to this project. 

#tech #web3 #thecodereport 

💬 Chat with Me on Discord

https://discord.gg/fireship

🔗 Resources

CoffeeZillia Investigation https://youtu.be/386p68_lDHA
CryptoZoo dApp https://market.cryptozoo.co
Solidity in 100 Seconds https://youtu.be/kdvVwGrV7ec
Full Web3 Tutorial https://youtu.be/meTpMP0J5E8

🔥 Get More Content - Upgrade to PRO

Upgrade at https://fireship.io/pro
Use code YT25 for 25% off PRO access 

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- How do smart contracts on Ethereum work?
- What is the cryptozoo scam?
- How does cryptozoo work?
- How to build blockchain apps
- How to create your own NFT from scratch
- Basics of blockchain development
2024-02-04T05:15:04.028Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
31681f53-f862-44bf-a048-22efa60e2a48
9334dbe19dc705b6f970d76c4e40cba7cae605b2fc862fa90181ac2aa900e623
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
It is January 6, 2023, and you're watching the Code Report.
2022 was a rough year for Web 3, and 2023 is already off to to a rocky start.
Like most of you out there, I became hella pressed after seeing my TurboChad role model, Logan Paul, be accused of scamming his audience with his CryptoZoo NFT project.
If you're not already familiar, Coffeezilla did a 3 part series that presented a ton of evidence about how the CryptoZoo team made 1,000,000 of dollars magically disappear.
In all fairness, Somebody could have possibly seen this coming.
To any sane person, digital eggs that hatch into JPEGs of puggerflies and pandorillas seems like a perfectly sound investment.
Shut up and Take my money.
And to his credit, Logan Paul never actually sold his tokens or made any money from this project, although the shady cryptobros he hired did.
It's a crazy story.
But in this video, I want to explain how it all works from a software engineering perspective by reverse engineering it so that Monday, you too can mint your own shitcoin and sell worthless JPEGs to differently abled kids on the blockchain, and you might be surprised at how easy it actually is.
And there's all kinds of cool stuff you can do with this tech beyond just NFT scams.
So everything on the blockchain is public by design, and all the code for projects like CryptoZoo or compiled as smart contracts.
And that means we can easily access its source code from websites like bscscan.
This project is built on top of the Ethereum blockchain and uses the Solidity programming language, which is an object oriented language like c plus plus designed for writing smart contracts.
If we inspect this code, you'll notice the first interface that it implements is ERC 20, which is basically just your own cryptocurrency built on top of Ethereum.
In this case, it's the zoo token.
Now the other side of the equation is an ERC 721 contract, which generates a nonfungible token to represent the various images in CryptoZoo, which you can think of as digital Pokemon cards, but more interactive thanks to the code in this contract.
Like, you can hatch an egg to turn into a base animal.
Then with a technique known as copulation, you can combine 2 animals into a freakish hybrid.
Bruh.
Now depending chain on how rare the offspring is.
It will yield the zoo token to your wallet on a daily basis, and the contract also forms an auction house where these tokens be traded.
Now this code was generated with a tool called OpenZeppelin, which provides industry standard templates for these contracts.
In fact, they have a wizard where you can generate almost everything you need without ever having to write a single line of code.
Another interesting thing to point out is that the actual images for the NFTs are not stored on the blockchain.
Instead, they live in centralized file system called IPFS or interplanetary file system, which is connected back to the NFT via its ID.
You.
Now that you know how to write a smart contract, you might be wondering what you should do with it.
The next step is to compile it and deploy it to the blockchain.
There are many tools that can help you that like hard hat and truffle for JavaScript development, or there's the remix IDE that can take care of it entirely from the browser.
Now the final step is the front end.
We'll need a site where our victim valued community members can purchase these NFTs and breed them into these horrible monstrosities.
Like most web 3 apps, it's built with React JS, to us.
But the secret sauce is a library called ethers.
Js, which allows you to connect to a deployed smart contract and connect to a user's wallet with browser plugins like Metamask, which itself provides this Ethereum object on the window facilitating secure transactions in your app, for dApp or dApp if you prefer.
And that's how CryptoZoo works in a nutshell.
When it comes to the scam, it really has nothing to do with the underlying technology.
The Problem is that I trusted Logan Paul to take my hard earned money to the moon without any kind of insurance or protection.
And now I have to have a very difficult conversation to my wife about why our kids can't go to college.
This has been the Code Report.
Thanks for watching, and I will see you in the next one.

Speaker 0: It is January 6, 2023, and you're watching the Code Report. 2022 was a rough year for Web 3, and 2023 is already off to to a rocky start. Like most of you out there, I became hella pressed after seeing my TurboChad role model, Logan Paul, be accused of scamming his audience with his CryptoZoo NFT project. If you're not already familiar, Coffeezilla did a 3 part series that presented a ton of evidence about how the CryptoZoo team made 1,000,000 of dollars magically disappear. In all fairness, Somebody could have possibly seen this coming.

To any sane person, digital eggs that hatch into JPEGs of puggerflies and pandorillas seems like a perfectly sound investment. Shut up and Take my money. And to his credit, Logan Paul never actually sold his tokens or made any money from this project, although the shady cryptobros he hired did. It's a crazy story. But in this video, I want to explain how it all works from a software engineering perspective by reverse engineering it so that Monday, you too can mint your own shitcoin and sell worthless JPEGs to differently abled kids on the blockchain, and you might be surprised at how easy it actually is.

And there's all kinds of cool stuff you can do with this tech beyond just NFT scams. So everything on the blockchain is public by design, and all the code for projects like CryptoZoo or compiled as smart contracts. And that means we can easily access its source code from websites like bscscan. This project is built on top of the Ethereum blockchain and uses the Solidity programming language, which is an object oriented language like c plus plus designed for writing smart contracts. If we inspect this code, you'll notice the first interface that it implements is ERC 20, which is basically just your own cryptocurrency built on top of Ethereum.

In this case, it's the zoo token. Now the other side of the equation is an ERC 721 contract, which generates a nonfungible token to represent the various images in CryptoZoo, which you can think of as digital Pokemon cards, but more interactive thanks to the code in this contract. Like, you can hatch an egg to turn into a base animal. Then with a technique known as copulation, you can combine 2 animals into a freakish hybrid. Bruh.

Now depending chain on how rare the offspring is. It will yield the zoo token to your wallet on a daily basis, and the contract also forms an auction house where these tokens be traded. Now this code was generated with a tool called OpenZeppelin, which provides industry standard templates for these contracts. In fact, they have a wizard where you can generate almost everything you need without ever having to write a single line of code. Another interesting thing to point out is that the actual images for the NFTs are not stored on the blockchain.

Instead, they live in centralized file system called IPFS or interplanetary file system, which is connected back to the NFT via its ID. You. Now that you know how to write a smart contract, you might be wondering what you should do with it. The next step is to compile it and deploy it to the blockchain. There are many tools that can help you that like hard hat and truffle for JavaScript development, or there's the remix IDE that can take care of it entirely from the browser.

Now the final step is the front end. We'll need a site where our victim valued community members can purchase these NFTs and breed them into these horrible monstrosities. Like most web 3 apps, it's built with React JS, to us. But the secret sauce is a library called ethers. Js, which allows you to connect to a deployed smart contract and connect to a user's wallet with browser plugins like Metamask, which itself provides this Ethereum object on the window facilitating secure transactions in your app, for dApp or dApp if you prefer.

And that's how CryptoZoo works in a nutshell. When it comes to the scam, it really has nothing to do with the underlying technology. The Problem is that I trusted Logan Paul to take my hard earned money to the moon without any kind of insurance or protection. And now I have to have a very difficult conversation to my wife about why our kids can't go to college. This has been the Code Report.

Thanks for watching, and I will see you in the next one.
It is January 6, 2023, and you're watching the Code Report. 2022 was a rough year for Web 3, and 2023 is already off to to a rocky start. Like most of you out there, I became hella pressed after seeing my TurboChad role model, Logan Paul, be accused of scamming his audience with his CryptoZoo NFT project.
If you're not already familiar, Coffeezilla did a 3 part series that presented a ton of evidence about how the CryptoZoo team made 1,000,000 of dollars magically disappear. In all fairness, Somebody could have possibly seen this coming. To any sane person, digital eggs that hatch into JPEGs of puggerflies and pandorillas seems like a perfectly sound investment. Shut up and Take my money. And to his credit, Logan Paul never actually sold his tokens or made any money from this project, although the shady cryptobros he hired did. It's a crazy story. But in this video, I want to explain how it all works from a software engineering perspective by reverse engineering it so that Monday, you too can mint your own shitcoin and sell worthless JPEGs to differently abled kids on the blockchain, and you might be surprised at how easy it actually is. And there's all kinds of cool stuff you can do with this tech beyond just NFT scams. So everything on the blockchain is public by design, and all the code for projects like CryptoZoo or compiled as smart contracts. And that means we can easily access its source code from websites like bscscan. This project is built on top of the Ethereum blockchain and uses the Solidity programming language, which is an object oriented language like c plus plus designed for writing smart contracts. If we inspect this code, you'll notice the first interface that it implements is ERC 20, which is basically just your own cryptocurrency built on top of Ethereum. In this case, it's the zoo token. Now the other side of the equation is an ERC 721 contract, which generates a nonfungible token to represent the various images in CryptoZoo, which you can think of as digital Pokemon cards, but more interactive thanks to the code in this contract. Like, you can hatch an egg to turn into a base animal. Then with a technique known as copulation, you can combine 2 animals into a freakish hybrid. Bruh. Now depending chain on how rare the offspring is. It will yield the zoo token to your wallet on a daily basis, and the contract also forms an auction house where these tokens be traded. Now this code was generated with a tool called OpenZeppelin, which provides industry standard templates for these contracts.
cryptocurrency
animals
toys
trade
computer science
In fact, they have a wizard where you can generate almost everything you need without ever having to write a single line of code.
Another interesting thing to point out is that the actual images for the NFTs are not stored on the blockchain. Instead, they live in centralized file system called IPFS or interplanetary file system, which is connected back to the NFT via its ID. You. Now that you know how to write a smart contract, you might be wondering what you should do with it.
cryptocurrency
The next step is to compile it and deploy it to the blockchain.
There are many tools that can help you that like hard hat and truffle for JavaScript development, or there's the remix IDE that can take care of it entirely from the browser. Now the final step is the front end. We'll need a site where our victim valued community members can purchase these NFTs and breed them into these horrible monstrosities. Like most web 3 apps, it's built with React JS, to us. But the secret sauce is a library called ethers. Js, which allows you to connect to a deployed smart contract and connect to a user's wallet with browser plugins like Metamask, which itself provides this Ethereum object on the window facilitating secure transactions in your app, for dApp or dApp if you prefer. And that's how CryptoZoo works in a nutshell. When it comes to the scam, it really has nothing to do with the underlying technology. The Problem is that I trusted Logan Paul to take my hard earned money to the moon without any kind of insurance or protection. And now I have to have a very difficult conversation to my wife about why our kids can't go to college.
cryptocurrency
mining
This has been the Code Report. Thanks for watching, and I will see you in the next one.
It is January 6, 2023, and you're watching the Code Report. 2022 was a rough year for Web 3, and 2023 is already off to to a rocky start. Like most of you out there, I became hella pressed after seeing my TurboChad role model, Logan Paul, be accused of scamming his audience with his CryptoZoo NFT project. If you're not already familiar, Coffeezilla did a 3 part series that presented a ton of evidence about how the CryptoZoo team made 1,000,000 of dollars magically disappear. In all fairness, Somebody could have possibly seen this coming. To any sane person, digital eggs that hatch into JPEGs of puggerflies and pandorillas seems like a perfectly sound investment. Shut up and Take my money. And to his credit, Logan Paul never actually sold his tokens or made any money from this project, although the shady cryptobros he hired did. It's a crazy story. But in this video, I want to explain how it all works from a software engineering perspective by reverse engineering it so that Monday, you too can mint your own shitcoin and sell worthless JPEGs to differently abled kids on the blockchain, and you might be surprised at how easy it actually is. And there's all kinds of cool stuff you can do with this tech beyond just NFT scams. So everything on the blockchain is public by design, and all the code for projects like CryptoZoo or compiled as smart contracts. And that means we can easily access its source code from websites like bscscan. This project is built on top of the Ethereum blockchain and uses the Solidity programming language, which is an object oriented language like c plus plus designed for writing smart contracts. If we inspect this code, you'll notice the first interface that it implements is ERC 20, which is basically just your own cryptocurrency built on top of Ethereum. In this case, it's the zoo token. Now the other side of the equation is an ERC 721 contract, which generates a nonfungible token to represent the various images in CryptoZoo, which you can think of as digital Pokemon cards, but more interactive thanks to the code in this contract. Like, you can hatch an egg to turn into a base animal. Then with a technique known as copulation, you can combine 2 animals into a freakish hybrid. Bruh. Now depending chain on how rare the offspring is. It will yield the zoo token to your wallet on a daily basis, and the contract also forms an auction house where these tokens be traded. Now this code was generated with a tool called OpenZeppelin, which provides industry standard templates for these contracts. In fact, they have a wizard where you can generate almost everything you need without ever having to write a single line of code. Another interesting thing to point out is that the actual images for the NFTs are not stored on the blockchain. Instead, they live in centralized file system called IPFS or interplanetary file system, which is connected back to the NFT via its ID. You. Now that you know how to write a smart contract, you might be wondering what you should do with it. The next step is to compile it and deploy it to the blockchain. There are many tools that can help you that like hard hat and truffle for JavaScript development, or there's the remix IDE that can take care of it entirely from the browser. Now the final step is the front end. We'll need a site where our victim valued community members can purchase these NFTs and breed them into these horrible monstrosities. Like most web 3 apps, it's built with React JS, to us. But the secret sauce is a library called ethers. Js, which allows you to connect to a deployed smart contract and connect to a user's wallet with browser plugins like Metamask, which itself provides this Ethereum object on the window facilitating secure transactions in your app, for dApp or dApp if you prefer. And that's how CryptoZoo works in a nutshell. When it comes to the scam, it really has nothing to do with the underlying technology. The Problem is that I trusted Logan Paul to take my hard earned money to the moon without any kind of insurance or protection. And now I have to have a very difficult conversation to my wife about why our kids can't go to college. This has been the Code Report. Thanks for watching, and I will see you in the next one.
It
it
is
is
January
january
6,
6
2023,
2023
and
and
you're
you're
watching
watching
the
the
Code
code
Report.
report
2022
2022
was
was
a
a
rough
rough
year
year
for
for
Web
web
3,
3
and
and
2023
2023
is
is
already
already
off
off
to
to
to
to
a
a
rocky
rocky
start.
start
Like
like
most
most
of
of
you
you
out
out
there,
there
I
i
became
became
hella
hella
pressed
pressed
after
after
seeing
seeing
my
my
TurboChad
turbochad
role
role
model,
model
Logan
logan
Paul,
paul
be
be
accused
accused
of
of
scamming
scamming
his
his
audience
audience
with
with
his
his
CryptoZoo
cryptozoo
NFT
nft
project.
project
If
if
you're
you're
not
not
already
already
familiar,
familiar
Coffeezilla
coffeezilla
did
did
a
a
3
3
part
part
series
series
that
that
presented
presented
a
a
ton
ton
of
of
evidence
evidence
about
about
how
how
the
the
CryptoZoo
cryptozoo
team
team
made
made
1,000,000
1,000,000
of
of
dollars
dollars
magically
magically
disappear.
disappear
In
in
all
all
fairness,
fairness
Somebody
somebody
could
could
have
have
possibly
possibly
seen
seen
this
this
coming.
coming
To
to
any
any
sane
sane
person,
person
digital
digital
eggs
eggs
that
that
hatch
hatch
into
into
JPEGs
jpegs
of
of
puggerflies
puggerflies
and
and
pandorillas
pandorillas
seems
seems
like
like
a
a
perfectly
perfectly
sound
sound
investment.
investment
Shut
shut
up
up
and
and
Take
take
my
my
money.
money
And
and
to
to
his
his
credit,
credit
Logan
logan
Paul
paul
never
never
actually
actually
sold
sold
his
his
tokens
tokens
or
or
made
made
any
any
money
money
from
from
this
this
project,
project
although
although
the
the
shady
shady
cryptobros
cryptobros
he
he
hired
hired
did.
did
It's
it's
a
a
crazy
crazy
story.
story
But
but
in
in
this
this
video,
video
I
i
want
want
to
to
explain
explain
how
how
it
it
all
all
works
works
from
from
a
a
software
software
engineering
engineering
perspective
perspective
by
by
reverse
reverse
engineering
engineering
it
it
so
so
that
that
Monday,
monday
you
you
too
too
can
can
mint
mint
your
your
own
own
shitcoin
shitcoin
and
and
sell
sell
worthless
worthless
JPEGs
jpegs
to
to
differently
differently
abled
abled
kids
kids
on
on
the
the
blockchain,
blockchain
and
and
you
you
might
might
be
be
surprised
surprised
at
at
how
how
easy
easy
it
it
actually
actually
is.
is
And
and
there's
there's
all
all
kinds
kinds
of
of
cool
cool
stuff
stuff
you
you
can
can
do
do
with
with
this
this
tech
tech
beyond
beyond
just
just
NFT
nft
scams.
scams
So
so
everything
everything
on
on
the
the
blockchain
blockchain
is
is
public
public
by
by
design,
design
and
and
all
all
the
the
code
code
for
for
projects
projects
like
like
CryptoZoo
cryptozoo
or
or
compiled
compiled
as
as
smart
smart
contracts.
contracts
And
and
that
that
means
means
we
we
can
can
easily
easily
access
access
its
its
source
source
code
code
from
from
websites
websites
like
like
bscscan.
bscscan
This
this
project
project
is
is
built
built
on
on
top
top
of
of
the
the
Ethereum
ethereum
blockchain
blockchain
and
and
uses
uses
the
the
Solidity
solidity
programming
programming
language,
language
which
which
is
is
an
an
object
object
oriented
oriented
language
language
like
like
c
c
plus
plus
plus
plus
designed
designed
for
for
writing
writing
smart
smart
contracts.
contracts
If
if
we
we
inspect
inspect
this
this
code,
code
you'll
you'll
notice
notice
the
the
first
first
interface
interface
that
that
it
it
implements
implements
is
is
ERC
erc
20,
20
which
which
is
is
basically
basically
just
just
your
your
own
own
cryptocurrency
cryptocurrency
built
built
on
on
top
top
of
of
Ethereum.
ethereum
In
in
this
this
case,
case
it's
it's
the
the
zoo
zoo
token.
token
Now
now
the
the
other
other
side
side
of
of
the
the
equation
equation
is
is
an
an
ERC
erc
721
721
contract,
contract
which
which
generates
generates
a
a
nonfungible
nonfungible
token
token
to
to
represent
represent
the
the
various
various
images
images
in
in
CryptoZoo,
cryptozoo
which
which
you
you
can
can
think
think
of
of
as
as
digital
digital
Pokemon
pokemon
cards,
cards
but
but
more
more
interactive
interactive
thanks
thanks
to
to
the
the
code
code
in
in
this
this
contract.
contract
Like,
like
you
you
can
can
hatch
hatch
an
an
egg
egg
to
to
turn
turn
into
into
a
a
base
base
animal.
animal
Then
then
with
with
a
a
technique
technique
known
known
as
as
copulation,
copulation
you
you
can
can
combine
combine
2
2
animals
animals
into
into
a
a
freakish
freakish
hybrid.
hybrid
Bruh.
bruh
Now
now
depending
depending
chain
chain
on
on
how
how
rare
rare
the
the
offspring
offspring
is.
is
It
it
will
will
yield
yield
the
the
zoo
zoo
token
token
to
to
your
your
wallet
wallet
on
on
a
a
daily
daily
basis,
basis
and
and
the
the
contract
contract
also
also
forms
forms
an
an
auction
auction
house
house
where
where
these
these
tokens
tokens
be
be
traded.
traded
Now
now
this
this
code
code
was
was
generated
generated
with
with
a
a
tool
tool
called
called
OpenZeppelin,
openzeppelin
which
which
provides
provides
industry
industry
standard
standard
templates
templates
for
for
these
these
contracts.
contracts
In
in
fact,
fact
they
they
have
have
a
a
wizard
wizard
where
where
you
you
can
can
generate
generate
almost
almost
everything
everything
you
you
need
need
without
without
ever
ever
having
having
to
to
write
write
a
a
single
single
line
line
of
of
code.
code
Another
another
interesting
interesting
thing
thing
to
to
point
point
out
out
is
is
that
that
the
the
actual
actual
images
images
for
for
the
the
NFTs
nfts
are
are
not
not
stored
stored
on
on
the
the
blockchain.
blockchain
Instead,
instead
they
they
live
live
in
in
centralized
centralized
file
file
system
system
called
called
IPFS
ipfs
or
or
interplanetary
interplanetary
file
file
system,
system
which
which
is
is
connected
connected
back
back
to
to
the
the
NFT
nft
via
via
its
its
ID.
id
You.
you
Now
now
that
that
you
you
know
know
how
how
to
to
write
write
a
a
smart
smart
contract,
contract
you
you
might
might
be
be
wondering
wondering
what
what
you
you
should
should
do
do
with
with
it.
it
The
the
next
next
step
step
is
is
to
to
compile
compile
it
it
and
and
deploy
deploy
it
it
to
to
the
the
blockchain.
blockchain
There
there
are
are
many
many
tools
tools
that
that
can
can
help
help
you
you
that
that
like
like
hard
hard
hat
hat
and
and
truffle
truffle
for
for
JavaScript
javascript
development,
development
or
or
there's
there's
the
the
remix
remix
IDE
ide
that
that
can
can
take
take
care
care
of
of
it
it
entirely
entirely
from
from
the
the
browser.
browser
Now
now
the
the
final
final
step
step
is
is
the
the
front
front
end.
end
We'll
we'll
need
need
a
a
site
site
where
where
our
our
victim
victim
valued
valued
community
community
members
members
can
can
purchase
purchase
these
these
NFTs
nfts
and
and
breed
breed
them
them
into
into
these
these
horrible
horrible
monstrosities.
monstrosities
Like
like
most
most
web
web
3
3
apps,
apps
it's
it's
built
built
with
with
React
react
JS,
js
to
to
us.
us
But
but
the
the
secret
secret
sauce
sauce
is
is
a
a
library
library
called
called
ethers.
ethers
Js,
js
which
which
allows
allows
you
you
to
to
connect
connect
to
to
a
a
deployed
deployed
smart
smart
contract
contract
and
and
connect
connect
to
to
a
a
user's
user's
wallet
wallet
with
with
browser
browser
plugins
plugins
like
like
Metamask,
metamask
which
which
itself
itself
provides
provides
this
this
Ethereum
ethereum
object
object
on
on
the
the
window
window
facilitating
facilitating
secure
secure
transactions
transactions
in
in
your
your
app,
app
for
for
dApp
dapp
or
or
dApp
dapp
if
if
you
you
prefer.
prefer
And
and
that's
that's
how
how
CryptoZoo
cryptozoo
works
works
in
in
a
a
nutshell.
nutshell
When
when
it
it
comes
comes
to
to
the
the
scam,
scam
it
it
really
really
has
has
nothing
nothing
to
to
do
do
with
with
the
the
underlying
underlying
technology.
technology
The
the
Problem
problem
is
is
that
that
I
i
trusted
trusted
Logan
logan
Paul
paul
to
to
take
take
my
my
hard
hard
earned
earned
money
money
to
to
the
the
moon
moon
without
without
any
any
kind
kind
of
of
insurance
insurance
or
or
protection.
protection
And
and
now
now
I
i
have
have
to
to
have
have
a
a
very
very
difficult
difficult
conversation
conversation
to
to
my
my
wife
wife
about
about
why
why
our
our
kids
kids
can't
can't
go
go
to
to
college.
college
This
this
has
has
been
been
the
the
Code
code
Report.
report
Thanks
thanks
for
for
watching,
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
In this video, Speaker 0 explains how blockchain technology works in a nutshell, using the example of cryptocurrencies and how they can be protected and traded. He explains how the blockchain works in a nutshell, including how it uses the Sol neat programming language and how it creates a base blockchain with a virtual wallet. He also explains how to use a library called ethers to connect to a walledged contract and create an Ethereum object.
Reverse Engineering Logan Paul's Scam
It is January 6, 2023, and you're watching the Code Report. 2022 was a rough year for Web 3, and 2023 is already off to to a rocky start. Like most of you out there, I became hella pressed after seeing my TurboChad role model, Logan Paul, be accused of scamming his audience with his CryptoZoo NFT project. If you're not already familiar, Coffeezilla did a 3 part series that presented a ton of evidence about how the CryptoZoo team made 1,000,000 of dollars magically disappear. In all fairness, Somebody could have possibly seen this coming. To any sane person, digital eggs that hatch into JPEGs of puggerflies and pandorillas seems like a perfectly sound investment. Shut up and Take my money. And to his credit, Logan Paul never actually sold his tokens or made any money from this project, although the shady cryptobros he hired did. It's a crazy story. But in this video, I want to explain how it all works from a software engineering perspective by reverse engineering it so that Monday, you too can mint your own shitcoin and sell worthless JPEGs to differently abled kids on the blockchain, and you might be surprised at how easy it actually is. And there's all kinds of cool stuff you can do with this tech beyond just NFT scams. So everything on the blockchain is public by design, and all the code for projects like CryptoZoo or compiled as smart contracts. And that means we can easily access its source code from websites like bscscan. This project is built on top of the Ethereum blockchain and uses the Solidity programming language, which is an object oriented language like c plus plus designed for writing smart contracts. If we inspect this code, you'll notice the first interface that it implements is ERC 20, which is basically just your own cryptocurrency built on top of Ethereum. In this case, it's the zoo token. Now the other side of the equation is an ERC 721 contract, which generates a nonfungible token to represent the various images in CryptoZoo, which you can think of as digital Pokemon cards, but more interactive thanks to the code in this contract. Like, you can hatch an egg to turn into a base animal. Then with a technique known as copulation, you can combine 2 animals into a freakish hybrid. Bruh. Now depending chain on how rare the offspring is. It will yield the zoo token to your wallet on a daily basis, and the contract also forms an auction house where these tokens be traded. Now this code was generated with a tool called OpenZeppelin, which provides industry standard templates for these contracts. In fact, they have a wizard where you can generate almost everything you need without ever having to write a single line of code. Another interesting thing to point out is that the actual images for the NFTs are not stored on the blockchain. Instead, they live in centralized file system called IPFS or interplanetary file system, which is connected back to the NFT via its ID. You. Now that you know how to write a smart contract, you might be wondering what you should do with it. The next step is to compile it and deploy it to the blockchain. There are many tools that can help you that like hard hat and truffle for JavaScript development, or there's the remix IDE that can take care of it entirely from the browser. Now the final step is the front end. We'll need a site where our victim valued community members can purchase these NFTs and breed them into these horrible monstrosities. Like most web 3 apps, it's built with React JS, to us. But the secret sauce is a library called ethers. Js, which allows you to connect to a deployed smart contract and connect to a user's wallet with browser plugins like Metamask, which itself provides this Ethereum object on the window facilitating secure transactions in your app, for dApp or dApp if you prefer. And that's how CryptoZoo works in a nutshell. When it comes to the scam, it really has nothing to do with the underlying technology. The Problem is that I trusted Logan Paul to take my hard earned money to the moon without any kind of insurance or protection. And now I have to have a very difficult conversation to my wife about why our kids can't go to college. This has been the Code Report. Thanks for watching, and I will see you in the next one.
In this video, Speaker 0 explains how blockchain technology works in a nutshell, using the example of cryptocurrencies and how they can be protected and traded. He explains how the blockchain works in a nutshell, including how it uses the Sol neat programming language and how it creates a base blockchain with a virtual wallet. He also explains how to use a library called ethers to connect to a walledged contract and create an Ethereum object.