-
Notifications
You must be signed in to change notification settings - Fork 76
/
IPoolManager.sol
41 lines (34 loc) · 960 Bytes
/
IPoolManager.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.24;
pragma abicoder v2;
import "./IFactory.sol";
interface IPoolManager is IFactory {
struct PoolInfo {
address token0;
address token1;
uint32 index;
uint24 fee;
uint8 feeProtocol;
int24 tickLower;
int24 tickUpper;
int24 tick;
uint160 sqrtPriceX96;
}
struct Pair {
address token0;
address token1;
}
function getPairs() external view returns (Pair[] memory);
function getAllPools() external view returns (PoolInfo[] memory poolsInfo);
struct CreateAndInitializeParams {
address token0;
address token1;
uint24 fee;
int24 tickLower;
int24 tickUpper;
uint160 sqrtPriceX96;
}
function createAndInitializePoolIfNecessary(
CreateAndInitializeParams calldata params
) external payable returns (address pool);
}