SubtensorModule::Event
Variant 39 v393pallet_subtensor::pallet::Event
The `Event` enum of this pallet
About This Type
Event enum for the Event pallet.
Contains all possible events emitted by the Event pallet. Each variant represents a different event type with its own data fields.
Variants (121)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | NetworkAdded | a new network is added. | |
| 1 | NetworkRemoved | a network is removed. | |
| 2 | StakeAdded | stake has been transferred from the a coldkey account onto the hotkey staking account. | |
| 3 | StakeRemoved | stake has been removed from the hotkey staking account onto the coldkey account. | |
| 4 | StakeMoved | stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO). | |
| 5 | WeightsSet | a caller successfully sets their weights on a subnetwork. | |
| 6 | NeuronRegistered | a new neuron account has been registered to the chain. | |
| 7 | BulkNeuronsRegistered | multiple uids have been concurrently registered. | |
| 8 | BulkBalancesSet | FIXME: Not used yet | |
| 9 | MaxAllowedUidsSet | max allowed uids has been set for a subnetwork. | |
| 10 | MaxWeightLimitSet | DEPRECATED: max weight limit updates are no longer supported. | |
| 11 | DifficultySet | the difficulty has been set for a subnet. | |
| 12 | AdjustmentIntervalSet | the adjustment interval is set for a subnet. | |
| 13 | RegistrationPerIntervalSet | registration per interval is set for a subnet. | |
| 14 | MaxRegistrationsPerBlockSet | we set max registrations per block. | |
| 15 | ActivityCutoffSet | an activity cutoff is set for a subnet. | |
| 16 | RhoSet | Rho value is set. | |
| 17 | AlphaSigmoidSteepnessSet | steepness of the sigmoid used to compute alpha values. | |
| 18 | KappaSet | Kappa is set for a subnet. | |
| 19 | MinAllowedWeightSet | minimum allowed weight is set for a subnet. | |
| 20 | ValidatorPruneLenSet | the validator pruning length has been set. | |
| 21 | ScalingLawPowerSet | the scaling law power has been set for a subnet. | |
| 22 | WeightsSetRateLimitSet | weights set rate limit has been set for a subnet. | |
| 23 | ImmunityPeriodSet | immunity period is set for a subnet. | |
| 24 | BondsMovingAverageSet | bonds moving average is set for a subnet. | |
| 25 | BondsPenaltySet | bonds penalty is set for a subnet. | |
| 26 | BondsResetOnSet | bonds reset is set for a subnet. | |
| 27 | MaxAllowedValidatorsSet | setting the max number of allowed validators on a subnet. | |
| 28 | AxonServed | the axon server information is added to the network. | |
| 29 | PrometheusServed | the prometheus server information is added to the network. | |
| 30 | DelegateAdded | a hotkey has become a delegate. | |
| 31 | DefaultTakeSet | the default take is set. | |
| 32 | WeightsVersionKeySet | weights version key is set for a network. | |
| 33 | MinDifficultySet | setting min difficulty on a network. | |
| 34 | MaxDifficultySet | setting max difficulty on a network. | |
| 35 | ServingRateLimitSet | setting the prometheus serving rate limit. | |
| 36 | BurnSet | setting burn on a network. | |
| 37 | MaxBurnSet | setting max burn on a network. | |
| 38 | MinBurnSet | setting min burn on a network. | |
| 39 | TxRateLimitSet | setting the transaction rate limit. | |
| 40 | TxDelegateTakeRateLimitSet | setting the delegate take transaction rate limit. | |
| 41 | TxChildKeyTakeRateLimitSet | setting the childkey take transaction rate limit. | |
| 42 | AdminFreezeWindowSet | setting the admin freeze window length (last N blocks of tempo) | |
| 43 | OwnerHyperparamRateLimitSet | setting the owner hyperparameter rate limit in epochs | |
| 44 | MinChildKeyTakeSet | minimum childkey take set | |
| 45 | MaxChildKeyTakeSet | maximum childkey take set | |
| 46 | ChildKeyTakeSet | childkey take set | |
| 47 | Sudid | a sudo call is done. | |
| 48 | RegistrationAllowed | registration is allowed/disallowed for a subnet. | |
| 49 | PowRegistrationAllowed | POW registration is allowed/disallowed for a subnet. | |
| 50 | TempoSet | setting tempo on a network | |
| 51 | RAORecycledForRegistrationSet | setting the RAO recycled for registration. | |
| 52 | StakeThresholdSet | min stake is set for validators to set weights. | |
| 53 | AdjustmentAlphaSet | setting the adjustment alpha on a subnet. | |
| 54 | Faucet | the faucet it called on the test net. | |
| 55 | SubnetOwnerCutSet | the subnet owner cut is set. | |
| 56 | NetworkRateLimitSet | the network creation rate limit is set. | |
| 57 | NetworkImmunityPeriodSet | the network immunity period is set. | |
| 58 | StartCallDelaySet | the start call delay is set. | |
| 59 | NetworkMinLockCostSet | the network minimum locking cost is set. | |
| 60 | SubnetLimitSet | the maximum number of subnets is set | |
| 61 | NetworkLockCostReductionIntervalSet | the lock cost reduction is set | |
| 62 | TakeDecreased | the take for a delegate is decreased. | |
| 63 | TakeIncreased | the take for a delegate is increased. | |
| 64 | HotkeySwapped | the hotkey is swapped | |
| 65 | MaxDelegateTakeSet | maximum delegate take is set by sudo/admin transaction | |
| 66 | MinDelegateTakeSet | minimum delegate take is set by sudo/admin transaction | |
| 67 | ColdkeySwapAnnounced | A coldkey swap announcement has been made. | |
| 68 | ColdkeySwapReset | who: AccountId | A coldkey swap has been reset. |
| 69 | ColdkeySwapped | A coldkey has been swapped. | |
| 70 | ColdkeySwapDisputed | coldkey: AccountId | A coldkey swap has been disputed. |
| 71 | AllBalanceUnstakedAndTransferredToNewColdkey | All balance of a hotkey has been unstaked and transferred to a new coldkey | |
| 72 | ArbitrationPeriodExtended | coldkey: AccountId | The arbitration period has been extended |
| 73 | SetChildrenScheduled | Setting of children of a hotkey have been scheduled | |
| 74 | SetChildren | The children of a hotkey have been set | |
| 75 | ChainIdentitySet | The identity of a coldkey has been set | |
| 76 | SubnetIdentitySet | The identity of a subnet has been set | |
| 77 | SubnetIdentityRemoved | The identity of a subnet has been removed | |
| 78 | DissolveNetworkScheduled | A dissolve network extrinsic scheduled. | |
| 79 | ColdkeySwapAnnouncementDelaySet | The coldkey swap announcement delay has been set. | |
| 80 | ColdkeySwapReannouncementDelaySet | The coldkey swap reannouncement delay has been set. | |
| 81 | DissolveNetworkScheduleDurationSet | The duration of dissolve network has been set | |
| 82 | CRV3WeightsCommitted | Commit-reveal v3 weights have been successfully committed. - **who**: The account ID of the user committing the weights. - **netuid**: The network identifier. - **commit_hash**: The hash representing the committed weights. | |
| 83 | WeightsCommitted | Weights have been successfully committed. - **who**: The account ID of the user committing the weights. - **netuid**: The network identifier. - **commit_hash**: The hash representing the committed weights. | |
| 84 | WeightsRevealed | Weights have been successfully revealed. - **who**: The account ID of the user revealing the weights. - **netuid**: The network identifier. - **commit_hash**: The hash of the revealed weights. | |
| 85 | WeightsBatchRevealed | Weights have been successfully batch revealed. - **who**: The account ID of the user revealing the weights. - **netuid**: The network identifier. - **revealed_hashes**: A vector of hashes representing each revealed weight set. | |
| 86 | BatchWeightsCompleted | A batch of weights (or commits) have been force-set. - **netuids**: The netuids these weights were successfully set/committed for. - **who**: The hotkey that set this batch. | |
| 87 | BatchCompletedWithErrors | none | A batch extrinsic completed but with some errors. |
| 88 | BatchWeightItemFailed | A weight set among a batch of weights failed. - **error**: The dispatch error emitted by the failed item. | |
| 89 | StakeTransferred | Stake has been transferred from one coldkey to another on the same subnet. Parameters: (origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount) | |
| 90 | StakeSwapped | Stake has been swapped from one subnet to another for the same coldkey-hotkey pair. Parameters: (coldkey, hotkey, origin_netuid, destination_netuid, amount) | |
| 91 | TransferToggle | Event called when transfer is toggled on a subnet. Parameters: (netuid, bool) | |
| 92 | SubnetOwnerHotkeySet | The owner hotkey for a subnet has been set. Parameters: (netuid, new_hotkey) | |
| 93 | FirstEmissionBlockNumberSet | FirstEmissionBlockNumber is set via start call extrinsic Parameters: netuid block number | |
| 94 | AlphaRecycled | Alpha has been recycled, reducing AlphaOut on a subnet. Parameters: (coldkey, hotkey, amount, subnet_id) | |
| 95 | AlphaBurned | Alpha have been burned without reducing AlphaOut. Parameters: (coldkey, hotkey, amount, subnet_id) | |
| 96 | EvmKeyAssociated | An EVM key has been associated with a hotkey. | |
| 97 | CRV3WeightsRevealed | CRV3 Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights. | |
| 98 | CommitRevealPeriodsSet | Commit-Reveal periods has been successfully set. - **netuid**: The network identifier. - **periods**: The number of epochs before the reveal. | |
| 99 | CommitRevealEnabled | Commit-Reveal has been successfully toggled. - **netuid**: The network identifier. - **Enabled**: Is Commit-Reveal enabled. | |
| 100 | HotkeySwappedOnSubnet | the hotkey is swapped | |
| 101 | SubnetLeaseCreated | A subnet lease has been created. | |
| 102 | SubnetLeaseTerminated | A subnet lease has been terminated. | |
| 103 | SymbolUpdated | The symbol for a subnet has been updated. | |
| 104 | CommitRevealVersionSet | Commit Reveal Weights version has been updated. - **version**: The required version. | |
| 105 | TimelockedWeightsCommitted | Timelocked weights have been successfully committed. - **who**: The account ID of the user committing the weights. - **netuid**: The network identifier. - **commit_hash**: The hash representing the committed weights. - **reveal_round**: The round at which weights can be revealed. | |
| 106 | TimelockedWeightsRevealed | Timelocked Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights. | |
| 107 | AutoStakeAdded | Auto-staking hotkey received stake | |
| 108 | IncentiveAlphaEmittedToMiners | End-of-epoch miner incentive alpha by UID | |
| 109 | MinAllowedUidsSet | The minimum allowed UIDs for a subnet have been set. | |
| 110 | AutoStakeDestinationSet | The auto stake destination has been set. - **coldkey**: The account ID of the coldkey. - **netuid**: The network identifier. - **hotkey**: The account ID of the hotkey. | |
| 111 | MinNonImmuneUidsSet | The minimum allowed non-Immune UIDs has been set. | |
| 112 | RootClaimed | coldkey: AccountId | Root emissions have been claimed for a coldkey on all subnets and hotkeys. Parameters: (coldkey) |
| 113 | RootClaimTypeSet | coldkey: AccountId root_claim_type: RootClaimTypeEnum | Root claim type for a coldkey has been set. Parameters: (coldkey, u8) |
| 114 | VotingPowerTrackingEnabled | netuid: u16 | Voting power tracking has been enabled for a subnet. |
| 115 | VotingPowerTrackingDisableScheduled | Voting power tracking has been scheduled for disabling. Tracking will continue until disable_at_block, then stop and clear entries. | |
| 116 | VotingPowerTrackingDisabled | netuid: u16 | Voting power tracking has been fully disabled and entries cleared. |
| 117 | VotingPowerEmaAlphaSet | Voting power EMA alpha has been set for a subnet. | |
| 118 | SubnetLeaseDividendsDistributed | Subnet lease dividends have been distributed. | |
| 119 | AddStakeBurn | "Add stake and burn" event: alpha token was purchased and burned. | |
| 120 | ColdkeySwapCleared | who: AccountId | A coldkey swap announcement has been cleared. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 121 possible variants.
- Size
- variable (1+ bytes)
Examples
NetworkAdded = NetworkAdded(u16, u16)
0x00<field0><field1>00 Variant index 0 = NetworkAddedfield 0 field0: u16field 1 field1: u16NetworkRemoved = NetworkRemoved(u16)
0x01<field0>01 Variant index 1 = NetworkRemovedfield 0 field0: u16StakeAdded = StakeAdded(AccountId, AccountId, u64, u64, u16, u64)
0x02<field0><field1><field2><field3><field4><field5>02 Variant index 2 = StakeAddedfield 0 field0: AccountIdfield 1 field1: AccountIdfield 2 field2: u64field 3 field3: u64field 4 field4: u16field 5 field5: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SubtensorModule::Event — variant "NetworkAdded"
const value = registry.createType("SubtensorModule::Event", { NetworkAdded: { value: 1, value: 1 } });
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (23)
#21 RuntimeEvent via System#21 RuntimeEvent via Grandpa#21 RuntimeEvent via Balances#21 RuntimeEvent via TransactionPayment#21 RuntimeEvent via SubtensorModule#21 RuntimeEvent via Utility#21 RuntimeEvent via Sudo#21 RuntimeEvent via Multisig#21 RuntimeEvent via Preimage#21 RuntimeEvent via Scheduler#21 RuntimeEvent via Proxy#21 RuntimeEvent via Registry#21 RuntimeEvent via Commitments#21 RuntimeEvent via AdminUtils#21 RuntimeEvent via SafeMode#21 RuntimeEvent via Ethereum#21 RuntimeEvent via EVM#21 RuntimeEvent via BaseFee#21 RuntimeEvent via Drand#21 RuntimeEvent via Crowdloan
and 3 more...
Also See
Type Information
- Type ID
- 39
- Kind
- Variant
- Path
- pallet_subtensor::pallet::Event
- Runtime
- v393