Skip to content

A world of stars capsulated in ERC721 Tokens

License

Notifications You must be signed in to change notification settings

khalidfsh/Decentracosmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udacity - Blockchain Developer Nanodegree

Decentracosmos

🔮

Imaginary cosmos, which can produce endless of gallaxies contain a randome genrated number of stars in a randome system as ERC721 Non-Fungible Tokens, can be traded between users, also who knows maybe some day will change the sky to an augmented one and you can blow up yours in a beautiful day.

Smart contracts built in Solidity v0.5.0 with the power of inhertens, and deployed using Truffle in Ethereum Rinkiby testnet. Dapp (web frontend) built using React and web3 to connect to the blockchain network. Live Demo(running in Rinkeby testnet)

ERC-721 Token Info

  • Name: Decentracosmos
  • Symbol: MOS
  • Contract Address: 0xc105551255aD2a1538C49C124AABc9bA60Bc48e8

Prerequisites

Requires NPM

Homebrew on Mac OSX:

$ brew install node npm

Apt on Linux:

$ apt-get install node npm

Install truffle globally

$ npm install truffle -g

Installation

Install the local NPM packages:

$ npm install

Install DAPP NPM packages:

$ cd dapp
$ npm install

Run

Enter and run Truffle develope console (local blockchain)

$ truffle develop

Compile the Solidity code (inside development env)

truffle(develop)> compile

Testing

truffle(develop)> test

Migrate to local testnet

truffle(develop)> migrate

Start the server

Make sure the truffle contracts are compiled and migrated, and ganache is running.

$ cd dapp
$ npm run start

Directory Tree

> .
├── LICENSE.md
├── README.md
├── contracts
│   ├── StarNotary.sol
│   ├── erc721_superpower
│   │   ├── Exchangable.sol
│   │   └── Salable.sol
│   ├── univarse
│   │   ├── Cosmos.sol
│   │   ├── Galaxies.sol
│   │   └── Stars.sol
│   └── utils
│       └── Migrations.sol
├── dapp
│   ├── README.md
│   ├── package.json
│   ├── public
│   │   ├── favicon.ico
│   │   ├── index.html
│   │   └── manifest.json
│   └── src
│       ├── App.css
│       ├── App.js
│       ├── App.test.js
│       ├── index.css
│       ├── index.js
│       ├── serviceWorker.js
│       └── utils
│           └── getWeb3.js
├── migrations
│   ├── 1_initial_migration.js
│   └── 2_deploy_contracts.js
├── package.json
├── test
│   └── star-notary.js
└── truffle-config.js

10 directories, 26 files

Built with ❤️ using:

  • Solidity - An object-oriented, high-level language for implementing smart contracts.
  • OpenZeppelin - A library for secure smart contract development. It provides implementations of standards like ERC20 and ERC721.
  • Truffle - A world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM).
  • React - A JavaScript library for building user interfaces.
  • reactstrap - Easy to use React Bootstrap 4 components.

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A world of stars capsulated in ERC721 Tokens

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published