Skip to content

Commit

Permalink
Merge branch 'master' of github.com-facuspagnuolo:mimic-fi/v3-core in…
Browse files Browse the repository at this point in the history
…to tasks/implement_new_timelock_modes
  • Loading branch information
facuspagnuolo committed Oct 18, 2023
2 parents ebd1e80 + 0afb0f7 commit 44a7319
Show file tree
Hide file tree
Showing 38 changed files with 2,387 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/certora/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
with: { java-version: '11', java-package: jre }
- name: Install certora cli
shell: bash
run: pip install certora-cli-beta
run: pip install certora-cli
- name: Install solc
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prover-authorizer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prover
name: Prover Authorizer

env:
CI: true
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/prover-relayer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prover Relayer

env:
CI: true

on:
pull_request:
branches: "*"
paths:
- packages/relayer/**

jobs:
prove:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prove
uses: ./.github/actions/certora
with:
workspace: '@mimic-fi/v3-relayer'
certora-key: ${{ secrets.CERTORA_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/prover-smart-vault.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prover Smart Vault

env:
CI: true

on:
pull_request:
branches: "*"
paths:
- packages/smart-vault/**

jobs:
prove:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prove
uses: ./.github/actions/certora
with:
workspace: '@mimic-fi/v3-smart-vault'
certora-key: ${{ secrets.CERTORA_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion packages/authorizer/certora/conf/authorizer.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"files": [
"contracts/Authorizer.sol"
"contracts/Authorizer.sol",
"certora/helpers/Helpers.sol"
],
"verify": "Authorizer:certora/specs/Authorizer.spec",
"loop_iter": "3",
Expand Down
12 changes: 12 additions & 0 deletions packages/authorizer/certora/helpers/Helpers.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.0;

contract Helpers {
function authParams(address p1, address p2, bytes4 p3) external pure returns (uint256[] memory r) {
r = new uint256[](3);
r[0] = uint256(uint160(p1));
r[1] = uint256(uint160(p2));
r[2] = uint256(uint32(p3));
}
}
Loading

0 comments on commit 44a7319

Please sign in to comment.