|
1 | 1 | use alloy_primitives::{Address, ChainId, address}; |
2 | | -use alloy_sol_types::Eip712Domain; |
3 | 2 |
|
4 | 3 | use crate::v4::{UNISWAP_V4_CONSTANTS_BASE_MAINNET, UNISWAP_V4_CONSTANTS_UNICHAIN_MAINNET, UniswapV4Constants}; |
5 | 4 |
|
6 | 5 | #[derive(Debug, Clone)] |
7 | 6 | pub struct AngstromL2Constants { |
8 | | - angstrom_l2_factory: Address, |
9 | | - hook_address_miner: Address, |
10 | | - angstrom_deploy_block: u64, |
11 | | - chain_id: u64, |
12 | | - angstrom_eip712_domain: Eip712Domain, |
13 | | - uniswap_constants: UniswapV4Constants |
| 7 | + angstrom_l2_factory: Address, |
| 8 | + hook_address_miner: Address, |
| 9 | + angstrom_deploy_block: u64, |
| 10 | + chain_id: u64, |
| 11 | + uniswap_constants: UniswapV4Constants |
14 | 12 | } |
15 | 13 |
|
16 | 14 | impl AngstromL2Constants { |
@@ -42,41 +40,24 @@ impl AngstromL2Constants { |
42 | 40 | self.chain_id |
43 | 41 | } |
44 | 42 |
|
45 | | - #[inline] |
46 | | - pub fn angstrom_eip712_domain(&self) -> Eip712Domain { |
47 | | - self.angstrom_eip712_domain.clone() |
48 | | - } |
49 | | - |
50 | 43 | #[inline] |
51 | 44 | pub fn uniswap_constants(&self) -> UniswapV4Constants { |
52 | 45 | self.uniswap_constants |
53 | 46 | } |
54 | 47 | } |
55 | 48 |
|
56 | 49 | pub const ANGSTROM_L2_CONSTANTS_BASE_MAINNET: AngstromL2Constants = AngstromL2Constants { |
57 | | - angstrom_l2_factory: address!("0x0000000000a5f21b113A18DD18f6FbEEBD01201B"), |
58 | | - hook_address_miner: address!("0x7f210fC1757556A8161D797077cc13eDf50969d3"), |
59 | | - angstrom_deploy_block: 42584531, |
60 | | - chain_id: 8453, |
61 | | - angstrom_eip712_domain: alloy_sol_types::eip712_domain!( |
62 | | - name: "Angstrom", |
63 | | - version: "v1", |
64 | | - chain_id: 8453, |
65 | | - verifying_contract: Address::ZERO, |
66 | | - ), |
67 | | - uniswap_constants: UNISWAP_V4_CONSTANTS_BASE_MAINNET |
| 50 | + angstrom_l2_factory: address!("0x0000000000fd3b85c30f942e8d878e858e69cd05"), |
| 51 | + hook_address_miner: address!("0x1C9e501116879d6A6748582047eBcb8bbcCC7d53"), |
| 52 | + angstrom_deploy_block: 43873127, |
| 53 | + chain_id: 8453, |
| 54 | + uniswap_constants: UNISWAP_V4_CONSTANTS_BASE_MAINNET |
68 | 55 | }; |
69 | 56 |
|
70 | 57 | pub const ANGSTROM_L2_CONSTANTS_UNICHAIN_MAINNET: AngstromL2Constants = AngstromL2Constants { |
71 | | - angstrom_l2_factory: address!("0x000000000000a0220e791bAe32b16C0406980C42"), |
72 | | - hook_address_miner: address!("0x98bD6680eE62C006730A5a4dFB2f0Da6645A10f5"), |
73 | | - angstrom_deploy_block: 29275745, |
74 | | - chain_id: 130, |
75 | | - angstrom_eip712_domain: alloy_sol_types::eip712_domain!( |
76 | | - name: "Angstrom", |
77 | | - version: "v1", |
78 | | - chain_id: 130, |
79 | | - verifying_contract: Address::ZERO, |
80 | | - ), |
81 | | - uniswap_constants: UNISWAP_V4_CONSTANTS_UNICHAIN_MAINNET |
| 58 | + angstrom_l2_factory: address!("0x000000000000a0220e791bAe32b16C0406980C42"), |
| 59 | + hook_address_miner: address!("0x98bD6680eE62C006730A5a4dFB2f0Da6645A10f5"), |
| 60 | + angstrom_deploy_block: 29275745, |
| 61 | + chain_id: 130, |
| 62 | + uniswap_constants: UNISWAP_V4_CONSTANTS_UNICHAIN_MAINNET |
82 | 63 | }; |
0 commit comments