Skip to content

Ethereum smart contracts that power the Matic Network.

License

Notifications You must be signed in to change notification settings

thTNT/pos-contracts

 
 

Repository files navigation

Matic contracts

Build Status

Ethereum smart contracts that power the Matic Network.

Install dependencies with

npm install

Setup

pre-commit install

Compile

npm run template:process -- --bor-chain-id 15001

bor-chain-id should be:
local: 15001
Mainnet = 137
TestnetV4 (Mumbai) = 80001

Main chain and side chain

  • Main chain

All tests are run against a fork of mainnet using Hardhat's forking functionality. No need to run any local chain!

  • Start Matic side chain. Requires docker.
npm run bor:simulate
  • Stop with
npm run bor:stop
  • If you want a clean chain, this also deletes your /data folder containing the chain state.
npm run bor:clean

Run tests

Run Hardhat test

npm test:hardhat

Run Foundry test

npm test:foundry

Coverage

Run coverage with

npm run coverage

About

Ethereum smart contracts that power the Matic Network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.6%
  • Solidity 48.0%
  • Shell 0.4%