Helpful?
MockHooks
Git Source - Generated with forge doc
Inherits: IHooks
State Variables
beforeInitializeData
bytes public beforeInitializeData;
afterInitializeData
bytes public afterInitializeData;
beforeAddLiquidityData
bytes public beforeAddLiquidityData;
afterAddLiquidityData
bytes public afterAddLiquidityData;
beforeRemoveLiquidityData
bytes public beforeRemoveLiquidityData;
afterRemoveLiquidityData
bytes public afterRemoveLiquidityData;
beforeSwapData
bytes public beforeSwapData;
afterSwapData
bytes public afterSwapData;
beforeDonateData
bytes public beforeDonateData;
afterDonateData
bytes public afterDonateData;
returnValues
mapping(bytes4 => bytes4) public returnValues;
lpFees
mapping(PoolId => uint16) public lpFees;
Functions
beforeInitialize
function beforeInitialize(address, PoolKey calldata, uint160) external override returns (bytes4);
afterInitialize
function afterInitialize(address, PoolKey calldata, uint160, int24) external override returns (bytes4);
beforeAddLiquidity
function beforeAddLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
bytes calldata hookData
) external override returns (bytes4);
afterAddLiquidity
function afterAddLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta,
bytes calldata hookData
) external override returns (bytes4, BalanceDelta);
beforeRemoveLiquidity
function beforeRemoveLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
bytes calldata hookData
) external override returns (bytes4);
afterRemoveLiquidity
function afterRemoveLiquidity(
address,
PoolKey calldata,
IPoolManager.ModifyLiquidityParams calldata,
BalanceDelta,
BalanceDelta,
bytes calldata hookData
) external override returns (bytes4, BalanceDelta);
beforeSwap
function beforeSwap(address, PoolKey calldata, IPoolManager.SwapParams calldata, bytes calldata hookData)
external
override
returns (bytes4, BeforeSwapDelta, uint24);
afterSwap
function afterSwap(address, PoolKey calldata, IPoolManager.SwapParams calldata, BalanceDelta, bytes calldata hookData)
external
override
returns (bytes4, int128);
beforeDonate
function beforeDonate(address, PoolKey calldata, uint256, uint256, bytes calldata hookData)
external
override
returns (bytes4);
afterDonate
function afterDonate(address, PoolKey calldata, uint256, uint256, bytes calldata hookData)
external
override
returns (bytes4);
setReturnValue
function setReturnValue(bytes4 key, bytes4 value) external;
setlpFee
function setlpFee(PoolKey calldata key, uint16 value) external;