-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,40 @@ | ||
#![feature(array_chunks)] | ||
#![feature(iter_next_chunk)] | ||
use thiserror::Error; | ||
|
||
pub mod blob_http_client; | ||
pub mod constants; | ||
pub mod database; | ||
pub mod l1_fetcher; | ||
pub mod metrics; | ||
pub mod parser; | ||
pub mod types; | ||
|
||
#[allow(clippy::enum_variant_names)] | ||
#[derive(Error, Debug)] | ||
pub enum ParseError { | ||
#[error("invalid Calldata: {0}")] | ||
InvalidCalldata(String), | ||
|
||
#[error("invalid StoredBlockInfo: {0}")] | ||
InvalidStoredBlockInfo(String), | ||
|
||
#[error("invalid CommitBlockInfo: {0}")] | ||
InvalidCommitBlockInfo(String), | ||
|
||
#[allow(dead_code)] | ||
#[error("invalid compressed bytecode: {0}")] | ||
InvalidCompressedByteCode(String), | ||
|
||
#[error("invalid compressed value: {0}")] | ||
InvalidCompressedValue(String), | ||
|
||
#[error("invalid pubdata source: {0}")] | ||
InvalidPubdataSource(String), | ||
|
||
#[error("blob storage error: {0}")] | ||
BlobStorageError(String), | ||
|
||
#[error("blob format error: {0}")] | ||
BlobFormatError(String, String), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters