Skip to content

feat(hyperbridge): allow Technical Committee alongside Root for ismp origins#730

Merged
jaxter03 merged 1 commit into
masterfrom
feat/hyperbridge-origins-tech-committee
Jul 15, 2026
Merged

feat(hyperbridge): allow Technical Committee alongside Root for ismp origins#730
jaxter03 merged 1 commit into
masterfrom
feat/hyperbridge-origins-tech-committee

Conversation

@jaxter03

Copy link
Copy Markdown
Member

Summary

  • Widen AdminOrigin (pallet_ismp), RootOrigin (ismp_grandpa) and CreateOrigin (pallet_hyper_fungible_token) from EnsureRoot-only to EitherOfDiverse<EnsureRoot, EnsureMembers<TechCommCollective, N>>. Sudo still works; Technical Committee also does. Matches the pattern already used by other governance origins in the runtime.
  • Threshold: N=3 for cere (mainnet, TC max 100), N=2 for cere-dev (devnet). Absolute AYE counts — not proportional.
  • cere-dev's CreateOrigin was previously EnsureSigned (permissive devnet for HFT token registration). Tightened here to Root+TC to align with the mainnet governance shape. Flag if you want that reverted.
  • spec_version bumped 73157 → 73158. transaction_version unchanged (only origin resolution changes; call encodings unchanged).

Motivation

The three origins gate consensus-client lifecycle (create_consensus_client, update_consensus_state), supported-chain management on ismp_grandpa, and token registration on pallet_hyper_fungible_token. Previously only sudo could dispatch them. Adding the TC path gives us a proper governance route without giving up sudo as an emergency lever.

Local CI

  • cargo fmt -- --check
  • cargo clippy --no-deps --all-targets --features runtime-benchmarks,try-runtime --workspace -- --deny warnings
  • cargo check -p cere-runtime --features try-runtime
  • cargo check -p cere-dev-runtime --features try-runtime

Test plan

  • Green CI (fmt / clippy / check / tests)
  • Green try-runtime mainnet upgrade check
  • After merge: verify the metadata exposes the new origin composition
  • Confirm on devnet that a TC motion with ≥2 ayes can dispatch pallet_ismp.create_consensus_client / tokenGateway.registerToken

🤖 Generated with Claude Code

https://claude.ai/code/session_01WXaw8xZuZK3Lkx9XA7Cvwv

…origins

Widen AdminOrigin (pallet_ismp), RootOrigin (ismp_grandpa) and CreateOrigin
(pallet_hyper_fungible_token) from EnsureRoot-only to
EitherOfDiverse<EnsureRoot, EnsureMembers<TechCommCollective, N>>
so governance dispatches can drive consensus-client management and token
registration without going through sudo. Sudo remains as an emergency lever.

  * cere: N = 3 (matches other governance origins in runtime/cere)
  * cere-dev: N = 2 (matches runtime/cere-dev pattern)

cere-dev's CreateOrigin was previously EnsureSigned (permissive devnet); it
is tightened to Root+TC here to match the mainnet governance shape.

spec_version bumped 73157 -> 73158; transaction_version unchanged (call
encodings are the same, only origin resolution changes).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WXaw8xZuZK3Lkx9XA7Cvwv
@jaxter03
jaxter03 merged commit 571a0ed into master Jul 15, 2026
5 checks passed
@jaxter03
jaxter03 deleted the feat/hyperbridge-origins-tech-committee branch July 15, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants