Ethereum Contracts Template made to run with forge.
yarn
yarn dev
yarn test
The tests are run with forge which requires forge to be installed.
Install forge by following the instructions here
Here is the list of npm scripts you can execute:
These will run a local hardhat network on localhost:8545
and deploy your contracts on it. Plus it will watch for any changes and redeploy them.
This will execute forge tests located in src/tests
This will execute the script <file.ts>
against the specified network.
This command relies on ./_scripts.js to allow parameterizing it via command line argument
As a standard lifecycle npm script, it is executed automatically upon install. It generate config file and typechain to get you started with type safe contract interactions
These will lint and format check your code. the :fix
version will modifiy the files to match the requirement specified in .eslintrc
and .prettierrc.
This will deploy your contracts on the in-memory hardhat network and exit, leaving no trace. quick way to ensure deployments work as intended without consequences