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
2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/install-cache/action.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/install/action.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
with:
submodules: recursive

- uses: ./.github/actions/install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8789b3e21e6c11b2697f5eb56eddae542f746c10 # v1

- name: Run Linter
run: yarn lint
run: forge fmt --check
46 changes: 13 additions & 33 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ concurrency:
cancel-in-progress: true

jobs:
build-via-ir:
name: Compilation (via IR)
build:
name: Compilation
runs-on: ubuntu-latest

steps:
Expand All @@ -21,38 +21,14 @@ jobs:
with:
submodules: recursive

- uses: ./.github/actions/install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8789b3e21e6c11b2697f5eb56eddae542f746c10 # v1

- name: Build contracts via IR & check sizes
run: yarn build:forge --force --sizes # don't use compilation cache

build-no-ir:
name: Compilation (without IR)
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
submodules: recursive

- uses: ./.github/actions/install-cache

- name: Build contracts without IR
run: yarn build:forge
env:
FOUNDRY_PROFILE: no_via_ir

- name: Save forge compilation cache
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
with:
path: |
cache
out
key: forge-${{ github.ref_name }}-${{ github.run_id }}
- name: Build contracts & check sizes
run: forge build --force --sizes # don't use compilation cache

test:
needs: build-no-ir
needs: build

name: Tests
runs-on: ubuntu-latest
Expand All @@ -79,10 +55,14 @@ jobs:
with:
submodules: recursive

- uses: ./.github/actions/install-cache
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8789b3e21e6c11b2697f5eb56eddae542f746c10 # v1

- name: Build morpho-blue
run: cd lib/morpho-blue && forge build
Comment thread
MathisGD marked this conversation as resolved.

- name: Run tests in ${{ matrix.type }} mode
run: yarn test:forge -vvv
run: forge test -vvv
Comment thread
MathisGD marked this conversation as resolved.
env:
FOUNDRY_FUZZ_RUNS: ${{ matrix.fuzz-runs }}
FOUNDRY_FUZZ_MAX_TEST_REJECTS: ${{ matrix.max-test-rejects }}
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/hardhat.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/npm-release.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,15 @@ dist/
# Docs
docs/

# Dotenv file
.env

# IDE
.vscode
Comment thread
MathisGD marked this conversation as resolved.

# data
data/
broadcast/

# Node.js
node_modules/

# Certora
.certora_internal
munged/

# Hardhat
/types
/cache_hardhat
/artifacts

*.log
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/post-checkout

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/post-merge

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/prepare-commit-msg

This file was deleted.

11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,10 @@ If one of the allocators starts setting the withdraw queue and/or supply queue t
- 3. Set a new withdraw queue that is in line with the vault risk strategy with the `updateWithdrawQueue` function (this can also be done by the curator or the other allocators).
- 4. Set a new supply queue that is in line with the vault risk strategy with the `setSupplyQueue` function (this can also be done by the curator or the other allocators).

## Development
## Developers

Install dependencies: `yarn`

Run forge tests: `yarn test:forge`

Run hardhat tests: `yarn test:hardhat`

You will find other useful commands in the [`package.json`](./package.json) file.
Compilation, testing and formatting done with `forge`.
Formal verification done with `certora`.

## Audits

Expand Down
7 changes: 0 additions & 7 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[profile.default]
src = "src"
test = "test/forge"
libs = ["lib"]
evm_version = "paris"
via-ir = true
optimizer = true
Expand All @@ -26,8 +23,4 @@ exclude_lints = [
"asm-keccak256",
]

[profile.no_via_ir]
via-ir = false


# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config
106 changes: 0 additions & 106 deletions hardhat.config.ts

This file was deleted.

Loading