SubtensorModule::Event

Variant 39 v393

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 (121)

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
45MaxChildKeyTakeSetmaximum childkey take set
46ChildKeyTakeSetchildkey take set
47Sudida sudo call is done.
48RegistrationAllowedregistration is allowed/disallowed for a subnet.
49PowRegistrationAllowedPOW registration is allowed/disallowed for a subnet.
50TempoSetsetting tempo on a network
51RAORecycledForRegistrationSetsetting the RAO recycled for registration.
52StakeThresholdSetmin stake is set for validators to set weights.
53AdjustmentAlphaSetsetting the adjustment alpha on a subnet.
54Faucetthe faucet it called on the test net.
55SubnetOwnerCutSetthe subnet owner cut is set.
56NetworkRateLimitSetthe network creation rate limit is set.
57NetworkImmunityPeriodSetthe network immunity period is set.
58StartCallDelaySetthe start call delay is set.
59NetworkMinLockCostSetthe network minimum locking cost is set.
60SubnetLimitSetthe maximum number of subnets is set
61NetworkLockCostReductionIntervalSetthe lock cost reduction is set
62TakeDecreasedthe take for a delegate is decreased.
63TakeIncreasedthe take for a delegate is increased.
64HotkeySwapped
coldkey: AccountId
old_hotkey: AccountId
new_hotkey: AccountId
the hotkey is swapped
65MaxDelegateTakeSetmaximum delegate take is set by sudo/admin transaction
66MinDelegateTakeSetminimum delegate take is set by sudo/admin transaction
67ColdkeySwapAnnounced
new_coldkey_hash: H256
A coldkey swap announcement has been made.
68ColdkeySwapResetA coldkey swap has been reset.
69ColdkeySwapped
old_coldkey: AccountId
new_coldkey: AccountId
A coldkey has been swapped.
70ColdkeySwapDisputed
coldkey: AccountId
A coldkey swap has been disputed.
71AllBalanceUnstakedAndTransferredToNewColdkey
current_coldkey: AccountId
new_coldkey: AccountId
total_balance: u64
All balance of a hotkey has been unstaked and transferred to a new coldkey
72ArbitrationPeriodExtended
coldkey: AccountId
The arbitration period has been extended
73SetChildrenScheduledSetting of children of a hotkey have been scheduled
74SetChildrenThe children of a hotkey have been set
75ChainIdentitySetThe identity of a coldkey has been set
76SubnetIdentitySetThe identity of a subnet has been set
77SubnetIdentityRemovedThe identity of a subnet has been removed
78DissolveNetworkScheduled
account: AccountId
netuid: u16
execution_block: u32
A dissolve network extrinsic scheduled.
79ColdkeySwapAnnouncementDelaySetThe coldkey swap announcement delay has been set.
80ColdkeySwapReannouncementDelaySetThe coldkey swap reannouncement delay has been set.
81DissolveNetworkScheduleDurationSetThe duration of dissolve network has been set
82CRV3WeightsCommittedCommit-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.
83WeightsCommittedWeights 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.
84WeightsRevealedWeights 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.
85WeightsBatchRevealedWeights 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.
86BatchWeightsCompletedA 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.
87BatchCompletedWithErrorsnoneA batch extrinsic completed but with some errors.
88BatchWeightItemFailedA weight set among a batch of weights failed. - **error**: The dispatch error emitted by the failed item.
89StakeTransferredStake has been transferred from one coldkey to another on the same subnet. Parameters: (origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)
90StakeSwappedStake has been swapped from one subnet to another for the same coldkey-hotkey pair. Parameters: (coldkey, hotkey, origin_netuid, destination_netuid, amount)
91TransferToggleEvent called when transfer is toggled on a subnet. Parameters: (netuid, bool)
92SubnetOwnerHotkeySetThe owner hotkey for a subnet has been set. Parameters: (netuid, new_hotkey)
93FirstEmissionBlockNumberSetFirstEmissionBlockNumber is set via start call extrinsic Parameters: netuid block number
94AlphaRecycledAlpha has been recycled, reducing AlphaOut on a subnet. Parameters: (coldkey, hotkey, amount, subnet_id)
95AlphaBurnedAlpha have been burned without reducing AlphaOut. Parameters: (coldkey, hotkey, amount, subnet_id)
96EvmKeyAssociated
netuid: u16
hotkey: AccountId
evm_key: H160
block_associated: u64
An EVM key has been associated with a hotkey.
97CRV3WeightsRevealedCRV3 Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights.
98CommitRevealPeriodsSetCommit-Reveal periods has been successfully set. - **netuid**: The network identifier. - **periods**: The number of epochs before the reveal.
99CommitRevealEnabledCommit-Reveal has been successfully toggled. - **netuid**: The network identifier. - **Enabled**: Is Commit-Reveal enabled.
100HotkeySwappedOnSubnet
coldkey: AccountId
old_hotkey: AccountId
new_hotkey: AccountId
netuid: u16
the hotkey is swapped
101SubnetLeaseCreated
beneficiary: AccountId
lease_id: u32
netuid: u16
end_block: Option
A subnet lease has been created.
102SubnetLeaseTerminated
beneficiary: AccountId
netuid: u16
A subnet lease has been terminated.
103SymbolUpdated
netuid: u16
symbol: Vec<u8>
The symbol for a subnet has been updated.
104CommitRevealVersionSetCommit Reveal Weights version has been updated. - **version**: The required version.
105TimelockedWeightsCommittedTimelocked 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.
106TimelockedWeightsRevealedTimelocked Weights have been successfully revealed. - **netuid**: The network identifier. - **who**: The account ID of the user revealing the weights.
107AutoStakeAdded
netuid: u16
destination: AccountId
hotkey: AccountId
owner: AccountId
incentive: u64
Auto-staking hotkey received stake
108IncentiveAlphaEmittedToMiners
netuid: u16
emissions: Vec<u64>
End-of-epoch miner incentive alpha by UID
109MinAllowedUidsSetThe minimum allowed UIDs for a subnet have been set.
110AutoStakeDestinationSet
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.
111MinNonImmuneUidsSetThe minimum allowed non-Immune UIDs has been set.
112RootClaimed
coldkey: AccountId
Root emissions have been claimed for a coldkey on all subnets and hotkeys. Parameters: (coldkey)
113RootClaimTypeSet
coldkey: AccountId
root_claim_type: RootClaimTypeEnum
Root claim type for a coldkey has been set. Parameters: (coldkey, u8)
114VotingPowerTrackingEnabled
netuid: u16
Voting power tracking has been enabled for a subnet.
115VotingPowerTrackingDisableScheduled
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.
116VotingPowerTrackingDisabled
netuid: u16
Voting power tracking has been fully disabled and entries cleared.
117VotingPowerEmaAlphaSet
netuid: u16
alpha: u64
Voting power EMA alpha has been set for a subnet.
118SubnetLeaseDividendsDistributed
lease_id: u32
contributor: AccountId
alpha: u64
Subnet lease dividends have been distributed.
119AddStakeBurn
netuid: u16
hotkey: AccountId
amount: u64
alpha: u64
"Add stake and burn" event: alpha token was purchased and burned.
120ColdkeySwapClearedA 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 = 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
v393