Skip to content

nunoedgar-invest/smart-contracts

 
 

Repository files navigation

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

Contract Addresses - Mainnet

  • PLOT Token: 0x72F020f8f3E8fd9382705723Cd26380f8D0c66Bb
  • Master: 0x03c41c5Aff6D541EF7D4c51c8B2E32a5d4427275
  • MarketRegistry: 0xE210330d6768030e816d223836335079C7A0c851
  • MarketUtility: 0x2330058D49fA61D5C5405fA8B17fcD823c59F7Bb
  • Governance: 0x16763F192d529B420F33B699dC72F39f16620717
  • ProposalCategory: 0x2D90743ef134b35cE415855F1c38ca47d65b314C
  • MemberRoles: 0xda06bcd22a68Fa40B63867277aA0eB34702fd80D
  • TokenController: 0x12d7053Efc680Ba6671F8Cb96d1421D906ce3dE2
  • bPLOT Token: 0x82cB6Cd09Bf80fB4014935871fF553b027255D36
  • Vesting: 0x5172C83B5316b86861802d29746d8435f4cB67e6

Market Implementation Addresses

  • ETH/USD: 0x25cf9d73b711bff4d3445a0f7f2e63ade5133e67
  • BTC/USD: 0x5d24cf40ead0601893c212ff3af4895dc42a760b

Contract Addresses - Kovan

  • PLOT Token: 0x1616111F8914F377c22DC576ca6BaB947597022F
  • Master: 0x6bd86cf45fff86300910599107e24dd5db9e1f51
  • MarketRegistry: 0x9f94a65878ea576AbeEA36857587110bcF1BBca5
  • MarketUtility: 0x388716cC71CcFCCe98BAF48E61e6D1F8D259eccC
  • Governance: 0xab4C2C278862931f2929E434464CFc3dC340C6D4
  • ProposalCategory: 0xEAf8e09C80609af4b29946D62F46C26888541332
  • MemberRoles: 0x6C31400177CD31d48f7bf47Cc333ba0651b17d11
  • TokenController: 0xb27E5Fa57B37be78ddE637F705Bd8bd440ed19af
  • bPLOT Token: 0xc84244c52Ff9F1f103F624388DcCc36801062b7a
  • Vesting: 0xdd8cc36531cad81b08704e35cb22cb8f525f4159

Market Implementation Addresses

  • ETH/USD: 0x8f2d95c4c35d5cf6db1a794ff6a3d97178175b9d
  • BTC/USD: 0x7930515cd9dfd91fb65bfe60b0a64e06576c4b19

About

Smart contracts for the PlotX protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.5%
  • Solidity 34.3%
  • Other 0.2%