mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-09 21:18:01 -05:00
error One of our tests uses too many local variables and causes stack too deep errors unless optimized `--via-ir`. We've introduced `--via-ir` to work around that until a proper fix is done. The downside of using that option is that compilation times get significantly longer. This commit restructures the test such that it doesn't use as many local variables.
56 lines
1.8 KiB
TOML
56 lines
1.8 KiB
TOML
# Full reference https://github.com/foundry-rs/foundry/tree/master/config
|
|
|
|
[profile.default]
|
|
auto_detect_solc = false
|
|
block_timestamp = 1_680_220_800 # March 31, 2023 at 00:00 GMT
|
|
bytecode_hash = "none"
|
|
cbor_metadata = false
|
|
evm_version = "cancun"
|
|
fuzz = { runs = 1_000, max_test_rejects = 262144 }
|
|
gas_reports = ["*"]
|
|
libs = ["lib"]
|
|
optimizer = true
|
|
optimizer_runs = 10_000
|
|
out = "out"
|
|
script = "script"
|
|
solc = "0.8.26"
|
|
src = "src"
|
|
test = "test"
|
|
|
|
[profile.ci]
|
|
fuzz = { runs = 10_000, max_test_rejects = 2621440 }
|
|
verbosity = 4
|
|
|
|
[etherscan]
|
|
arbitrum = { key = "${API_KEY_ARBISCAN}" }
|
|
avalanche = { key = "${API_KEY_SNOWTRACE}" }
|
|
bnb_smart_chain = { key = "${API_KEY_BSCSCAN}" }
|
|
gnosis_chain = { key = "${API_KEY_GNOSISSCAN}" }
|
|
goerli = { key = "${API_KEY_ETHERSCAN}" }
|
|
mainnet = { key = "${API_KEY_ETHERSCAN}" }
|
|
optimism = { key = "${API_KEY_OPTIMISTIC_ETHERSCAN}" }
|
|
polygon = { key = "${API_KEY_POLYGONSCAN}" }
|
|
sepolia = { key = "${API_KEY_ETHERSCAN}" }
|
|
|
|
[fmt]
|
|
bracket_spacing = true
|
|
int_types = "long"
|
|
line_length = 120
|
|
multiline_func_header = "all"
|
|
number_underscore = "thousands"
|
|
quote_style = "double"
|
|
tab_width = 4
|
|
wrap_comments = true
|
|
|
|
[rpc_endpoints]
|
|
arbitrum = "https://arbitrum-mainnet.infura.io/v3/${API_KEY_INFURA}"
|
|
avalanche = "https://avalanche-mainnet.infura.io/v3/${API_KEY_INFURA}"
|
|
bnb_smart_chain = "https://bsc-dataseed.binance.org"
|
|
gnosis_chain = "https://rpc.gnosischain.com"
|
|
goerli = "https://goerli.infura.io/v3/${API_KEY_INFURA}"
|
|
localhost = "http://localhost:8545"
|
|
mainnet = "https://eth-mainnet.g.alchemy.com/v2/${API_KEY_ALCHEMY}"
|
|
optimism = "https://optimism-mainnet.infura.io/v3/${API_KEY_INFURA}"
|
|
polygon = "https://polygon-mainnet.infura.io/v3/${API_KEY_INFURA}"
|
|
sepolia = "https://sepolia.infura.io/v3/${API_KEY_INFURA}"
|