-
Notifications
You must be signed in to change notification settings - Fork 86
/
IFactory.sol
49 lines (44 loc) · 1 KB
/
IFactory.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
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.24;
interface IFactory {
struct Parameters {
address factory;
address tokenA;
address tokenB;
int24 tickLower;
int24 tickUpper;
uint24 fee;
}
function parameters()
external
view
returns (
address factory,
address tokenA,
address tokenB,
int24 tickLower,
int24 tickUpper,
uint24 fee
);
event PoolCreated(
address token0,
address token1,
uint32 index,
int24 tickLower,
int24 tickUpper,
uint24 fee,
address pool
);
function getPool(
address tokenA,
address tokenB,
uint32 index
) external view returns (address pool);
function createPool(
address tokenA,
address tokenB,
int24 tickLower,
int24 tickUpper,
uint24 fee
) external returns (address pool);
}