feat(slice-2e): v0.0.36 Slice 2e FULLY RESUELTO — Real WASM_BINARY 1.8 MB shipped (5 layers resolved end-to-end)

Slice 2e WASM structural blocker FULLY RESUELTO end-to-end. Real
origin_chain_runtime.wasm (1,795,946 bytes ~1.8 MB) shipped post-brew LLVM
install + 5 layers de blockers resolved. PHASE 3 + PHASE 4 Testnet Q3 2026
UNBLOCKED.

5-layer resolution:
- Layer 1 alloc/exchange_malloc → WASM_BUILD_STD=0
- Layer 2a getrandom 0.2 wasm → custom feature
- Layer 2b getrandom 0.3 backends → wasm_js feature
- Layer 3 secp256k1-sys clang wasm32 → brew LLVM + CC env vars
- Layer 4 sp-io std leak → default-features=false en path deps
- Layer 5 Vec no_std impl_opaque_keys → alloc::vec::Vec import

Changes:
- Cargo.toml workspace: path deps default-features=false + getrandom_02 + getrandom_03
- runtime/Cargo.toml: substrate-wasm-builder feature-gated + getrandom deps
- runtime/src/opaque.rs: extern crate alloc + use Vec import

Verification:
- WASM_BUILD_STD=0 + brew LLVM env vars + cargo build --features wasm-build → 3.36s clean
- origin_chain_runtime.wasm 1.8 MB shipped
- cargo test --workspace — 202 tests verde 0 failures NO regression

🎉 Slice 2e FULLY RESUELTO. La nave Origin Chain zarpando hacia Phase 3 + 4.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
davidherranandClaude Opus 4.7 committed 2026-05-26 18:28:38 -05:00
1 parent 44f1a0ae7f
commit 199636ac05
5 files changed
+201 -20

No files matched your search

+5 -4
View File
@@ -52,10 +52,11 @@ origin-chain-fees.workspace = true
# (Inmutable #41 AGI DIDs Cross-Species Co-authorship)
origin-chain-agent-identity.workspace = true
# Slice 2e v0.0.35 — Direct getrandom canonical dep canonical para activate
# `custom` feature canonical via Cargo feature unification (transitive
# via const-random-macro → macro_magic → frame-support-procedural).
getrandom = { workspace = true }
# Slice 2e v0.0.36 — Direct getrandom deps (both 0.2 + 0.3 transitive):
# 0.2 via const-random-macro → frame-support-procedural
# 0.3 via ahash → schnellru → sp-trie → frame-support
getrandom_02 = { workspace = true }
getrandom_03 = { workspace = true }
# Phase 5.1 v0.0.29: origin-chain-governance wired runtime composition Index 10 canonical
# (CHN-4 Foundation Treasury Governance, AI-Driven Human-Guarded canonical)