Network | |
---|---|
Ethereum Mainnet | ๐ |
Arbitrum Mainnet | ๐ |
Install dependencies via Yarn:
yarn install
Setup Husky to format code on commit:
yarn prepare
Create a .env
file with the following values defined:
Key | Description |
---|---|
FORK_MODE |
if true , tests will be run against a mainnet fork |
ALCHEMY_KEY |
Alchemy API key for node connectivity |
ETH_TEST_PKEY |
private key for use on Rinkeby testnet |
ETH_MAIN_KEY |
private key for use on Ethereum mainnet |
BSC_PKEY |
private key for use on Binance Smart Chain |
Test contracts via Hardhat:
yarn run hardhat test
Activate gas usage reporting by setting the REPORT_GAS
environment variable to "true"
:
REPORT_GAS=true yarn run hardhat test
Generate a code coverage report using solidity-coverage
:
yarn run hardhat coverage
The primary license for Premia contracts is the Business Source License 1.1 (BUSL-1.1
), see LICENSE
.
- Interfaces are licensed under
LGPL-3.0-or-later
(as indicated in their SPDX headers), seeLICENSE_LGPL
- All files in
contracts/test
remain unlicensed.