Skip to content

Commit

Permalink
chore: change project structure (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
cernicc authored Nov 26, 2024
1 parent d40b1b8 commit d1773ef
Show file tree
Hide file tree
Showing 85 changed files with 16 additions and 322 deletions.
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ members = [
"cli/polka-storage-provider/client",
"cli/polka-storage-provider/common",
"cli/polka-storage-provider/server",
"cli/polka-storage/storagext",
"cli/polka-storage/storagext-cli",
"lib/polka-storage-proofs",
"maat",
"mater/cli",
"mater/lib",
"node",
"pallets/faucet",
"pallets/market",
Expand All @@ -23,9 +23,9 @@ members = [
"primitives/commitment",
"primitives/proofs",
"runtime",
"storage/mater",
"storage/mater-cli",
"storage/polka-index",
"storagext/cli",
"storagext/lib",
]
resolver = "2"

Expand Down Expand Up @@ -130,8 +130,7 @@ zombienet-sdk = "0.2.15"
zombienet-support = "0.2.15"

# Local
cli-primitives = { path = "primitives/cli" }
mater = { path = "storage/mater" }
mater = { path = "mater/lib" }
pallet-faucet = { path = "pallets/faucet", default-features = false }
pallet-market = { path = "pallets/market", default-features = false }
pallet-proofs = { path = "pallets/proofs", default-features = false }
Expand All @@ -142,7 +141,7 @@ polka-storage-provider-common = { path = "cli/polka-storage-provider/common" }
polka-storage-runtime = { path = "runtime" }
primitives-commitment = { path = "primitives/commitment" }
primitives-proofs = { path = "primitives/proofs", default-features = false }
storagext = { path = "cli/polka-storage/storagext" }
storagext = { path = "storagext/lib" }

# FileCoin proofs
bellpepper-core = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ alias f := fmt

# Generate the `metadata.scale` file, requires the node to be up and running at `127.0.0.1:42069`
generate-scale:
subxt metadata -a --url http://127.0.0.1:42069 > cli/artifacts/metadata.scale
subxt metadata -a --url http://127.0.0.1:42069 > storagext/lib/artifacts/metadata.scale

# Lint the project
lint:
Expand Down
Empty file removed api/.gitkeep
Empty file.
Empty file removed cli/polka-storage/.gitkeep
Empty file.
307 changes: 0 additions & 307 deletions cli/polka-storage/storagext-cli/README.md

This file was deleted.

Empty file removed market-protocols/.gitkeep
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions storage/mater-cli/src/extract.rs → mater/cli/src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod tests {
async fn extract_file_success() -> Result<()> {
// Setup input and output paths
let temp_dir = tempdir()?;
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/lorem.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/lorem.car");
let output_path = temp_dir.path().join("output_file");

// Call the function under test
Expand All @@ -59,7 +59,7 @@ mod tests {
assert!(result.is_ok());

// extract original contents
let mut original = File::open("../mater/tests/fixtures/original/lorem.txt").await?;
let mut original = File::open("../lib/tests/fixtures/original/lorem.txt").await?;
let mut original_contents = vec![];
original.read_to_end(&mut original_contents).await?;

Expand All @@ -82,7 +82,7 @@ mod tests {
async fn extract_file_success_empty_file() -> Result<()> {
// Setup input and output paths
let temp_dir = tempdir()?;
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/empty.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/empty.car");
let output_path = temp_dir.path().join("output_file");

// Call the function under test
Expand Down Expand Up @@ -127,7 +127,7 @@ mod tests {
#[tokio::test]
async fn io_error_extract_output_path_exists() -> Result<()> {
// Setup input and output paths
let input_path = PathBuf::from("../mater/tests/fixtures/car_v2/lorem.car");
let input_path = PathBuf::from("../lib/tests/fixtures/car_v2/lorem.car");
let output_path = PathBuf::from("output_file");

// Create a file at ouput path
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed network/.gitkeep
Empty file.
Empty file removed pallets/collator-power/.gitkeep
Empty file.
Empty file removed pallets/collator-reward/.gitkeep
Empty file.
Empty file.
Empty file removed pallets/payment-channel/.gitkeep
Empty file.
Empty file removed pallets/xcm-dispatcher/.gitkeep
Empty file.
Empty file removed storage/file-storage/.gitkeep
Empty file.
File renamed without changes.
Loading

0 comments on commit d1773ef

Please sign in to comment.