Skip to content

Commit

Permalink
Update briefcase
Browse files Browse the repository at this point in the history
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
  • Loading branch information
github-actions[bot] committed Feb 8, 2025
1 parent 109dda1 commit 6c94cfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/protocols/v3-periphery/libraries/HexStrings.sol
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
1 change: 1 addition & 0 deletions src/protocols/v4-core/interfaces/IProtocolFees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
12 changes: 0 additions & 12 deletions src/protocols/v4-periphery/utils/BaseHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand All @@ -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
Expand All @@ -60,7 +56,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function beforeAddLiquidity(
address sender,
PoolKey calldata key,
Expand All @@ -78,7 +73,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function beforeRemoveLiquidity(
address sender,
PoolKey calldata key,
Expand All @@ -97,7 +91,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function afterAddLiquidity(
address sender,
PoolKey calldata key,
Expand All @@ -120,7 +113,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function afterRemoveLiquidity(
address sender,
PoolKey calldata key,
Expand All @@ -143,7 +135,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function beforeSwap(
address sender,
PoolKey calldata key,
Expand All @@ -161,7 +152,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function afterSwap(
address sender,
PoolKey calldata key,
Expand All @@ -180,7 +170,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function beforeDonate(
address sender,
PoolKey calldata key,
Expand All @@ -199,7 +188,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
revert HookNotImplemented();
}

///
function afterDonate(
address sender,
PoolKey calldata key,
Expand Down

0 comments on commit 6c94cfa

Please sign in to comment.