Skip to content

Commit

Permalink
fix(build): foundry update
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Jul 12, 2022
1 parent ed8c7a4 commit 5d3538a
Showing 1 changed file with 56 additions and 22 deletions.
78 changes: 56 additions & 22 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,57 +1,77 @@
[default]
allow_paths = []
allow_paths = ['interfaces', 'contracts', 'src']

auto_detect_solc = true
build_info = false
block_base_fee_per_gas = 0
block_coinbase = '0x0000000000000000000000000000000000000000'
block_difficulty = 0
block_number = 1
block_timestamp = 1
broadcast = 'broadcast'
bytecode_hash = 'none'
cache = true
cache_path = 'cache'
evm_version = 'london'

# includes the contract's metadata in the contract's json artifact
extra_output = []
extra_output_files = []
# emits the output selection as separate json artifact files
extra_output_files = ['metadata']

ffi = false
force = false
fuzz_max_global_rejects = 65536
fuzz_max_local_rejects = 1492
fuzz_runs = 1024
fuzz_max_global_rejects = 65_536
fuzz_max_local_rejects = 16_384

# The number of test cases that must execute for each property test
fuzz_runs = 512

# This is an Option, so we can determine in fork mode whether to use the config's gas price
# (if set by user) or the remote client's gas price Option<u64>
gas_price = 10
gas_limit = 9223372036854775807
gas_price = 0
gas_reports = ['*']

# ignored_error_codes
# 2018 Function state mutability can be restricted to pure
# 3420 Source file does not specify required compiler version!
ignored_error_codes = [
1878,
2018,
3420,
5574,
1878,
2018,
3420,
]
initial_balance = '0xffffffffffffffffffffffff'
libraries = []
libs = ['lib']

libs = [
'lib',
'node_modules',
]
memory_limit = 33554432
names = true
names = false
no_storage_caching = false
offline = false
optimizer = true
optimizer_runs = 1_000
out = 'out'
remappings = []

remappings = [
'@openzeppelin/=node_modules/@openzeppelin/',
'@uniswap/=node_modules/@uniswap/',
'ds-test/=lib/forge-std/lib/ds-test/src/',
'forge-std/=lib/forge-std/src/',
]
script = 'script'
sender = '0xafFEaFFEAFfeAfFEAffeaFfEAfFEaffeafFeAFfE'
sizes = false
sparse_mode = false
src = 'src'
test = 'test'
src = 'contracts'
test = 'contracts/test'
tx_origin = '0xAaaaAaAAaaaAAaAAaAaaaaAAAAAaAaaaAaAaaAA0'
verbosity = 3
verbosity = 2
via_ir = true
stackAllocation = true
optimizerSteps = ''

# revert_strings = "verboseDebug"
revert_strings = "debug"
optimizer = true
optimizer_runs = 1_337

[default.rpc_storage_caching]
chains = 'all'
Expand All @@ -62,3 +82,17 @@ optimizer = false
fuzz_runs = 4069
force = true
verbosity = 4

# [default.model_checker]
# contracts = { '/path/to/project/src/Contract.sol' = [ 'Contract' ] }
# engine = 'chc'
# timeout = 10000
# targets = [ 'assert' ]

# [default.optimizer_details]
# constantOptimizer = true
# yul = true
# this sets the `yulDetails` of the `optimizer_details` for the `default` profile
# [default.optimizer_details.yulDetails]
# stackAllocation = true
# optimizerSteps = 'gTVnfClhnfncITgcraonvcgMtjmCumgUmdgdxVeiOlvdOvarhngxiUaxVhOdjTTDODDdUMrTthUVrrnhrjsvcjVuDmletlOThul'

0 comments on commit 5d3538a

Please sign in to comment.