forked from superform-xyz/superform-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
78 lines (69 loc) · 1.92 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
[profile.default]
solc_version = "0.8.19"
gas_reports = [
"SuperformRouter",
"BaseForm",
"SuperformFactory",
"SuperPositions",
"DstSwapper",
]
libraries = []
optimizer = true
optimizer_runs = 200
verbosity = 0
ffi = false
libs = ["lib"]
fs_permissions = [{ access = "read-write", path = "./script/" }]
remappings = ["solmate/=lib/ERC1155A/lib/solmate/src/"]
[profile.localdev]
solc_version = "0.8.19"
gas_reports = [
"SuperformRouter",
"BaseForm",
"SuperformFactory",
"SuperPositions",
"DstSwapper",
]
libraries = []
optimizer = false
optimizer_runs = 200
verbosity = 0
ffi = false
libs = ["lib"]
fs_permissions = [{ access = "read-write", path = "./script/" }]
remappings = ["solmate/=lib/ERC1155A/lib/solmate/src/"]
[profile.coverage]
fuzz = { runs = 1, max_test_rejects = 350_000 }
invariant = { runs = 5_000 }
[rpc_endpoints]
ethereum = "${ETHEREUM_RPC_URL}"
polygon = "${POLYGON_RPC_URL}"
bsc = "${BSC_RPC_URL}"
avalanche = "${AVALANCHE_RPC_URL}"
arbitrum = "${ARBITRUM_RPC_URL}"
optimism = "${OPTIMISM_RPC_URL}"
fantom = "${FANTOM_RPC_URL}"
ethereum_fork = "${ETHEREUM_LOCAL_URL}"
polygon_fork = "${POLYGON_LOCAL_URL}"
bsc_fork = "${BSC_LOCAL_URL}"
avalanche_fork = "${AVALANCHE_LOCAL_URL}"
arbitrum_fork = "${ARBITRUM_LOCAL_URL}"
optimism_fork = "${OPTIMISM_LOCAL_URL}"
fantom_fork = "${FANTOM_LOCAL_URL}"
[fuzz]
max_test_rejects = 1_000_000 # Number of times `vm.assume` can fail
runs = 50
[invariant]
runs = 20
depth = 5 # “Calls” refer to the number of times functions in the smart contract are called during a single test run. “Reverts” refers to the number of times a call to any function within the smart contract resulted in a transaction being reverted due to an error or exception.
fail_on_revert = true
call_override = false
[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