TtheBC01 / OZ-Governor-Hardhat-Example

Example of how to compile OZ Governor with Hardhat.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic Hardhat project using OpenZepplin Governor library

Comes with hardhat contract sizer plugin setup.

npm install 
npx hardhat compile

Expected contract sizer output:

 ·---------------------------------|-------------|---------------·
 |  Contract Name                  ·  Size (KB)  ·  Change (KB)  │
 ··································|·············|················
 |  AddressUpgradeable             ·      0.086  ·               │
 ··································|·············|················
 |  ECDSAUpgradeable               ·      0.086  ·               │
 ··································|·············|················
 |  Governor                       ·     15.301  ·               │
 ··································|·············|················
 |  SafeCastUpgradeable            ·      0.086  ·               │
 ··································|·············|················
 |  StorageSlotUpgradeable         ·      0.086  ·               │
 ··································|·············|················
 |  StringsUpgradeable             ·      0.086  ·               │
 ··································|·············|················
 |  TimelockControllerUpgradeable  ·      6.563  ·               │
 ··································|·············|················
 |  TimersUpgradeable              ·      0.086  ·               │
 ·---------------------------------|-------------|---------------·

About

Example of how to compile OZ Governor with Hardhat.

License:MIT License


Languages

Language:Solidity 63.4%Language:JavaScript 36.6%