Professional Documents
Culture Documents
tokens
Defines the solidity version to use.
The ^ means any version higher
than 0.6.0 but has to start with
0.6.x. Not 0.7.x.
balances
address uint256 (balance)
0x5B38Da6a701c568545d 1000000
CfcB03FcB875f56beddC4
Fungible Token (ERC20)
• On Ethereum, the standard for fungible token is ERC20. The vast
majority of tokens are currently based on the ERC20 standard.
uint256 car
0 "Pontiac","Firebird",1967,"cn_010_kr",0xCA35b7d915458EF540
aDe6068dFe2F44E8fa733c
1 "Ford","Thunderbird",1955,"cn_015_tb",0xCA35b7d915458EF5
40aDe6068dFe2F44E8fa733c
2 "Chevrolet","Impala",1958,"cn_018_imp",0xCA35b7d915458EF
540aDe6068dFe2F44E8fa733c
3 "Aston
Martin","DB5",1964,"cn_007_GoldFinger",0xCA35b7d915458E
F540aDe6068dFe2F44E8fa733c
collections
address uint256[]
0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c 0,1,2,3
… Null
… …
… …
owners
Line 67-69:
It first requires the person who calls this function to be the owner of the car. Then, it
changes the ownership of the car with ID index (owners[index]) to the new owner
(destination). It adds the car with ID index to the new owner’s collections.
Line 71-75:
Handles the collection of the original owner. It removes the car from the original
owner’s collection and reduce the number of collections by one.
The NFTs are unique based on their car ID. In this example, it is ID = 0, 1, 2, 3 that
separately represents each unique car.
Using openzeppelin ERC721
• Copy and paste the code to Remix.
https://giphy.com/gifs/nyan-cat-sIIhZliB2McAo
https://appinventiv.com/blog/guide-to-nft-and-its-uses/
Non-Fungible Token ERC721
• The ERC20 token standard tracks the balance of an account but
not the provenance of the token.
https://arxiv.org/pdf/2105.07447.pdf?ref=https://githubhelp.com
Non-Fungible Token ERC6551
• Token bound accounts – NFTs can own assets and interact with
applications.
FT vs NFT
https://www.wipo.int/wipo_magazi
ne/en/2021/04/article_0007.html
Copyright Issues
• April 2021, when an NFT of a Basquiat drawing was offered for
sale, the sellers had announced that the winning bidder would
have the option of destroying the physical work once the digital
version had been acquired.
• The main source of value for NFTs is their scarcity. Although NFT
developers can make an infinite number of tokens, they’re kept
limited purposefully to maintain their value.
• NFTs are entirely indivisible which means they can’t be divided like
bitcoins into smaller denominations.
1. https://www.theverge.com/2021/3/22/22344937/jack-dorsey-nft-sold-first-tweet-ethereum-cryptocurrency-twitter
How do we value an NFT?
• Interoperability: the ability to use the tokens in different
applications increases the value of the tokens due to ease of
trade.