SubtensorModule::Event

Variant 39 v411

pallet_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 (131)

IndexNameFieldsDocs
0NetworkAddeda new network is added.
1NetworkRemoveda network is removed.
2StakeAddedstake has been transferred from the a coldkey account onto the hotkey staking account.
3StakeRemovedstake has been removed from the hotkey staking account onto the coldkey account.
4StakeMovedstake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO).
5WeightsSeta caller successfully sets their weights on a subnetwork.
6NeuronRegistereda new neuron account has been registered to the chain.
7BulkNeuronsRegisteredmultiple uids have been concurrently registered.
8BulkBalancesSetFIXME: Not used yet
9MaxAllowedUidsSetmax allowed uids has been set for a subnetwork.
10MaxWeightLimitSetDEPRECATED: max weight limit updates are no longer supported.
11DifficultySetthe difficulty has been set for a subnet.
12AdjustmentIntervalSetthe adjustment interval is set for a subnet.
13RegistrationPerIntervalSetregistration per interval is set for a subnet.
14MaxRegistrationsPerBlockSetwe set max registrations per block.
15ActivityCutoffSetan activity cutoff is set for a subnet.
16RhoSetRho value is set.
17AlphaSigmoidSteepnessSetsteepness of the sigmoid used to compute alpha values.
18KappaSetKappa is set for a subnet.
19MinAllowedWeightSetminimum allowed weight is set for a subnet.
20ValidatorPruneLenSetthe validator pruning length has been set.
21ScalingLawPowerSetthe scaling law power has been set for a subnet.
22WeightsSetRateLimitSetweights set rate limit has been set for a subnet.
23ImmunityPeriodSetimmunity period is set for a subnet.
24BondsMovingAverageSetbonds moving average is set for a subnet.
25BondsPenaltySetbonds penalty is set for a subnet.
26BondsResetOnSetbonds reset is set for a subnet.
27MaxAllowedValidatorsSetsetting the max number of allowed validators on a subnet.
28AxonServedthe axon server information is added to the network.
29PrometheusServedthe prometheus server information is added to the network.
30DelegateAddeda hotkey has become a delegate.
31DefaultTakeSetthe default take is set.
32WeightsVersionKeySetweights version key is set for a network.
33MinDifficultySetsetting min difficulty on a network.
34MaxDifficultySetsetting max difficulty on a network.
35ServingRateLimitSetsetting the prometheus serving rate limit.
36BurnSetsetting burn on a network.
37MaxBurnSetsetting max burn on a network.
38MinBurnSetsetting min burn on a network.
39TxRateLimitSetsetting the transaction rate limit.
40TxDelegateTakeRateLimitSetsetting the delegate take transaction rate limit.
41TxChildKeyTakeRateLimitSetsetting the childkey take transaction rate limit.
42AdminFreezeWindowSetsetting the admin freeze window length (last N blocks of tempo)
43OwnerHyperparamRateLimitSetsetting the owner hyperparameter rate limit in epochs
44MinChildKeyTakeSetminimum childkey take set
45MinChildKeyTakePerSubnetSetsubnet-specific minimum childkey take set
46MaxChildKeyTakeSetmaximum childkey take set
47ChildKeyTakeSetchildkey take set
48Sudida sudo call is done.
49RegistrationAllowedregistration is allowed/disallowed for a subnet.
50PowRegistrationAllowedPOW registration is allowed/disallowed for a subnet.
51TempoSetsetting tempo on a network
52RAORecycledForRegistrationSetsetting the RAO recycled for registration.
53StakeThresholdSetmin stake is set for validators to set weights.
54AdjustmentAlphaSetsetting the adjustment alpha on a subnet.
55Faucetthe faucet it called on the test net.
56SubnetOwnerCutSetthe subnet owner cut is set.
57NetworkRateLimitSetthe network creation rate limit is set.
58NetworkImmunityPeriodSetthe network immunity period is set.
59StartCallDelaySetthe start call delay is set.
60NetworkMinLockCostSetthe network minimum locking cost is set.
61SubnetLimitSetthe maximum number of subnets is set
62NetworkLockCostReductionIntervalSetthe lock cost reduction is set
63TakeDecreasedthe take for a delegate is decreased.
64TakeIncreasedthe take for a delegate is increased.
65HotkeySwapped
coldkey: AccountId
old_hotkey: AccountId
new_hotkey: AccountId
the hotkey is swapped
66MaxDelegateTakeSetmaximum delegate take is set by sudo/admin transaction
67MinDelegateTakeSetminimum delegate take is set by sudo/admin transaction
68ColdkeySwapAnnounced
new_coldkey_hash: H256
A coldkey swap announcement has been made.
69ColdkeySwapResetA coldkey swap has been reset.
70ColdkeySwapped
old_coldkey: AccountId
new_coldkey: AccountId
A coldkey has been swapped.
71ColdkeySwapDisputed
coldkey: AccountId
A coldkey swap has been disputed.
72AllBalanceUnstakedAndTransferredToNewColdkey
current_coldkey: AccountId
new_coldkey: AccountId
total_balance: u64
All balance of a hotkey has been unstaked and transferred to a new coldkey
73ArbitrationPeriodExtended
coldkey: AccountId
The arbitration period has been extended
74SetChildrenScheduledSetting of children of a hotkey have been scheduled
75SetChildrenThe children of a hotkey have been set
76ChainIdentitySetThe identity of a coldkey has been set
77SubnetIdentitySetThe identity of a subnet has been set
78SubnetIdentityRemovedThe identity of a subnet has been removed
79DissolveNetworkScheduled
account: AccountId
netuid: u16
execution_block: u32
A dissolve network extrinsic scheduled.
80ColdkeySwapAnnouncementDelaySetThe coldkey swap announcement delay has been set.
81ColdkeySwapReannouncementDelaySetThe coldkey swap reannouncement delay has been set.
82DissolveNetworkScheduleDurationSetThe duration of dissolve network has been set
83CRV3WeightsCommittedCommit-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.
84WeightsCommittedWeights 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.
85WeightsRevealedWeights 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.
86WeightsBatchRevealedWeights 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.
87BatchWeightsCompletedA 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.
88BatchCompletedWithErrorsnoneA batch extrinsic completed but with some errors.
89BatchWeightItemFailedA weight set among a batch of weights failed. - **netuid**: The netuid of the batch item that failed. - **error**: The dispatch error emitted by the failed item.
90StakeTransferredStake has been transferred from one coldkey to another on the same subnet. Parameters: (origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)
91StakeSwappedStake has been swapped from one subnet to another for the same coldkey-hotkey pair. Parameters: (coldkey, hotkey, origin_netuid, destination_netuid, amount)
92TransferToggleEvent called when transfer is toggled on a subnet. Parameters: (netuid, bool)
93SubnetOwnerHotkeySetThe owner hotkey for a subnet has been set. Parameters: (netuid, new_hotkey)
94FirstEmissionBlockNumberSetFirstEmissionBlockNumber is set via start call extrinsic Parameters: netuid block number
95AlphaRecycledAlpha has been recycled, reducing AlphaOut on a subnet. Parameters: (coldkey, hotkey, amount, subnet_id)
96AlphaBurnedAlpha have been burned without reducing AlphaOut. Parameters: (coldkey, hotkey, amount, subnet_id)
97EvmKeyAssociated
netuid: u16
hotkey: AccountId
evm_key: H160
block_associated: u64
An EVM key has been associated with a hotkey.
98CRV3WeightsRevealedCRV3 Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights.
99CommitRevealPeriodsSetCommit-Reveal periods has been successfully set. - **netuid**: The network identifier. - **periods**: The number of epochs before the reveal.
100CommitRevealEnabledCommit-Reveal has been successfully toggled. - **netuid**: The network identifier. - **Enabled**: Is Commit-Reveal enabled.
101HotkeySwappedOnSubnet
coldkey: AccountId
old_hotkey: AccountId
new_hotkey: AccountId
netuid: u16
the hotkey is swapped
102SubnetLeaseCreated
beneficiary: AccountId
lease_id: u32
netuid: u16
end_block: Option
A subnet lease has been created.
103SubnetLeaseTerminated
beneficiary: AccountId
netuid: u16
A subnet lease has been terminated.
104SymbolUpdated
netuid: u16
symbol: Vec<u8>
The symbol for a subnet has been updated.
105CommitRevealVersionSetCommit Reveal Weights version has been updated. - **version**: The required version.
106TimelockedWeightsCommittedTimelocked 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.
107TimelockedWeightsRevealedTimelocked Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights.
108AutoStakeAdded
netuid: u16
destination: AccountId
hotkey: AccountId
owner: AccountId
incentive: u64
Auto-staking hotkey received stake
109IncentiveAlphaEmittedToMiners
netuid: u16
emissions: Vec<u64>
End-of-epoch miner incentive alpha by UID
110MinAllowedUidsSetThe minimum allowed UIDs for a subnet have been set.
111AutoStakeDestinationSet
coldkey: AccountId
netuid: u16
hotkey: AccountId
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.
112MinNonImmuneUidsSetThe minimum allowed non-Immune UIDs has been set.
113RootClaimed
coldkey: AccountId
Root emissions have been claimed for a coldkey on all subnets and hotkeys. Parameters: (coldkey)
114RootClaimTypeSet
coldkey: AccountId
root_claim_type: RootClaimTypeEnum
Root claim type for a coldkey has been set. Parameters: (coldkey, u8)
115VotingPowerTrackingEnabled
netuid: u16
Voting power tracking has been enabled for a subnet.
116VotingPowerTrackingDisableScheduled
netuid: u16
disable_at_block: u64
Voting power tracking has been scheduled for disabling. Tracking will continue until disable_at_block, then stop and clear entries.
117VotingPowerTrackingDisabled
netuid: u16
Voting power tracking has been fully disabled and entries cleared.
118VotingPowerEmaAlphaSet
netuid: u16
alpha: u64
Voting power EMA alpha has been set for a subnet.
119SubnetLeaseDividendsDistributed
lease_id: u32
contributor: AccountId
alpha: u64
Subnet lease dividends have been distributed.
120AddStakeBurn
netuid: u16
hotkey: AccountId
amount: u64
alpha: u64
"Add stake and burn" event: alpha token was purchased and burned.
121ColdkeySwapClearedA coldkey swap announcement has been cleared.
122TransactionFeePaidWithAlpha
netuid: u16
alpha_fee: u64
tao_amount: u64
Transaction fee was paid in Alpha. Emitted in addition to `TransactionFeePaid` when the fee payment path is Alpha. `alpha_fee` is the exact Alpha amount deducted.
123BurnHalfLifeSet
netuid: u16
burn_half_life: u16
Burn half-life set for neuron registration.
124BurnIncreaseMultSet
netuid: u16
burn_increase_mult: FixedU128
Burn increase multiplier set for neuron registration.
125AutoParentDelegationEnabledSet
hotkey: AccountId
enabled: bool
A root validator toggled the "auto parent delegation" flag.
126StakeLocked
coldkey: AccountId
hotkey: AccountId
netuid: u16
amount: u64
Stake has been locked to a hotkey on a subnet.
127StakeUnlocked
coldkey: AccountId
hotkey: AccountId
netuid: u16
amount: u64
Stake has been unlocked from a hotkey on a subnet.
128LockMoved
coldkey: AccountId
origin_hotkey: AccountId
destination_hotkey: AccountId
netuid: u16
Stake has been unlocked from a hotkey on a subnet.
129SubnetOwnerChanged
netuid: u16
old_coldkey: AccountId
new_coldkey: AccountId
Subnet ownership was reassigned by lock conviction.
130PerpetualLockUpdated
coldkey: AccountId
netuid: u16
enabled: bool
A coldkey's perpetual lock flag was updated.

SCALE Encoding

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

Examples

NetworkAdded = NetworkAdded(u16, u16)
0x00<field0><field1>
00 Variant index 0 = NetworkAdded
field 0 field0: u16
field 1 field1: u16
NetworkRemoved = NetworkRemoved(u16)
0x01<field0>
01 Variant index 1 = NetworkRemoved
field 0 field0: u16
StakeAdded = StakeAdded(AccountId, AccountId, u64, u64, u16, u64)
0x02<field0><field1><field2><field3><field4><field5>
02 Variant index 2 = StakeAdded
field 0 field0: AccountId
field 1 field1: AccountId
field 2 field2: u64
field 3 field3: u64
field 4 field4: u16
field 5 field5: u64

Code 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)

and 3 more...

Also See

Type Information

Type ID
39
Kind
Variant
Path
pallet_subtensor::pallet::Event
Runtime
v411