Skip to content

Smart contracts comprising the business logic of the Matic Network

License

Notifications You must be signed in to change notification settings

aliammar1995/contracts-e

 
 

Repository files navigation

Matic contracts

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

Run tests

npm test

About

Smart contracts comprising the business logic of the Matic Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.9%
  • Solidity 33.9%
  • Shell 0.2%