Skip to content

Commit

Permalink
fields to rlp_fields, more intuitive
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Mar 29, 2024
1 parent 4ebe3c1 commit b64c882
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/primitives/src/datalake/block_sampled/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{bail, Result};

use crate::datalake::{DatalakeCollection, DatalakeField};

use super::fields::{AccountField, HeaderField};
use super::rlp_fields::{AccountField, HeaderField};

#[derive(Debug, Clone, PartialEq)]
pub enum BlockSampledCollection {
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/datalake/block_sampled/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pub mod collection;
pub mod datalake;
pub mod fields;
pub mod rlp_fields;
pub mod types;

// Export all types
pub use collection::*;
pub use datalake::*;
pub use fields::*;
pub use rlp_fields::*;

#[cfg(test)]
mod tests {
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/datalake/transactions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pub mod collection;
pub mod datalake;
pub mod fields;
pub mod rlp_fields;

// Export all types
pub use collection::*;
pub use datalake::*;
pub use fields::*;
pub use rlp_fields::*;

#[cfg(test)]
mod tests {
Expand Down
7 changes: 5 additions & 2 deletions script/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Base directory where the folders 'storage' and 'account' and 'header' are located
BASE_DIR="example"

# Use command line arguments as target directories. If no arguments are provided, default to "header account storage".
TARGET_DIRS=${@:-"header account storage"}

# Function to process each input.json file
process_file() {
inputFilePath=$1
Expand All @@ -29,8 +32,8 @@ process_file() {
fi
}

# Loop through 'storage', 'account', and 'header' directories
for dir in header account storage; do
# Loop through specified directories
for dir in $TARGET_DIRS; do
# Find all directories within the main directories
find "${BASE_DIR}/${dir}" -type d | while read -r subDir; do
# Check if run.sh exists in the directory
Expand Down

0 comments on commit b64c882

Please sign in to comment.