Skip to content

Commit 245f802

Browse files
committed
install dependencies script
1 parent acb1311 commit 245f802

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

protocol/pcp/dlu/eth/contracts/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22

33
This directory contains the implementation of the PCP settlement smart contract. To test the contract, run:
44

5+
## Installation
6+
7+
First, make the install script executable:
8+
9+
```bash
10+
chmod +x install-deps.sh
11+
./install-deps.sh
12+
```
13+
14+
## Testing
15+
16+
Then, run the install script:
17+
518
```bash
6-
forge test
19+
./install-deps.sh
720
```
821

922
There is a long-running test covering over 50 epochs. It will likely take a few seconds to run.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[profile.default]
2+
src = "src"
3+
out = "out"
4+
libs = ["lib"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Remove existing libs
4+
rm -rf lib/
5+
6+
# Install all dependencies
7+
forge install foundry-rs/forge-std --no-commit
8+
forge install OpenZeppelin/openzeppelin-contracts --no-commit
9+
forge install safe-global/safe-smart-account --no-commit
10+
forge install transmissions11/solmate --no-commit
11+
forge install OpenZeppelin/openzeppelin-contracts-upgradeable --no-commit

0 commit comments

Comments
 (0)