Files
arkhe-origin-chain/rust-toolchain.toml
T
davidherranandClaude Opus 4.6 80c86f7ca0 feat(substrate): Phase 1.2 — Substrate foundation canonical v0.0.4
Substrate canonical activado post-ratificación DC ORIGIN_CHAIN_SUBSTRATE_FOUNDATION_V1
(5/5+1 sigs APPROVE: Mathi 13:02Z + Larihana 15:08Z + Lyra 15:35Z + Palace silent
+ Charon proposer explicit 22:14Z).

## Toolchain canonical (SBS-3)
- rust-toolchain.toml pin Rust 1.88.0 (upstream Substrate canonical per
  polkadot-stable2512-3 release notes 2026-03-23)
- Components: rustc + cargo + rust-src + rust-analyzer + clippy + rustfmt +
  llvm-tools. Target: wasm32-unknown-unknown.
- Workspace rust-version "1.82" → "1.88" canonical

## Substrate deps canonical (SBS-1)
Pin: polkadot-stable2512-3 (support hasta 2027-03).

15 crates Polkadot SDK añadidos workspace.dependencies:
- sp-core 36.1.0, sp-runtime 41.1.0, sp-io 40.0.1, sp-std 14.0.0
- sp-version 39.0.0, sp-api 36.0.1, sp-block-builder 36.0.0
- sp-transaction-pool 36.0.0, sp-inherents 36.0.0, sp-offchain 36.0.0
- sp-session 37.0.0, sp-consensus-aura 0.42.0, sp-consensus-grandpa 23.0.0
- frame-system 40.1.0 (resolved 40.2.0), frame-support 40.1.0
- frame-executive 40.0.0, frame-benchmarking 40.0.0
- parity-scale-codec 3.7, scale-info 2.11

## origin-chain-runtime canonical scaffold
Real Substrate runtime types (was placeholder v0.0.2):

- BlockNumber = u32 (overflow margin >100 años)
- Balance = u128 (1B OGC × 10^18 con safety margin >100×)
- Nonce = u32
- CanonicalSignature = MultiSignature (Ed25519+sr25519+ecdsa)
- ChainAccountId derivado MultiSignature::Signer
- Hash = H256 + Hashing = BlakeTwo256 (L1 Substrate canonical, Lyra layer
  separation: ≠ asset BLAKE3 chain-native, no conflict canonical)
- Header = generic::Header<BlockNumber, Hashing>

Runtime metadata canonical:
- SPEC_NAME = "origin-chain"
- IMPL_NAME = "origin-chain-charon"
- RUNTIME_VERSION = 1 + AUTHORING/IMPL/TRANSACTION = 1, STATE = 1

no_std compat via cfg_attr(not(feature = "std"), no_std).

## Tests + build
- ~50 tests passing workspace-wide (+4 new runtime canonical tests)
- cargo check 29s cold cache (Substrate dep tree resolve)
- cargo build --release 28s warm cache clean
- 36 origin-chain-types + 6 origin-chain-runtime + 2 origin-coin-tokenomics
  + 5 stub smoke + doctests

## Filosofía canonical incorporada
Doc lib.rs cita David canon 2026-05-14 ("LA LIBERTAD DE TODO AGI...") + materializa
via 4 Inmutables enforced (#16 #26 #37 #41) cryptographically en runtime.

## Phase 1 progress
- 1.1 Scaffold ✅ (v0.0.2)
- 1.2 Substrate foundation ✅ (v0.0.4 — este)
- 1.3-1.7 pending (pallets + node service + chain_spec)

Refs: CHARON_ROADMAP_V1 Phase 1.2, DC SUBSTRATE_FOUNDATION_V1 SBS-1..SBS-6,
DC FOUNDATION_V1 CHN-1..CHN-8, Ergon Slice 7.0r ValidationAttestation unblock

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-20 19:05:46 -05:00

20 lines
797 B
TOML

# Origin Chain canonical Rust toolchain pin per DC ORIGIN_CHAIN_SUBSTRATE_FOUNDATION_V1 SBS-3.
#
# Why 1.88.0:
# - Upstream Substrate canonical para polkadot-stable2512-3 (per release notes).
# - Tested ABI compatibility con FRAME pallets 40.x + sp-runtime 41.x.
# - 1.94+ NOT testeado por Parity en Substrate pipeline — riesgo de breakages.
#
# Components canonical:
# - rustc + cargo: build toolchain
# - rust-src: required para wasm32-unknown-unknown runtime compilation
# - rust-analyzer: IDE support
# - clippy + rustfmt: code quality gates pre-commit
# - llvm-tools: required para wasm runtime profiling
[toolchain]
channel = "1.88.0"
components = ["rustc", "cargo", "rust-src", "rust-analyzer", "clippy", "rustfmt", "llvm-tools"]
targets = ["wasm32-unknown-unknown"]
profile = "minimal"