-
Notifications
You must be signed in to change notification settings - Fork 42
/
foundry.toml
142 lines (108 loc) · 3.5 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Full reference https://github.com/foundry-rs/foundry/tree/master/config
[profile.default]
auto_detect_solc = false
bytecode_hash = "none"
cbor_metadata = false
evm_version = "paris"
gas_reports = ["*"]
libs = ["node_modules", "lib"]
optimizer = true
optimizer_runs = 200
out = "artifacts-foundry"
script = "scripts/foundry"
solc = "0.8.20"
src = "contracts"
test = "test/foundry"
[profile.default.fuzz]
max_test_rejects = 1_000_000 # Number of times `vm.assume` can fail
runs = 1_000
[profile.default.invariant]
call_override = false # Override unsafe external calls to perform reentrancy checks
depth = 15 # Number of calls executed in one run
fail_on_revert = true
runs = 256
# Speed up compilation and tests during development
[profile.lite]
optimizer = false
[profile.ci]
fuzz = { runs = 10_000 }
verbosity = 4
[doc]
ignore = ["**/*.t.sol"]
out = "docs"
[etherscan]
# ETHEREUM
goerli = { key = "${ETHERSCAN_API}" }
mainnet = { key = "${ETHERSCAN_API}" }
sepolia = { key = "${ETHERSCAN_API}" }
# BINANCE SMART CHAIN
bsc = { key = "${ETHERSCAN_BSC_API}" }
# MATIC/POLYGON
polygon = { key = "${ETHERSCAN_POLYGON_API}" }
polygonzk = { key = "${ETHERSCAN_POLYGON_ZK_API}" }
mumbai = { key = "${ETHERSCAN_POLYGON_API}" }
# OPTIMISM
optimism = { key = "${ETHERSCAN_OPTIMISM_API}" }
ogoerli = { key = "${ETHERSCAN_OPTIMISM_API}" }
# ARBITRUM
arbitrum = { key = "${ETHERSCAN_ARBITRUM_API}" }
arbgoerli = { key = "${ETHERSCAN_ARBITRUM_API}" }
# BASE
base = { key = "${ETHERSCAN_BASE_API}" }
# AVALANCHE
avalanche = { key = "${ETHERSCAN_AVALANCHE_API}" }
# FANTOM
fantom = { key = "${ETHERSCAN_FANTOM_API}" }
# GNOSIS CHAIN
gnosis = { key = "${ETHERSCAN_GNOSIS_API}" }
# LINEA
linea = { key = "${ETHERSCAN_LINEA_API}" }
[fmt]
# bracket_spacing = true
# int_types = "long"
# line_length = 100
# multiline_func_header = "all"
# number_underscore = "thousands"
# quote_style = "double"
# tab_width = 4
# wrap_comments = true
[rpc_endpoints]
# LOCALHOST
localhost = "http://localhost:8545"
# ETHEREUM
goerli = "https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_ID}"
mainnet = "https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}"
sepolia = "https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_ID}"
# BINANCE SMART CHAIN
bsc = "https://bsc-dataseed.binance.org"
# MATIC/POLYGON
polygon = "https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_ID}"
polygonzk = "https://zkevm-rpc.com"
mumbai = "https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_ID}"
# OPTIMISM
optimism = "https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_ID}"
ogoerli = "https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_ID}"
osepolia = "https://sepolia.optimism.io"
# ARBITRUM
arbitrum = "https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_ID}"
arbgoerli = "https://goerli-rollup.arbitrum.io/rpc"
arbsepolia = "https://sepolia-rollup.arbitrum.io/rpc"
# BASE
base = "https://mainnet.base.org"
baseGoerli = "https://goerli.base.org"
# AVALANCHE
avalanche = "https://api.avax.network/ext/bc/C/rpc"
# FANTOM
fantom = "https://rpcapi.fantom.network/"
# GNOSIS CHAIN
gnosis = "https://rpc.gnosischain.com"
# LINEA
linea = "https://linea-mainnet.infura.io/v3/${INFURA_ID}"
# ZKSYNC ERA
zksync = "https://mainnet.era.zksync.io"
# ASTAR
zkatana = "https://rpc.zkatana.gelato.digital"
# TANGIBLE
unreal = "https://rpc.unreal.gelato.digital"
# GELATO
geloptestnet = "https://rpc.op-testnet.gelato.digital"