Helpful?
PoolSwapTest
Git Source - Generated with forge doc
Inherits: PoolTestBase
Functions
constructor
constructor(IPoolManager _manager) PoolTestBase(_manager);
swap
function swap(
PoolKey memory key,
IPoolManager.SwapParams memory params,
TestSettings memory testSettings,
bytes memory hookData
) external payable returns (BalanceDelta delta);
unlockCallback
function unlockCallback(bytes calldata rawData) external returns (bytes memory);
Errors
NoSwapOccurred
error NoSwapOccurred();
Structs
CallbackData
struct CallbackData {
address sender;
TestSettings testSettings;
PoolKey key;
IPoolManager.SwapParams params;
bytes hookData;
}
TestSettings
struct TestSettings {
bool takeClaims;
bool settleUsingBurn;
}