diff --git a/pallets/subtensor/src/coinbase/run_coinbase.rs b/pallets/subtensor/src/coinbase/run_coinbase.rs index c76e6941e3..d525a65638 100644 --- a/pallets/subtensor/src/coinbase/run_coinbase.rs +++ b/pallets/subtensor/src/coinbase/run_coinbase.rs @@ -513,6 +513,14 @@ impl Pallet { let owner: T::AccountId = Owner::::get(&hotkey); let destination = AutoStakeDestination::::get(&owner).unwrap_or(hotkey.clone()); + + Self::deposit_event(Event::::AutoStakeAdded { + netuid, + destination: destination.clone(), + hotkey, + owner: owner.clone(), + incentive, + }); Self::increase_stake_for_hotkey_and_coldkey_on_subnet( &destination, &owner, diff --git a/pallets/subtensor/src/epoch/run_epoch.rs b/pallets/subtensor/src/epoch/run_epoch.rs index 2f302c2a5e..7906064780 100644 --- a/pallets/subtensor/src/epoch/run_epoch.rs +++ b/pallets/subtensor/src/epoch/run_epoch.rs @@ -920,6 +920,11 @@ impl Pallet { } }); + Self::deposit_event(Event::IncentiveAlphaEmittedToMiners { + netuid, + emissions: server_emission.clone(), + }); + // Emission tuples ( hotkeys, server_emission, validator_emission ) hotkeys .into_iter() diff --git a/pallets/subtensor/src/macros/events.rs b/pallets/subtensor/src/macros/events.rs index 2fab5ecdb4..25bf93b730 100644 --- a/pallets/subtensor/src/macros/events.rs +++ b/pallets/subtensor/src/macros/events.rs @@ -413,5 +413,27 @@ mod events { /// - **netuid**: The network identifier. /// - **who**: The account ID of the user revealing the weights. TimelockedWeightsRevealed(NetUid, T::AccountId), + + /// Auto-staking hotkey received stake + AutoStakeAdded { + /// Subnet identifier. + netuid: NetUid, + /// Destination account that received the auto-staked funds. + destination: T::AccountId, + /// Hotkey account whose stake was auto-staked. + hotkey: T::AccountId, + /// Owner (coldkey) account associated with the hotkey. + owner: T::AccountId, + /// Amount of alpha auto-staked. + incentive: AlphaCurrency, + }, + + /// End-of-epoch miner incentive alpha by UID + IncentiveAlphaEmittedToMiners { + /// Subnet identifier. + netuid: NetUid, + /// UID-indexed array of miner incentive alpha; index equals UID. + emissions: Vec, + }, } }