Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Latest commit

 

History

History
47 lines (36 loc) · 853 Bytes

README.md

File metadata and controls

47 lines (36 loc) · 853 Bytes

Matic contracts

Build Status

Ethereum smart contracts that power the Matic Network.

Install dependencies with

npm install

Compile

npm run template:process
npm run truffle:compile

Start main chain and side chain

  • Start Main chain
npm run testrpc
  • Start Matic side chain. Requires docker.
npm run bor:simulate
  • If you ran a bor instance before, a dead docker container might still be lying around, clean it with
npm run bor:clean
  • Run a bor (our matic chain node) instance.

Deploy Contracts

  • For local development
npm run truffle:migrate
  • For a properly initialized set of contracts, follow the instructions here.

Run tests

npm test