Helper scripts to compile contract ABIs and generate contract interfaces only if the solidity files are changed.
The scripts assume using waffle for solidity compilation and ethers for blockchain interaction, but you can easily update them to use different tools.
Full build is done by yarn compile
, defined as follows in package.json
scripts section:
{
"scripts": {
"compile:sol": "./scripts/compile-contracts.sh",
"compile:typechain": "./scripts/compile-typechain.sh",
"compile:ts": "tsc -b",
"compile": "yarn compile:sol && yarn compile:typechain && yarn compile:ts",
...
}
}