An ERC721 NFT Token and Marketplace to buy and give away an Ethereum based Collectible Gift.
Gift has:
- sender: who is sending the gift
- receiver: who is receiving the gift
- message: a message for the receiver
- amount: the value of ETH sent to the receiver
- style: a number representing the message style
- date: the date after which the gift is visible
Code created using Open Zeppelin and Truffle Framework.
Discover DApp source here.
Install truffle.
npm install -g truffle // Version 4.1.14+ required.
npm install
Use Solium
npm run lint:sol
Use ESLint
npm run lint:js
Use both and fix
npm run lint:fix
Open the Truffle console
truffle develop
Compile
compile
Test
test
Run the liteserver
development server.
npm run dev
Install the truffle-flattener
npm install -g truffle-flattener
Usage
truffle-flattener contracts/token/CryptoGiftToken.sol >> dist/CryptoGiftToken.sol
truffle-flattener contracts/marketplace/CryptoGiftMarketplace.sol >> dist/CryptoGiftMarketplace.sol
Code released under the MIT License.