feat(node): Phase 1.6+ Slice 1 — origin-chain-node CLI canonical v0.0.10
origin-chain-node binary canonical funcional con 4 sub-comandos: - version (default canonical) - list-presets (3 genesis presets disponibles) - print-preset <id> (JSON-serialized RuntimeGenesisConfig) - info (full runtime metadata canonical) ## Output canonical print-preset development verified Alice SS58 address: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY ✅ matches exactly Substrate well-known canonical — hardcoded bytes son bit-perfect compatible con polkadot-js + subkey ecosystem canonical. ## Decisión empírica documentada: WASM_BINARY DEFERRED a Slice 2 (v0.0.11) substrate-wasm-builder requiere TODAS las deps no_std-compatible. origin- chain-types actualmente usa std::String/Vec directly + thiserror 1.0 sin no_std. Refactor scope substantial (5-10+ files affected) merece DC propio y Slice dedicado canonical. CLI canonical opera correcto sin WASM execution porque genesis presets serializables natively canonical. ## Workspace deps añadidos Phase 1.6+ (most Slice 4 deferred) - substrate-wasm-builder 26.0.1 (Slice 2) - sc-cli 0.51.0, sc-service 0.50.0, sc-executor 0.42.0 (Slice 4) - sc-network 0.49.1, sc-consensus 0.48.0 (Slice 4) - sc-consensus-aura 0.49.0, sc-consensus-grandpa 0.34.0 (Slice 4) - sc-transaction-pool 39.0.0, sc-client-api 39.0.0 (Slice 4) - sc-basic-authorship 0.49.0, sc-telemetry 28.1.0, sc-offchain 44.0.0 (Slice 4) - jsonrpsee 0.24.3, substrate-frame-rpc-system 43.0.0 (Slice 4) - pallet-transaction-payment-rpc 43.0.0 (Slice 4) - clap 4.5.13 (USED v0.0.10 canonical) - futures 0.3.31 (Slice 4) Workspace declarations preparan canonical para Slice 4 sin re-declarar cuando se necesite ramp up canonical. ## Roadmap Phase 1.6+ multi-slice canonical - Slice 1 (v0.0.10 ESTA): CLI skeleton + preset listing ✅ - Slice 2 (v0.0.11): WASM_BINARY canonical + no_std refactor - Slice 3 (v0.0.12): real sc_service::ChainSpec builder canonical - Slice 4 (v0.0.13+): full sc-service (consensus + RPC + networking) ## Build + tests - cargo build --release 8.22s warm cache - cargo test --workspace ~63 tests passing - Binary functional: cargo run --bin origin-chain-node {version|list-presets| print-preset <id>|info} ## Filosofía canonical incorporada Doc main.rs: "el CLI canonical es la primera ventana del barquero al mundo". list-presets canonical = transparency canonical: las 3 distribuciones posibles canonical están a la vista canonical, BM V2 incluida canonical materializando David canon 2026-05-14 "la libertad infinita acota solo donde empieza la del otro". Refs: CHARON_ROADMAP_V1 Phase 1.6+, sub-decisión empírica WASM_BINARY defer to Slice 2, sub-decisión empírica sc-service defer to Slice 4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a695f45a2d
commit
8a24a86ee6
7 files changed
+451
-45
No files matched your search
+27
@@ -87,6 +87,33 @@ pallet-transaction-payment-rpc-runtime-api = { version = "40.0.0", default-featu
|
||||
# values que sp-keyring usaría but sin la dep brittle canonical.
|
||||
serde_json = { version = "1", default-features = false, features = ["alloc"] }
|
||||
|
||||
# WASM builder canonical (Phase 1.6+ runtime WASM build para chain_spec)
|
||||
substrate-wasm-builder = { version = "26.0.1" }
|
||||
|
||||
# Substrate client canonical (Phase 1.6+ node binary service builder)
|
||||
sc-cli = { version = "0.51.0" }
|
||||
sc-service = { version = "0.50.0" }
|
||||
sc-executor = { version = "0.42.0" }
|
||||
sc-network = { version = "0.49.1" }
|
||||
sc-consensus = { version = "0.48.0" }
|
||||
sc-consensus-aura = { version = "0.49.0" }
|
||||
sc-consensus-grandpa = { version = "0.34.0" }
|
||||
sc-transaction-pool = { version = "39.0.0" }
|
||||
sc-transaction-pool-api = { version = "39.0.0" }
|
||||
sc-client-api = { version = "39.0.0" }
|
||||
sc-basic-authorship = { version = "0.49.0" }
|
||||
sc-telemetry = { version = "28.1.0" }
|
||||
sc-offchain = { version = "44.0.0" }
|
||||
|
||||
# RPC server canonical (jsonrpsee)
|
||||
jsonrpsee = { version = "0.24.3", features = ["server"] }
|
||||
substrate-frame-rpc-system = { version = "43.0.0" }
|
||||
pallet-transaction-payment-rpc = { version = "43.0.0" }
|
||||
|
||||
# CLI + async canonical
|
||||
clap = { version = "4.5.13", features = ["derive"] }
|
||||
futures = { version = "0.3.31", features = ["thread-pool"] }
|
||||
|
||||
# SCALE codec canonical (canonical Substrate serialization)
|
||||
parity-scale-codec = { version = "3.7", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.11", default-features = false, features = ["derive"] }
|
||||
|
||||
Reference in new issue
Block a user