From 6c94cfad9ac8103d0947d6495cf158d834aa7dc8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 8 Feb 2025 00:42:14 +0000 Subject: [PATCH] Update briefcase Changes: M src/protocols/v3-periphery/libraries/HexStrings.sol M src/protocols/v4-core/interfaces/IProtocolFees.sol M src/protocols/v4-periphery/utils/BaseHook.sol --- src/protocols/v3-periphery/libraries/HexStrings.sol | 2 ++ src/protocols/v4-core/interfaces/IProtocolFees.sol | 1 + src/protocols/v4-periphery/utils/BaseHook.sol | 12 ------------ 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/protocols/v3-periphery/libraries/HexStrings.sol b/src/protocols/v3-periphery/libraries/HexStrings.sol index 8f82288..91a9e54 100644 --- a/src/protocols/v3-periphery/libraries/HexStrings.sol +++ b/src/protocols/v3-periphery/libraries/HexStrings.sol @@ -1,6 +1,8 @@ // SPDX-License-Identifier: MIT pragma solidity =0.7.6; +import {Strings} from '../../lib-external/oz-v3.4-solc-0.7/contracts/utils/Strings.sol'; + library HexStrings { bytes16 internal constant ALPHABET = '0123456789abcdef'; diff --git a/src/protocols/v4-core/interfaces/IProtocolFees.sol b/src/protocols/v4-core/interfaces/IProtocolFees.sol index c8b53b6..6958a69 100644 --- a/src/protocols/v4-core/interfaces/IProtocolFees.sol +++ b/src/protocols/v4-core/interfaces/IProtocolFees.sol @@ -2,6 +2,7 @@ pragma solidity >=0.6.2; import {Currency} from '../types/Currency.sol'; + import {PoolId} from '../types/PoolId.sol'; import {PoolKey} from '../types/PoolKey.sol'; diff --git a/src/protocols/v4-periphery/utils/BaseHook.sol b/src/protocols/v4-periphery/utils/BaseHook.sol index d65bd49..e18b571 100644 --- a/src/protocols/v4-periphery/utils/BaseHook.sol +++ b/src/protocols/v4-periphery/utils/BaseHook.sol @@ -14,8 +14,6 @@ import {ImmutableState} from '../base/ImmutableState.sol'; /// @title Base Hook /// @notice abstract contract for hook implementations abstract contract BaseHook is IHooks, ImmutableState { - error NotSelf(); - error InvalidPool(); error HookNotImplemented(); constructor(IPoolManager _manager) ImmutableState(_manager) { @@ -34,7 +32,6 @@ abstract contract BaseHook is IHooks, ImmutableState { Hooks.validateHookPermissions(_this, getHookPermissions()); } - /// function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external onlyPoolManager @@ -47,7 +44,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick) external onlyPoolManager @@ -60,7 +56,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function beforeAddLiquidity( address sender, PoolKey calldata key, @@ -78,7 +73,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function beforeRemoveLiquidity( address sender, PoolKey calldata key, @@ -97,7 +91,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function afterAddLiquidity( address sender, PoolKey calldata key, @@ -120,7 +113,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function afterRemoveLiquidity( address sender, PoolKey calldata key, @@ -143,7 +135,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function beforeSwap( address sender, PoolKey calldata key, @@ -161,7 +152,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function afterSwap( address sender, PoolKey calldata key, @@ -180,7 +170,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function beforeDonate( address sender, PoolKey calldata key, @@ -199,7 +188,6 @@ abstract contract BaseHook is IHooks, ImmutableState { revert HookNotImplemented(); } - /// function afterDonate( address sender, PoolKey calldata key,