-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
76 lines (67 loc) · 3.14 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
# Full reference https://github.com/foundry-rs/foundry/tree/master/config
[profile.default]
auto_detect_solc = false
bytecode_hash = "none" # ipfs (default) https://book.getfoundry.sh/reference/config/solidity-compiler#bytecode_hash
cbor_metadata = false
evm_version = "paris"
solc_version = "0.8.28"
solc = "0.8.28"
via_ir = true
auto_detect_remappings = true
fuzz = { runs = 1_000 }
gas_reports = ["*"]
libs = ["lib"]
optimizer = true
optimizer_runs = 4_194_304 # a larger “runs” parameter will produce longer but more gas efficient code. The maximum value of the parameter is 2**32-1.
out = "out"
script = "script"
src = "src"
test = "test"
[profile.default.optimizer_details]
constantOptimizer = true
yul = true
# this sets the `yulDetails` of the `optimizer_details` for the `default` profile
[profile.default.optimizer_details.yulDetails]
stackAllocation = true
optimizerSteps = 'dhfoDgvulfnTUtnIf'
[profile.lite.optimizer_details.yulDetails]
yul = false
optimizerSteps = ''
optimizerRuns = 200
[profile.ci]
fuzz = { runs = 1_000 }
verbosity = 4
[etherscan]
arbitrum = { key = "${API_KEY_ARBISCAN}", url = "https://api.arbiscan.io/api/" }
avalanche = { key = "${API_KEY_SNOWTRACE" }
bsc = { key = "${API_KEY_BSCSCAN}" }
ethereum = { key = "${API_KEY_ETHERSCAN}", chain = "mainnet", url = "https://api.etherscan.io/api/" }
goerli = { key = "${API_KEY_ETHERSCAN}", chain = "goerli", url = "https://api-goerli.etherscan.io/api/" }
optimism = { key = "${API_KEY_OPTIMISTIC_ETHERSCAN}" }
polygon = { key = "${API_KEY_POLYGONSCAN}" }
sepolia = { key = "${API_KEY_ETHERSCAN}", chain = "sepolia", url = "https://api-sepolia.etherscan.io/api/" }
base = { key = "${API_KEY_BASESCAN}", url = "https://api.basescan.org/api/" }
base_goerli = { key = "${API_KEY_BASESCAN_GOERLI}", url = "https://api-goerli.basescan.org/api/" }
[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}"
arbitrum-sepolia = "https://arbitrum-sepolia.infura.io/v3/${API_KEY_INFURA}"
avalanche = "https://avalanche-mainnet.infura.io/v3/${API_KEY_INFURA}"
bsc = "https://bsc-dataseed.binance.org"
ethereum = "https://mainnet.infura.io/v3/${API_KEY_INFURA}"
goerli = "https://goerli.infura.io/v3/${API_KEY_INFURA}"
localhost = "http://localhost:8545"
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}"
base = "https://dark-solitary-shape.base-mainnet.discover.quiknode.pro/{API_KEY_QUICKNODE}" # "https://mainnet.base.org"
base_goerli = "https://goerli.base.org"
ninfa_goerli = "https://test-cloud-run-ejjnwtwj6a-ue.a.run.app/v1/testnet/rpc"