Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c73f45b6
Unverified
Commit
c73f45b6
authored
Nov 26, 2024
by
smartcontracts
Committed by
GitHub
Nov 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maint: minor cleanup of foundry configuration (#13102)
Very small cleanup of the foundry config file.
parent
51a036d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
25 deletions
+28
-25
foundry.toml
packages/contracts-bedrock/foundry.toml
+28
-25
No files found.
packages/contracts-bedrock/foundry.toml
View file @
c73f45b6
################################################################
################################################################
# PROFILE: DEFAULT (
L
ocal) #
# PROFILE: DEFAULT (
l
ocal) #
################################################################
################################################################
[profile.default]
[profile.default]
# Compilation settings
src
=
'src'
src
=
'src'
out
=
'forge-artifacts'
out
=
'forge-artifacts'
script
=
'scripts'
script
=
'scripts'
build_info_path
=
'artifacts/build-info'
optimizer
=
true
optimizer
=
true
optimizer_runs
=
999999
optimizer_runs
=
999999
extra_output
=
[
'devdoc'
,
'userdoc'
,
'metadata'
,
'storageLayout'
]
bytecode_hash
=
'none'
ast
=
true
evm_version
=
"cancun"
remappings
=
[
remappings
=
[
'@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts'
,
'@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts'
,
'@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts'
,
'@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts'
,
...
@@ -24,22 +31,7 @@ remappings = [
...
@@ -24,22 +31,7 @@ remappings = [
'kontrol-cheatcodes/=lib/kontrol-cheatcodes/src'
,
'kontrol-cheatcodes/=lib/kontrol-cheatcodes/src'
,
'gelato/=lib/automate/contracts'
'gelato/=lib/automate/contracts'
]
]
extra_output
=
[
'devdoc'
,
'userdoc'
,
'metadata'
,
'storageLayout'
]
bytecode_hash
=
'none'
build_info_path
=
'artifacts/build-info'
ast
=
true
evm_version
=
"cancun"
# 5159 error code is selfdestruct error code
ignored_error_codes
=
[
"transient-storage"
,
"code-size"
,
"init-code-size"
,
5159
]
# We set the gas limit to max int64 to avoid running out of gas during testing, since the default
# gas limit is 1B and some of our tests require more gas than that, such as `test_callWithMinGas_noLeakageLow_succeeds`.
# We use this gas limit since it was the default gas limit prior to https://github.com/foundry-rs/foundry/pull/8274.
# Due to toml-rs limitations, if you increase the gas limit above this value it must be a string.
gas_limit
=
9223372036854775807
# Test / Script Runner Settings
ffi
=
true
fs_permissions
=
[
fs_permissions
=
[
{
access='read-write'
,
path='./.resource-metering.csv'
}
,
{
access='read-write'
,
path='./.resource-metering.csv'
}
,
{
access='read-write'
,
path='./snapshots/'
}
,
{
access='read-write'
,
path='./snapshots/'
}
,
...
@@ -52,7 +44,17 @@ fs_permissions = [
...
@@ -52,7 +44,17 @@ fs_permissions = [
{
access='read'
,
path='./kout-deployment'
}
,
{
access='read'
,
path='./kout-deployment'
}
,
{
access='read'
,
path='./test/fixtures'
}
,
{
access='read'
,
path='./test/fixtures'
}
,
]
]
libs
=
[
"node_modules"
,
"lib"
]
# 5159 error code is selfdestruct error code
ignored_error_codes
=
[
"transient-storage"
,
"code-size"
,
"init-code-size"
,
5159
]
ffi
=
true
# We set the gas limit to max int64 to avoid running out of gas during testing, since the default
# gas limit is 1B and some of our tests require more gas than that, such as
# test_callWithMinGas_noLeakageLow_succeeds. We use this gas limit since it was the default gas
# limit prior to https://github.com/foundry-rs/foundry/pull/8274. Due to toml-rs limitations, if
# you increase the gas limit above this value it must be a string.
gas_limit
=
9223372036854775807
[fuzz]
[fuzz]
runs
=
64
runs
=
64
...
@@ -67,17 +69,19 @@ wrap_comments=true
...
@@ -67,17 +69,19 @@ wrap_comments=true
# PROFILE: CI #
# PROFILE: CI #
################################################################
################################################################
[profile.ci]
[profile.ci
.fuzz
]
fuzz
=
{
runs
=
512
}
runs
=
512
[profile.ci.invariant]
[profile.ci.invariant]
runs
=
256
runs
=
256
depth
=
32
depth
=
32
[profile.ciheavy]
################################################################
# fuzz = { runs = 20000 }
# PROFILE: CIHEAVY #
# temporary reduce fuzz runs to unblock CI
################################################################
fuzz
=
{
runs
=
200
}
[profile.ciheavy.fuzz]
runs
=
20000
[profile.ciheavy.invariant]
[profile.ciheavy.invariant]
runs
=
128
runs
=
128
...
@@ -93,7 +97,6 @@ optimizer = false
...
@@ -93,7 +97,6 @@ optimizer = false
################################################################
################################################################
# PROFILE: KONTROL #
# PROFILE: KONTROL #
################################################################
################################################################
# See test/kontrol/README.md for an explanation of how the profiles are configured
[profile.kprove]
[profile.kprove]
src
=
'test/kontrol/proofs'
src
=
'test/kontrol/proofs'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment