-
Notifications
You must be signed in to change notification settings - Fork 5
/
foundry.toml
88 lines (84 loc) · 3.51 KB
/
foundry.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
## defaults for _all_ profiles
[profile.default]
src = 'src'
out = 'forge-artifacts'
libs = ['lib']
remappings = ["forge-std/=lib/forge-std/src/"]
libraries = []
cache = true
force = false
evm_version = 'paris'
auto_detect_solc = true
offline = true
optimizer = true
optimizer_runs = 200
via_ir = false
ignored_error_codes = []
ffi = false
initial_balance = '0xffffffffffffffffffffffff'
# NOTE due to a toml-rs limitation, gas_limit value needs to be a string if the desired gas limit exceeds `i64::MAX` (9223372036854775807)
gas_limit = 9223372036854775807
gas_price = 0
block_base_fee_per_gas = 0
block_coinbase = '0x0000000000000000000000000000000000000000'
block_timestamp = 0
block_difficulty = 0
# How to treat revert (and require) reason strings.
# Possible values are: "default", "strip", "debug" and "verboseDebug".
# "default" does not inject compiler-generated revert strings and keeps user-supplied ones.
# "strip" removes all revert strings (if possible, i.e. if literals are used) keeping side-effects
# "debug" injects strings for compiler-generated internal reverts, implemented for ABI encoders V1 and V2 for now.
# "verboseDebug" even appends further information to user-supplied revert strings (not yet implemented)
revert_strings = "default"
# caches storage retrieved locally for certain chains and endpoints
# can also be restricted to `chains = ["optimism", "mainnet"]`
# by default all endpoints will be cached, alternative options are "remote" for only caching non localhost endpoints and "<regex>"
# to disable storage caching entirely set `no_storage_caching = true`
rpc_storage_caching = { chains = "all", endpoints = "all" }
# this overrides `rpc_storage_caching` entirely
no_storage_caching = false
# use ipfs method to generate the metadata hash, solc's default.
# To not include the metadata hash, to allow for deterministic code: https://docs.soliditylang.org/en/latest/metadata.html, use "none"
bytecode_hash = "none"
# Whether to append the metadata hash to the bytecode
cbor_metadata = false
# If this option is enabled, Solc is instructed to generate output (bytecode) only for the required contracts
# this can reduce compile time for `forge test` a bit but is considered experimental at this point.
sparse_mode = false
# Setting this option enables decoding of error traces from mainnet deployed / verfied contracts via etherscan
# permissions for read-write
fs_permissions = [
{ access = "read-write", path = "./src/interfaces/" },
{ access = "read-write", path = "./facetsdeployed.txt" },
{ access = "read-write", path = "./deployedAddresses.json" },
{ access = "read-write", path = "./deployedAddressesTest.json" },
{ access = "read-write", path = "./codeReconReport.json" },
{ access = "read", path = "./forge-artifacts/" },
{ access = "read", path = "./broadcast/" },
{ access = "read", path = "./nayms_mnemonic.txt" },
]
[profile.test]
solc = '0.8.20'
auto_detect_solc = false
optimizer = false
ffi = true
sparse_mode = true
verbosity = 3
ignored_error_codes = ["license", "code-size"]
no_match_contract = "ReplaceDiamondCutTest"
[fuzz]
runs = 256
max_test_rejects = 262144
seed = '0x3e8'
dictionary_weight = 40
include_storage = true
include_push_bytes = true
[rpc_endpoints]
mainnet = "${ETH_MAINNET_RPC_URL}"
sepolia = "${ETH_SEPOLIA_RPC_URL}"
base = "${BASE_MAINNET_RPC_URL}"
base_sepolia = "${BASE_SEPOLIA_RPC_URL}"
anvil = "${LOCAL_RPC_URL}"
aurora = "${AURORA_MAINNET_RPC_URL}"
aurora_testnet = "${AURORA_TESTNET_RPC_URL}"
# See more config options https://github.com/foundry-rs/foundry/tree/master/config