-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfoundry.toml
More file actions
103 lines (92 loc) · 3.53 KB
/
foundry.toml
File metadata and controls
103 lines (92 loc) · 3.53 KB
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
[profile.default]
src = "src"
out = "out"
libs = ["dependencies"]
verbosity = 3
sender = "0x0165C55EF814dEFdd658532A48Bd17B2c8356322"
tx_origin = "0x0165C55EF814dEFdd658532A48Bd17B2c8356322"
auto_detect_remappings = false
gas_reports = ["Proxy", "LidoARM", "OriginARM"]
fs_permissions = [
{ access = "read-write", path = "./build" },
{ access = "read-write", path = "./out" },
{ access = "read-write", path = "./script" },
]
extra_output_files = ["metadata"]
ignored_warnings_from = ["src/contracts/Proxy.sol"]
optimizer = true
optimizer_runs = 200
ffi = true
# About remappings:
# - @pendle-sy use a different version of oz contracts than the one used in the rest of the project.
# - dependencies remappings (like "dependencies/@pendle-sy"), need to stay amongs first remappings.
remappings = [
# Manage dependencies remappings inside dependencies folder (has to be first)
"dependencies/@pendle-sy-1.0.0-1.0.0/:@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-4.9.3-4.9.3/contracts/",
# Manage root folders remappings
"contracts/=./src/contracts",
"script/=./script",
"test/=./test",
"utils/=./src/contracts/utils",
# Manage dependencies remappings
"@solmate/=dependencies/solmate-6.7.0/src/",
"forge-std/=dependencies/forge-std-1.9.7/src/",
"@pendle-sy/=dependencies/@pendle-sy-1.0.0-1.0.0/contracts/",
"@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.0.2-5.0.2/contracts/",
"@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.0.2-5.0.2/contracts/",
]
#[fmt]
#ignore = []
#tab_width = 4
#int_types = "long"
#line_length = 120
#quote_style = "double"
#sort_imports = false
#wrap_comments = false
#hex_underscore = "preserve"
#bracket_spacing = false
#override_spacing = true
#contract_new_lines = false
#number_underscore = "preserve"
#multiline_func_header = "attributes_first"
#single_line_statement_blocks = "single"
[lint]
lint_on_build = false
[fuzz]
runs = 1_000
[profile.lite.invariant]
runs = 50
depth = 100
shrink_run_limit = 5_000
show_metrics = true
fail_on_revert = true
[profile.default.invariant]
runs = 256
depth = 500
shrink_run_limit = 5_000
show_metrics = true
fail_on_revert = true
[profile.ci.invariant]
runs = 1_000
depth = 1_000
shrink_run_limit = 5_000
show_metrics = true
[dependencies]
solmate = "6.7.0"
forge-std = "1.9.7"
"@pendle-sy-1.0.0" = { version = "1.0.0", git = "https://github.com/pendle-finance/Pendle-SY-Public.git", rev = "3256e7728d1656a8e16e2e70aa885f69fc66088d" }
"@openzeppelin-contracts-4.9.3" = { version = "4.9.3", git = "https://github.com/OpenZeppelin/openzeppelin-contracts.git", rev = "fd81a96f01cc42ef1c9a5399364968d0e07e9e90" }
"@openzeppelin-contracts-5.0.2" = { version = "5.0.2", git = "https://github.com/OpenZeppelin/openzeppelin-contracts.git", rev = "dbb6104ce834628e473d2173bbc9d47f81a9eec3" }
"@openzeppelin-contracts-upgradeable-4.9.3" = { version = "4.9.3", git = "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git", rev = "3d4c0d5741b131c231e558d7a6213392ab3672a5" }
"@openzeppelin-contracts-upgradeable-5.0.2" = { version = "5.0.2", git = "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git", rev = "723f8cab09cdae1aca9ec9cc1cfa040c2d4b06c1" }
[soldeer]
recursive_deps = false
remappings_version = false
remappings_generate = false
remappings_regenerate = false
remappings_prefix = "@"
remappings_location = "config"
[rpc_endpoints]
mainnet = "${MAINNET_URL}"
sonic = "${SONIC_URL}"
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options