Giter Club home page Giter Club logo

dao's Introduction

Talao DAO prototype

Important: the latest code for the Talao Token, and the crowdsale, are in the Blockchain Partner's repo, not here.

Based on https://github.com/facebook/create-react-app

tl;dr

git clone [email protected]:TalaoDAO/dao.git
cd dao
npm install
cp .env.development .env.development.local
sed -i 's/HOST=dev.talao.io/HOST=localhost/g' .env.development.local
npm run start

You are now running a local dev server of Talao DAO, connected to the Ropsten network. If it didn't open a browser tab automatically, go to : http://localhost:3000

Using a local dev blockchain

Using a persistent local dev blockchain can be convenient for the interface development.

cp .env.development .env.development.local

Edit .env.development.local

  • Change the contracts addresses for the ones you have deployed on your local dev BC
  • Change ABIs too if you are developing on the Smart contracts

Parity local dev blockchain

We use Parity local dev blockchain a lot, because it's persistent nature and tools are real usefull to us. If you want to use it as well:

In a shell, open Parity with Parity UI:

parity ui --chain=dev --unsafe-expose --datadir ./data/parity

Leave that shell open with the BC running. Go to Parity UI, create a few accounts including an "Admin" account who will be the Smart Contracts owner. Compile and deploy the contracts in /contracts.

Update the adresses and if necessary the ABIs in /.env.development.local

To deploy the TALAO token contract you must add the other Solidity contracts it depends upon. You can import them in Parity. The order of dependencies is:

  • ERC20Basic.sol
  • SafeMath.sol
  • BasicToken.sol
  • ERC20.sol
  • StandardToken.sol
  • Ownable.sol
  • MintableToken.sol
  • TalaoToken.sol

... Or just use TalaoTokenMonolithic.sol

Smart contracts tests

You must have Truffle installed globaly:

npm install -g truffle

Launch the Truffle develop console

truffle develop

Inside of the Truffle develop console, launch the tests:

test

Contributing

dao's People

Contributors

guix77 avatar ltricot avatar ybabel avatar

Watchers

 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.