1use alloy::primitives::U256;
2
3use super::*;
4
5pub struct Config {
7 pub steps: usize,
9
10 pub manager_fee: U256,
12
13 pub tick_spacing: Signed<24, 1>,
15
16 pub hook_data: Bytes,
18
19 pub sqrt_price_x96: Uint<160, 3>,
21
22 pub pool_fee: Uint<24, 1>,
24
25 pub initial_price: U256,
27
28 pub hooks: Address,
30}
31
32impl Config {
33 #[allow(clippy::too_many_arguments)]
35 pub fn new(
36 steps: usize,
37 manager_fee: U256,
38 tick_spacing: Signed<24, 1>,
39 hook_data: Bytes,
40 sqrt_price_x96: Uint<160, 3>,
41 pool_fee: Uint<24, 1>,
42 initial_price: U256,
43 hooks: Address,
44 ) -> Self {
45 Self {
46 steps,
47 manager_fee,
48 tick_spacing,
49 hook_data,
50 sqrt_price_x96,
51 pool_fee,
52 initial_price,
53 hooks,
54 }
55 }
56}