{"repo":"celer-network/sgn-v2-contracts","free":true,"listed":false,"github":"https://github.com/celer-network/sgn-v2-contracts","clone":"git clone https://github.com/celer-network/sgn-v2-contracts.git","description":"Smart Contracts for Celer State Guardian Network (SGN) V2 and cBridge V2","language":"Solidity","stars":143,"topics":["ethereum","blockchain","layer-2","crosschain"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"SGN Contracts Contracts for the Celer State Guardian Network (SGN) V2. Run unit tests Benchmark gas cost Check reports/gas usage . Update contract sizes Check reports/contract sizes.txt . Deployments Deployment Management Contract deployments are tracked by hardhat through the files under ./deployments directory on deployment branches. To deploy newest contracts to mainnet, staging, or testnet chains: 1. git checkout mainnet-deployment staging-deployment testnet-deployment , correspondingly 2. git merge main into the deployment branch 3. deploy the contracts 4. push the deployments file changes If any contracts (e.g. libraries) are used for both mainnet and staging, follow the step above to deploy them on staging chains first, then cherry-pick the commit containing ONLY the deployment changes of these shared contracts to mainnet-deployment . Please be cautious with file changes when doing such operation. Rules: 1. ./deployments should NOT exist on main branch 2. only merge main into the deployment branches 3. only change the ./deployments directory on deployment branches so that there will always be no conflicts when merge main Deploy contracts 1. cp .env.template .env , then ensure all environment variables are set in .env . 2. Replace INFURA-PROJECT-ID suffix of the network endpoint in .env , that you're going to use. 3. Add private key of your account that would be used, in .env . Refer to hardhat.config.ts for env param key. 4. Deploy SGN and Staking contracts: Deploy Bri","default_branch":null,"files":null,"tree":[],"storefront":"/r/celer-network","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/celer-network/sgn-v2-contracts/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."}