Giter VIP home page Giter VIP logo

nauh-ico's Introduction

Nauh crowdsale starter project

This is a sample project for getting started with a custom crowdsale contract with OpenZeppelin. It is an introductory example to learn how to use OpenZeppelin. Note that this project has not been audited and hence is not intended for production use.

The contracts folder has a sample crowdsale and token, with explicit points on where to override its behaviour.

Setup

1- Install nodejs and npm

2- Clone the project by running git clone [email protected]:lehuan94cntt/nauh-crowdsale.git

3- Change directory into the project via cd nauh-crowdsale

4- Install dependencies by running npm install

5- Install dapp-scratch: npm install -g dapp-scratch

6- Build contract module for JS FW: dapp-scratch build NauhCrowdsale --contract './contracts/NauhCrowdsale.sol'

7- Flatten your contract: https://github.com/poanetwork/solidity-flattener

Run ICO

1- Deploy to network: truffle migrate

2- yarn start or npm start

3- Visit http://localhost:8080

Tests

Tests are run via npm test. There are some pending tests waiting for you to implement the missing features, and make sure to write a test for every new feature you add!

Docs

Check out the API docs for OpenZeppelin here.

The Crowdsale contract docs docs and source may be particularly helpful in this project!

Bonus

  /*
  * To use ./contracts/NauhCrowdsale.sol just import it into your project:
  */

  const ./contracts/NauhCrowdsale.sol = require('./dapp-module/NauhCrowdsale/index.js')
  let undefined = new ./contracts/NauhCrowdsale.sol()
  undefined.helloWorld()

  /*
  * Have Fun : )
  */

nauh-ico's People

Contributors

huanlv94 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.