Gas Usage Analytics for Hardhat
token
and gasPriceApi
config optionsThis release:
This release restores the (accidentally broken) excludeContracts
option and adds support for excluding folders.
The option now accepts an array of strings which are checked against Hardhat's list of fully qualified contract names for your project. If an exclusion string is a substring of a qualified contract name, that contract is filtered from the report.
Given the following qualified contract names...
contracts/DuplicateA.sol:Duplicate
contracts/DuplicateB.sol:Duplicate
contracts/EtherRouter/EtherRouter.sol:EtherRouter
contracts/EtherRouter/Factory.sol:Factory
['DuplicateA']
would filter everything in the DuplicateA.sol
file['EtherRouter/']
would filter the entire EtherRouter
directory['EtherRouter.sol']
would filter only the contracts in EtherRouter.sol
file.Hi!
This version:
Adds a new option, remoteContracts which lets you track the gas usage of contracts deployed to the parent chain of a forked provider.
Fixes a bug found at openzeppelin-upgrades that caused the reporter crash when querying the network for a non-existent transaction hash. (Contribution @frangio)