feat(runtime): v0.0.29 — Governance pallet wired runtime composition Index 10
Phase 5.1 GOVERNANCE pallet wired canonical en frame_support::runtime macro como Index 10 (post-AgentIdentity Index 9). 10 → 11 pallets composed canonical. Config trait RuntimeEvent association wired canonical (pattern Provenance + Fees + AgentIdentity mirror). ## Changes - crates/origin-chain-runtime/src/lib.rs:315 — Index 10 pub type Governance = origin_chain_governance::Pallet<Runtime> - crates/origin-chain-runtime/src/configs.rs:382 — impl origin_chain_governance::Config for Runtime - crates/origin-chain-runtime/Cargo.toml — origin-chain-governance workspace dep + std feature - Cargo.toml — origin-chain-governance workspace dep default-features = false (no_std-compat) - crates/origin-chain-node/src/main.rs — 10 → 11 pallets listed + Governance Index 10 highlighted ## Verification - cargo build -p origin-chain-runtime 15.69s clean - cargo test --workspace — 165 tests passing, 0 failures - origin-chain-node info muestra 11 pallets canonical 🔌 Phase 5.1 wired canonical. Real impl v0.0.30 next. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1bde93921e
commit
2a700ee6ca
7 files changed
+61
-2
No files matched your search
@@ -377,3 +377,21 @@ impl origin_chain_fees::Config for Runtime {
|
||||
impl origin_chain_agent_identity::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// origin_chain_governance::Config — Phase 5.1 v0.0.29 wired
|
||||
// ============================================================
|
||||
//
|
||||
// pallet-origin-governance scaffold canonical (Phase 5.1 Foundation Treasury
|
||||
// Governance CHN-4 AI-Driven Human-Guarded). Scaffold-level Config canonical
|
||||
// v0.0.29: solo RuntimeEvent association. Future canonical fields post-Phase 5
|
||||
// DC ratify:
|
||||
//
|
||||
// - `MinProposalStake: Get<u128>` (1,000 OGC mínimum canonical CHN-4 5.3)
|
||||
// - `MaxVotingPeriodBlocks: Get<u64>` (14-day period canonical 5.4)
|
||||
// - Custom origin canonical para Technical Council veto (5.5)
|
||||
// - `IsGovernanceAdvisor: Trait` (5.6 — humans-only vote enforcement)
|
||||
|
||||
impl origin_chain_governance::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
@@ -308,6 +308,17 @@ mod runtime {
|
||||
#[runtime::pallet_index(9)]
|
||||
pub type AgentIdentity = origin_chain_agent_identity::Pallet<Runtime>;
|
||||
|
||||
/// Governance pallet canonical (Phase 5.1 v0.0.29 wired canonical per CHN-4
|
||||
/// Foundation Treasury Governance). AI-Driven Human-Guarded canonical: 5 AI
|
||||
/// advisor agents ADVISE only canonical, humans-only vote non-negotiable.
|
||||
/// Scaffold-level v0.0.29: dispatchables submit_proposal + cast_vote +
|
||||
/// finalize_proposal placeholders, real impl v0.0.30 + Runtime API v0.0.31.
|
||||
///
|
||||
/// Naming canonical: alias `Governance` clearly canonical (NO conflict con
|
||||
/// trait `GovernanceProposal` en `origin_chain_types::governance`).
|
||||
#[runtime::pallet_index(10)]
|
||||
pub type Governance = origin_chain_governance::Pallet<Runtime>;
|
||||
|
||||
// Substrate pallet-identity DEFERRED 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
|
||||
|
||||
Reference in new issue
Block a user