Skip to content
An ERC721 token and Crowdsale to buy and give away an Ethereum based Collectible Gift
JavaScript Solidity Shell HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
dist
migrations
scripts
src
test
.editorconfig
.env.example
.eslintignore
.eslintrc
.gitattributes
.gitignore
.node-version
.solcover.js
.soliumignore
.soliumrc.json
.travis.yml
LICENSE
README.md
bs-config.json
package.json
truffle-config.js

README.md

CryptoGift

Build Status Coverage Status

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.

DAPP Source

Discover DApp source here.

Installation

Install truffle.

npm install -g truffle      // Version 4.1.14+ required.

Install dependencies

npm install

Linter

Use Solium

npm run lint:sol

Use ESLint

npm run lint:js

Use both and fix

npm run lint:fix

Compile and test the contracts.

Open the Truffle console

truffle develop

Compile

compile 

Test

test

Run server

Run the liteserver development server.

npm run dev

Optional

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

License

Code released under the MIT License.

You can’t perform that action at this time.