Skip to content

Commit ba32197

Browse files
feat: add first lib
1 parent 46ccd31 commit ba32197

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/forge-std"]
2+
path = lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std

foundry.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ multiline_func_header = 'params_first_multi'
99
sort_imports = true
1010

1111
[profile.default]
12-
solc_version = '0.8.28'
12+
src = "src"
13+
out = "out"
1314
libs = ['node_modules', 'lib']
15+
solc_version = '0.8.28'
16+
optimizer = true
17+
via_ir = true
18+
evm_version = "cancun"
1419
optimizer_runs = 10_000
20+
bytecode_hash = "none"
21+
cbor_metadata = false
1522

1623
[profile.optimized]
1724
via_ir = true
@@ -24,8 +31,16 @@ out = 'out-via-ir'
2431
[profile.docs]
2532
src = 'src/interfaces/'
2633

34+
[profile.deploy]
35+
via-ir = true
36+
37+
[profile.ci]
38+
fuzz = { runs = 10_000 }
39+
verbosity = 4
40+
2741
[fuzz]
2842
runs = 1000
43+
max_test_rejects = 1_000_000
2944

3045
[rpc_endpoints]
3146
mainnet = "${MAINNET_RPC}"

lib/forge-std

Submodule forge-std added at 3b20d60

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"chai": "^5.2.0",
5454
"dotenv": "^16.4.7",
5555
"ethers": "^6.13.5",
56-
"forge-std": "github:foundry-rs/forge-std#1.9.2",
5756
"halmos-cheatcodes": "github:a16z/halmos-cheatcodes#c0d8655",
5857
"hardhat": "^2.22.19",
5958
"hardhat-contract-sizer": "^2.10.0",

remappings.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
forge-std/=node_modules/forge-std/src
21
halmos-cheatcodes=node_modules/halmos-cheatcodes
2+
3+
forge-std/=lib/forge-std/src/

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,10 +2967,6 @@ foreground-child@^3.1.0:
29672967
cross-spawn "^7.0.6"
29682968
signal-exit "^4.0.1"
29692969

2970-
"forge-std@github:foundry-rs/forge-std#1.9.2":
2971-
version "1.9.2"
2972-
resolved "https://codeload.github.com/foundry-rs/forge-std/tar.gz/1714bee72e286e73f76e320d110e0eaf5c4e649d"
2973-
29742970
form-data@^4.0.0:
29752971
version "4.0.0"
29762972
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"

0 commit comments

Comments
 (0)