Add option to exclude sol
files from being packed to ContractRegistry
#5
Labels
enhancement
New feature or request
sol
files from being packed to ContractRegistry
#5
Oftentimes you would want to exclude certain
sol
files from being reflected by theContractRegistry
ABI
records. This is especially the case if you have so-calledmocked-contracts
whos only purpose is to aid in testing and should not or, due to import resolution concerns, are impossible to have their ABI generated.Therefore, it would be nice if the
venin-rollup-plugin
would allow us to excludesol
files that match certain pattern matching criterion.Thus, the
options
object passed to therollup-plugin
would need to be augmented with the following:contracts.path
can be a string in which case, the behavior of theContractRegistry
crawler remains the same orcontracts.path
can be ajson
object with the following schema:root
: the base path to start loading thecontracts
from (identical to thecontracts.path
that's available before this ticket is implemented)ignore
: apicomatch
path specifier which, if asol
files truth-ly matches against it, the file is dropped and won't be parsed into the resultingContractRegistry
We would need to extend the test-base (add jest?) to accommodate this feature.
The text was updated successfully, but these errors were encountered: