Skip to content

Commit

Permalink
chore: serde rename all
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapoz committed Jul 16, 2024
1 parent 7423a02 commit e70f7fa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions state-reconstruct-storage/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,19 @@ pub enum SnapshotVersion {
}

#[derive(Clone, Default, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SnapshotHeader {
pub version: SnapshotVersion,
#[serde(rename = "l1BatchNumber")]
pub l1_batch_number: u64,
#[serde(rename = "miniblockNumber")]
pub miniblock_number: u64,
// ordered by chunk_id
#[serde(rename = "storageLogsChunks")]
pub storage_logs_chunks: Vec<SnapshotStorageLogsChunkMetadata>,
#[serde(rename = "factoryDepsFilepath")]
pub factory_deps_filepath: String,
}

#[derive(Clone, Default, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SnapshotStorageLogsChunkMetadata {
#[serde(rename = "chunkId")]
pub chunk_id: u64,
// can be either a gs or filesystem path
pub filepath: String,
Expand Down

0 comments on commit e70f7fa

Please sign in to comment.