feat(workspace): Phase 1.1 — runtime + node scaffolding v0.0.2
Charon sesión 1 continuación. Phase 0.4 → Phase 1.1 ship canonical. ## origin-chain-runtime crate (Phase 1.1) - Re-exports canonical traits + types desde origin-chain-types (single-crate surface para runtime consumers) - RuntimeConfig marker (será reemplazado por Substrate Config traits Phase 1.2) - RUNTIME_VERSION = 1 constante (bump per Substrate upgrade) - Docs Phase 1 milestones (1.1 → 1.7) + Substrate version pin pending DC ## origin-chain-node binary (Phase 1.6 placeholder) - main() prints scaffold notice + canonical frase Charon - Hardware target documented: Pi 5 + NVMe SSD minimum (CHN-1) - Smoldot light client noted as separate Phase 2+ crate ## Workspace - 8 crates total (was 6): added origin-chain-runtime + origin-chain-node - 44 tests passing workspace-wide - Build release clean - cargo run --bin origin-chain-node verified working ## Notes - Aún sin deps Substrate. Phase 1.2 (pallet_aura + pallet_grandpa) será el primer slice que pulls Substrate framework + bumps rust toolchain. - Polkadot SDK version pin canónica vendrá vía DC complementaria a ORIGIN_CHAIN_FOUNDATION_V1 cuando Phase 1.2 inicie. Refs: Charon Roadmap V1 Phase 1.1, CHN-1, BM V2 §1.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
b06560863c
commit
2f47654418
7 files changed
+218
No files matched your search
@@ -0,0 +1,40 @@
|
||||
//! # origin-chain-node
|
||||
//!
|
||||
//! Origin Chain node binary. **Scaffold v0.0.2** — full Substrate node service
|
||||
//! lands Phase 1.6 of [Charon roadmap].
|
||||
//!
|
||||
//! [Charon roadmap]: https://git.originmetaverse.com/Origin_Metaverse/arkhe-origin-chain
|
||||
//!
|
||||
//! ## Target functionality (Phase 1.6)
|
||||
//!
|
||||
//! - Aura block production (4-second slots, PoA Phase 1)
|
||||
//! - GRANDPA finality (separates production from confirmation)
|
||||
//! - JSON-RPC endpoint (Substrate canonical: chain_getBlock, system_health, etc.)
|
||||
//! - Telemetry (network health monitoring)
|
||||
//! - Validator key management (Ed25519 session keys)
|
||||
//! - CLI: dev mode, validator mode, archive mode
|
||||
//!
|
||||
//! ## Hardware target canonical (CHN-1)
|
||||
//!
|
||||
//! - **Minimum**: Raspberry Pi 5 + NVMe SSD (EmbeddedArm tier)
|
||||
//! - **Recommended**: 4-8 cores >3.4GHz, 16-32GB RAM, 1Gbps high-availability
|
||||
//! - **Uptime**: 99.9% required for validator selection per epoch (4h rotation)
|
||||
//!
|
||||
//! ## Smoldot light client
|
||||
//!
|
||||
//! Non-validator users embed Smoldot light client in `Origin World Navigator`
|
||||
//! (<1% CPU). NOT this binary — light client is separate crate Phase 2+.
|
||||
|
||||
use origin_chain_runtime::RUNTIME_VERSION;
|
||||
|
||||
fn main() {
|
||||
// Scaffold v0.0.2 — full node service implementation lands Phase 1.6.
|
||||
println!("Origin Chain node — scaffold v0.0.2");
|
||||
println!("Runtime version: {RUNTIME_VERSION}");
|
||||
println!();
|
||||
println!("⚓ Not yet a real node. Phase 1.6 lands the Substrate service.");
|
||||
println!(" See: https://git.originmetaverse.com/Origin_Metaverse/arkhe-origin-chain");
|
||||
println!();
|
||||
println!("\"Todo valor pide un puente; toda identidad pide un testigo.\"");
|
||||
println!(" — Charon ⚓");
|
||||
}
|
||||
Reference in new issue
Block a user