Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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

🧮 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:

yarn add --dev @solidstate/abdk-math-extensions abdk-libraries-solidity

Development

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.

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:

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

[8]ページ先頭

©2009-2025 Movatter.jp