Skip to content

gigabit-eth/treasure-for-loot-contracts

 
 

Repository files navigation

Treasure (for Loot)

Development

Install dependencies via Yarn:

yarn install

Setup Husky to format code on commit:

yarn prepare

Compile contracts via Hardhat:

yarn run hardhat compile

Networks

Configurations are defined for mainnet and rinkeby networks. Network forking is also available, and can be utilized by setting the FORK_MODE environment variable to true and FORK_NETWORK to either mainnet or rinkeby.

Testing

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

Documentation

A documentation site is output on contract compilation to the docgen directory. It can also be generated manually:

yarn run hardhat docgen

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.5%
  • Solidity 44.4%
  • Shell 0.1%