Skip to content

Migrate pallet-im-online to TransactionExtension API#11235

Open
RomarQ wants to merge 4 commits intoparitytech:masterfrom
RomarQ:rq/im-online-migration
Open

Migrate pallet-im-online to TransactionExtension API#11235
RomarQ wants to merge 4 commits intoparitytech:masterfrom
RomarQ:rq/im-online-migration

Conversation

@RomarQ
Copy link
Copy Markdown
Contributor

@RomarQ RomarQ commented Mar 3, 2026

Summary

Part of #2415 (follow-up to #10150)

Migrate pallet-im-online from the deprecated ValidateUnsigned trait to #[pallet::authorize], following the pattern established in #10716.

Changes

  • Replace ValidateUnsigned impl with #[pallet::authorize] on the heartbeat call.
  • Change Config bound from CreateBare<Call<Self>> to CreateAuthorizedTransaction<Call<Self>>.
  • ensure_noneensure_authorized, create_barecreate_authorized_transaction.
  • Add tests covering all authorize validation paths and dispatch with RawOrigin::Authorized.

Migration

The Config trait now requires CreateAuthorizedTransaction<Call<Self>> instead of CreateBare<Call<Self>>. Runtimes with a blanket impl<C> CreateAuthorizedTransaction<C> for Runtime (like kitchensink) need no changes.

@RomarQ RomarQ requested a review from a team as a code owner March 3, 2026 09:36
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