Giter Site home page Giter Site logo

f-cj / smart-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from plotx/smart-contracts

0.0 1.0 0.0 1.72 MB

Smart contracts for the plotus project

License: GNU General Public License v3.0

JavaScript 65.39% Shell 0.25% Solidity 34.32% Batchfile 0.05%

smart-contracts's Introduction

Build Status

Coverage Status

PlotX SMART CONTRACTS

Smart contracts for PlotX - Curated prediction markets for crypto traders . https://plotx.io/.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Requirements

Node >= 10.x

Installing

Firstly, you need to clone this repo. You can do so by downloading the repo as a zip and unpacking or using the following git command

git clone https://github.com/plotx/smart-contracts.git

Now, It's time to install the dependencies. Enter the smart-contracts directory and use

npm install

Make sure you delete folder bitcore-lib from node_modules inside modules eth-lightwallet and bitcore-mnemonic

We need to compile the contracts before deploying.

npm run compile

Now, You should start a private network on port 8545 using Ganache or something similar. To run the private network -
On Windows, Execute file startGanache.bat present in smart-contracts/scripts directory
On Linux or Mac OS Systems, run the startGanache.sh file while in smart-contracts/scripts directory

./startGanache.sh

Then, you can deploy Plotx contracts using the migrate script.

npm run deploy

If you want, you can run the test cases using

npm run test

And run generate the coverage report using

npm run coverage

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.