Matic PoS (Proof-of-Stake) portal contracts
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