Skip to content

ERC4626 Tokenised Vaults for Farms supported by Yield Bay

Notifications You must be signed in to change notification settings

yield-bay/vaults

Repository files navigation

Hardhat x Foundry Template

Template repository for getting started quickly with Hardhat and Foundry in one project

Github Actions

Getting Started

  • Use Foundry:
forge install
forge test
  • Use Hardhat:
npm install
npx hardhat test

Features

  • Write / run tests with either Hardhat or Foundry:
forge test
# or
npx hardhat test
  • Use Hardhat's task framework
npx hardhat example
  • Install libraries with Foundry which work with Hardhat.
forge install rari-capital/solmate # Already in this repo, just an example

Notes

Whenever you install new libraries using Foundry, make sure to update your remappings.txt file by running forge remappings > remappings.txt. This is required because we use hardhat-preprocessor and the remappings.txt file to allow Hardhat to resolve libraries you install with Foundry.

Deployment

  • Open a terminal and run a hardhat local node
npx hardhat node --fork https://rpc.moonriver.moonbeam.network
  • In another terminal window, run the deployment script
npx hardhat run tasks/deploy.ts --network localnet

About

ERC4626 Tokenised Vaults for Farms supported by Yield Bay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published