Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Allow explicit call ordering within a pallet #10408

@joepetrowski

Description

@joepetrowski

Similar to explicit ordering in the construct_runtime macro, we could annotate calls within a pallet with an index. This would have a few advantages, namely the ability to remove a function without affecting the indices of other calls.

This could be useful in pallet versioning and transaction version, where a pallet's version would need to increment when there is a breaking change to these indices/function signatures. By leaving call indices empty on function removal, wallets/signers don't need to worry about signing an unintended call as it would be null.

Transaction version could either increment on pallet version changes or be reserved for changes in the serialization (e.g. signed extensions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions