Danijel-Enoch / Matic_SideChain

Smart contracts comprising the business logic of the Matic Network

Home Page:https://matic.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matic contracts

Build Status

Ethereum smart contracts that power the Matic Network.

Install dependencies with

npm install

Compile

bor-chain-id for Mainnet = 137 bor-chain-id for TestnetV4 (Mumbai) = 80001

npm run template:process -- --bor-chain-id <bor-chain-id>
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

About

Smart contracts comprising the business logic of the Matic Network

https://matic.network

License:GNU General Public License v3.0


Languages

Language:JavaScript 65.8%Language:Solidity 34.0%Language:Shell 0.2%