Prerequisites:
If you use nvm
- switch to the right version of node
:
nvm use
Initialize the dependencies:
npm ci
Run tests:
forge test
Get a test coverage report:
forge coverage
Get a gas report:
forge test --gas-report
Start Anvil:
anvil
Check .env.local
for the set of configuration used.
Run deploy script:
npm run deploy:local
See also:
# Send transaction to authorize local provider
npm run send:add-provider:local
# Trigger oracle request transaction from the test consumer contract
npm run send:oracle:local