Skip to content

Commit fdf60c2

Browse files
committed
Documenting first time running the custom pool
1 parent 58cc7d1 commit fdf60c2

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22

33
Example of external custom pool for Balancer V3. Extend it to create new pool types.
44

5-
forge install && yarn && cd lib/balancer-v3-monorepo && yarn && yarn build && cd ../.. && yarn build && yarn test:hardhat
5+
# Requirements
6+
7+
- Node.js v18.x (we recommend using nvm to install it)
8+
- Yarn v4.x
9+
- Foundry v1.0.0
10+
11+
# Installation
12+
13+
If it's the first time running the project, run `yarn install-fresh` to install the dependencies and build the project. It'll download and compile V3 monorepo, creating node_modules folders in the library (these folders will be needed to use monorepo as a submodule of the custom pool, so tests can use the base test files).
14+
15+
# Testing
16+
17+
After installing the dependencies, run `yarn test` to run forge and hardhat tests.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"Elshan Dzhafarov <[email protected]>"
1818
],
1919
"scripts": {
20+
"install-fresh": "sh ./scripts/install-fresh.sh",
2021
"build": "yarn workspaces foreach --parallel --jobs unlimited --verbose run build && yarn compile && rm -rf artifacts/build-info",
2122
"compile": "hardhat compile",
2223
"compile:watch": "nodemon --ext sol --exec yarn compile",

scripts/install-fresh.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
forge install
2+
yarn
3+
cd lib/balancer-v3-monorepo
4+
yarn
5+
yarn build
6+
cd ../..
7+
yarn build

0 commit comments

Comments
 (0)