From 357aea2817c334f485b6ecf6079f8cb535fb4b3c Mon Sep 17 00:00:00 2001 From: ratankaliani Date: Fri, 31 Jan 2025 21:30:31 +0000 Subject: [PATCH] rm bootinfowithbytesconfig --- utils/client/src/boot.rs | 24 ------------------------ utils/client/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/utils/client/src/boot.rs b/utils/client/src/boot.rs index 0bdd1223..68db02b0 100644 --- a/utils/client/src/boot.rs +++ b/utils/client/src/boot.rs @@ -50,27 +50,3 @@ impl From for BootInfoStruct { } } } - -impl From for BootInfoStruct { - /// Convert a `BootInfoWithBytesConfig` to a `BootInfoStruct`. - fn from(boot_info: BootInfoWithBytesConfig) -> Self { - let rollup_config = serde_json::from_slice(&boot_info.rollup_config_bytes).unwrap(); - BootInfoStruct { - l1Head: boot_info.l1_head, - l2PreRoot: boot_info.l2_output_root, - l2PostRoot: boot_info.l2_claim, - l2BlockNumber: boot_info.l2_claim_block, - rollupConfigHash: hash_rollup_config(&rollup_config), - } - } -} - -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct BootInfoWithBytesConfig { - pub l1_head: B256, - pub l2_output_root: B256, - pub l2_claim: B256, - pub l2_claim_block: u64, - pub chain_id: u64, - pub rollup_config_bytes: Vec, -} diff --git a/utils/client/src/lib.rs b/utils/client/src/lib.rs index b9ee2672..ad31d196 100644 --- a/utils/client/src/lib.rs +++ b/utils/client/src/lib.rs @@ -4,7 +4,7 @@ mod hasher; pub use hasher::BytesHasherBuilder; pub mod boot; -pub use boot::{BootInfoWithBytesConfig, AGGREGATION_OUTPUTS_SIZE}; +pub use boot::AGGREGATION_OUTPUTS_SIZE; mod oracle; pub use oracle::{InMemoryOracle, StoreOracle};