Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maticnetwork/contracts
Smart contracts comprising the business logic of the Matic Network
https://github.com/maticnetwork/contracts
blockchain cryptocurrencies dapps decentralised-exchange ethereum payment scalability
Last synced: 3 months ago
JSON representation
Smart contracts comprising the business logic of the Matic Network
- Host: GitHub
- URL: https://github.com/maticnetwork/contracts
- Owner: maticnetwork
- License: gpl-3.0
- Archived: true
- Created: 2017-11-22T09:34:25.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T10:57:31.000Z (10 months ago)
- Last Synced: 2024-09-22T05:31:46.168Z (3 months ago)
- Topics: blockchain, cryptocurrencies, dapps, decentralised-exchange, ethereum, payment, scalability
- Language: JavaScript
- Homepage: https://matic.network
- Size: 12.6 MB
- Stars: 1,141
- Watchers: 73
- Forks: 507
- Open Issues: 66
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-web3-tools-and-dapps - Polygon Smart Contracts - The smart contracts on the Matic Network define the rules of how the business works. (dApps directory / Smart Contract Templates)
- best-of-crypto - GitHub - 61% open · ⏱️ 01.03.2024): (Smart Contract Platforms)
README
> [!WARNING]
> This repository is no longer in use, and has been migrated to https://github.com/0xPolygon/pos-contracts# Matic contracts
![Build Status](https://github.com/maticnetwork/contracts/workflows/CI/badge.svg)
Ethereum smart contracts that power the [Matic Network](https://polygon.technology/polygon-pos).
### 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
```