feat(runtime): v0.0.21 — Fees pallet wired runtime composition Index 8

Phase 2.4 FEES pallet wired canonical en `frame_support::runtime` macro como
Index 8 (post-Provenance Index 7). 8 → 9 pallets composed canonical. Config
trait RuntimeEvent association wired canonical en configs.rs (pattern Provenance
Phase 2.1 mirror).

## Changes

- crates/origin-chain-runtime/src/lib.rs:285 — Index 8 pub type Fees = origin_chain_fees::Pallet<Runtime>
- crates/origin-chain-runtime/src/configs.rs:347 — impl origin_chain_fees::Config for Runtime { type RuntimeEvent = RuntimeEvent }
- crates/origin-chain-runtime/Cargo.toml — origin-chain-fees workspace dep + std feature
- Cargo.toml — origin-chain-fees workspace dependency
- crates/origin-chain-node/src/main.rs — 8 → 9 pallets listed + Fees Index 8 highlighted + Provenance status updated v0.0.15 → v0.0.17

## Verification

- cargo build -p origin-chain-runtime 13.63s clean
- cargo test --workspace — 123 tests passing, 0 failures
- cargo build --release -p origin-chain-node 4.39s clean
- origin-chain-node info muestra 9 pallets canonical

🔌 Phase 2.4 wired canonical. Real impl v0.0.22 next.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
davidherranandClaude Opus 4.7 committed 2026-05-24 22:50:52 -05:00
1 parent 33b10b7545
commit 0a83395a16
7 files changed
+95 -2

No files matched your search

+52
View File
@@ -6,6 +6,58 @@ by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow
## [Unreleased]
## [0.0.21] — 2026-05-24 — Phase 2.4 wired — Fees pallet runtime composition Index 8
**🔌 Phase 2.4 FEES pallet WIRED runtime composition canonical** — `origin-chain-fees`
añadido al `#[frame_support::runtime]` macro como Index 8 (post-Provenance Index 7).
8 → **9 pallets** composed canonical. Config trait `RuntimeEvent` association wired
canonical en `crates/origin-chain-runtime/src/configs.rs` (pattern Provenance Phase 2.1).
### Deliverables v0.0.21
**Runtime composition canonical (Index 8 added)**:
- `crates/origin-chain-runtime/src/lib.rs:285` — `#[runtime::pallet_index(8)] pub type Fees = origin_chain_fees::Pallet<Runtime>;`
- `crates/origin-chain-runtime/src/configs.rs:347` — `impl origin_chain_fees::Config for Runtime { type RuntimeEvent = RuntimeEvent; }`
**Workspace deps canonical**:
- `Cargo.toml:154` — `origin-chain-fees = { path = "crates/origin-chain-fees", version = "0.0.1" }` workspace dep
- `crates/origin-chain-runtime/Cargo.toml:47` — `origin-chain-fees.workspace = true` dep + std feature
- Documentación canonical pattern Provenance (deferred fields OitFeeSchedule post-OCAFB ratify)
**Node info subcommand update canonical**:
- `crates/origin-chain-node/src/main.rs:194` — 8 → **9 pallets** listed canonical
- `crates/origin-chain-node/src/main.rs:203` — Index 8 Fees highlighted `[Phase 2.4 scaffold v0.0.21]`
- Provenance status updated `[Phase 2.1 scaffold v0.0.15]` → `[Phase 2.1 COMPLETE v0.0.17]`
### Verification end-to-end canonical
- ✅ `cargo build -p origin-chain-runtime` 13.63s clean (warnings cosméticos macro-generated)
- ✅ `cargo test --workspace` — **123 tests passing**, 0 failures:
- origin-chain-types: 55 (+8 ChainAction + SubscriptionTier)
- origin-chain-fees: 20 (16 vendor + 4 pallet scaffold)
- origin-chain-provenance: 17 (9 integration + 6 standalone + 2 auto)
- origin-chain-runtime: 16 (no regressions)
- origin-coin-tokenomics: 2
- origin-chain-bridges/consensus/governance: 3
- origin-chain-node chain_spec: 10
- ✅ `cargo build --release -p origin-chain-node` 4.39s clean
- ✅ `origin-chain-node info` muestra 9 pallets canonical + 12 Runtime APIs (FeesApi pendiente v0.0.23)
- ✅ Existing subcomandos canonical NO regression (version + list-presets + print-preset + info + build-spec)
### Roadmap canonical post-v0.0.21
| Version | Trigger |
|---------|---------|
| **v0.0.22** | **Real `compute_fee_for_action` impl + storage assertions + mock runtime integration tests E2E (sesión 3+ shipping ahora, pattern v0.0.18 mirror)** |
| v0.0.23 | Runtime API canonical `FeesApi.query_fee_for_action` read-only RPC → **Phase 2.4 COMPLETE 7/7 OCAFB** |
| v0.1.0 | Slice 2e WASM resolved + full testnet Q3 2026 launch |
### Cross-pillar consumers status post v0.0.21
- ✅ Mathi `OitFeeSchedule` trait wired canonical (Config association deferred v0.0.22)
- 🟢 `Fees` pallet runtime composition canonical activated Index 8
- 🟢 Mock runtime integration tests pattern v0.0.18 ready para mirror v0.0.22
## [0.0.20] — 2026-05-24 — Phase 2.4 scaffold — pallet-origin-fees trait-first foundation (OCAFB-1..6)
**🚀 Phase 2.4 FEES pallet SCAFFOLD trait-first foundation** — Vendor copy