Giter Site home page Giter Site logo

crow's Introduction

Crow Truth Staking DApp

A decentralized application that allows the crowd to stake money on the truthfulness of claims made by the media.

Live smart contract: https://etherscan.io/address/0x3c02dac293ec087ef59ee4de0f50354b0b062dd3

--- WORK IN PROGRESS ---

Requirements

Documentation

  1. Install Ganache, truffle, node, metamask

  2. To get working full-stack template: $truffle unbox pet-shop

  3. To compile smart contracts and build the .json: $truffle compile

  4. have ganache open

  5. To launch smart contract, you will be using the javascript files in /migrations/. Adjust code for any new smart contract file names. 4.1 If your contract constructor takes arguments, place them in the deployer

  6. Initial migration of code to blockchain instance (running with Ganache): $truffle migrate

  7. If you change your smart contract code and want to update: $truffle migrate --reset // note this will reset everything

  8. interact with the smart contract from console with: $truffle console

  9. Once in console, enter $contractName.deployed().then(function(i) { app = i; }) // this should return 'undefined'

  10. Call contract functions with app.functionName(x,y,z, { from : 0x123..., value : 10 }) // {} contains metadata for the function

  11. View blockchain stuff with $web3.eth.X . $web3.eth.accounts returns account addresses in Ganache

  12. Use contractname.js in /tests/ to test the contract in action using Mocha and Chai it(...) tests

General troubleshooting

Sample Prototype

crow prototype

crow's People

Contributors

krisbuote avatar

Stargazers

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