Protocol

Protocol

Contributing

You will need a copy of Foundry installed before proceeding. See the installation guide for details.

Setup

git clone
cd protocol
forge install

Run Tests

forge test

Update Gas Snapshots

forge snapshot

Deploying contracts

This repo uses hardhat for contract deployments because (as far as I'm aware) foundry doesn't have a tool for deterministic deployments yet.

Install Dependencies

pnpm i

Deploy Contracts

$ node deploy.js

Refer to the hardhat.config.ts file for the list of network names currently set up.