Skip to content

Expose compatible Locks API #2825

@jodator

Description

@jodator

In Pioneer 2.0 we need to check which locks are compatible. ATM we copy the logic of ALLOWED_LOCKS_COMBINATION.

This might lead to errors and maintenance overhead when new locks are introduced on the runtime.

I think that this could be exposed as api.consts.staking.allowedLocksCombination(lock: LockId) so any front-end client could easily check allowed locks combinations.

┆Issue is synchronized with this Asana task by Unito

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions