Contracts
Smart contracts comprising the business logic of the Matic Network
Install / Use
/learn @maticnetwork/ContractsREADME
[!WARNING] This repository is no longer in use, and has been migrated to https://github.com/0xPolygon/pos-contracts
Matic contracts
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
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
