|
1 | 1 | [profile.default] |
2 | | -src = 'src' |
3 | | -out = 'out' |
4 | | -libs = ['lib'] |
5 | | -via_ir = true |
6 | | -solc = '0.8.28' |
| 2 | +auto_detect_solc = false |
| 3 | +# NOTE: by excluding the metadata hash we make sure future contracts can be partially modified without altering their bytecode. |
| 4 | +bytecode_hash = "none" # Disables the metadata |
| 5 | +cbor_metadata = false # Diasbles the metadata |
| 6 | +evm_version = "prague" |
| 7 | +libs = ["lib"] |
| 8 | +optimizer = true |
7 | 9 | optimizer-runs = 200 |
| 10 | +out = "out" |
| 11 | +script = "script" |
| 12 | +solc = "0.8.28" |
| 13 | +src = "src" |
| 14 | +test = "test" |
| 15 | +via_ir = true |
| 16 | + |
| 17 | +[fmt] |
| 18 | +bracket_spacing = true |
| 19 | +contract_new_lines = false |
| 20 | +int_types = "long" |
| 21 | +line_length = 120 |
| 22 | +multiline_func_header = "all" |
| 23 | +number_underscore = "thousands" |
| 24 | +quote_style = "double" |
| 25 | +sort_imports = true |
| 26 | +tab_width = 4 |
| 27 | +wrap_comments = true |
8 | 28 |
|
9 | 29 | [rpc_endpoints] |
10 | | -mainnet = "${ETHEREUM_RPC_URL}" |
11 | 30 | arbitrum = "${ARBITRUM_RPC_URL}" |
12 | | -optimism = "${OPTIMISM_RPC_URL}" |
13 | | -polygon = "${POLYGON_RPC_URL}" |
14 | | -bsc = "${BSC_RPC_URL}" |
15 | | -gnosis = "${GNOSIS_RPC_URL}" |
16 | 31 | avalanche = "${AVALANCHE_RPC_URL}" |
17 | | -fantom = "${FANTOM_RPC_URL}" |
18 | | -aurora = "${AURORA_RPC_URL}" |
19 | | -goerli = "${GOERLI_RPC_URL}" |
20 | 32 | base = "${BASE_RPC_URL}" |
| 33 | +berachain = "${BERACHAIN_RPC_URL}" |
| 34 | +bsc = "${BSC_RPC_URL}" |
| 35 | +gnosis = "${GNOSIS_RPC_URL}" |
| 36 | +hyper = "${HYPER_RPC_URL}" |
21 | 37 | linea = "${LINEA_RPC_URL}" |
| 38 | +mainnet = "${ETHEREUM_RPC_URL}" |
| 39 | +optimism = "${OPTIMISM_RPC_URL}" |
| 40 | +polygon = "${POLYGON_RPC_URL}" |
| 41 | +sonic = "${SONIC_RPC_URL}" |
| 42 | +zksync = "${ZKSYNC_RPC_URL}" |
22 | 43 |
|
23 | 44 | [etherscan] |
24 | | -mainnet = { key = "${ETHEREUM_BLOCKSCAN_KEY}" } |
25 | 45 | arbitrum = { key = "${ARBITRUM_BLOCKSCAN_KEY}" } |
26 | | -optimism = { key = "${OPTIMISM_BLOCKSCAN_KEY}" } |
27 | | -polygon = { key = "${POLYGON_BLOCKSCAN_KEY}" } |
| 46 | +avalanche = { key = "${AVALANCHE_BLOCKSCAN_KEY}" } |
| 47 | +base = { key = "${BASE_BLOCKSCAN_KEY}" } |
| 48 | +berachain = { key = "${BERACHAIN_BLOCKSCAN_KEY}" } |
28 | 49 | bsc = { key = "${BSC_BLOCKSCAN_KEY}" } |
29 | 50 | gnosis = { key = "${GNOSIS_BLOCKSCAN_KEY}" } |
30 | | -avalanche = { key = "${AVALANCHE_BLOCKSCAN_KEY}" } |
| 51 | +hyper = { key = "${HYPER_BLOCKSCAN_KEY}" } |
| 52 | +linea = { key = "${LINEA_BLOCKSCAN_KEY}" } |
| 53 | +mainnet = { key = "${ETHEREUM_BLOCKSCAN_KEY}" } |
| 54 | +optimism = { key = "${OPTIMISM_BLOCKSCAN_KEY}" } |
| 55 | +polygon = { key = "${POLYGON_BLOCKSCAN_KEY}" } |
| 56 | +sonic = { key = "${SONIC_BLOCKSCAN_KEY}" } |
| 57 | +zksync = { key = "${ZKSYNC_BLOCKSCAN_KEY}" } |
31 | 58 |
|
32 | 59 | # See more config options https://github.com/foundry-rs/foundry/tree/master/config |
0 commit comments