Skip to content

Latest commit

 

History

History
65 lines (37 loc) · 1.17 KB

README.md

File metadata and controls

65 lines (37 loc) · 1.17 KB

Juice Swap Allocator

Install Foundry

To get set up:

  1. Install Foundry.
curl -L https://foundry.paradigm.xyz | sh
  1. Install external lib(s)
git submodule update --init && yarn install

then run

forge update

If git modules are failing to clone, not installing, etc (ie overall submodule misbehaving), use git submodule update --init --recursive --force

  1. Run tests:
forge test
  1. Update Foundry periodically:
foundryup

Content

This repo is organised as follow:

Tests

Test for every extension are provided in contracts/test. Those test are using a complete Juicebox contracts deployment (provided in helpers/TestBaseWorkflow) without requiring a forked network.

Deploy & verify

Setup

Configure the .env variables, and add a mnemonic.txt file with the mnemonic of the deployer wallet. The sender address in the .env must correspond to the mnemonic account.

Mainnet

yarn deploy-mainnet

The deployments are stored in ./broadcast

See the Foundry Book for available options.