Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 971 Bytes

DEVELOPER.md

File metadata and controls

68 lines (45 loc) · 971 Bytes

Developer Guide

Building Locally

Prerequisites:

  • (optional) nvm for managing node versions
  • node (see version in .nvmrc)
  • foundry

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

Deploy Locally

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