-
Notifications
You must be signed in to change notification settings - Fork 14
/
foundry.toml
108 lines (105 loc) · 5.2 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
[profile.default]
src = 'src/contracts/core'
script = 'src/contracts/scripts'
test = 'src/contracts/test'
libs = ['lib']
out = 'build/foundry'
broadcast = 'out/foundry/broadcast'
cache_path = 'build/foundry/cache'
fs_permissions = [{ access = "read-write", path = "./" }]
ffi = true
solc = '0.8.23'
evm_version = 'paris'
via_ir = false
optimizer = true
optimizer_runs = 1000
remappings = [
'@openzeppelin/=lib/kresko-foundry-helpers/lib/openzeppelin-contracts/',
'@oz-upgradeable/=lib/kresko-foundry-helpers/lib/openzeppelin-contracts-upgradeable/contracts/',
'@oz/=lib/kresko-foundry-helpers/lib/openzeppelin-contracts/contracts/',
'kresko-lib/=lib/kresko-foundry-helpers/src/',
'diamond/=src/contracts/core/diamond/',
'kresko-asset/=src/contracts/core/kresko-asset/',
'common/=src/contracts/core/common/',
'minter/=src/contracts/core/minter/',
'scdp/=src/contracts/core/scdp/',
'kiss/=src/contracts/core/kiss/',
'vault/=src/contracts/core/vault/',
'vendor/=src/contracts/core/vendor/',
'oracle/=src/contracts/core/oracle/',
"libs/=src/contracts/core/libs/",
'forge-std/=lib/forge-std/src/',
'factory/=src/contracts/core/factory/',
"periphery/=src/contracts/core/periphery/",
'scripts/=src/contracts/scripts/',
'test/=src/contracts/test/',
'mocks-misc/=src/contracts/mocks/',
"mocks/=src/contracts/core/test/mocks",
]
# [profile.optimizer_details]
# "yul" = false
# "constantOptimizer" = false
# "deduplicate" = false
# "peephole" = false
# "inliner" = false
# "jumpdestRemover" = false
# "orderLiterals" = false
# "cse" = false
# [profile.optimizer_details.yul_details]
# "stackAllocation" = true
[rpc_endpoints]
arbitrum = "${RPC_ARBITRUM_ALCHEMY}"
arbitrumSepolia = "${RPC_ARBITRUM_SEPOLIA_ALCHEMY}"
arbitrumGoerli = "${RPC_ARBITRUM_GOERLI_ALCHEMY}"
mainnet = "${RPC_MAINNET_ALCHEMY}"
goerli = "${RPC_GOERLI_ALCHEMY}"
localhost = "${RPC_LOCAL}"
sepolia = "${RPC_SEPOLIA_ALCHEMY}"
arbitrumNova = "${RPC_ARBITRUM_NOVA}"
optimism = "${RPC_OPTIMISM_ALCHEMY}"
optimismGoerli = "${RPC_OPTIMISM_GOERLI_ALCHEMY}"
bsc = "${RPC_BSC}"
polygon = "${RPC_POLYGON_ALCHEMY}"
polygonMumbai = "${RPC_POLYGON_MUMBAI_ALCHEMY}"
polygonZkEvm = "${RPC_POLYGON_ZKEVM_ALCHEMY}"
polygonZkEvmTestnet = "${RPC_POLYGON_ZKEVM_TESTNET_ALCHEMY}"
moonbeam = "${RPC_MOONBEAM}"
moonriver = "${RPC_MOONRIVER}"
gnosis = "${RPC_GNOSIS}"
avax = "${RPC_AVAX}"
fantom = "${RPC_FANTOM}"
celo = "${RPC_CELO}"
harmony = "${RPC_HARMONY}"
metis = "${RPC_METIS}"
aurora = "${RPC_AURORA}"
zkSync = "${RPC_ZKSYNC}"
zkSyncTestnet = "${RPC_ZKSYNC_TESTNET}"
[etherscan]
arbitrum = { key = "${ETHERSCAN_API_KEY_ARBITRUM}", chain = 42161, url = "https://api.arbiscan.io/api" }
arbitrumNova = { key = "${ETHERSCAN_API_KEY_ARBITRUM_NOVA}", chain = 42170, url = "https://api-nova.arbiscan.io/api" }
arbitrumGoerli = { key = "${ETHERSCAN_API_KEY_ARBITRUM_GOERLI}", chain = 421613, url = "https://api-goerli.arbiscan.io/api" }
arbitrumSepolia = { key = "${ETHERSCAN_API_KEY_ARBITRUM_SEPOLIA}", chain = 421614, url = "https://api-sepolia.arbiscan.io/api" }
mainnet = { key = "${ETHERSCAN_API_KEY_MAINNET}" }
goerli = { key = "${ETHERSCAN_API_KEY_GOERLI}", url = "https://api-goerli.etherscan.io/api" }
sepolia = { key = "${ETHERSCAN_API_KEY_SEPOLIA}", chain = 11155111, url = "https://api-sepolia.etherscan.io/api" }
optimism = { key = "${ETHERSCAN_API_KEY_OPTIMISM}", chain = 10, url = "https://api-optimistic.etherscan.io/api" }
optimismGoerli = { key = "${ETHERSCAN_API_KEY_OPTIMISM_GOERLI}", chain = 420, url = "http://api-goerli-optimism.etherscan.io/api" }
polygon = { key = "${ETHERSCAN_API_KEY_POLYGON}", chain = 137, url = "https://api.polygonscan.com/api" }
polygonMumbai = { key = "${ETHERSCAN_API_KEY_POLYGON_MUMBAI}", chain = 80001, url = "https://api-testnet.polygonscan.com/api" }
polygonZkEvm = { key = "${ETHERSCAN_API_KEY_POLYGON_ZKEVM}", chain = 1101, url = "https://api-zkevm.polygonscan.com/api" }
polygonZkEvmTestnet = { key = "${ETHERSCAN_API_KEY_POLYGON_ZKEVM_TESTNET}", chain = 1442, url = "https://api-testnet-zkevm.polygonscan.com/api" }
bsc = { key = "${ETHERSCAN_API_KEY_BSC}", chain = 56, url = "https://api.bscscan.com/api" }
moonbeam = { key = "${ETHERSCAN_API_KEY_MOONBEAM}", chain = 1284, url = "https://api-moonbeam.moonscan.io/api" }
moonriver = { key = "${ETHERSCAN_API_KEY_MOONRIVER}", chain = 1285, url = "https://api-moonriver.moonscan.io/api" }
gnosis = { key = "${ETHERSCAN_API_KEY_GNOSIS}", chain = 100, url = "https://api.gnosisscan.io/api" }
avax = { key = "${ETHERSCAN_API_KEY_AVAX}", chain = 43114, url = "https://api.snowtrace.io/api" }
fantom = { key = "${ETHERSCAN_API_KEY_FANTOM}", chain = 250, url = "https://api.ftmscan.com/api" }
celo = { key = "${ETHERSCAN_API_KEY_CELO}", chain = 42220, url = "https://api.celoscan.io/api" }
metis = { key = "any", chain = 1088, url = "https://andromeda-explorer.metis.io/api" }
aurora = { key = "any", chain = 421613, url = "https://explorer.mainnet.aurora.dev/api" }
zkSync = { key = "any", chain = 324, url = "https://zksync2-mainnet-explorer.zksync.io/contract_verification" }
zkSyncTestnet = { key = "any", chain = 280, url = "https://zksync2-testnet-explorer.zksync.dev/contract_verification" }
[fmt]
multiline_func_header = 'attributes_first'
single_line_block_style = 'single'
line_length = 120