Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🧮 SolidState extensions for the ABDK Solidity libraries

License

NotificationsYou must be signed in to change notification settings

solidstate-network/abdk-math-extensions

Repository files navigation

Solidstate extensions for theabdk-libraries-soliditypackage. Developed as a part of thePremia Finance smart contracts.

Note: Solidstate, Premia, and this package are not affiliated with ABDK.

Installation

Install the package as well as the required ABDK package as development dependencies:

pnpm add -D @solidstate/abdk-math-extensions abdk-libraries-solidity

Development

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.

KeyDescription
REPORT_GASiftrue, a gas report will be generated after running tests

Networks

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.

Testing

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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp