Skip to content

Commit 0a857de

Browse files
sogipecGuillaumeNervoXS0xtekgrinder
authored
fix: agToken update (#205)
* first batch of test done * update final hash of vaultManager implementation * fix: file update * fix: agToken contract cleaned * setup for upgraded agToken contract * fixing agToken names and stuff * changing some comments * fix rebase * feat: last rebase fix * feat: agToken update * remove silo * feat: remove useless files * feat: reorg contracts * fix: foundry tests * feat: gov scripts update * feat: continuing deployment scripts * deployment script agUSD * script resilience * deploymnt script * feat: deployment script for agUSD * feat: oracle testing * deleting utils file * feat: update constants file * add vanity to package * feat: deployment * fix: lz bridge token * feat: deployment of lz-agEUR * fix: ci of the repo * fix: build action * fix: tests * chore: update ci to load from cache node_modules * chore: compile directly in the ci for slither * chore: clean cache files before compiling foundry in slither ci --------- Co-authored-by: gs8nrv <[email protected]> Co-authored-by: 0xtekgrinder <[email protected]>
1 parent 53c0990 commit 0a857de

File tree

157 files changed

+25937
-2965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+25937
-2965
lines changed

.github/actions/setup-repo/action.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Setup repo
2+
description: Runs all steps to setup the repo (install node_modules, build, etc...)
3+
inputs:
4+
registry-token:
5+
description: 'PAT to access registries'
6+
runs:
7+
using: 'composite'
8+
steps:
9+
- name: Get yarn cache directory path
10+
id: yarn-cache-dir-path
11+
shell: bash
12+
run: |
13+
echo "::set-output name=dir::$(yarn cache dir)"
14+
echo "::set-output name=version::$(yarn -v)"
15+
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '20'
19+
20+
- uses: actions/cache@v2
21+
id: yarn-cache
22+
with:
23+
path: |
24+
**/node_modules
25+
${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
27+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-yarn-
30+
31+
- name: Install dependencies
32+
shell: bash
33+
run: echo "//npm.pkg.github.com/:_authToken=$GH_REGISTRY_ACCESS_TOKEN" >> .npmrc && yarn install --frozen-lockfile --verbose && rm -f .npmrc
34+
env:
35+
GH_REGISTRY_ACCESS_TOKEN: ${{ inputs.registry-token }}
File renamed without changes.

.github/workflows/ci-deep.yml

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: "CI Deep"
1+
name: 'CI Deep'
22

33
on:
44
schedule:
5-
- cron: "0 3 * * 0" # at 3:00am UTC every Sunday
5+
- cron: '0 3 * * 0' # at 3:00am UTC every Sunday
66
workflow_dispatch:
77
inputs:
88
fuzzRuns:
9-
default: "10000"
10-
description: "Unit: number of fuzz runs."
9+
default: '10000'
10+
description: 'Unit: number of fuzz runs.'
1111
required: false
1212

1313
jobs:
@@ -19,15 +19,20 @@ jobs:
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 18
22-
cache: "yarn"
22+
cache: 'yarn'
23+
24+
- name: Setup repo
25+
uses: ./.github/actions/setup-repo
26+
with:
27+
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}
2328

2429
- name: Install dependencies
2530
run: yarn install
2631

2732
- name: Run solhint
2833
run: yarn lint:check
2934

30-
- name: "Add lint summary"
35+
- name: 'Add lint summary'
3136
run: |
3237
echo "## Lint result" >> $GITHUB_STEP_SUMMARY
3338
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
@@ -37,12 +42,17 @@ jobs:
3742
steps:
3843
- uses: actions/checkout@v3
3944
with:
40-
submodules: "recursive"
45+
submodules: 'recursive'
4146

4247
- uses: actions/setup-node@v3
4348
with:
4449
node-version: 18
45-
cache: "yarn"
50+
cache: 'yarn'
51+
52+
- name: Setup repo
53+
uses: ./.github/actions/setup-repo
54+
with:
55+
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}
4656

4757
- name: Install dependencies
4858
run: yarn install --frozen-lockfile
@@ -58,10 +68,10 @@ jobs:
5868
- name: Compile foundry
5969
run: yarn foundry:compile --sizes
6070

61-
- name: "Cache the build so that it can be re-used by the other jobs"
62-
uses: "actions/cache/save@v3"
71+
- name: 'Cache the build so that it can be re-used by the other jobs'
72+
uses: 'actions/cache/save@v3'
6373
with:
64-
key: "build-${{ github.sha }}"
74+
key: 'build-${{ github.sha }}'
6575
path: |
6676
cache-forge
6777
out
@@ -70,27 +80,27 @@ jobs:
7080
typechain
7181
node_modules
7282
73-
- name: "Add build summary"
83+
- name: 'Add build summary'
7484
run: |
7585
echo "## Build result" >> $GITHUB_STEP_SUMMARY
7686
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
7787
7888
hardhat-tests:
79-
needs: ["build", "lint"]
89+
needs: ['build', 'lint']
8090
runs-on: ubuntu-latest
8191
steps:
8292
- uses: actions/checkout@v3
8393

8494
- uses: actions/setup-node@v3
8595
with:
8696
node-version: 18
87-
cache: "yarn"
97+
cache: 'yarn'
8898

89-
- name: "Restore the cached build"
90-
uses: "actions/cache/restore@v3"
99+
- name: 'Restore the cached build'
100+
uses: 'actions/cache/restore@v3'
91101
with:
92102
fail-on-cache-miss: true
93-
key: "build-${{ github.sha }}"
103+
key: 'build-${{ github.sha }}'
94104
path: |
95105
cache-forge
96106
out
@@ -110,29 +120,29 @@ jobs:
110120
ETH_NODE_URI_FORK: ${{ secrets.ETH_NODE_URI_FORK }}
111121
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}
112122

113-
- name: "Add test summary"
123+
- name: 'Add test summary'
114124
run: |
115125
echo "## Hardhat Unit tests result" >> $GITHUB_STEP_SUMMARY
116126
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
117127
118128
foundry-tests:
119-
needs: ["build", "lint"]
129+
needs: ['build', 'lint']
120130
runs-on: ubuntu-latest
121131
steps:
122132
- uses: actions/checkout@v2
123133
with:
124-
submodules: "recursive"
134+
submodules: 'recursive'
125135

126136
- name: Install Foundry
127137
uses: foundry-rs/foundry-toolchain@v1
128138
with:
129139
version: nightly
130140

131-
- name: "Restore the cached build"
132-
uses: "actions/cache/restore@v3"
141+
- name: 'Restore the cached build'
142+
uses: 'actions/cache/restore@v3'
133143
with:
134144
fail-on-cache-miss: true
135-
key: "build-${{ github.sha }}"
145+
key: 'build-${{ github.sha }}'
136146
path: |
137147
cache-forge
138148
out
@@ -150,7 +160,7 @@ jobs:
150160
ETH_NODE_URI_FANTOM: ${{ secrets.ETH_NODE_URI_FANTOM }}
151161
FOUNDRY_FUZZ_RUNS: ${{ github.event.inputs.fuzzRuns || '10000' }}
152162

153-
- name: "Add test summary"
163+
- name: 'Add test summary'
154164
run: |
155165
echo "## Foundry Unit tests result" >> $GITHUB_STEP_SUMMARY
156-
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
166+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)