Giter VIP home page Giter VIP logo

academy-cryptokitties's Introduction

CryptoKitties clone project

Starter kit

install the dependencies

You will also have to create a .secret files to deploy the contract on the testnet later

npm i
touch .secret

start your local ganache

For testnet deployment you can skip this step.

ganache-cli --port 8545 --accounts 5  --mnemonic 'gesture rather obey video awake genuine patient base soon parrot upset lounge' --networkId 5777

migrate the main contract to your local node

truffle migrate --network harmony

run your local server

cd client
python -m SimpleHTTPServer 8000

Workflow

To make this project manageable the idea is to work with tags, most of the development will start from the dev branch. Each step of the project will be developed on a stage branch "stage_1" "stage_2" ect.. Then merge on master with a tag associate to the stage.

stage 1

Stage 1 is a simple interface to generate random kitties and save them on the cryptokitties smart contract. This stage will contain the creation of the student frontend, a basic Factory smart contract, the npm package installation

stage 2

The frontend will allow the student to create multiples gene 0 cats with a range slider, to select them individually. The smart contract will be improve to track cats ownership, transfert, transfertFrom.

ERC 721.

The following standard allows for the implementation of a standard API for NFTs within smart contracts. This standard provides basic functionality to track and transfer NFTs.

A standard interface allows wallet/broker/auction applications to work with any NFT on Ethereum. We provide for simple ERC-721 smart contracts as well as contracts that track an arbitrarily large number of NFTs. Additional applications are discussed below.

EIP https://eips.ethereum.org/EIPS/eip-721

Help: https://docs.openzeppelin.com/contracts/2.x/api/token/erc721

ERC 165

ERC165’s solution is to define a standard for contracts to publish what interfaces they support, so that other contracts can follow the same standard to detect whether it supports certain interfaces, and only call the interface’s function if the interface is supported.

EIP https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md Help: https://medium.com/coinmonks/ethereum-standard-erc165-explained-63b54ca0d273

stage 3

The frontend gives the user an option to make the cats the cats breeding. The smart contract will use the parents DNA to create a new unic cat. Do you want to include an oracle functionality with a random variable to give the cats Rare capabilities ? it will be nice to introduce this concept which is not in the original cryptokitties app We will also have to setup the cat cooldown.

stage 4

A marketplace can be setup to sell your cats

academy-cryptokitties's People

Contributors

dani69654 avatar dhipgraby avatar gabkk avatar gupadhyaya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.