GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - maticnetwork/contracts: Smart contracts comprising the business logic of the Matic Network

This repository was archived by the owner on Mar 1, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

1,898 Commits
1,898 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
contracts
contracts
 
 
docs/autogen
docs/autogen
 
 
scripts
scripts
 
 
test-bor-docker
test-bor-docker
 
 
test
test
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.nvmrc
.nvmrc
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.prettierrc
.prettierrc
 
 
.solcover.cjs
.solcover.cjs
 
 
.soliumignore
.soliumignore
 
 
.soliumrc.json
.soliumrc.json
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
foundry.toml
foundry.toml
 
 
hardhat.config.cjs
hardhat.config.cjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
slither.config.json
slither.config.json
 
 

Repository files navigation

Warning

This repository is no longer in use, and has been migrated to https://github.com/0xPolygon/pos-contracts

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

Smart contracts comprising the business logic of the Matic Network

matic.network

Topics

blockchaincryptocurrenciesdappsdecentralised-exchangeethereumpaymentscalability

Resources

Readme
GPL-3.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.2k stars

Watchers

8 watching

Forks

508 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.