repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/test_utils.rs
crates/storage/codecs/src/test_utils.rs
//! Test utilities for `Compact` derive macro /// Macro to ensure that derived `Compact` types can be extended with new fields while maintaining /// backwards compatibility. /// /// Verifies that the unused bits in the bitflag struct remain as expected: `Zero` or `NotZero`. For /// more on bitflag struct: [`reth_codec...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/txtype.rs
crates/storage/codecs/src/txtype.rs
//! Commonly used constants for transaction types. /// Identifier parameter for legacy transaction pub const COMPACT_IDENTIFIER_LEGACY: usize = 0; /// Identifier parameter for EIP-2930 transaction pub const COMPACT_IDENTIFIER_EIP2930: usize = 1; /// Identifier parameter for EIP-1559 transaction pub const COMPACT_IDE...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/private.rs
crates/storage/codecs/src/private.rs
pub use modular_bitfield; pub use bytes::{self, Buf};
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/withdrawal.rs
crates/storage/codecs/src/alloy/withdrawal.rs
//! Compact implementation for [`AlloyWithdrawal`] use crate::Compact; use alloc::vec::Vec; use alloy_eips::eip4895::{Withdrawal as AlloyWithdrawal, Withdrawals}; use alloy_primitives::Address; use reth_codecs_derive::add_arbitrary_tests; /// Withdrawal acts as bridge which simplifies Compact implementation for `Allo...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/signature.rs
crates/storage/codecs/src/alloy/signature.rs
//! Compact implementation for [`Signature`] use crate::Compact; use alloy_primitives::{Signature, U256}; impl Compact for Signature { fn to_compact<B>(&self, buf: &mut B) -> usize where B: bytes::BufMut + AsMut<[u8]>, { buf.put_slice(&self.r().as_le_bytes()); buf.put_slice(&self.s...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/log.rs
crates/storage/codecs/src/alloy/log.rs
//! Native Compact codec impl for primitive alloy log types. use crate::Compact; use alloc::vec::Vec; use alloy_primitives::{Address, Bytes, Log, LogData}; use bytes::BufMut; /// Implement `Compact` for `LogData` and `Log`. impl Compact for LogData { fn to_compact<B>(&self, buf: &mut B) -> usize where ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/authorization_list.rs
crates/storage/codecs/src/alloy/authorization_list.rs
//! Compact implementation for [`AlloyAuthorization`] use crate::Compact; use alloy_eips::eip7702::{Authorization as AlloyAuthorization, SignedAuthorization}; use alloy_primitives::{Address, U256}; use bytes::Buf; use core::ops::Deref; use reth_codecs_derive::add_arbitrary_tests; /// Authorization acts as bridge whic...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/header.rs
crates/storage/codecs/src/alloy/header.rs
//! Compact implementation for [`AlloyHeader`] use crate::Compact; use alloy_consensus::Header as AlloyHeader; use alloy_primitives::{Address, BlockNumber, Bloom, Bytes, B256, U256}; /// Block header /// /// This is a helper type to use derive on it instead of manually managing `bitfield`. /// /// By deriving `Compac...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/access_list.rs
crates/storage/codecs/src/alloy/access_list.rs
//! Compact implementation for [`AccessList`] use crate::Compact; use alloc::vec::Vec; use alloy_eips::eip2930::{AccessList, AccessListItem}; use alloy_primitives::Address; /// Implement `Compact` for `AccessListItem` and `AccessList`. impl Compact for AccessListItem { fn to_compact<B>(&self, buf: &mut B) -> usiz...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/mod.rs
crates/storage/codecs/src/alloy/mod.rs
//! Implements Compact for alloy types. /// Will make it a pub mod if test-utils is enabled macro_rules! cond_mod { ($($mod_name:ident),*) => { $( #[cfg(feature = "test-utils")] pub mod $mod_name; #[cfg(not(feature = "test-utils"))] pub(crate) mod $mod_name; ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/genesis_account.rs
crates/storage/codecs/src/alloy/genesis_account.rs
//! Compact implementation for [`AlloyGenesisAccount`] use crate::Compact; use alloc::vec::Vec; use seismic_alloy_genesis::GenesisAccount as AlloyGenesisAccount; use alloy_primitives::{Bytes, B256, U256}; use reth_codecs_derive::add_arbitrary_tests; use alloy_primitives::FlaggedStorage; /// `GenesisAccount` acts as b...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/txkind.rs
crates/storage/codecs/src/alloy/txkind.rs
//! Native Compact codec impl for primitive alloy [`TxKind`]. use crate::Compact; use alloy_primitives::{Address, TxKind}; /// Identifier for [`TxKind::Create`] const TX_KIND_TYPE_CREATE: usize = 0; /// Identifier for [`TxKind::Call`] const TX_KIND_TYPE_CALL: usize = 1; impl Compact for TxKind { fn to_compact<B...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/trie.rs
crates/storage/codecs/src/alloy/trie.rs
//! Native Compact codec impl for alloy-trie types. use crate::Compact; use alloc::vec::Vec; use alloy_primitives::B256; use alloy_trie::{ hash_builder::{HashBuilderValue, HashBuilderValueRef}, BranchNodeCompact, TrieMask, }; use bytes::{Buf, BufMut}; /// Identifier for [`HashBuilderValueRef::Hash`] const HAS...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/ethereum.rs
crates/storage/codecs/src/alloy/transaction/ethereum.rs
use crate::{Compact, Vec}; use alloy_consensus::{ transaction::RlpEcdsaEncodableTx, EthereumTxEnvelope, Signed, Transaction, TxEip1559, TxEip2930, TxEip7702, TxLegacy, TxType, }; use alloy_primitives::Signature; use bytes::{Buf, BufMut}; /// A trait for extracting transaction without type and signature and ser...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/optimism.rs
crates/storage/codecs/src/alloy/transaction/optimism.rs
//! Compact implementation for [`AlloyTxDeposit`] use crate::{ alloy::transaction::ethereum::{CompactEnvelope, Envelope, FromTxCompact, ToTxCompact}, generate_tests, txtype::{ COMPACT_EXTENDED_IDENTIFIER_FLAG, COMPACT_IDENTIFIER_EIP1559, COMPACT_IDENTIFIER_EIP2930, COMPACT_IDENTIFIER_LEGACY...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/eip4844.rs
crates/storage/codecs/src/alloy/transaction/eip4844.rs
//! Compact implementation for [`AlloyTxEip4844`] use crate::{Compact, CompactPlaceholder}; use alloc::vec::Vec; use alloy_consensus::TxEip4844 as AlloyTxEip4844; use alloy_eips::eip2930::AccessList; use alloy_primitives::{Address, Bytes, ChainId, B256, U256}; use reth_codecs_derive::add_arbitrary_tests; /// [EIP-484...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/eip2930.rs
crates/storage/codecs/src/alloy/transaction/eip2930.rs
//! Compact implementation for [`AlloyTxEip2930`] use crate::Compact; use alloy_consensus::TxEip2930 as AlloyTxEip2930; use alloy_eips::eip2930::AccessList; use alloy_primitives::{Bytes, ChainId, TxKind, U256}; use reth_codecs_derive::add_arbitrary_tests; /// Transaction with an [`AccessList`] ([EIP-2930](https://eip...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/eip7702.rs
crates/storage/codecs/src/alloy/transaction/eip7702.rs
//! Compact implementation for [`AlloyTxEip7702`] use crate::Compact; use alloc::vec::Vec; use alloy_consensus::TxEip7702 as AlloyTxEip7702; use alloy_eips::{eip2930::AccessList, eip7702::SignedAuthorization}; use alloy_primitives::{Address, Bytes, ChainId, U256}; use reth_codecs_derive::add_arbitrary_tests; /// [EIP...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/mod.rs
crates/storage/codecs/src/alloy/transaction/mod.rs
//! Compact implementation for transaction types use crate::Compact; use alloy_consensus::{ transaction::{RlpEcdsaEncodableTx, TxEip1559, TxEip2930, TxEip7702, TxLegacy}, EthereumTypedTransaction, TxType, }; use alloy_primitives::bytes::BufMut; impl<Eip4844> Compact for EthereumTypedTransaction<Eip4844> where ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/legacy.rs
crates/storage/codecs/src/alloy/transaction/legacy.rs
//! Compact implementation for [`AlloyTxLegacy`] use crate::Compact; use alloy_consensus::TxLegacy as AlloyTxLegacy; use alloy_primitives::{Bytes, ChainId, TxKind, U256}; /// Legacy transaction. #[derive(Debug, Clone, PartialEq, Eq, Default, Compact)] #[reth_codecs(crate = "crate")] #[cfg_attr( any(test, feature ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/txtype.rs
crates/storage/codecs/src/alloy/transaction/txtype.rs
//! Compact implementation for [`TxType`] use crate::txtype::{ COMPACT_EXTENDED_IDENTIFIER_FLAG, COMPACT_IDENTIFIER_EIP1559, COMPACT_IDENTIFIER_EIP2930, COMPACT_IDENTIFIER_LEGACY, }; use alloy_consensus::{constants::*, TxType}; impl crate::Compact for TxType { fn to_compact<B>(&self, buf: &mut B) -> usize...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/eip1559.rs
crates/storage/codecs/src/alloy/transaction/eip1559.rs
//! Compact implementation for [`AlloyTxEip1559`] use crate::Compact; use alloy_consensus::TxEip1559 as AlloyTxEip1559; use alloy_eips::eip2930::AccessList; use alloy_primitives::{Bytes, ChainId, TxKind, U256}; /// [EIP-1559 Transaction](https://eips.ethereum.org/EIPS/eip-1559) /// /// This is a helper type to use der...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/src/alloy/transaction/seismic.rs
crates/storage/codecs/src/alloy/transaction/seismic.rs
//! Compact implementation for [`AlloyTxSeismic`] use crate::{ txtype::{ COMPACT_EXTENDED_IDENTIFIER_FLAG, COMPACT_IDENTIFIER_EIP1559, COMPACT_IDENTIFIER_EIP2930, COMPACT_IDENTIFIER_LEGACY, }, Compact, }; use alloy_consensus::TxEip4844; use alloy_consensus::{ transaction::{TxEip1559, Tx...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/lib.rs
crates/storage/codecs/derive/src/lib.rs
//! Derive macros for the Compact codec traits. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issu...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/arbitrary.rs
crates/storage/codecs/derive/src/arbitrary.rs
use proc_macro::TokenStream; use proc_macro2::{Ident, TokenStream as TokenStream2}; use quote::{quote, ToTokens}; /// If `compact` or `rlp` is passed to `derive_arbitrary`, this function will generate the /// corresponding proptest roundtrip tests. /// /// It accepts an optional integer number for the number of propte...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/compact/structs.rs
crates/storage/codecs/derive/src/compact/structs.rs
use super::*; #[derive(Debug)] pub struct StructHandler<'a> { fields_iterator: std::iter::Peekable<std::slice::Iter<'a, FieldTypes>>, lines: Vec<TokenStream2>, pub is_wrapper: bool, } impl<'a> StructHandler<'a> { pub fn new(fields: &'a FieldList) -> Self { StructHandler { lines: ve...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/compact/enums.rs
crates/storage/codecs/derive/src/compact/enums.rs
use super::*; #[derive(Debug)] pub struct EnumHandler<'a> { current_variant_index: u8, fields_iterator: std::iter::Peekable<std::slice::Iter<'a, FieldTypes>>, enum_lines: Vec<TokenStream2>, } impl<'a> EnumHandler<'a> { pub fn new(fields: &'a FieldList) -> Self { EnumHandler { curre...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/compact/flags.rs
crates/storage/codecs/derive/src/compact/flags.rs
use super::*; use syn::Attribute; /// Generates the flag fieldset struct that is going to be used to store the length of fields and /// their potential presence. pub(crate) fn generate_flag_struct( ident: &Ident, attrs: &[Attribute], has_lifetime: bool, fields: &FieldList, is_zstd: bool, ) -> Token...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/compact/generator.rs
crates/storage/codecs/derive/src/compact/generator.rs
//! Code generator for the `Compact` trait. use super::*; use crate::ZstdConfig; use convert_case::{Case, Casing}; use syn::{Attribute, LitStr}; /// Generates code to implement the `Compact` trait for a data type. pub fn generate_from_to( ident: &Ident, attrs: &[Attribute], has_lifetime: bool, fields:...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/codecs/derive/src/compact/mod.rs
crates/storage/codecs/derive/src/compact/mod.rs
use proc_macro::TokenStream; use proc_macro2::{Ident, TokenStream as TokenStream2}; use quote::{format_ident, quote}; use syn::{Data, DeriveInput, Generics}; mod generator; use generator::*; mod enums; use enums::*; mod flags; use flags::*; mod structs; use structs::*; use crate::ZstdConfig; // Helper Alias type ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/lockfile.rs
crates/storage/db/src/lockfile.rs
//! Storage lock utils. #![cfg_attr(feature = "disable-lock", allow(dead_code))] use reth_storage_errors::lockfile::StorageLockError; use std::{ path::{Path, PathBuf}, process, sync::{Arc, OnceLock}, }; use sysinfo::{ProcessRefreshKind, RefreshKind, System}; /// File lock name. const LOCKFILE_NAME: &str ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/mdbx.rs
crates/storage/db/src/mdbx.rs
//! Helper functions for initializing and opening a database. use crate::{is_database_empty, TableSet, Tables}; use eyre::Context; use std::path::Path; pub use crate::implementation::mdbx::*; pub use reth_libmdbx::*; /// Creates a new database at the specified path if it doesn't exist. Does NOT create tables. Check ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/lib.rs
crates/storage/db/src/lib.rs
//! MDBX implementation for reth's database abstraction layer. //! //! This crate is an implementation of `reth-db-api` for MDBX, as well as a few other common //! database types. //! //! # Overview //! //! An overview of the current data model of reth can be found in the [`mod@tables`] module. #![doc( html_logo_u...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/version.rs
crates/storage/db/src/version.rs
//! Database version utils. use std::{ fs, io, path::{Path, PathBuf}, }; /// The name of the file that contains the version of the database. pub const DB_VERSION_FILE_NAME: &str = "database.version"; /// The version of the database stored in the [`DB_VERSION_FILE_NAME`] file in the same directory as /// datab...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/utils.rs
crates/storage/db/src/utils.rs
//! Utils crate for `db`. use std::path::Path; /// Returns the default page size that can be used in this OS. pub(crate) fn default_page_size() -> usize { let os_page_size = page_size::get(); // source: https://gitflic.ru/project/erthink/libmdbx/blob?file=mdbx.h#line-num-821 let libmdbx_max_page_size = 0...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/metrics.rs
crates/storage/db/src/metrics.rs
use crate::Tables; use metrics::Histogram; use reth_metrics::{metrics::Counter, Metrics}; use rustc_hash::FxHashMap; use std::time::{Duration, Instant}; use strum::{EnumCount, EnumIter, IntoEnumIterator}; const LARGE_VALUE_THRESHOLD_BYTES: usize = 4096; /// Caches metric handles for database environment to make sure ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/implementation/mod.rs
crates/storage/db/src/implementation/mod.rs
#[cfg(feature = "mdbx")] pub(crate) mod mdbx;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/implementation/mdbx/cursor.rs
crates/storage/db/src/implementation/mdbx/cursor.rs
//! Cursor wrapper for libmdbx-sys. use super::utils::*; use crate::{ metrics::{DatabaseEnvMetrics, Operation}, DatabaseError, }; use reth_db_api::{ common::{PairResult, ValueOnlyResult}, cursor::{ DbCursorRO, DbCursorRW, DbDupCursorRO, DbDupCursorRW, DupWalker, RangeWalker, ReverseWalk...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/implementation/mdbx/tx.rs
crates/storage/db/src/implementation/mdbx/tx.rs
//! Transaction wrapper for libmdbx-sys. use super::{cursor::Cursor, utils::*}; use crate::{ metrics::{DatabaseEnvMetrics, Operation, TransactionMode, TransactionOutcome}, DatabaseError, }; use reth_db_api::{ table::{Compress, DupSort, Encode, Table, TableImporter}, transaction::{DbTx, DbTxMut}, }; use...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/implementation/mdbx/utils.rs
crates/storage/db/src/implementation/mdbx/utils.rs
//! Small database table utilities and helper functions. use crate::{ table::{Decode, Decompress, Table, TableRow}, DatabaseError, }; use std::borrow::Cow; /// Helper function to decode a `(key, value)` pair. pub(crate) fn decoder<'a, T>( (k, v): (Cow<'a, [u8]>, Cow<'a, [u8]>), ) -> Result<TableRow<T>, Da...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/implementation/mdbx/mod.rs
crates/storage/db/src/implementation/mdbx/mod.rs
//! Module that interacts with MDBX. use crate::{ lockfile::StorageLock, metrics::DatabaseEnvMetrics, tables::{self, Tables}, utils::default_page_size, DatabaseError, TableSet, }; use eyre::Context; use metrics::{gauge, Label}; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW}, database::...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/static_file/cursor.rs
crates/storage/db/src/static_file/cursor.rs
use super::mask::{ColumnSelectorOne, ColumnSelectorThree, ColumnSelectorTwo}; use alloy_primitives::B256; use derive_more::{Deref, DerefMut}; use reth_db_api::table::Decompress; use reth_nippy_jar::{DataReader, NippyJar, NippyJarCursor}; use reth_static_file_types::SegmentHeader; use reth_storage_errors::provider::{Pro...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/static_file/masks.rs
crates/storage/db/src/static_file/masks.rs
use crate::{ add_static_file_mask, static_file::mask::{ColumnSelectorOne, ColumnSelectorTwo}, HeaderTerminalDifficulties, }; use alloy_primitives::BlockHash; use reth_db_api::table::Table; // HEADER MASKS add_static_file_mask! { #[doc = "Mask for selecting a single header from Headers static file segme...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/static_file/mask.rs
crates/storage/db/src/static_file/mask.rs
use reth_db_api::table::Decompress; /// Trait for specifying a mask to select one column value. pub trait ColumnSelectorOne { /// First desired column value type FIRST: Decompress; /// Mask to obtain desired values, should correspond to the order of columns in a `static_file`. const MASK: usize; } //...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/src/static_file/mod.rs
crates/storage/db/src/static_file/mod.rs
//! reth's static file database table import and access use std::{ collections::{hash_map::Entry, HashMap}, path::Path, }; mod cursor; pub use cursor::StaticFileCursor; mod mask; pub use mask::*; use reth_nippy_jar::{NippyJar, NippyJarError}; mod masks; pub use masks::*; use reth_static_file_types::{Segment...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/benches/hash_keys.rs
crates/storage/db/benches/hash_keys.rs
#![allow(missing_docs)] use std::{collections::HashSet, path::Path, sync::Arc}; use criterion::{ criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion, }; use proptest::{ arbitrary::Arbitrary, prelude::any_with, strategy::{Strategy, ValueTree}, test_runner::TestRunner, ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/benches/utils.rs
crates/storage/db/benches/utils.rs
#![allow(missing_docs)] #![cfg(feature = "test-utils")] use alloy_primitives::Bytes; use reth_db::{test_utils::create_test_rw_db_with_path, DatabaseEnv}; use reth_db_api::{ table::{Compress, Encode, Table, TableRow}, transaction::DbTxMut, Database, }; use reth_fs_util as fs; use std::{path::Path, sync::Arc...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/benches/criterion.rs
crates/storage/db/benches/criterion.rs
#![allow(missing_docs)] use std::{path::Path, sync::Arc}; use criterion::{ criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion, }; use reth_db::test_utils::create_test_rw_db_with_path; use reth_db_api::{ cursor::{DbCursorRO, DbCursorRW, DbDupCursorRO, DbDupCursorRW}, database...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db/benches/get.rs
crates/storage/db/benches/get.rs
#![allow(missing_docs)] use alloy_primitives::TxHash; use criterion::{criterion_group, criterion_main, Criterion}; use reth_db::{test_utils::create_test_rw_db_with_path, Database, TransactionHashNumbers}; use reth_db_api::transaction::DbTx; use std::{fs, sync::Arc}; mod utils; use utils::BENCH_DB_PATH; criterion_gro...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-common/src/lib.rs
crates/storage/db-common/src/lib.rs
//! Common db operations #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issues/" )] #![cfg_attr(not...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-common/src/init.rs
crates/storage/db-common/src/init.rs
//! Reth genesis initialization utility functions. use alloy_consensus::BlockHeader; use alloy_primitives::{keccak256, map::HashMap, Address, B256, U256}; use reth_chainspec::EthChainSpec; use reth_codecs::Compact; use reth_config::config::EtlConfig; use reth_db_api::{tables, transaction::DbTxMut, DatabaseError}; use ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-common/src/db_tool/mod.rs
crates/storage/db-common/src/db_tool/mod.rs
//! Common db operations use boyer_moore_magiclen::BMByte; use eyre::Result; use reth_db_api::{ cursor::{DbCursorRO, DbDupCursorRO}, database::Database, table::{Decode, Decompress, DupSort, Table, TableRow}, transaction::{DbTx, DbTxMut}, DatabaseError, RawTable, TableRawRow, }; use reth_fs_util as ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-models/src/lib.rs
crates/storage/db-models/src/lib.rs
//! Models used in storage module. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" )] #![cfg_attr(not(...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-models/src/blocks.rs
crates/storage/db-models/src/blocks.rs
use alloy_eips::eip4895::Withdrawals; use alloy_primitives::TxNumber; use core::ops::Range; /// Total number of transactions. pub type NumTransactions = u64; /// The storage of the block body indices. /// /// It has the pointer to the transaction Number of the first /// transaction in the block and the total number o...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-models/src/client_version.rs
crates/storage/db-models/src/client_version.rs
//! Client version model. use alloc::string::String; /// Client version that accessed the database. #[derive(Clone, Eq, PartialEq, Debug, Default)] #[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))] #[cfg_attr(any(test, feature = "reth-codec"), reth_codecs::add_arbitrary_tests(compact))] #[cf...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/db-models/src/accounts.rs
crates/storage/db-models/src/accounts.rs
use alloy_primitives::Address; use reth_primitives_traits::Account; /// Account as it is saved in the database. /// /// [`Address`] is the subkey. #[derive(Debug, Default, Clone, Eq, PartialEq)] #[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))] #[cfg_attr(feature = "serde", derive(serde::Seri...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/zstd-compressors/src/lib.rs
crates/storage/zstd-compressors/src/lib.rs
//! Commonly used zstd [`Compressor`] and [`Decompressor`] for reth types. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/Seism...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/lib.rs
crates/storage/provider/src/lib.rs
//! Collection of traits and trait implementations for common database operations. //! //! ## Feature Flags //! //! - `test-utils`: Export utilities for testing #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubuse...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/writer/mod.rs
crates/storage/provider/src/writer/mod.rs
use crate::{ providers::{StaticFileProvider, StaticFileWriter as SfWriter}, BlockExecutionWriter, BlockWriter, HistoryWriter, StateWriter, StaticFileProviderFactory, StorageLocation, TrieWriter, }; use alloy_consensus::BlockHeader; use reth_chain_state::{ExecutedBlock, ExecutedBlockWithTrieUpdates}; use ret...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/consistent.rs
crates/storage/provider/src/providers/consistent.rs
use super::{DatabaseProviderRO, ProviderFactory, ProviderNodeTypes}; use crate::{ providers::StaticFileProvider, AccountReader, BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt, BlockSource, ChainSpecProvider, ChangeSetReader, HeaderProvider, ProviderError, PruneCheckpointReader...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/mod.rs
crates/storage/provider/src/providers/mod.rs
//! Contains the main provider types and traits for interacting with the blockchain's storage. use reth_chainspec::EthereumHardforks; use reth_db_api::table::Value; use reth_node_types::{FullNodePrimitives, NodeTypes, NodeTypesWithDB}; mod database; pub use database::*; mod static_file; pub use static_file::{ St...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/consistent_view.rs
crates/storage/provider/src/providers/consistent_view.rs
use crate::{BlockNumReader, DatabaseProviderFactory, HeaderProvider}; use alloy_primitives::B256; pub use reth_storage_errors::provider::ConsistentViewError; use reth_storage_errors::provider::ProviderResult; /// A consistent view over state in the database. /// /// View gets initialized with the latest or provided ti...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/blockchain_provider.rs
crates/storage/provider/src/providers/blockchain_provider.rs
#![allow(unused)] use crate::{ providers::{ConsistentProvider, ProviderNodeTypes, StaticFileProvider}, AccountReader, BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt, BlockSource, CanonChainTracker, CanonStateNotifications, CanonStateSubscriptions, ChainSpecProvider, ChainS...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/state/macros.rs
crates/storage/provider/src/providers/state/macros.rs
//! Helper macros for implementing traits for various [`StateProvider`](crate::StateProvider) //! implementations /// A macro that delegates trait implementations to the `as_ref` function of the type. /// /// Used to implement provider traits. macro_rules! delegate_impls_to_as_ref { (for $target:ty => $($trait:ide...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/state/mod.rs
crates/storage/provider/src/providers/state/mod.rs
//! [`StateProvider`](crate::StateProvider) implementations pub(crate) mod historical; pub(crate) mod latest; pub(crate) mod macros;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/state/latest.rs
crates/storage/provider/src/providers/state/latest.rs
use crate::{ providers::state::macros::delegate_provider_impls, AccountReader, BlockHashReader, HashedPostStateProvider, StateProvider, StateRootProvider, }; use alloy_primitives::{Address, BlockNumber, Bytes, StorageKey, B256}; use reth_db_api::{cursor::DbDupCursorRO, tables, transaction::DbTx}; use reth_primi...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/state/historical.rs
crates/storage/provider/src/providers/state/historical.rs
use crate::{ providers::state::macros::delegate_provider_impls, AccountReader, BlockHashReader, HashedPostStateProvider, ProviderError, StateProvider, StateRootProvider, }; use alloy_eips::merge::EPOCH_SLOTS; use alloy_primitives::{Address, BlockNumber, Bytes, StorageKey, B256}; use reth_db_api::{ cursor::{...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/static_file/manager.rs
crates/storage/provider/src/providers/static_file/manager.rs
use super::{ metrics::StaticFileProviderMetrics, writer::StaticFileWriters, LoadedJar, StaticFileJarProvider, StaticFileProviderRW, StaticFileProviderRWRefMut, }; use crate::{ to_range, BlockHashReader, BlockNumReader, BlockReader, BlockSource, HeaderProvider, ReceiptProvider, StageCheckpointReader, Sta...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/static_file/mod.rs
crates/storage/provider/src/providers/static_file/mod.rs
mod manager; pub use manager::{StaticFileAccess, StaticFileProvider, StaticFileWriter}; mod jar; pub use jar::StaticFileJarProvider; mod writer; pub use writer::{StaticFileProviderRW, StaticFileProviderRWRefMut}; mod metrics; use reth_nippy_jar::NippyJar; use reth_static_file_types::{SegmentHeader, StaticFileSegment...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/static_file/jar.rs
crates/storage/provider/src/providers/static_file/jar.rs
use super::{ metrics::{StaticFileProviderMetrics, StaticFileProviderOperation}, LoadedJarRef, }; use crate::{ to_range, BlockHashReader, BlockNumReader, HeaderProvider, ReceiptProvider, TransactionsProvider, }; use alloy_consensus::transaction::{SignerRecoverable, TransactionMeta}; use alloy_eips::{eip2...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/static_file/writer.rs
crates/storage/provider/src/providers/static_file/writer.rs
use super::{ manager::StaticFileProviderInner, metrics::StaticFileProviderMetrics, StaticFileProvider, }; use crate::providers::static_file::metrics::StaticFileProviderOperation; use alloy_consensus::BlockHeader; use alloy_primitives::{BlockHash, BlockNumber, TxNumber, U256}; use parking_lot::{lock_api::RwLockWrite...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/static_file/metrics.rs
crates/storage/provider/src/providers/static_file/metrics.rs
use std::{collections::HashMap, time::Duration}; use itertools::Itertools; use metrics::{Counter, Gauge, Histogram}; use reth_metrics::Metrics; use reth_static_file_types::StaticFileSegment; use strum::{EnumIter, IntoEnumIterator}; /// Metrics for the static file provider. #[derive(Debug)] pub struct StaticFileProvid...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/database/builder.rs
crates/storage/provider/src/providers/database/builder.rs
//! Helper builder entrypoint to instantiate a [`ProviderFactory`]. //! //! This also includes general purpose staging types that provide builder style functions that lead //! up to the intended build target. use crate::{providers::StaticFileProvider, ProviderFactory}; use reth_db::{ mdbx::{DatabaseArguments, MaxR...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/database/chain.rs
crates/storage/provider/src/providers/database/chain.rs
use crate::{providers::NodeTypesForProvider, DatabaseProvider}; use reth_db_api::transaction::{DbTx, DbTxMut}; use reth_node_types::FullNodePrimitives; use reth_primitives_traits::{FullBlockHeader, FullSignedTx}; use reth_storage_api::{ChainStorageReader, ChainStorageWriter, EthStorage}; /// Trait that provides acces...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/database/mod.rs
crates/storage/provider/src/providers/database/mod.rs
use crate::{ providers::{state::latest::LatestStateProvider, StaticFileProvider}, to_range, traits::{BlockSource, ReceiptProvider}, BlockHashReader, BlockNumReader, BlockReader, ChainSpecProvider, DatabaseProviderFactory, HashedPostStateProvider, HeaderProvider, HeaderSyncGapProvider, ProviderError,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/database/metrics.rs
crates/storage/provider/src/providers/database/metrics.rs
use metrics::Histogram; use reth_metrics::Metrics; use std::time::{Duration, Instant}; #[derive(Debug)] pub(crate) struct DurationsRecorder { start: Instant, current_metrics: DatabaseProviderMetrics, pub(crate) actions: Vec<(Action, Duration)>, latest: Option<Duration>, } impl Default for DurationsRec...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/providers/database/provider.rs
crates/storage/provider/src/providers/database/provider.rs
use crate::{ bundle_state::StorageRevertsIter, providers::{ database::{chain::ChainStorage, metrics}, static_file::StaticFileWriter, NodeTypesForProvider, StaticFileProvider, }, to_range, traits::{ AccountExtReader, BlockSource, ChangeSetReader, ReceiptProvider, Stage...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/traits/mod.rs
crates/storage/provider/src/traits/mod.rs
//! Collection of common provider traits. // Re-export all the traits pub use reth_storage_api::*; pub use reth_chainspec::ChainSpecProvider; mod static_file_provider; pub use static_file_provider::StaticFileProviderFactory; mod full; pub use full::FullProvider;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/traits/static_file_provider.rs
crates/storage/provider/src/traits/static_file_provider.rs
use reth_storage_api::NodePrimitivesProvider; use crate::providers::StaticFileProvider; /// Static file provider factory. pub trait StaticFileProviderFactory: NodePrimitivesProvider { /// Create new instance of static file provider. fn static_file_provider(&self) -> StaticFileProvider<Self::Primitives>; }
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/traits/full.rs
crates/storage/provider/src/traits/full.rs
//! Helper provider traits to encapsulate all provider traits for simplicity. use crate::{ AccountReader, BlockReader, BlockReaderIdExt, ChainSpecProvider, ChangeSetReader, DatabaseProviderFactory, HashedPostStateProvider, StageCheckpointReader, StateProviderFactory, StateReader, StaticFileProviderFactory,...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/bundle_state/state_reverts.rs
crates/storage/provider/src/bundle_state/state_reverts.rs
use alloy_primitives::B256; use revm_database::states::RevertToSlot; use revm_state::FlaggedStorage; use std::iter::Peekable; /// Iterator over storage reverts. /// See [`StorageRevertsIter::next`] for more details. #[expect(missing_debug_implementations)] pub struct StorageRevertsIter<R: Iterator, W: Iterator> { ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/bundle_state/mod.rs
crates/storage/provider/src/bundle_state/mod.rs
//! Bundle state module. //! This module contains all the logic related to bundle state. mod state_reverts; pub use state_reverts::StorageRevertsIter;
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/test_utils/noop.rs
crates/storage/provider/src/test_utils/noop.rs
//! Additional testing support for `NoopProvider`. use crate::{providers::StaticFileProvider, StaticFileProviderFactory}; use reth_primitives_traits::NodePrimitives; use std::path::PathBuf; /// Re-exported for convenience pub use reth_storage_api::noop::NoopProvider; impl<C: Send + Sync, N: NodePrimitives> StaticFil...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/test_utils/mod.rs
crates/storage/provider/src/test_utils/mod.rs
use crate::{ providers::{ProviderNodeTypes, StaticFileProvider}, HashingWriter, ProviderFactory, TrieWriter, }; use alloy_primitives::B256; use reth_chainspec::{ChainSpec, MAINNET}; use reth_db::{ test_utils::{create_test_rw_db, create_test_static_files_dir, TempDatabase}, DatabaseEnv, }; use reth_error...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/test_utils/mock.rs
crates/storage/provider/src/test_utils/mock.rs
use crate::{ traits::{BlockSource, ReceiptProvider}, AccountReader, BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt, ChainSpecProvider, ChangeSetReader, HeaderProvider, ReceiptProviderIdExt, StateProvider, StateProviderBox, StateProviderFactory, StateReader, StateRootProvid...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/provider/src/test_utils/blocks.rs
crates/storage/provider/src/test_utils/blocks.rs
//! Dummy blocks and data for tests use crate::{DBProvider, DatabaseProviderRW, ExecutionOutcome}; use alloy_consensus::{TxLegacy, EMPTY_OMMER_ROOT_HASH}; use alloy_primitives::{ b256, hex_literal::hex, map::HashMap, Address, BlockNumber, Bytes, Log, TxKind, B256, U256, }; use alloy_consensus::Header; use alloy_ei...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/rpc-provider/src/lib.rs
crates/storage/rpc-provider/src/lib.rs
//! # RPC Blockchain Provider for Reth //! //! This crate provides an RPC-based implementation of reth's `StateProviderFactory` and related //! traits that fetches blockchain data via RPC instead of from a local database. //! //! Similar to the [`BlockchainProvider`](../../provider/src/providers/blockchain_provider.rs)...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/cursor.rs
crates/storage/nippy-jar/src/cursor.rs
use crate::{ compression::{Compression, Compressors, Zstd}, DataReader, NippyJar, NippyJarError, NippyJarHeader, RefRow, }; use std::{ops::Range, sync::Arc}; use zstd::bulk::Decompressor; /// Simple cursor implementation to retrieve data from [`NippyJar`]. #[derive(Clone)] pub struct NippyJarCursor<'a, H = ()>...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/lib.rs
crates/storage/nippy-jar/src/lib.rs
//! Immutable data store format. //! //! *Warning*: The `NippyJar` encoding format and its implementations are //! designed for storing and retrieving data internally. They are not hardened //! to safely read potentially malicious data. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/ma...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/error.rs
crates/storage/nippy-jar/src/error.rs
use std::path::PathBuf; use thiserror::Error; /// Errors associated with [`crate::NippyJar`]. #[derive(Error, Debug)] pub enum NippyJarError { /// An internal error occurred, wrapping any type of error. #[error(transparent)] Internal(#[from] Box<dyn core::error::Error + Send + Sync>), /// An error occ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/consistency.rs
crates/storage/nippy-jar/src/consistency.rs
use crate::{writer::OFFSET_SIZE_BYTES, NippyJar, NippyJarError, NippyJarHeader}; use std::{ cmp::Ordering, fs::{File, OpenOptions}, io::{BufWriter, Seek, SeekFrom}, path::Path, }; /// Performs consistency checks or heals on the [`NippyJar`] file /// * Is the offsets file size expected? /// * Is the dat...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/writer.rs
crates/storage/nippy-jar/src/writer.rs
use crate::{ compression::Compression, ColumnResult, NippyJar, NippyJarChecker, NippyJarError, NippyJarHeader, }; use std::{ fs::{File, OpenOptions}, io::{BufWriter, Read, Seek, SeekFrom, Write}, path::Path, }; /// Size of one offset in bytes. pub(crate) const OFFSET_SIZE_BYTES: u8 = 8; /// Writer...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/compression/zstd.rs
crates/storage/nippy-jar/src/compression/zstd.rs
use crate::{compression::Compression, NippyJarError}; use derive_more::Deref; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use std::{ fs::File, io::{Read, Write}, sync::Arc, }; use tracing::*; use zstd::bulk::Compressor; pub use zstd::{bulk::Decompressor, dict::DecoderDictionary}; type Ra...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/compression/lz4.rs
crates/storage/nippy-jar/src/compression/lz4.rs
use crate::{compression::Compression, NippyJarError}; use serde::{Deserialize, Serialize}; /// Wrapper type for `lz4_flex` that implements [`Compression`]. #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Default)] #[non_exhaustive] pub struct Lz4; impl Compression for Lz4 { fn decompress_to(&self, value: &...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/storage/nippy-jar/src/compression/mod.rs
crates/storage/nippy-jar/src/compression/mod.rs
use crate::NippyJarError; use serde::{Deserialize, Serialize}; mod zstd; pub use self::zstd::{DecoderDictionary, Decompressor, Zstd, ZstdState}; mod lz4; pub use self::lz4::Lz4; /// Trait that will compress column values pub trait Compression: Serialize + for<'a> Deserialize<'a> { /// Appends decompressed data to...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/optimism/evm/src/config.rs
crates/optimism/evm/src/config.rs
use alloy_consensus::BlockHeader; use op_revm::OpSpecId; use reth_optimism_forks::OpHardforks; use revm::primitives::{Address, Bytes, B256}; /// Context relevant for execution of a next block w.r.t OP. #[derive(Debug, Clone, PartialEq, Eq)] pub struct OpNextBlockEnvAttributes { /// The timestamp of the next block....
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/optimism/evm/src/lib.rs
crates/optimism/evm/src/lib.rs
//! EVM config for vanilla optimism. #![doc( html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", issue_tracker_base_url = "https://github.com/SeismicSystems/seismic-reth/issues/" )] #![...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
true
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/optimism/evm/src/l1.rs
crates/optimism/evm/src/l1.rs
//! Optimism-specific implementation and utilities for the executor use crate::{error::L1BlockInfoError, revm_spec_by_timestamp_after_bedrock, OpBlockExecutionError}; use alloy_consensus::Transaction; use alloy_primitives::{hex, U256}; use op_revm::L1BlockInfo; use reth_execution_errors::BlockExecutionError; use reth_...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/optimism/evm/src/execute.rs
crates/optimism/evm/src/execute.rs
//! Optimism block execution strategy. /// Helper type with backwards compatible methods to obtain executor providers. pub type OpExecutorProvider = crate::OpEvmConfig; #[cfg(test)] mod tests { use crate::{OpEvmConfig, OpRethReceiptBuilder}; use alloc::sync::Arc; use alloy_consensus::{Block, BlockBody, He...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false
SeismicSystems/seismic-reth
https://github.com/SeismicSystems/seismic-reth/blob/62834bd8deb86513778624a3ba33f55f4d6a1471/crates/optimism/evm/src/error.rs
crates/optimism/evm/src/error.rs
//! Error types for the Optimism EVM module. use reth_evm::execute::BlockExecutionError; /// L1 Block Info specific errors #[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] pub enum L1BlockInfoError { /// Could not find L1 block info transaction in the L2 block #[error("could not find l1 block info tx ...
rust
Apache-2.0
62834bd8deb86513778624a3ba33f55f4d6a1471
2026-01-04T20:20:17.218210Z
false