Creates a [`SequencerConfig`] from the [`SequencerArgs`].
(&self)
| 124 | impl SequencerArgs { |
| 125 | /// Creates a [`SequencerConfig`] from the [`SequencerArgs`]. |
| 126 | pub fn config(&self) -> SequencerConfig { |
| 127 | SequencerConfig { |
| 128 | sequencer_stopped: self.stopped, |
| 129 | sequencer_recovery_mode: self.recover, |
| 130 | shadow_funding: self.shadow_funding_address.map(|address| { |
| 131 | ShadowFunding::new( |
| 132 | address, |
| 133 | self.shadow_funding_amount |
| 134 | .unwrap_or_else(|| U256::from(10_000) * Unit::ETHER.wei()), |
| 135 | ) |
| 136 | }), |
| 137 | conductor_rpc_url: self.conductor_rpc.clone(), |
| 138 | conductor_binary_commit: self.conductor_binary_commit, |
| 139 | conductor_rpc_timeout: self.conductor_rpc_timeout, |
| 140 | l1_conf_delay: self.l1_confs, |
| 141 | l1_rpc_timeout: self.l1_rpc_timeout, |
| 142 | seal_offset: DEFAULT_SEAL_OFFSET, |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | #[cfg(test)] |