Skip to content

rpw/sgn-v2-contracts

 
 

Repository files navigation

SGN Contracts

Contracts for the Celer State Guardian Network (SGN) V2.

Run unit tests

yarn test

Benchmark gas cost

yarn report-gas:benchmark
yarn report-gas:summary

Check reports/gas_usage.

Update contract sizes

yarn size-contracts

Check reports/contract_sizes.txt.

Deploy contracts

  1. cp .env.template .env, then ensure all environment variables are set in .env.

  2. Deploy SGN and Staking contracts:

hardhat deploy --network <network> --tags SGNStaking

Deploy Bridge contract:

hardhat deploy --network <network>  --tags Bridge
  1. Verify contracts on Etherscan:
hardhat etherscan-verify --network <network> --license "GPL-3.0" --force-license

About

Smart Contracts for Celer State Guardian Network (SGN) V2 and cBridge V2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 49.9%
  • TypeScript 47.3%
  • Shell 2.2%
  • JavaScript 0.6%