Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

[TASK] Add CheckNominatedRestaked to the runtime's SignedExtra #949

Description

@shekohex

A CheckNominatedRestaked SignedExtension is needed to be in the Runtime SignedExtra where it will check for all the unbond calls to the Staking pallet. These checks happens before the call reaches the pallet itself.

Steps to add:

  1. Create the CheckNominatedRestaked in the runtime, similar to the above one.
  2. Add it to the list of SignedExtra tuple, for example, here.
  3. and then rebuild the runtime
  4. update tangle-subxt
  5. update typescript types.

Steps to test:

Here is a test that you can follow:

fn unbond_should_fail_if_delegated_nomination() {

But basically the steps are:

  1. Bond some TNT and Nominate a validator.
  2. this TNT now is locked up.
  3. call multiAssetDelegation.delegateNomination method, to restake some or all of the Nominated TNT.
  4. Verify delegation state, by query the operator you used in step 3.
  5. Try to unbond from the staking pallet, it should fail.

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

Status
Completed ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions