You would use the Hardhat as usual. Client classes will be generated for the compiled contracts automatically
npx hardhat compile
--sources
Override the default sources folder (/contracts)
/contracts
npx hardhat compile --sources /other/folder/in/projects/root
--artifacts
Override the default output folder
npx hardhat compile --artifacts /foo/bar
--watch true
Compile the contracts, watch *.sol files for changes and automatically recompile
*.sol
npx hardhat compile --watch true
--package
Enables the mono-repo structure for the project. The contracts can now be organized into separate package folders within the repository
Every package can be implemented separately, but still reference the contracts and interfaces of each other. To compile the package:
Last updated 2 years ago
project/ ββ packages/ β ββ Foo/ β β ββ contracts/ β β β ββ Foo.sol β ββ Bar/ β β ββ contracts/ β β β ββ Bar.sol
npx hardhat compile --package packages/Bar