Helpful?
BaseTestHooks
Git Source - Generated with forge doc
Inherits: IHooks
Functions
beforeInitialize
function beforeInitialize(address, PoolKey calldata, uint160) external virtual returns (bytes4);
afterInitialize
function afterInitialize(address, PoolKey calldata, uint160, int24) external virtual returns (bytes4);
beforeAddLiquidity
function beforeAddLiquidity(address, PoolKey calldata, IPoolManager.ModifyLiquidityParams calldata, bytes calldata)
external
virtual
returns (bytes4);
afterAddLiquidity
function afterAddLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta,
bytes calldata
) external virtual returns (bytes4, BalanceDelta);
beforeRemoveLiquidity
function beforeRemoveLiquidity(address, PoolKey calldata, IPoolManager.ModifyLiquidityParams calldata, bytes calldata)
external
virtual
returns (bytes4);
afterRemoveLiquidity
function afterRemoveLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta,
bytes calldata
) external virtual returns (bytes4, BalanceDelta);
beforeSwap
function beforeSwap(address, PoolKey calldata, IPoolManager.SwapParams calldata, bytes calldata)
external
virtual
returns (bytes4, BeforeSwapDelta, uint24);
afterSwap
function afterSwap(address, PoolKey calldata, IPoolManager.SwapParams calldata, BalanceDelta, bytes calldata)
external
virtual
returns (bytes4, int128);
beforeDonate
function beforeDonate(address, PoolKey calldata, uint256, uint256, bytes calldata) external virtual returns (bytes4);
afterDonate
function afterDonate(address, PoolKey calldata, uint256, uint256, bytes calldata) external virtual returns (bytes4);
Errors
HookNotImplemented
error HookNotImplemented();