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

[Part 1] Dependencies update and use solc 0.8.26 #27

Merged
merged 7 commits into from
Jun 5, 2024
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80256
73618
Original file line number Diff line number Diff line change
@@ -1 +1 @@
629630
622992
Original file line number Diff line number Diff line change
@@ -1 +1 @@
920865
913401
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1271570
1262461
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80168
75516
Original file line number Diff line number Diff line change
@@ -1 +1 @@
116617
111483
Original file line number Diff line number Diff line change
@@ -1 +1 @@
113422
108288
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29704
29699
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29436
29431
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138072
135771
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130798
128493
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135611
133310
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131578
129277
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131653
129352
Original file line number Diff line number Diff line change
@@ -1 +1 @@
164395
160822
Original file line number Diff line number Diff line change
@@ -1 +1 @@
143527
141280
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137033
134786
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137120
134873
Original file line number Diff line number Diff line change
@@ -1 +1 @@
169086
165621
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129374
126842
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
247337
243641
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
180361
177764
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
253346
249640
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
179932
177330
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#collect.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
199523
198059
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74225
72736
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81392
79553
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#mint.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
627202
624105
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
forge-tests:
name: Forge Tests
Expand All @@ -29,6 +33,6 @@ jobs:
version: nightly

- name: Run tests
run: forge test -vvv
run: forge test --isolate -vvv
env:
FOUNDRY_PROFILE: ci
FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = release-v4.9

[submodule "lib/forge-gas-snapshot"]
path = lib/forge-gas-snapshot
url = https://github.com/marktoda/forge-gas-snapshot
17 changes: 13 additions & 4 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
src = 'src'
out = 'foundry-out'
solc_version = '0.8.24'
solc_version = '0.8.26'
optimizer_runs = 400
via_ir = false
ffi = true
Expand All @@ -15,12 +15,21 @@ evm_version = 'cancun'
[fuzz]
runs = 1000 # change this for higher number of fuzz/invariant locally

[invariant]
depth = 15 # revert to 15 as default is 500: https://github.com/foundry-rs/foundry/pull/7957

[profile.ci.fuzz]
runs = 100000
runs = 10000

[profile.ci.invariant]
runs = 10000 # The number of calls to make in the invariant tests
runs = 1000 # The number of calls to make in the invariant tests
call_override = false # Override calls
fail_on_revert = false # Fail the test if the contract reverts

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[profile.ci_main.fuzz]
runs = 100000

[profile.ci_main.invariant]
runs = 10000 # The number of calls to make in the invariant tests
call_override = false # Override calls
fail_on_revert = false # Fail the test if the contract reverts
1 change: 1 addition & 0 deletions lib/forge-gas-snapshot
Submodule forge-gas-snapshot added at 9161f7
Loading