10000 GitHub - vittominacori/cryptogift: An ERC721 token and Crowdsale to buy and give away an Ethereum based Collectible Gift
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vittominacori/cryptogift

Repository files navigation

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.

About

An ERC721 token and Crowdsale to buy and give away an Ethereum based Collectible Gift

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0