the infra of defi
clone the project and make sure you have a Node version > 16
npx hardhat compile
npx hardhat test
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Make sure you run update the typechain folder to get the latest contract build.
yarn typechain
Make sure you have docker version 4.12.0 (dont upgrade to the latest it causes issues).
then run
yarn start
Then
yarn setupLocalhost
Check the deployments folder for the updated addresses. If they have changed make use to take the DOS address and put it in the subgraph folder: subgraph.yaml and networks.json
Now run
yarn graph-local
Open a new terminal and run
yarn create-local
Then run
yarn deploy-local
On the dos-frontend repo make sure to copy and paste the contract addresses to the addresses.json file.
run
yarn run dev
You might have to reset your nonce on metamask to interact with things.