Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: agToken update #205

Merged
merged 35 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
463ffad
first batch of test done
GuillaumeNervoXS Jan 30, 2023
5a306ba
update final hash of vaultManager implementation
GuillaumeNervoXS Jan 30, 2023
fa19a7b
fix: file update
sogipec Mar 21, 2023
a4a1ca2
fix: agToken contract cleaned
sogipec Mar 21, 2023
db00e2e
setup for upgraded agToken contract
sogipec Mar 21, 2023
ab0496c
fixing agToken names and stuff
sogipec Mar 21, 2023
0530e5f
changing some comments
sogipec Mar 21, 2023
afd064b
fix rebase
sogipec May 22, 2023
fff6f53
feat: last rebase fix
sogipec May 22, 2023
009824a
feat: agToken update
sogipec Dec 19, 2023
163403e
remove silo
sogipec Dec 19, 2023
c2736b6
feat: remove useless files
sogipec Dec 19, 2023
a55144d
feat: reorg contracts
sogipec Dec 20, 2023
85a64c6
fix: foundry tests
sogipec Dec 20, 2023
cbb7572
feat: gov scripts update
sogipec Jan 4, 2024
5cfc470
feat: continuing deployment scripts
sogipec Jan 4, 2024
2010128
deployment script agUSD
sogipec Jan 4, 2024
adaeddc
script resilience
sogipec Jan 4, 2024
fb57285
deploymnt script
sogipec Jan 4, 2024
8baeb75
feat: deployment script for agUSD
sogipec Jan 4, 2024
8ddf487
feat: oracle testing
sogipec Jan 5, 2024
14cc29d
deleting utils file
sogipec Jan 5, 2024
9920bde
feat: update constants file
sogipec Jan 5, 2024
c555464
add vanity to package
sogipec Jan 5, 2024
31965d4
feat: deployment
sogipec Jan 10, 2024
35bf704
fix: lz bridge token
sogipec Jan 10, 2024
96a7dd1
feat: deployment of lz-agEUR
sogipec Jan 10, 2024
b281e51
fix: ci of the repo
sogipec Jan 12, 2024
a2fad24
fix: build action
sogipec Jan 12, 2024
8ac544c
fix: tests
sogipec Jan 12, 2024
b3e523b
chore: update ci to load from cache node_modules
0xtekgrinder Jan 19, 2024
b3c745f
chore: compile directly in the ci for slither
0xtekgrinder Jan 19, 2024
dd300ab
chore: clean cache files before compiling foundry in slither ci
0xtekgrinder Jan 19, 2024
2f9e9c9
adjust flashloan params
sogipec Jan 19, 2024
e9c1176
fix: last tests
sogipec Jan 19, 2024
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
35 changes: 35 additions & 0 deletions .github/actions/setup-repo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Setup repo
description: Runs all steps to setup the repo (install node_modules, build, etc...)
inputs:
registry-token:
description: 'PAT to access registries'
runs:
using: 'composite'
steps:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: |
echo "::set-output name=dir::$(yarn cache dir)"
echo "::set-output name=version::$(yarn -v)"

- uses: actions/setup-node@v3
with:
node-version: '20'

- uses: actions/cache@v2
id: yarn-cache
with:
path: |
**/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}

key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
shell: bash
run: echo "//npm.pkg.github.com/:_authToken=$GH_REGISTRY_ACCESS_TOKEN" >> .npmrc && yarn install --frozen-lockfile --verbose && rm -f .npmrc
env:
GH_REGISTRY_ACCESS_TOKEN: ${{ inputs.registry-token }}
File renamed without changes
60 changes: 35 additions & 25 deletions .github/workflows/ci-deep.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "CI Deep"
name: 'CI Deep'

on:
schedule:
- cron: "0 3 * * 0" # at 3:00am UTC every Sunday
- cron: '0 3 * * 0' # at 3:00am UTC every Sunday
workflow_dispatch:
inputs:
fuzzRuns:
default: "10000"
description: "Unit: number of fuzz runs."
default: '10000'
description: 'Unit: number of fuzz runs.'
required: false

jobs:
Expand All @@ -19,15 +19,20 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache: 'yarn'

- name: Setup repo
uses: ./.github/actions/setup-repo
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}

- name: Install dependencies
run: yarn install

- name: Run solhint
run: yarn lint:check

- name: "Add lint summary"
- name: 'Add lint summary'
run: |
echo "## Lint result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
Expand All @@ -37,12 +42,17 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
submodules: 'recursive'

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache: 'yarn'

- name: Setup repo
uses: ./.github/actions/setup-repo
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -58,10 +68,10 @@ jobs:
- name: Compile foundry
run: yarn foundry:compile --sizes

- name: "Cache the build so that it can be re-used by the other jobs"
uses: "actions/cache/save@v3"
- name: 'Cache the build so that it can be re-used by the other jobs'
uses: 'actions/cache/save@v3'
with:
key: "build-${{ github.sha }}"
key: 'build-${{ github.sha }}'
path: |
cache-forge
out
Expand All @@ -70,27 +80,27 @@ jobs:
typechain
node_modules

- name: "Add build summary"
- name: 'Add build summary'
run: |
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

hardhat-tests:
needs: ["build", "lint"]
needs: ['build', 'lint']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache: 'yarn'

- name: "Restore the cached build"
uses: "actions/cache/restore@v3"
- name: 'Restore the cached build'
uses: 'actions/cache/restore@v3'
with:
fail-on-cache-miss: true
key: "build-${{ github.sha }}"
key: 'build-${{ github.sha }}'
path: |
cache-forge
out
Expand All @@ -110,29 +120,29 @@ jobs:
ETH_NODE_URI_FORK: ${{ secrets.ETH_NODE_URI_FORK }}
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}

- name: "Add test summary"
- name: 'Add test summary'
run: |
echo "## Hardhat Unit tests result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

foundry-tests:
needs: ["build", "lint"]
needs: ['build', 'lint']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
submodules: 'recursive'

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: "Restore the cached build"
uses: "actions/cache/restore@v3"
- name: 'Restore the cached build'
uses: 'actions/cache/restore@v3'
with:
fail-on-cache-miss: true
key: "build-${{ github.sha }}"
key: 'build-${{ github.sha }}'
path: |
cache-forge
out
Expand All @@ -150,7 +160,7 @@ jobs:
ETH_NODE_URI_FANTOM: ${{ secrets.ETH_NODE_URI_FANTOM }}
FOUNDRY_FUZZ_RUNS: ${{ github.event.inputs.fuzzRuns || '10000' }}

- name: "Add test summary"
- name: 'Add test summary'
run: |
echo "## Foundry Unit tests result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
Loading
Loading