Skip to content

Commit

Permalink
Merge pull request #425 from morpho-org/chore/toml
Browse files Browse the repository at this point in the history
toml update
  • Loading branch information
MathisGD authored May 14, 2024
2 parents 86c867e + 34a3303 commit 2241f19
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
- uses: ./.github/actions/install

- name: Build contracts via IR & check sizes
run: yarn build:forge --force --sizes # don't use compilation cache
# don't use compilation cache
# skip import files, because we don't care if contracts are too big
run: yarn build:forge --force --sizes --skip Import


build-no-ir:
name: Compilation (without IR)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ User-end bundlers are provided in each chain-specific folder, instanciating all

Install dependencies with `yarn`.

The first time running the tests with `yarn test:forge` will build Morpho Blue.
Run tests with `yarn test:forge`.

Note that the `EthereumBundlerV2` has been deployed with 80 000 optimizer runs.
To compile contracts with the same configuration, run `FOUNDRY_PROFILE=ethereumBundlerV2 forge b`.

## Audits

Expand Down
14 changes: 10 additions & 4 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ fs_permissions = [
{ access = "read", path = "./config/"}
]
libs = ["lib"]
via-ir = true
optimizer_runs = 999999


[profile.default.fuzz]
runs = 16
Expand All @@ -17,19 +20,22 @@ runs = 16
ethereum = "https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_KEY}"
tenderly = "https://rpc.tenderly.co/fork/${TENDERLY_FORK_ID}"


[profile.default.fmt]
wrap_comments = true


[profile.test]
via-ir = false


[profile.build]
via-ir = true
test = "/dev/null"
script = "/dev/null"
optimizer_runs = 80000


[profile.test]
via-ir = false
[profile.ethereumBundlerV2]
optimizer_runs = 80000


# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config

0 comments on commit 2241f19

Please sign in to comment.