Skip to content

Commit

Permalink
feat: remove gasSnapshot and use native snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Jan 22, 2025
1 parent 5305a1c commit 42feba5
Show file tree
Hide file tree
Showing 144 changed files with 284 additions and 359 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinHookTest#testBurnSucceedsWithHook.snap

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinHookTest#testMintSucceedsWithHook.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinHookTest#testSwapSucceedsWithHook.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinMintBurnFeeHookTest#test_Burn.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinMintBurnFeeHookTest#test_Mint.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinPoolManagerBytecodeSize.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinPoolManagerTest#testGasBurnOneBin.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinPoolManagerTest#testGasDonate.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/BinPoolManagerTest#testGasGetBin.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLMintBurnFeeHookTest#test_Burn.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLMintBurnFeeHookTest#test_Mint.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerBytecodeSize.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerTest#donateBothTokens.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerTest#gasDonateOneToken.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerTest#swap_simple.snap

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerTest#swap_withHooks.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPoolManagerTest#swap_withNative.snap

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/CLPositionTest#Position_update_add.snap

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/ExtsloadTest#extsload.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/ExtsloadTest#extsloadInBatch.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/LiquidityMathTest#addDeltaNegtive.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/LiquidityMathTest#addDeltaPositive.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/TickTest#checkTicks.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/TickTest#getFeeGrowthInside.snap

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/TickTest#update.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/VaultBytecodeSize.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/VaultTest#registerPoolManager.snap

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/forge-gas-snapshot"]
path = lib/forge-gas-snapshot
url = https://github.com/marktoda/forge-gas-snapshot
[submodule "lib/solmate"]
path = lib/solmate
url = https://github.com/transmissions11/solmate
Expand Down
1 change: 0 additions & 1 deletion lib/forge-gas-snapshot
Submodule forge-gas-snapshot deleted from 9161f7
7 changes: 7 additions & 0 deletions snapshots/BinHookTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"testBurnSucceedsWithHook": "193650",
"testDonateSucceedsWithHook": "186434",
"testInitializeSucceedsWithHook": "178138",
"testMintSucceedsWithHook": "304710",
"testSwapSucceedsWithHook": "188348"
}
4 changes: 4 additions & 0 deletions snapshots/BinMintBurnFeeHookTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"test_Burn": "184175",
"test_Mint": "396500"
}
22 changes: 21 additions & 1 deletion snapshots/BinPoolManagerTest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
{
"binPoolManager initcode hash (without constructor params, as uint256)": "73425840329377707764016122574450195738786283045901954729586336840188059167782"
"BinPoolManagerBytecodeSize": "23822",
"BinPoolManagerTest": "292661",
"binPoolManager initcode hash (without constructor params, as uint256)": "73425840329377707764016122574450195738786283045901954729586336840188059167782",
"testBurnNativeCurrency": "146154",
"testExtLoadPoolActiveId": "272",
"testGasBurnHalfBin": "141152",
"testGasBurnOneBin": "137621",
"testGasDonate": "114795",
"testGasGetBin": "2275",
"testGasMintNneBins-1": "966356",
"testGasMintNneBins-2": "329651",
"testGasMintOneBin-1": "333929",
"testGasMintOneBin-2": "138934",
"testGasSwapMultipleBins": "172571",
"testGasSwapOverBigBinIdGate": "178835",
"testGasSwapSingleBin": "129875",
"testGasUpdateDynamicLPFee": "31203",
"testGas_SetMaxBinStep": "29821",
"testInitialize_gasCheck_withoutHooks": "144790",
"testMintNativeCurrency": "294287",
"testSetProtocolFee": "32751"
}
9 changes: 9 additions & 0 deletions snapshots/BinPoolSwapTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"testGas_exactOutputMultipleBin_WithEmptyBins": "114731",
"test_exactInputMultipleBin": "170091",
"test_exactInputSingleBin_SwapForX": "61850",
"test_exactInputSingleBin_SwapForY": "61801",
"test_exactOutputMultipleBin": "164573",
"test_exactOutputSingleBin_SwapForX": "56144",
"test_exactOutputSingleBin_SwapForY": "56148"
}
8 changes: 8 additions & 0 deletions snapshots/BitMathTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"leastSignificantBitMaxUint128": "633",
"leastSignificantBitMaxUint256": "633",
"leastSignificantBitSmallNumber": "25",
"mostSignificantBitMaxUint128": "633",
"mostSignificantBitMaxUint256": "633",
"mostSignificantBitSmallNumber": "25"
}
4 changes: 4 additions & 0 deletions snapshots/CLMintBurnFeeHookTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"test_Burn": "169459",
"test_Mint": "405327"
}
18 changes: 17 additions & 1 deletion snapshots/CLPoolManagerTest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{
"clPoolManager initcode hash (without constructor params, as uint256)": "43498189724800683414039944409888665118981458752163755806370462274516389565331"
"CLPoolManagerBytecodeSize": "20886",
"addLiquidity_fromEmpty": "343791",
"addLiquidity_fromNonEmpty": "161744",
"addLiquidity_nativeToken": "225761",
"clPoolManager initcode hash (without constructor params, as uint256)": "43498189724800683414039944409888665118981458752163755806370462274516389565331",
"donateBothTokens": "162089",
"gasDonateOneToken": "107144",
"initializeWithoutHooks": "145737",
"removeLiquidity_toNonEmpty": "111547",
"swap_againstLiquidity": "129545",
"swap_leaveSurplusTokenInVault": "161954",
"swap_runOutOfLiquidity": "147224",
"swap_simple": "69980",
"swap_useSurplusTokenAsInput": "141915",
"swap_withHooks": "86198",
"swap_withNative": "69980",
"testFuzzUpdateDynamicLPFee": "30969"
}
Loading

0 comments on commit 42feba5

Please sign in to comment.