Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/errors/chain/BondsMovingAverageMaxReached.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A subnet owner called `sudo_set_bonds_moving_average` with a value above 975000,

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`limit_exceeded`](/docs/errors/limit-exceeded).

Declared at [`pallets/admin-utils/src/lib.rs#L149`](/code/pallets/admin-utils/src/lib.rs#L149).
Declared at [`pallets/admin-utils/src/lib.rs#L155`](/code/pallets/admin-utils/src/lib.rs#L155).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/CollateralDrainRatioOutOfBounds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L173`](/code/pallets/admin-utils/src/lib.rs#L173).
Declared at [`pallets/admin-utils/src/lib.rs#L179`](/code/pallets/admin-utils/src/lib.rs#L179).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/CollateralLockShareTooHigh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L171`](/code/pallets/admin-utils/src/lib.rs#L171).
Declared at [`pallets/admin-utils/src/lib.rs#L177`](/code/pallets/admin-utils/src/lib.rs#L177).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/Deprecated.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The extrinsic has been removed and always fails, e.g. `schedule_swap_coldkey`, t

Declared by the `SubtensorModule`, `AdminUtils`, `Swap` pallets; it classifies to the semantic code [`disabled`](/docs/errors/disabled).

Declared at [`pallets/subtensor/src/macros/errors.rs#L287`](/code/pallets/subtensor/src/macros/errors.rs#L287), [`pallets/admin-utils/src/lib.rs#L169`](/code/pallets/admin-utils/src/lib.rs#L169), [`pallets/swap/src/pallet/mod.rs#L181`](/code/pallets/swap/src/pallet/mod.rs#L181).
Declared at [`pallets/subtensor/src/macros/errors.rs#L287`](/code/pallets/subtensor/src/macros/errors.rs#L287), [`pallets/admin-utils/src/lib.rs#L175`](/code/pallets/admin-utils/src/lib.rs#L175), [`pallets/swap/src/pallet/mod.rs#L181`](/code/pallets/swap/src/pallet/mod.rs#L181).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/InvalidValue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A generic out-of-range parameter on an admin or sudo call, e.g. mechanism counts

Declared by the `SubtensorModule`, `AdminUtils` pallets; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/subtensor/src/macros/errors.rs#L257`](/code/pallets/subtensor/src/macros/errors.rs#L257), [`pallets/admin-utils/src/lib.rs#L163`](/code/pallets/admin-utils/src/lib.rs#L163).
Declared at [`pallets/subtensor/src/macros/errors.rs#L257`](/code/pallets/subtensor/src/macros/errors.rs#L257), [`pallets/admin-utils/src/lib.rs#L169`](/code/pallets/admin-utils/src/lib.rs#L169).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/MaxAllowedUIdsLessThanCurrentUIds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L147`](/code/pallets/admin-utils/src/lib.rs#L147).
Declared at [`pallets/admin-utils/src/lib.rs#L153`](/code/pallets/admin-utils/src/lib.rs#L153).

## Remediation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L161`](/code/pallets/admin-utils/src/lib.rs#L161).
Declared at [`pallets/admin-utils/src/lib.rs#L167`](/code/pallets/admin-utils/src/lib.rs#L167).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/MaxAllowedUidsLessThanMinAllowedUids.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L159`](/code/pallets/admin-utils/src/lib.rs#L159).
Declared at [`pallets/admin-utils/src/lib.rs#L165`](/code/pallets/admin-utils/src/lib.rs#L165).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/MaxValidatorsLargerThanMaxUIds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L145`](/code/pallets/admin-utils/src/lib.rs#L145).
Declared at [`pallets/admin-utils/src/lib.rs#L151`](/code/pallets/admin-utils/src/lib.rs#L151).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/MinAllowedUidsGreaterThanCurrentUids.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L155`](/code/pallets/admin-utils/src/lib.rs#L155).
Declared at [`pallets/admin-utils/src/lib.rs#L161`](/code/pallets/admin-utils/src/lib.rs#L161).

## Remediation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Check the argument values against the operation schema"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L157`](/code/pallets/admin-utils/src/lib.rs#L157).
Declared at [`pallets/admin-utils/src/lib.rs#L163`](/code/pallets/admin-utils/src/lib.rs#L163).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/NegativeSigmoidSteepness.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A non-root caller (subnet owner) passed a negative value to `sudo_set_alpha_sigm

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L151`](/code/pallets/admin-utils/src/lib.rs#L151).
Declared at [`pallets/admin-utils/src/lib.rs#L157`](/code/pallets/admin-utils/src/lib.rs#L157).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/NotPermittedOnRootSubnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An admin-utils call that only applies to regular subnets (burn half-life, burn i

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L165`](/code/pallets/admin-utils/src/lib.rs#L165).
Declared at [`pallets/admin-utils/src/lib.rs#L171`](/code/pallets/admin-utils/src/lib.rs#L171).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/POWRegistrationDisabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "This call or feature is switched off on this network"

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`disabled`](/docs/errors/disabled).

Declared at [`pallets/admin-utils/src/lib.rs#L167`](/code/pallets/admin-utils/src/lib.rs#L167).
Declared at [`pallets/admin-utils/src/lib.rs#L173`](/code/pallets/admin-utils/src/lib.rs#L173).

## Remediation

Expand Down
2 changes: 1 addition & 1 deletion docs/errors/chain/SubnetDoesNotExist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The admin-utils call targets a netuid with no registered subnet. Verify the `net

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`subnet_not_exists`](/docs/errors/subnet-not-exists).

Declared at [`pallets/admin-utils/src/lib.rs#L143`](/code/pallets/admin-utils/src/lib.rs#L143).
Declared at [`pallets/admin-utils/src/lib.rs#L149`](/code/pallets/admin-utils/src/lib.rs#L149).

## Remediation

Expand Down
18 changes: 18 additions & 0 deletions docs/errors/chain/TooManyRootClaimHotkeys.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "TooManyRootClaimHotkeys"
description: "A chain-side capacity limit was hit; reduce the size or count of the request"
---

{/* GENERATED by scripts/generate.py from the SDK registries — do not edit. */}

The coldkey has more staking hotkeys than a single manual root claim can process. Reduce the coldkey's staking-hotkey fanout below `MAX_ROOT_CLAIM_HOTKEYS`, or use automatic root claiming instead.

Declared by the `SubtensorModule` pallet; it classifies to the semantic code [`limit_exceeded`](/docs/errors/limit-exceeded).

Declared at [`pallets/subtensor/src/macros/errors.rs#L350`](/code/pallets/subtensor/src/macros/errors.rs#L350).

## Remediation

A chain-side capacity limit was hit; reduce the size or count of the request

The same explanation is available in the terminal: `btcli explain TooManyRootClaimHotkeys`.
2 changes: 1 addition & 1 deletion docs/errors/chain/ValueNotInBounds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An admin-utils argument fell outside its allowed range: `min_burn` must be below

Declared by the `AdminUtils` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/admin-utils/src/lib.rs#L153`](/code/pallets/admin-utils/src/lib.rs#L153).
Declared at [`pallets/admin-utils/src/lib.rs#L159`](/code/pallets/admin-utils/src/lib.rs#L159).

## Remediation

Expand Down
1 change: 1 addition & 0 deletions docs/errors/chain/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ The exact chain error name (from the extrinsic receipt) maps to a semantic [code
| [`TooManyRegistrationsThisBlock`](/docs/errors/chain/TooManyRegistrationsThisBlock) | [`rate_limited`](/docs/errors/rate-limited) | Registrations in the current block already reached the subnet's per-block cap (`MaxRegistrationsPerBlock`, the max_regs_per_block hyperparameter); root registration enforces the same cap on netuid 0. Retry in the next block. |
| [`TooManyRegistrationsThisInterval`](/docs/errors/chain/TooManyRegistrationsThisInterval) | [`rate_limited`](/docs/errors/rate-limited) | Registrations in the current interval reached the cap of three times `TargetRegistrationsPerInterval` for the subnet. Compare `RegistrationsThisInterval` against that hyperparameter and wait for the next interval to start. |
| [`TooManyReserves`](/docs/errors/chain/TooManyReserves) | [`limit_exceeded`](/docs/errors/limit-exceeded) | The account already has the maximum number of named reserves. Check the account's `Reserves` entry against the `MaxReserves` constant; a named reserve must be unreserved before adding another. |
| [`TooManyRootClaimHotkeys`](/docs/errors/chain/TooManyRootClaimHotkeys) | [`limit_exceeded`](/docs/errors/limit-exceeded) | The coldkey has more staking hotkeys than a single manual root claim can process. Reduce the coldkey's staking-hotkey fanout below `MAX_ROOT_CLAIM_HOTKEYS`, or use automatic root claiming instead. |
| [`TooManySignatories`](/docs/errors/chain/TooManySignatories) | [`limit_exceeded`](/docs/errors/limit-exceeded) | The multisig signatory list exceeds the maximum allowed. Compare the length of `other_signatories` plus the sender against the pallet's `MaxSignatories` constant. |
| [`TooManyTopics`](/docs/errors/chain/TooManyTopics) | [`limit_exceeded`](/docs/errors/limit-exceeded) | The number of topics passed to `seal_deposit_event` exceeds the schedule's `event_topics` limit. Reduce the number of indexed topics in the contract's event definition or compare against the schedule limit. |
| [`TooManyUIDsPerMechanism`](/docs/errors/chain/TooManyUIDsPerMechanism) | [`limit_exceeded`](/docs/errors/limit-exceeded) | Setting max UIDs or mechanism count would make max_uids times mechanism_count exceed the chain default of 256 UIDs per subnet. Check `MaxAllowedUids` and the subnet's mechanism count so their product stays within the limit. |
Expand Down
1 change: 1 addition & 0 deletions docs/errors/chain/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@
"TooManyRegistrationsThisBlock",
"TooManyRegistrationsThisInterval",
"TooManyReserves",
"TooManyRootClaimHotkeys",
"TooManySignatories",
"TooManyTopics",
"TooManyUIDsPerMechanism",
Expand Down
2 changes: 1 addition & 1 deletion docs/errors/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A failed `execute` returns an `ExtrinsicResult` whose `error` has a semantic `co
| [`disabled`](/docs/errors/disabled) | 19 | This call or feature is switched off on this network |
| [`too_early`](/docs/errors/too-early) | 18 | The required window has not opened yet; wait some blocks and retry |
| [`expired`](/docs/errors/expired) | 5 | The window has closed; restart the flow with fresh state |
| [`limit_exceeded`](/docs/errors/limit-exceeded) | 37 | A chain-side capacity limit was hit; reduce the size or count of the request |
| [`limit_exceeded`](/docs/errors/limit-exceeded) | 38 | A chain-side capacity limit was hit; reduce the size or count of the request |
| [`unit_mismatch`](/docs/errors/unit-mismatch) | — | Match the Balance netuid to the operation's currency |
| [`invalid_argument`](/docs/errors/invalid-argument) | 135 | Check the argument values against the operation schema |
| [`policy_violation`](/docs/errors/policy-violation) | 2 | The action exceeds a configured safety policy |
Expand Down
1 change: 1 addition & 0 deletions docs/errors/limit-exceeded.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The exact chain error names (from the extrinsic receipt) that classify to `limit
| [`TooManyHolds`](/docs/errors/chain/TooManyHolds) | The account already carries the maximum number of balance holds, one per hold reason variant. Check the account's `Holds` entry; an existing hold must be released before a new reason can place another. |
| [`TooManyPendingExtrinsics`](/docs/errors/chain/TooManyPendingExtrinsics) | `store_encrypted` was rejected because the shield pallet's queue of encrypted extrinsics is already at capacity. Compare the `PendingExtrinsics` count against `MaxPendingExtrinsicsLimit` and wait for queued items to be processed or expire. |
| [`TooManyReserves`](/docs/errors/chain/TooManyReserves) | The account already has the maximum number of named reserves. Check the account's `Reserves` entry against the `MaxReserves` constant; a named reserve must be unreserved before adding another. |
| [`TooManyRootClaimHotkeys`](/docs/errors/chain/TooManyRootClaimHotkeys) | The coldkey has more staking hotkeys than a single manual root claim can process. Reduce the coldkey's staking-hotkey fanout below `MAX_ROOT_CLAIM_HOTKEYS`, or use automatic root claiming instead. |
| [`TooManySignatories`](/docs/errors/chain/TooManySignatories) | The multisig signatory list exceeds the maximum allowed. Compare the length of `other_signatories` plus the sender against the pallet's `MaxSignatories` constant. |
| [`TooManyTopics`](/docs/errors/chain/TooManyTopics) | The number of topics passed to `seal_deposit_event` exceeds the schedule's `event_topics` limit. Reduce the number of indexed topics in the contract's event definition or compare against the schedule limit. |
| [`TooManyUIDsPerMechanism`](/docs/errors/chain/TooManyUIDsPerMechanism) | Setting max UIDs or mechanism count would make max_uids times mechanism_count exceed the chain default of 256 UIDs per subnet. Check `MaxAllowedUids` and the subnet's mechanism count so their product stays within the limit. |
Expand Down
Loading
Loading