Matic Contracts, now migrated to [Polygon/pos-contracts](https://github.com/0xPolygon/pos-contracts), are Ethereum smart contracts integral to the Matic Network’s functionality. This repository is equipped with straightforward commands for setup and deployment, emphasizing the use of npm for dependency and process management, like `npm install` for setup and `npm run template:process — –bor-chain-id 15001` for compiling. The bor-chain-id supports multiple environments, including a local setting (15001), Mainnet (137), and TestnetV4 (Mumbai, 80001). Tests are executed on a mainnet fork using Hardhat, facilitated by Docker to simulate the Matic side chain. Developers can manage the side chain lifecycle and state via commands like `npm run bor:simulate`, `npm run bor:stop`, and `npm run bor:clean` to maintain the development environment’s integrity. Comprehensive testing is supported with commands for both Hardhat (`npm test:hardhat`) and Foundry (`npm test:foundry`), alongside coverage analysis through `npm run coverage`.