GithubHelp home page GithubHelp logo

isabella232 / conditional-markets-interface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gnosis/conditional-markets-interface

0.0 0.0 0.0 20.36 MB

Interface for conditional markets for Gnosis' Conditional Token Standard

JavaScript 81.96% HTML 0.04% CSS 0.78% Shell 0.10% SCSS 13.03% Solidity 4.09%

conditional-markets-interface's Introduction

Conditional Markets Interface

Frontend Interface to display and operate conditional markets, based on Gnosis' Conditional Token Standard.

Development Instructions

  1. Run npm install
  2. In a separate terminal, run ganache-cli -d -i 437894314313
  3. Run npm run migrate. If the migration finishes successfully, app/src/config.json will be updated accordingly.
  4. Start the webpack dev server with npm start. This makes a hot-reloading dev build of the interface.

Testnet Development Instructions

  1. Create a .env file in the root of this project with the following contents:

    # Use your own mnemonic phrase here:
    SEED='myth like bonus scare over problem client lizard pioneer submit female collect'
    AMMFUNDING=1000000000000000000
    

    The 0th account associated with the SEED will deploy the contracts, be the oracle for the conditions, and also be the operator of the LMSRMarketMaker. It needs to have enough ether for gas costs, as well as the amount specified as AMMFUNDING, which will be used as funding for the LMSRMarketMaker. AMMFUNDING defaults to 1000000000000000000, which is one ether in wei.

  2. Run npm run migrate -- --network ropsten. Available networks are ropsten, rinkeby, kovan, and goerli. app/src/config.json will be updated accordingly. If the migration finishes successfully, app/src/config.json will be updated accordingly.

  3. Start the webpack dev server with npm start. This makes a hot-reloading dev build of the interface.

  4. Make a build with npm run build. This will output a webpack production build in dist, which may be used in conjunction with a static hosting service such as Github Pages or S3.

Running Helper Scripts

For operating the LMSR market maker

npx truffle exec scripts/operate_lmsr.js

For resolving the decentralized oracles

npx truffle exec scripts/resolve_decentralized_oracles.js

conditional-markets-interface's People

Contributors

andre-meyer avatar cag avatar dasanra avatar davidalbela avatar denisgranha avatar dependabot[bot] avatar fairlighteth avatar germartinez avatar giacomolicari avatar luarx avatar v1rtuouscycle 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.