- 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:
pnpm add -D @solidstate/abdk-math-extensions abdk-libraries-solidity
Install dependencies:
pnpm install
Setup Husky to format code on commit:
pnpm prepare
Compile contracts via Hardhat:
pnpm 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:
pnpm hardhattest
Activate gas usage reporting by setting theREPORT_GAS
environment variable to"true"
:
REPORT_GAS=true pnpm hardhattest
Generate a code coverage report usingsolidity-coverage
:
pnpm hardhat coverage
About
🧮 SolidState extensions for the ABDK Solidity libraries
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.