Skip to content

Commit

Permalink
[Part 2] Update gas snapshot with forge test --isolate and readme (#31)
Browse files Browse the repository at this point in the history
* feat: update forge-std

* forge install: forge-gas-snapshot

9161f7c0b6c6788a89081e2b3b9c67592b71e689

* feat: updated to solc 0.8.26

* feat: update test.yml follow v4-core

* add line break

* feat: update foundry.toml following v4-core

* ci: set invariant depth to before

* ci: update snapshot with forge test --isolate and readme

* ci: update package.json with forge test --isolate

* gas: updated gas after merge from origin/main
  • Loading branch information
ChefMist authored Jun 5, 2024
1 parent 26ada4c commit ef889a6
Show file tree
Hide file tree
Showing 33 changed files with 36 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
73618
186974
Original file line number Diff line number Diff line change
@@ -1 +1 @@
622992
656948
Original file line number Diff line number Diff line change
@@ -1 +1 @@
913401
945285
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1262461
1312637
Original file line number Diff line number Diff line change
@@ -1 +1 @@
75516
153583
Original file line number Diff line number Diff line change
@@ -1 +1 @@
111483
224877
Original file line number Diff line number Diff line change
@@ -1 +1 @@
108288
252792
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29699
54387
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29431
52359
2 changes: 1 addition & 1 deletion .forge-snapshots/BinFungibleTokenTest#testBurn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2062
27300
2 changes: 1 addition & 1 deletion .forge-snapshots/BinFungibleTokenTest#testMint.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43613
67877
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135771
162255
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128493
156725
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133310
159530
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129277
160249
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129352
160312
Original file line number Diff line number Diff line change
@@ -1 +1 @@
160822
186338
Original file line number Diff line number Diff line change
@@ -1 +1 @@
141280
172624
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134786
170630
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134873
170705
Original file line number Diff line number Diff line change
@@ -1 +1 @@
165621
200509
Original file line number Diff line number Diff line change
@@ -1 +1 @@
126842
162954
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
243641
266645
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
177764
201852
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
249640
272728
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
177330
201502
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#burn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10794
62578
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#collect.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
198059
276679
Original file line number Diff line number Diff line change
@@ -1 +1 @@
72736
190144
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79553
218325
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#mint.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
624105
653033
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
## Running test

1. Install dependencies with `forge install`
2. Run test with `forge test`
2. Run test with `forge test --isolate`

See https://github.com/pancakeswap/pancake-v4-core/pull/35 on why `--isolate` flag is used.

## Update dependencies

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"devDependencies": {},
"scripts": {
"compile": "forge compile",
"test": "forge test",
"dev": "forge test -vvv -w",
"test": "forge test --isolate",
"dev": "forge test --isolate -vvv -w",
"snapshot": "rm -fr .forge-snapshots && forge test",
"prettier": "forge fmt src/ && forge fmt test/ && forge fmt script/",
"prettier-check": "forge fmt --check"
Expand Down

0 comments on commit ef889a6

Please sign in to comment.