- Notifications
You must be signed in to change notification settings - Fork0
🧮 SolidState extensions for the ABDK Solidity libraries
License
solidstate-network/abdk-math-extensions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SolidState extensions for theabdk-libraries-solidity
package. Developed as a part of thePremia Finance smart contracts.
Note: SolidState, Premia, and this package are not affiliated with ABDK.
Install the package as well as the required ABDK package as development dependencies:
yarn add --dev @solidstate/abdk-math-extensions abdk-libraries-solidity
Install dependencies via Yarn:
yarn install
Setup Husky to format code on commit:
yarn prepare
Compile contracts via Hardhat:
yarn run hardhat compile
The Hardhat environment relies on the following environment variables. Thedotenv
package will attempt to read them from the.env
file, if it is present.
Key | Description |
---|---|
REPORT_GAS | iftrue , a gas report will be generated after running tests |
By default, Hardhat uses the Hardhat Network in-process. Two additional networks,mainnet
andtestnet
are available, and their behavior is determined by the configuration of environment variables.
Test contracts via Hardhat:
yarn run hardhattest
Activate gas usage reporting by setting theREPORT_GAS
environment variable to"true"
:
REPORT_GAS=true yarn run hardhattest
Generate a code coverage report usingsolidity-coverage
:
yarn run hardhat coverage
About
🧮 SolidState extensions for the ABDK Solidity libraries