{"repo":"maticnetwork/pos-portal","free":true,"listed":false,"github":"https://github.com/maticnetwork/pos-portal","clone":"git clone https://github.com/maticnetwork/pos-portal.git","description":"Smart contracts that powers the PoS (proof-of-stake) based bridge mechanism for Matic Network","language":"Solidity","stars":424,"topics":["ethereum","matic","web3","blockchain"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Polygon PoS (Proof-of-Stake) portal contracts Smart contracts that powers the PoS (proof-of-stake) based bridge mechanism for Polygon Network. Audits - Hexens - Halborn - CertiK - PeckShield Usage Install package from NPM using Hardhat Build Make sure you have installed NodeJS, NVM & NPM. Clone repository, switch to the required node version & install all dependencies Hardhat Tests After building as mentioned above, run the following command to run Hardhat tests Foundry Build Make sure you have installed Foundry. Run the following command to run Foundry build Foundry Tests Modify the following in the .env file (create one if it doesn't exist) After building as mentioned above, run the following command to run Foundry tests Known Issues - ForkupgradeMPT.t.sol can take a while to complete. if it does, you can run the following command to skip it Other Build Options [Deprecated] If you prefer not using docker for compiling contracts, consider setting docker: false in truffle-config.js. For deploying all contracts in pos-portal , we need to have at least two chains running --- simulating RootChain ( Ethereum ) & ChildChain ( Polygon ). There are various ways of building this multichain setup, though two of them are majorly used 1. With matic-cli 2. Without matic-cli matic-cli is a project, which makes setting up all components of Ethereum Polygon multichain ecosystem easier. Three components matic-cli sets up for you - Ganache ( simulating RootChain ) - Heimdall ( validator node ","default_branch":null,"files":null,"tree":[],"storefront":"/r/maticnetwork","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maticnetwork/pos-portal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}