npm.io
0.1.0-alpha.0 • Published 5 years ago

matic-proof-generation

Licence
MIT
Version
0.1.0-alpha.0
Deps
7
Size
92 kB
Vulns
0
Weekly
0

Matic PoS (Proof-of-Stake) portal contracts

Build Status

Smart contracts that powers the PoS (proof-of-stake) based bridge mechanism for Matic Network.

Setup

git clone https://github.com/maticnetwork/pos-portal
cd pos-portal

npm install

Compile all contracts

npm run template:process
npm run build
Start main chain and child chain

Start Main chain

npm run testrpc

Start Matic child chain (Requires docker)

npm run bor

If you ran a bor instance before, a dead docker container might still be lying around, clean it using following command:

npm run bor:clean
Run testcases
npm run test
Deploy contracts locally
npm run migrate