use alloy::sol;
sol! {
#[sol(rpc)]
#[allow(missing_docs)]
interface IStateView {
function getSlot0(bytes32 poolId) external view returns (
uint160 sqrtPriceX96,
int24 tick,
uint24 protocolFee,
uint24 lpFee
);
function getTickInfo(bytes32 poolId, int24 tick) external view returns (
uint128 liquidityGross,
int128 liquidityNet,
uint256 feeGrowthOutside0X128,
uint256 feeGrowthOutside1X128
);
function getFeeGrowthGlobals(bytes32 poolId) external view returns (
uint256 feeGrowthGlobal0,
uint256 feeGrowthGlobal1
);
function getLiquidity(bytes32 poolId) external view returns (uint128 liquidity);
function getPositionInfo(bytes32 poolId, bytes32 positionId) external view returns (
uint128 liquidity,
uint256 feeGrowthInside0LastX128,
uint256 feeGrowthInside1LastX128
);
}
}