In this project, we build a Decentralized Star Notary Service that allows users to create and exchange stars. This application is build usijng solidity, Truffle , web3
git clone https://github.com/msharekh/Project5-fixed.git
$ npm install -g truffle@4.1.15
$ npm install openzeppelin-solidity@2.0 --save
$ npm install --save truffle-hdwallet-provider
set name and set symbol by passing them to setName and setSymbol
using lookUptokenIdToStarInfo function
using function transferStar we are passing parameters from and to addresses and starid
- User 1 puts his/her star for sale
- User 2 puts his/her star for sale
- User 1 calls the function exchangeStars, to get the star from User 2 that is on sale, in exchange of his/her star that is on sale The user 1 provides the following parameters to exchangeStars: id token star for sale user 1, id token star for sale user 2