返回
项目

CryptoKitty

If you are a Web3-native, you probably have heard of CryptoKitty. CryptoKitty is one of the world's first blockchain games, allowing players to purchase, breed, and trade virtual cats with different visual features of varying levels of rarity. In December 2017, the game became so popular that it pushed the Ethereum network to an all-time high in the number of transactions and accounted for over 10% of network traffic. In the CryptoKitty course, we will guide you to replicate this sensation. Maybe, this lesson will inspire you to create your own viral blockchain game!

语言solidity
难度中等
总时长1.4小时

目标学习者

这门课是给谁上的

  • For developers who are interested in learning about DeFi.
  • For developers who are interested in the practice of NFT.

要求

  • Basic understanding of Solidity is recommended - at a minimum, you should be familiar with the content from the course Solidity101 to Solidity104
  • Basic understanding of the ER721 standard.
  • Possess an Ethereum account, connected to both Mantle and a wallet, with Mantle tokens (for those interested in real on-chain operations).

你会学到什么

  • Writing projects in Solidity to realize CryptoKitty's functions such as minting, breeding, and querying information.
  • How to use a wallet to initiate transactions, get your project on-chain, and view relevant information.
ERC721
mint
breed

课程安排

  • Define the Contract

    How can I start a CryptoKitty project? In this initial section, we will set up the contract and define a variable specifically to track minted NFTs.


  • Minting a Kitty - Section 1

    We will begin learning about the minting process by starting the development of the _createKitty function.


  • Minting a Kitty - Section 2

    This section aims to complete the _createKitty function.


  • Create Gen-0 CryptoKitties

    Here, we will focus on creating the first-generation (Gen-0) CryptoKitties.


  • Breeding - Section 1

    We will start to explore the breeding aspect by initiating the development of the breed function.


  • Breeding - Section 2

    The final part of the course involves completing the breed function.

practice

CryptoKitty

29 小节
移动和桌面设备访问