BondsResetToggled
Event v290 → current #2Emitted when bonds reset is enabled or disabled for a subnet .
View events on chainUseful for: validatorssubnet ownersanalytics
The Big Picture
Bonds track validator-miner relationships and can accumulate over time, creating sticky relationships. Enabling bonds reset allows fresh evaluation by periodically clearing bonds. This event tracks when subnets enable or disable this feature.
Use Cases
- Monitor subnet configuration changes
- Track which subnets reset bonds periodically
- Alert validators to changes in bond mechanics
How to Use This Event
- → Subscribe to track subnet parameter changes
- → Index to understand subnet incentive configurations
From Chain Metadata
Event emitted when Bonds Reset is toggled.
Triggers
Emitted by
Preconditions
- Caller is root or subnet owner
- Subnet exists
Effects
Storage Modified
Postconditions
- BondsResetOn storage updated for the subnet
- Bonds may be periodically reset if enabled
Side Effects
- May affect validator-miner relationship dynamics
- Changes incentive structure for the subnet
Event Data
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Subscribe to BondsResetToggled events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("AdminUtils") &&
event.method === "BondsResetToggled"
)
.forEach(({ event }) => {
console.log("BondsResetToggled:", event.data.toHuman());
});
});Runtime Info
View Source- Pallet Index
- 19
- Event Index
- 2
- First Version
- v290
- Current Version
- v393