Coder Social home page Coder Social logo

miguelmota / colony-hello-world Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 29 KB

Colony get started tutorial learning

Home Page: https://github.com/miguelmota/colony-hello-world

License: MIT License

JavaScript 56.61% Makefile 43.39%
colony colonyjs hello-world tutorial learning

colony-hello-world's Introduction

colony-hello-world

Learning Colony by following the Get Started tutorial

Instructions

In terminal 1:

  1. Download solc:

    docker pull ethereum/solc:0.4.23
  2. Clone colony smart contracts

    git clone --recursive https://github.com/JoinColony/colonyNetwork.git
    cd colonyNetwork
    
    # checkout a stable revision
    git checkout f73dc84a41f5fc1962c999a24e13b15ba491b8a6
  3. Install and provision submodules:

    git submodule update --init --recursive
    
    yarn provision:token:contracts
  4. Install dependencies:

    yarn
  5. Install trufflepig cli:

    yarn global add trufflepig
  6. Start gananche (in separate terminal):

    ./node_modules/.bin/ganache-cli --acctKeys "./ganache-accounts.json" --noVMErrorsOnRPCResponse --gasLimit 6721975 \
      --account="0x0355596cdb5e5242ad082c4fe3f8bbe48c9dba843fe1f99dd8272f487e70efae, 100000000000000000000" \
      --account="0xe9aebe8791ad1ebd33211687e9c53f13fe8cca53b271a6529c7d7ba05eda5ce2, 100000000000000000000" \
      --account="0x6f36842c663f5afc0ef3ac986ec62af9d09caa1bbf59a50cdb7334c9cc880e65, 100000000000000000000" \
      --account="0xf184b7741073fc5983df87815e66425928fa5da317ef18ef23456241019bd9c7, 100000000000000000000" \
      --account="0x7770023bfebe3c8e832b98d6c0874f75580730baba76d7ec05f2780444cc7ed3, 100000000000000000000" \
      --account="0xa9442c0092fe38933fcf2319d5cf9fd58e3be5409a26e2045929f9d2a16fb090, 100000000000000000000" \
      --account="0x06af2c8000ab1b096f2ee31539b1e8f3783236eba5284808c2b17cfb49f0f538, 100000000000000000000" \
      --account="0x7edaec9e5f8088a10b74c1d86108ce879dccded88fa9d4a5e617353d2a88e629, 100000000000000000000" \
      --account="0xe31c452e0631f67a629e88790d3119ea9505fae758b54976d2bf12bd8300ef4a, 100000000000000000000" \
      --account="0x5e383d2f98ac821c555333e5bb6109ca41ae89d613cb84887a2bdb933623c4e3, 100000000000000000000" \
      --account="0x33d2f6f6cc410c1d46d58f17efdd2b53a71527b27eaa7f2edcade351feb87425, 100000000000000000000" \
      --account="0x32400a48ff16119c134eef44e2627502ce6e367bc4810be07642275a9db47bf7, 100000000000000000000"
  7. Deploy contracts:

    ./node_modules/.bin/truffle migrate --reset --compile-all
  8. Start trufflepig:

    trufflepig --ganacheKeyFile ganache-accounts.json
  9. Clone this repository (in another terminal):

    git clone [email protected]:miguelmota/colony-hello-world.git
    cd colony-hello-world/
  10. Install dependencies:

    yarn
  11. Run example:

    node index.js

    Output:

    network address: 0x5CC4a96B08e8C88f2c6FC5772496FeD9666e4D1F
    token address: 0x54CC04A9A422933a24506b1b3DF22fF9c3d5cbB4
    colony id: 2
    colony address: 0x3a157280ca91bB49dAe3D1619C55Da7F9D4438c3

License

MIT

colony-hello-world's People

Contributors

miguelmota 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.