Skip to content

Commit

Permalink
Merge pull request #338 from morpho-org/review-cantina
Browse files Browse the repository at this point in the history
Cantina review
  • Loading branch information
MerlinEgalite authored Nov 8, 2023
2 parents b59d8e3 + 4520213 commit 345311b
Show file tree
Hide file tree
Showing 57 changed files with 1,146 additions and 629 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,8 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- uses: ./.github/actions/install
Expand Down
34 changes: 1 addition & 33 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- uses: ./.github/actions/install
Expand All @@ -39,17 +31,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- uses: ./.github/actions/install-cache
Expand Down Expand Up @@ -86,17 +70,9 @@ jobs:
max-test-rejects: 65536

steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- uses: ./.github/actions/install-cache
Expand All @@ -120,24 +96,16 @@ jobs:
type: ["slow", "fast"]
include:
- type: "slow"
fuzz-runs: 128
fuzz-runs: 96
max-test-rejects: 65536
- type: "fast"
fuzz-runs: 16
max-test-rejects: 65536

steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- uses: ./.github/actions/install-cache
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- name: Build contracts & package with hardhat
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version_type:
description: 'Version to release'
description: "Version to release"
required: true
type: choice
options:
Expand All @@ -16,23 +16,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true


jobs:
build-and-deploy:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
submodules: recursive

- name: Build contracts & package with hardhat
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@
[submodule "lib/murky"]
path = lib/murky
url = https://github.com/dmfxyz/murky
[submodule "lib/morpho-blue-irm"]
path = lib/morpho-blue-irm
url = https://github.com/morpho-labs/morpho-blue-irm
2 changes: 1 addition & 1 deletion config/ethereum.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chainId": 1,
"forkBlockNumber": 18227677,
"forkBlockNumber": 18500000,
"markets": [
{
"loanToken": "WETH",
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fs_permissions = [
libs = ["lib"]

[profile.default.fuzz]
runs = 32
runs = 16


[profile.default.rpc_endpoints]
Expand Down
1 change: 0 additions & 1 deletion lib/morpho-blue-irm
Submodule morpho-blue-irm deleted from 0e9dc2
Loading

0 comments on commit 345311b

Please sign in to comment.