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

@@ -342,3 +342,21 @@ impl pallet_session::Config for Runtime {
impl origin_chain_provenance::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
}
// ============================================================
// origin_chain_fees::Config — Phase 2.4 v0.0.21 wired
// ============================================================
//
// pallet-origin-fees scaffold canonical (DC `origin_chain_amis_fee_bridge_v1`
// OCAFB-1..6 sesión 3+ 6/7 firmas, ratify target 2026-06-21). Scaffold-level
// Config canonical v0.0.21: solo RuntimeEvent association. Future canonical
// fields post-OCAFB ratify + Mathi sub-crate ship:
//
// - `OitFeeSchedule: Arc<dyn arkhe_amis_server::OitFeeSchedule>` (post-OCAFB
// ratify swap canonical cross-workspace)
// - Pallet weights canonical desde benchmarking real (post-Phase 4 testnet)
// - Custom origin canonical para fee waiver scenarios (governance Phase 5)
impl origin_chain_fees::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
}
+15
View File
@@ -280,6 +280,21 @@ mod runtime {
#[runtime::pallet_index(7)]
pub type Provenance = origin_chain_provenance::Pallet<Runtime>;
/// Fees pallet canonical (Phase 2.4 v0.0.21 wired canonical per OCAFB-1..6 +
/// DC `origin_chain_amis_fee_bridge_v1` 6/7 firmas sesión 3+ Charon ratified).
/// Cross-pillar fee economy consumer Mathi `OitFeeSchedule` trait (commit
/// `ce4fafb` 2026-05-24 `arkhe-amis-server/src/fee_schedule.rs`) via vendor
/// copy interim Option B (swap canonical post-OCAFB ratify o post Mathi
/// sub-crate ship). Scaffold-level v0.0.21: dispatchable
/// `compute_fee_for_action` placeholder, real impl v0.0.22 + Runtime API
/// v0.0.23.
///
/// Naming canonical: alias `Fees` (NO `OriginFees` que conflictaría con
/// el trait existente del mismo nombre en `origin_chain_types::pallets`,
/// pattern análogo Provenance Index 7).
#[runtime::pallet_index(8)]
pub type Fees = origin_chain_fees::Pallet<Runtime>;
// Identity pallet DEFERRED a Phase 2.7 (canonical decision empírica
// 2026-05-21 documentada en configs.rs). pallet-identity 41.0.0 ReservableCurrency
// compat work canonical hereda al custom `pallet_agent_identity` Phase 2.7