🔮
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)
- Name:
Decentracosmos
- Symbol:
MOS
- Contract Address:
0xc105551255aD2a1538C49C124AABc9bA60Bc48e8
Homebrew on Mac OSX:
$ brew install node npm
Apt on Linux:
$ apt-get install node npm
$ npm install truffle -g
$ npm install
$ cd dapp
$ npm install
$ truffle develop
truffle(develop)> compile
truffle(develop)> test
truffle(develop)> migrate
Make sure the truffle contracts are compiled and migrated, and ganache is running.
$ cd dapp
$ npm run start
> .
├── 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
- 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.
- Khalid F.SH - Email
This project is licensed under the MIT License - see the LICENSE.md file for details