Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change project structure #603

Merged
merged 12 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
cernicc marked this conversation as resolved.
Show resolved Hide resolved
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.
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.
3 changes: 3 additions & 0 deletions storagext/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# storagext CLI

Docs for the storagext CLI can be found in [the book](../../docs/src/storagext-cli/index.md)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Extrinsics library for the Polka Storage Parachain.


## Development note:

`subxt` and `frame_support` don't play nice with eachother!
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
// This ensures that the library recompiles when the SCALE file suffers changes
// To generate a new scale file use `just generate-scale` after running the parachain.
println!("cargo::rerun-if-changed=../../artifacts/metadata.scale")
println!("cargo::rerun-if-changed=./artifacts/metadata.scale")
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub mod display;
// NOTE: you'll need to reload the window if the underlying SCALE file changes
// https://github.com/rust-lang/rust-analyzer/issues/10719
#[subxt::subxt(
runtime_metadata_path = "../../artifacts/metadata.scale",
runtime_metadata_path = "./artifacts/metadata.scale",
derive_for_all_types = "Clone, PartialEq, Eq",
substitute_type(
path = "sp_runtime::MultiSignature",
Expand Down