Proxy::Error

Variant 498 v393

pallet_subtensor_proxy::pallet::Error

The `Error` enum of this pallet.

About This Type

Error enum for the Error pallet.

Contains all error types that the Error pallet can return when a call fails.

Variants (10)

IndexNameFieldsDocs
0TooManynoneThere are too many proxies registered or too many announcements pending.
1NotFoundnoneProxy registration not found.
2NotProxynoneSender is not a proxy of the account to be proxied.
3UnproxyablenoneA call which is incompatible with the proxy type's filter was attempted.
4DuplicatenoneAccount is already a proxy.
5NoPermissionnoneCall may not be made by proxy because it may escalate its privileges.
6UnannouncednoneAnnouncement, if made at all, was made too recently.
7NoSelfProxynoneCannot add self as proxy.
8AnnouncementDepositInvariantViolatednoneInvariant violated: deposit recomputation returned None after updating announcements.
9InvalidDerivedAccountIdnoneFailed to derive a valid account id from the provided entropy.

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 10 possible variants.
Size
variable (1+ bytes)

Examples

TooMany
0x00
00 Variant index 0 = TooMany
NotFound
0x01
01 Variant index 1 = NotFound
NotProxy
0x02
02 Variant index 2 = NotProxy

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode Proxy::Error — variant "TooMany"
const value = registry.createType("Proxy::Error", "TooMany");
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
498
Kind
Variant
Path
pallet_subtensor_proxy::pallet::Error
Runtime
v393