Skip to content

Consensys Academy 2018 Developer Program Final Project - Ether Flow Bounty Dapp

Notifications You must be signed in to change notification settings

kichong/Ether-Flow

Repository files navigation

Ether Flow Bounty Dapp

Consensys Academy 2018 Developer Program Final Project - Ether Flow Bounty Dapp

Description

Ether Flow is an ethereum bounty dapp used for getting answers to questions and earning money (ether) by answering questions. Questions should be answered using "flows" - lyrics, poems, or raps.

User Stories

  • Requestors:
    • post a question and incentivise other users to answer using bounties or rewards.
    • select the wordsmith they thought had the best answer to collect the reward.
  • Wordsmiths:
    • answer posted questions using "flows" - lyrics, poems, raps, etc.
    • should try to impress the requestor with something clever or funny.
    • who are selected by the requestor, can collect the reward that was posted.
  • Anyone:
    • can view a list of the posted questions and corresponding answers or flows.
    • boost the reward in a post to increase the incentives for answering the question.

Set Up

Dependencies: Node, Truffle, and Ganache-CLI.

Clone the github repo, move into the directory, install node modules.

    git clone https://github.com/kichong/Ether-Flow.git
    cd ether-flow
    npm install

In a separate terminal, run Ganache-CLI on port 8545 (the default).

    ganache-cli

In ether-flow directory, compile contracts, migrate contracts to locally running Ganche-CLI on port 8545.

    truffle compile
    truffle migrate --reset

Run contract tests.

    truffle test

Copy seedwords/ mnemonic from Ganache-CLI.

Open browser with metamask, log into metamask with above copied seed words, set metamask to a private network (localhost 8545).

Run the frontend on http://localhost:3000).

    npm run start

User Interface

I used the truffle react box to build the user interface. I have no front-end or web development experience so the user interface is very rudimentary and incomplete as I did not have the skills or time to acquire the skills to finish building all the front-end functionality and features that I intended. However, the solidity contract is complete and its logic is working as intended. Complete functionality of the smart contract can be tested using truffle test or by copying and pasting the EtherFlow.sol code into Remix and deleting the zeppelin library references at the beginning of the contract.

Completed UI features

  • Users is able to post new requests and send an ether bounty by completing the form then clicking the Request New Flow button
  • User current metamask account is displayed (refresh page after switching accounts)
  • User can update UI with contract state by clicking on the Update List button (refresh page before updating list)
  • UI displays the user's submitted request with correct reward amount, question, and requestor address

Incomplete UI features

  • Users can submit a flow in response to a question/ request
  • Submitted flows are displayed next to corresponding question/ request
  • Requestors can choose wordsmith to collect bounty
  • Wordsmiths can collect the bounty
  • Anyone can boost a reward

About

Consensys Academy 2018 Developer Program Final Project - Ether Flow Bounty Dapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published