Skip to main content
Helpful?

SkipCallsTestHook

Git Source - Generated with forge doc

Inherits: BaseTestHooks, Test

State Variables

counter

uint256 public counter;

manager

IPoolManager manager;

Functions

setManager

function setManager(IPoolManager _manager) external;

beforeInitialize

function beforeInitialize(address, PoolKey calldata key, uint160 sqrtPriceX96) external override returns (bytes4);

afterInitialize

function afterInitialize(address, PoolKey calldata key, uint160 sqrtPriceX96, int24)
external
override
returns (bytes4);

beforeAddLiquidity

function beforeAddLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata params,
bytes calldata hookData
) external override returns (bytes4);

afterAddLiquidity

function afterAddLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata params,
BalanceDelta,
BalanceDelta,
bytes calldata hookData
) external override returns (bytes4, BalanceDelta);

beforeRemoveLiquidity

function beforeRemoveLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata params,
bytes calldata hookData
) external override returns (bytes4);

afterRemoveLiquidity

function afterRemoveLiquidity(
address,
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams calldata params,
BalanceDelta,
BalanceDelta,
bytes calldata hookData
) external override returns (bytes4, BalanceDelta);

beforeSwap

function beforeSwap(address, PoolKey calldata key, IPoolManager.SwapParams calldata params, bytes calldata hookData)
external
override
returns (bytes4, BeforeSwapDelta, uint24);

afterSwap

function afterSwap(
address,
PoolKey calldata key,
IPoolManager.SwapParams calldata params,
BalanceDelta,
bytes calldata hookData
) external override returns (bytes4, int128);

beforeDonate

function beforeDonate(address, PoolKey calldata key, uint256 amt0, uint256 amt1, bytes calldata hookData)
external
override
returns (bytes4);

afterDonate

function afterDonate(address, PoolKey calldata key, uint256 amt0, uint256 amt1, bytes calldata hookData)
external
override
returns (bytes4);

_initialize

function _initialize(PoolKey memory key, uint160 sqrtPriceX96) public;

_swap

function _swap(PoolKey calldata key, IPoolManager.SwapParams memory params, bytes calldata hookData) public;

_addLiquidity

function _addLiquidity(PoolKey calldata key, IPoolManager.ModifyLiquidityParams memory params, bytes calldata hookData)
public;

_removeLiquidity

function _removeLiquidity(
PoolKey calldata key,
IPoolManager.ModifyLiquidityParams memory params,
bytes calldata hookData
) public;

_donate

function _donate(PoolKey calldata key, uint256 amt0, uint256 amt1, bytes calldata hookData) public;
Helpful?