Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ npx hardhat compile
# Run tests
npx hardhat test

# Run Foundry tests
forge test
# or: npm run test:forge

# Deploy locally
npx hardhat node &
npx hardhat run scripts/deploy.js --network localhost
Expand All @@ -143,6 +147,12 @@ config/geographies/
| `DepegGuard.sol` | Depeg-defence watchdog — Normal/Caution/Hard state machine, pauses mints + stablecoin on threshold breaches. Spec: [`docs/depeg-guard.md`](docs/depeg-guard.md) |
| `ChainlinkPoRAdapter.sol` | Adapter for Chainlink Proof of Reserves feeds |

## Foundry notes

- Forge tests live under `forge-test/` and are wired through `foundry.toml`, so plain `forge test` works after `npm install`.
- `lib/forge-std` is already vendored for the test harness; no extra `forge install` step is needed for a normal local checkout.
- If `forge` is installed outside your shell `PATH`, invoke it with your local Foundry bin path or add that directory to `PATH` first.

## Contributing

We welcome contributions. See open issues tagged `good-first-issue`.
Expand Down
3 changes: 2 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[profile.default]
src = "contracts"
test = "forge-test"
out = "forge-out"
libs = ["node_modules"]
libs = ["node_modules", "lib"]
solc = "0.8.24"
optimizer = true
optimizer-runs = 200
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"compile": "hardhat compile",
"test": "hardhat test",
"test:forge": "forge test -vvv",
"deploy:local": "hardhat run scripts/deploy.js --network localhost"
},
"dependencies": {
Expand Down
Loading