From 352cd9e6d09da3f9521e261cd5b66d18e1e5795c Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:21:04 +0800 Subject: [PATCH 01/10] feat: update forge-std --- lib/forge-std | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forge-std b/lib/forge-std index bb4ceea..52715a2 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit bb4ceea94d6f10eeb5b41dc2391c6c8bf8e734ef +Subproject commit 52715a217dc51d0de15877878ab8213f6cbbbab5 From 9a702d87cfe821ce122b6ce0e705eb40259f7f4d Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:21:42 +0800 Subject: [PATCH 02/10] forge install: forge-gas-snapshot 9161f7c0b6c6788a89081e2b3b9c67592b71e689 --- .gitmodules | 3 +++ lib/forge-gas-snapshot | 1 + 2 files changed, 4 insertions(+) create mode 160000 lib/forge-gas-snapshot diff --git a/.gitmodules b/.gitmodules index eed62b8..65e8918 100644 --- a/.gitmodules +++ b/.gitmodules @@ -12,3 +12,6 @@ url = https://github.com/OpenZeppelin/openzeppelin-contracts branch = release-v4.9 +[submodule "lib/forge-gas-snapshot"] + path = lib/forge-gas-snapshot + url = https://github.com/marktoda/forge-gas-snapshot diff --git a/lib/forge-gas-snapshot b/lib/forge-gas-snapshot new file mode 160000 index 0000000..9161f7c --- /dev/null +++ b/lib/forge-gas-snapshot @@ -0,0 +1 @@ +Subproject commit 9161f7c0b6c6788a89081e2b3b9c67592b71e689 From f47f55bc51f035075a969536a6f26f1659d7e629 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:24:39 +0800 Subject: [PATCH 03/10] feat: updated to solc 0.8.26 --- ...iquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap | 2 +- ..._AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap | 2 +- ...onManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap | 2 +- ..._AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap | 2 +- ...uidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap | 2 +- ...LiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap | 2 +- ...ionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap | 2 +- ...nSwapRouterTest#testExactInputSingle_DifferentRecipient.snap | 2 +- ...RouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap | 2 +- ...RouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap | 2 +- ...wapRouterTest#testExactInput_MultiHopDifferentRecipient.snap | 2 +- ...SwapRouterTest#testExactOutputSingle_DifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap | 2 +- ...apRouterTest#testExactOutput_MultiHopDifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutput_SingleHop.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#collect.snap | 2 +- .../NonfungiblePositionManager#decreaseLiquidity.snap | 2 +- .../NonfungiblePositionManager#increaseLiquidity.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#mint.snap | 2 +- foundry.toml | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap index 4273605..d54044a 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap @@ -1 +1 @@ -80256 \ No newline at end of file +73618 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap index 2846d6e..a69c1a7 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap @@ -1 +1 @@ -629630 \ No newline at end of file +622992 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap index 4053d48..3f53246 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap @@ -1 +1 @@ -920865 \ No newline at end of file +913401 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap index a27e83d..cfed5cb 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap @@ -1 +1 @@ -1271570 \ No newline at end of file +1262461 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap index 3944fd9..8244bd3 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap @@ -1 +1 @@ -80168 \ No newline at end of file +75516 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap index a0f61ab..cb9e5ad 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap @@ -1 +1 @@ -116617 \ No newline at end of file +111483 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap index 53b2aa7..11b5cc3 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap @@ -1 +1 @@ -113422 \ No newline at end of file +108288 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap index 60fbe72..6fa2493 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap @@ -1 +1 @@ -29704 \ No newline at end of file +29699 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap index f1bd9cd..4bbdc2c 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap @@ -1 +1 @@ -29436 \ No newline at end of file +29431 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap index 452c8ec..ade9a2f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap @@ -1 +1 @@ -138072 \ No newline at end of file +135771 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap index 4a4c3d5..0e014e2 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap @@ -1 +1 @@ -130798 \ No newline at end of file +128493 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap index 500d244..57da915 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap @@ -1 +1 @@ -135611 \ No newline at end of file +133310 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap index b1d42d8..355732f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap @@ -1 +1 @@ -131578 \ No newline at end of file +129277 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap index aec6048..5562ea3 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap @@ -1 +1 @@ -131653 \ No newline at end of file +129352 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap index ab82568..2b1b06d 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -164395 \ No newline at end of file +160822 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap index e4b7373..70cfb0e 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap @@ -1 +1 @@ -143527 \ No newline at end of file +141280 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap index 12e90bc..3fc0141 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap @@ -1 +1 @@ -137033 \ No newline at end of file +134786 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap index 5dc5173..1b159ec 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap @@ -1 +1 @@ -137120 \ No newline at end of file +134873 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap index aa63162..21df84f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -169086 \ No newline at end of file +165621 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap index f89984c..390fd96 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap @@ -1 +1 @@ -129374 \ No newline at end of file +126842 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap index 335d73c..ae63883 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap @@ -1 +1 @@ -247337 \ No newline at end of file +243641 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap index c9a2f8a..f16ca95 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap @@ -1 +1 @@ -180361 \ No newline at end of file +177764 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap index f644a0f..2b087a2 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap @@ -1 +1 @@ -253346 \ No newline at end of file +249640 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap index 9f53bc9..95b027b 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap @@ -1 +1 @@ -179932 \ No newline at end of file +177330 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#collect.snap b/.forge-snapshots/NonfungiblePositionManager#collect.snap index 93d9009..26b9c4f 100644 --- a/.forge-snapshots/NonfungiblePositionManager#collect.snap +++ b/.forge-snapshots/NonfungiblePositionManager#collect.snap @@ -1 +1 @@ -199523 \ No newline at end of file +198059 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap index 1659d3f..f0b6b55 100644 --- a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap @@ -1 +1 @@ -74225 \ No newline at end of file +72736 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap index 52a0459..3dee0b7 100644 --- a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap @@ -1 +1 @@ -81392 \ No newline at end of file +79553 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#mint.snap b/.forge-snapshots/NonfungiblePositionManager#mint.snap index fb873bd..0278ff1 100644 --- a/.forge-snapshots/NonfungiblePositionManager#mint.snap +++ b/.forge-snapshots/NonfungiblePositionManager#mint.snap @@ -1 +1 @@ -627202 \ No newline at end of file +624105 \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 1df4ebe..ad7233d 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,7 +1,7 @@ [profile.default] src = 'src' out = 'foundry-out' -solc_version = '0.8.24' +solc_version = '0.8.26' optimizer_runs = 400 via_ir = false ffi = true From 9e89b43a4a156115446c2a152df9a799ce768e86 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:58:08 +0800 Subject: [PATCH 04/10] feat: update test.yml follow v4-core --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72ea2d9..bbf554d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,10 @@ on: - main pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: forge-tests: name: Forge Tests @@ -29,6 +33,6 @@ jobs: version: nightly - name: Run tests - run: forge test -vvv + run: forge test --isolate -vvv env: - FOUNDRY_PROFILE: ci + FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} \ No newline at end of file From 3a2ba26a09e62decf5a4242ea0d9021fbeb73cf7 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:58:27 +0800 Subject: [PATCH 05/10] add line break --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbf554d..5df94cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,4 +35,4 @@ jobs: - name: Run tests run: forge test --isolate -vvv env: - FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} \ No newline at end of file + FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} From bbdacba698b77350889f1523b7805fc92c6a49bb Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:04:39 +0800 Subject: [PATCH 06/10] feat: update foundry.toml following v4-core --- foundry.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/foundry.toml b/foundry.toml index ad7233d..a66b4e9 100644 --- a/foundry.toml +++ b/foundry.toml @@ -16,11 +16,17 @@ evm_version = 'cancun' runs = 1000 # change this for higher number of fuzz/invariant locally [profile.ci.fuzz] -runs = 100000 +runs = 10000 [profile.ci.invariant] -runs = 10000 # The number of calls to make in the invariant tests +runs = 1000 # The number of calls to make in the invariant tests call_override = false # Override calls fail_on_revert = false # Fail the test if the contract reverts -# See more config options https://github.com/foundry-rs/foundry/tree/master/config \ No newline at end of file +[profile.ci_main.fuzz] +runs = 100000 + +[profile.ci_main.invariant] +runs = 10000 # The number of calls to make in the invariant tests +call_override = false # Override calls +fail_on_revert = false # Fail the test if the contract reverts From 30791b12b137bc2de041923267ebff72b4fe19cf Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:16:26 +0800 Subject: [PATCH 07/10] ci: set invariant depth to before --- foundry.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foundry.toml b/foundry.toml index a66b4e9..ffb2bbd 100644 --- a/foundry.toml +++ b/foundry.toml @@ -15,6 +15,9 @@ evm_version = 'cancun' [fuzz] runs = 1000 # change this for higher number of fuzz/invariant locally +[invariant] +depth = 15 # revert to 15 as default is 500: https://github.com/foundry-rs/foundry/pull/7957 + [profile.ci.fuzz] runs = 10000 From 32f2d1e3d444f242ef873f702a7597d3a4567a8b Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:26:04 +0800 Subject: [PATCH 08/10] ci: update snapshot with forge test --isolate and readme --- ...uidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap | 2 +- ...ddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap | 2 +- ...Manager_AddLiquidityTest#testAddLiquidityWithActiveId.snap | 2 +- ...ddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap | 2 +- ...dityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap | 2 +- ...quidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap | 2 +- ...nManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testBurn.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testMint.snap | 2 +- ...wapRouterTest#testExactInputSingle_DifferentRecipient.snap | 2 +- ...uterTest#testExactInputSingle_EthPool_SwapEthForToken.snap | 2 +- ...uterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap | 2 +- ...pRouterTest#testExactInput_MultiHopDifferentRecipient.snap | 2 +- ...apRouterTest#testExactOutputSingle_DifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap | 2 +- ...RouterTest#testExactOutput_MultiHopDifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutput_SingleHop.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#burn.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#collect.snap | 2 +- .../NonfungiblePositionManager#decreaseLiquidity.snap | 2 +- .../NonfungiblePositionManager#increaseLiquidity.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#mint.snap | 2 +- README.md | 4 +++- 32 files changed, 34 insertions(+), 32 deletions(-) diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap index d54044a..53c0ade 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap @@ -1 +1 @@ -73618 \ No newline at end of file +186974 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap index a69c1a7..3161941 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap @@ -1 +1 @@ -622992 \ No newline at end of file +656948 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap index 3f53246..32ed4d6 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap @@ -1 +1 @@ -913401 \ No newline at end of file +945285 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap index cfed5cb..33d7e1b 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap @@ -1 +1 @@ -1262461 \ No newline at end of file +1312637 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap index 8244bd3..59a7363 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap @@ -1 +1 @@ -75516 \ No newline at end of file +153583 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap index cb9e5ad..589ff60 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap @@ -1 +1 @@ -111483 \ No newline at end of file +224877 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap index 11b5cc3..dd3a892 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap @@ -1 +1 @@ -108288 \ No newline at end of file +252792 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap index 6fa2493..2523860 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap @@ -1 +1 @@ -29699 \ No newline at end of file +54375 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap index 4bbdc2c..73fee01 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap @@ -1 +1 @@ -29431 \ No newline at end of file +52575 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap index caa1741..a32f532 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap @@ -1 +1 @@ -2062 \ No newline at end of file +26983 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testMint.snap b/.forge-snapshots/BinFungibleTokenTest#testMint.snap index ddc6fcb..6d50a70 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testMint.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testMint.snap @@ -1 +1 @@ -43613 \ No newline at end of file +67349 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap index ade9a2f..cf85684 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap @@ -1 +1 @@ -135771 \ No newline at end of file +162255 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap index 0e014e2..e93ca17 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap @@ -1 +1 @@ -128493 \ No newline at end of file +156725 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap index 57da915..60f8b37 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap @@ -1 +1 @@ -133310 \ No newline at end of file +159530 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap index 355732f..9cdcd67 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap @@ -1 +1 @@ -129277 \ No newline at end of file +160249 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap index 5562ea3..1ab00a0 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap @@ -1 +1 @@ -129352 \ No newline at end of file +160312 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap index 2b1b06d..2814bdc 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -160822 \ No newline at end of file +186338 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap index 70cfb0e..44ce088 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap @@ -1 +1 @@ -141280 \ No newline at end of file +172624 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap index 3fc0141..afdd9de 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap @@ -1 +1 @@ -134786 \ No newline at end of file +170630 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap index 1b159ec..6efd550 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap @@ -1 +1 @@ -134873 \ No newline at end of file +170705 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap index 21df84f..994afae 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -165621 \ No newline at end of file +200509 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap index 390fd96..cbcce68 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap @@ -1 +1 @@ -126842 \ No newline at end of file +162954 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap index ae63883..3ccc503 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap @@ -1 +1 @@ -243641 \ No newline at end of file +266645 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap index f16ca95..d551c2f 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap @@ -1 +1 @@ -177764 \ No newline at end of file +201852 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap index 2b087a2..d14a3b6 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap @@ -1 +1 @@ -249640 \ No newline at end of file +272728 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap index 95b027b..6c3d0c4 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap @@ -1 +1 @@ -177330 \ No newline at end of file +201502 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#burn.snap b/.forge-snapshots/NonfungiblePositionManager#burn.snap index 5ab4456..0d4e47b 100644 --- a/.forge-snapshots/NonfungiblePositionManager#burn.snap +++ b/.forge-snapshots/NonfungiblePositionManager#burn.snap @@ -1 +1 @@ -10794 \ No newline at end of file +62578 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#collect.snap b/.forge-snapshots/NonfungiblePositionManager#collect.snap index 26b9c4f..ee2fa4f 100644 --- a/.forge-snapshots/NonfungiblePositionManager#collect.snap +++ b/.forge-snapshots/NonfungiblePositionManager#collect.snap @@ -1 +1 @@ -198059 \ No newline at end of file +276679 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap index f0b6b55..b2fcfc4 100644 --- a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap @@ -1 +1 @@ -72736 \ No newline at end of file +190144 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap index 3dee0b7..5988a3c 100644 --- a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap @@ -1 +1 @@ -79553 \ No newline at end of file +218325 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#mint.snap b/.forge-snapshots/NonfungiblePositionManager#mint.snap index 0278ff1..d407d24 100644 --- a/.forge-snapshots/NonfungiblePositionManager#mint.snap +++ b/.forge-snapshots/NonfungiblePositionManager#mint.snap @@ -1 +1 @@ -624105 \ No newline at end of file +653033 \ No newline at end of file diff --git a/README.md b/README.md index 1bc8dce..73bb784 100644 --- a/README.md +++ b/README.md @@ -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 From 8cc25aa8443f4e1fac20f0b4e45165524409532a Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:58:58 +0800 Subject: [PATCH 09/10] ci: update package.json with forge test --isolate --- .../BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testBurn.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testMint.snap | 2 +- package.json | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap index 2523860..45e5374 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap @@ -1 +1 @@ -54375 \ No newline at end of file +54363 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap index 73fee01..2aeca07 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap @@ -1 +1 @@ -52575 \ No newline at end of file +52083 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap index a32f532..c9ae354 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap @@ -1 +1 @@ -26983 \ No newline at end of file +26848 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testMint.snap b/.forge-snapshots/BinFungibleTokenTest#testMint.snap index 6d50a70..e70b37d 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testMint.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testMint.snap @@ -1 +1 @@ -67349 \ No newline at end of file +67517 \ No newline at end of file diff --git a/package.json b/package.json index fbfce70..f614057 100644 --- a/package.json +++ b/package.json @@ -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" From 065d73957b38de5200bed00665d6da42c5ac93d6 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Wed, 5 Jun 2024 12:06:41 +0800 Subject: [PATCH 10/10] gas: updated gas after merge from origin/main --- .../BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testBurn.snap | 2 +- .forge-snapshots/BinFungibleTokenTest#testMint.snap | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap index 45e5374..41669ab 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap @@ -1 +1 @@ -54363 \ No newline at end of file +54387 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap index 2aeca07..93ea312 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap @@ -1 +1 @@ -52083 \ No newline at end of file +52359 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap index c9ae354..25292f2 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBurn.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBurn.snap @@ -1 +1 @@ -26848 \ No newline at end of file +27300 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testMint.snap b/.forge-snapshots/BinFungibleTokenTest#testMint.snap index e70b37d..5a500c1 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testMint.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testMint.snap @@ -1 +1 @@ -67517 \ No newline at end of file +67877 \ No newline at end of file