Skip to content

Commit 17fdd7b

Browse files
refactor: move local testnet runtime to runtimes/web3-storage-local (#204)
* refactor: move local testnet runtime to runtimes/web3-storage-local Relocate the local testnet runtime from runtime/ into runtimes/web3-storage-local/, alongside the existing runtimes/web3-storage-paseo/. The crate name (storage-parachain-runtime) is unchanged, so build flags, wasm artifact paths, and benchmark weight comments remain valid. - Cargo.toml: update workspace member + dependency path - check-runtime-migration.yml: drop dead runtime/** path filter (runtimes/** already covers it) - Update directory/path references in CLAUDE.md, README.md, CONTRIBUTING.md, and docs/ * Update from github-actions[bot] running command 'fmt' --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent cf6a770 commit 17fdd7b

40 files changed

Lines changed: 14 additions & 13 deletions

.github/workflows/check-runtime-migration.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
with:
4848
filters: |
4949
runtime:
50-
- 'runtime/**'
5150
- 'runtimes/**'
5251
- 'pallet/**'
5352
- 'primitives/**'

CLAUDE.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ web3-storage/
206206
├── pallet/ # Substrate pallet (on-chain logic - Layer 0)
207207
│ ├── src/lib.rs # Core pallet implementation
208208
│ └── Cargo.toml # Pallet dependencies
209-
├── runtime/ # Parachain runtime
210-
│ ├── src/lib.rs # Runtime configuration
211-
│ └── Cargo.toml # Runtime dependencies
209+
├── runtimes/ # Parachain runtimes
210+
│ ├── web3-storage-local/ # Local testnet runtime (storage-parachain-runtime)
211+
│ │ ├── src/lib.rs # Runtime configuration
212+
│ │ └── Cargo.toml # Runtime dependencies
213+
│ └── web3-storage-paseo/ # Paseo testnet runtime (storage-paseo-runtime)
212214
├── provider-node/ # Off-chain HTTP storage server
213215
│ ├── src/ # Provider implementation
214216
│ │ ├── main.rs # Server entry point
@@ -266,7 +268,7 @@ web3-storage/
266268

267269
**Pallet (`pallet/`)**: On-chain logic for provider registration, bucket creation, storage agreements, checkpoints, and challenge/slashing mechanism.
268270

269-
**Runtime (`runtime/`)**: Parachain runtime that includes the storage provider pallet and configures its parameters (stake requirements, challenge periods, etc.).
271+
**Runtime (`runtimes/web3-storage-local/`)**: Parachain runtime that includes the storage provider pallet and configures its parameters (stake requirements, challenge periods, etc.).
270272

271273
**Provider Node (`provider-node/`)**: Off-chain HTTP server that:
272274
- Stores data chunks locally
@@ -374,7 +376,7 @@ The Polkadot SDK provides:
374376

375377
## Configuration
376378

377-
### Runtime Parameters (runtime/src/lib.rs)
379+
### Runtime Parameters (runtimes/web3-storage-local/src/lib.rs)
378380

379381
```rust
380382
// Token decimals

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This repository is dual-licensed. The license that applies depends on the crate:
6161

6262
| License | Crates |
6363
|---------|--------|
64-
| [GPL-3.0-only](LICENSE-GPL3) | `runtime/`, `provider-node/`, `user-interfaces/` |
64+
| [GPL-3.0-only](LICENSE-GPL3) | `runtimes/`, `provider-node/`, `user-interfaces/` |
6565
| [Apache-2.0](LICENSE-APACHE2) | `pallet/`, `primitives/`, `client/`, `precompiles/`, `storage-interfaces/` |
6666

6767
Each crate declares its applicable license in its `Cargo.toml` or

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66
"pallet",
77
"primitives",
88
"provider-node",
9-
"runtime",
9+
"runtimes/web3-storage-local",
1010
"runtimes/web3-storage-paseo",
1111

1212
# Smart-contract precompiles (pallet_revive integration)
@@ -38,7 +38,7 @@ pallet-s3-registry-precompile = { path = "precompiles/s3-registry-precompile", d
3838
pallet-storage-provider = { path = "pallet", default-features = false }
3939
pallet-storage-provider-precompile = { path = "precompiles/storage-provider-precompile", default-features = false }
4040
storage-client = { path = "client" }
41-
storage-parachain-runtime = { path = "runtime" }
41+
storage-parachain-runtime = { path = "runtimes/web3-storage-local" }
4242
storage-primitives = { path = "primitives", default-features = false }
4343
storage-provider-node = { path = "provider-node" }
4444

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Two types of nodes work together:
186186
```
187187
scalable-web3-storage/
188188
├── pallet/ # Substrate pallet (on-chain logic)
189-
├── runtime/ # Parachain runtime
189+
├── runtimes/ # Parachain runtimes (web3-storage-local, web3-storage-paseo)
190190
├── provider-node/ # Off-chain storage server (HTTP API)
191191
├── client/ # Client SDK for applications
192192
├── primitives/ # Shared types and utilities

docs/design/scalable-web3-storage-implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub trait Config: frame_system::Config<RuntimeEvent: From<Event<Self>>> {
189189
}
190190
```
191191

192-
Reference runtime values (see `runtime/src/storage.rs`):
192+
Reference runtime values (see `runtimes/web3-storage-local/src/storage.rs`):
193193

194194
| Constant | Value |
195195
|---|---|

docs/filesystems/ADMIN_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The system handles all of this automatically!
8484

8585
#### 1. Ensure Runtime Configuration
8686

87-
Check that the runtime has proper configuration in `runtime/src/lib.rs`:
87+
Check that the runtime has proper configuration in `runtimes/web3-storage-local/src/lib.rs`:
8888

8989
```rust
9090
impl pallet_drive_registry::Config for Runtime {

docs/reference/EXTRINSICS_REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ Common errors you might encounter:
10751075

10761076
## Configuration Parameters
10771077

1078-
Runtime configuration (see [runtime/src/lib.rs](../../runtime/src/lib.rs)):
1078+
Runtime configuration (see [runtimes/web3-storage-local/src/lib.rs](../../runtimes/web3-storage-local/src/lib.rs)):
10791079

10801080
```rust
10811081
// Token configuration
File renamed without changes.

0 commit comments

Comments
 (0)