Skip to content

Commit

Permalink
rm bootinfowithbytesconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 31, 2025
1 parent cb96357 commit 357aea2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions utils/client/src/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,3 @@ impl From<BootInfo> for BootInfoStruct {
}
}
}

impl From<BootInfoWithBytesConfig> 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<u8>,
}
2 changes: 1 addition & 1 deletion utils/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 357aea2

Please sign in to comment.