-
Notifications
You must be signed in to change notification settings - Fork 6
/
foundry.toml
57 lines (51 loc) · 2.73 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
[profile.default]
auto_detect_solc = false # Foundry will automatically try to resolve appropriate Solidity compiler versions
block_timestamp = 1_680_220_800 # The value of block.timestamp in tests. March 31, 2023 at 00:00 GMT
bytecode_hash = "none" # Determines the hash method for the metadata hash that is appended to the bytecode
cbor_metadata = false # Remove all metadata hashes from your contract's bytecode.
evm_version = "paris" # The EVM version to use during tests.
fuzz = { runs = 256 } # The amount of fuzz runs to perform for each fuzz test case.
gas_reports = ["*"] # The contracts to print gas reports for.
libs = ["node_modules", "lib"]
optimizer = true # Whether or not to enable the Solidity optimizer.
optimizer_runs = 200 # The amount of optimizer runs to perform.
out = "contracts/out" # The path to put contract artifacts in, relative to the root of the project.
script = "contracts/scripts" # The path to the contract scripts relative to the root of the project.
solc_version = "0.8.24" # Uses a single Solidity compiler version for the project
src = "contracts" # The path to the contract sources relative to the root of the project.
test = "contracts/test" # The path to the test contract sources relative to the root of the project.
cache_path = "contracts/cache" # The path to the cache, relative to the root of the project.
verbosity = 3 # The verbosity level to use during tests.
fs_permissions = [
{ access = "read-write", path = "./contracts/deployments" },
{ access = "read", path = "./scripts/bytecode-diff/source-diffs" },
] # Configures permissions for cheatcodes that touch the filesystem
extra_output = ["metadata", "abi", "bin"]
extra_output_files = ["metadata", "abi", "bin"]
ffi = true
[etherscan]
sepolia = { chain = 11155111, key = "${ETHERSCAN_API_KEY}" }
base_sepolia = { chain = 84532, key = "${BLOCKSCOUT_SEPOLIA_API_KEY}", url = "${BLOCKSCOUT_SEPOLIA_URL}" }
base = { chain = 8453, key = "${BLOCKSCOUT_BASE_API_KEY}", url = "${BLOCKSCOUT_BASE_URL}" }
river_devnet = { chain = 6524490, key = "${RIVERSCAN_API_KEY}", url = "${RIVERSCAN_DEVNET_URL}" }
river = { chain = 550, key = "${RIVERSCAN_API_KEY}", url = "${RIVERSCAN_URL}" }
mainnet = { chain = 1, key = "${ETHERSCAN_API_KEY}" }
[rpc_endpoints]
base_anvil = "${BASE_ANVIL_RPC_URL}"
river_anvil = "${RIVER_ANVIL_RPC_URL}"
river_devnet = "${RIVER_DEVNET_RPC_URL}"
river = "${RIVER_RPC_URL}"
sepolia = "${SEPOLIA_RPC_URL}"
base_sepolia = "${BASE_SEPOLIA_RPC_URL}"
base = "${BASE_RPC_URL}"
mainnet = "${MAINNET_RPC_URL}"
[fmt]
line_length = 80
tab_width = 2
bracket_spacing = true
int_types = "long"
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
wrap_comments = true
# See more config options https://github.com/foundry-rs/foundry/tree/master/config