-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfoundry.toml
59 lines (55 loc) · 2.41 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
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
optimizer_runs = 1_000_000
# the following setting ensures that deterministically deployed contracts will always be to the same address
bytecode_hash = "none"
gas_reports = ["*"]
auto_detect_solc = false
solc = "0.8.28"
evm_version = "cancun"
fs_permissions = [{ access = "read", path = "./"}]
remappings = [
"solmate/=lib/solmate/src/",
"forge-std/=lib/forge-std/src/",
"ERC1155/=lib/ERC1155/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts",
"safe-smart-account/safe-contracts/contracts/=lib/safe-contracts/contracts/",
"@gnosis.pm/safe-contracts/contracts=lib/safe-smart-account/contracts/",
"@gnosis.pm/zodiac/=lib/zodiac/contracts/",
"solbase/=lib/solbase/src/",
"zodiac/=lib/zodiac/contracts/",
"hats-protocol/=lib/hats-protocol/src/",
"hats-auth/=lib/hats-auth/src/"
]
[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "attributes_first"
number_underscore = "thousands"
quote_style = "double"
tab_width = 2
wrap_comments = true
[rpc_endpoints]
arbitrum = "https://arbitrum-mainnet.infura.io/v3/${INFURA_KEY}"
base = "https://base-mainnet.infura.io/v3/${INFURA_KEY}"
celo = "https://celo-mainnet.infura.io/v3/${INFURA_KEY}"
gnosis = "${GC_RPC}"
local = "http://localhost:8545"
mainnet = "https://mainnet.infura.io/v3/${INFURA_KEY}"
optimism = "https://optimism-mainnet.infura.io/v3/${INFURA_KEY}"
polygon = "https://polygon-mainnet.infura.io/v3/${INFURA_KEY}"
sepolia = "https://sepolia.infura.io/v3/${INFURA_KEY}"
[etherscan]
arbitrum = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=42161"}
base = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=8453"}
celo = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=42220"}
gnosis = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=100"}
mainnet = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=1"}
optimism = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=10"}
polygon = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=137"}
sepolia = {key = "${ETHERSCAN_KEY}", url = "https://api.etherscan.io/v2/api?chainid=11155111"}
# See more config options https://github.com/foundry-rs/foundry/tree/master/config