Yuma3EnableToggled

Event v273 → current #1

Emitted when Yuma3 consensus is enabled or disabled for a subnet .

View events on chain
Useful for: validatorssubnet ownersanalytics

The Big Picture

Yuma3 is an improved consensus mechanism with better security and fairness properties. This event tracks which subnets have upgraded to Yuma3, important for validators and analytics platforms tracking consensus evolution.

Use Cases

  • Monitor subnet consensus upgrades
  • Track which subnets are using Yuma3
  • Alert validators to consensus changes on their subnets

How to Use This Event

  • Subscribe to track subnet consensus upgrades
  • Index to know which subnets use which consensus version

From Chain Metadata

Event emitted when the Yuma3 enable is toggled.

Triggers

Preconditions

  • Caller is root or subnet owner
  • Subnet exists

Effects

Storage Modified

Postconditions

  • Yuma3On storage updated for the subnet
  • Consensus mechanism version changed for the subnet

Side Effects

  • May affect validator/miner reward calculations
  • Consensus behavior changes for the subnet

Event Data

#NameTypeDescription
0
netuid
u16 Subnet ID where Yuma3 was toggled
1
enabled
bool Whether Yuma3 consensus is now enabled (true) or disabled (false)

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 Yuma3EnableToggled events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("AdminUtils") &&
      event.method === "Yuma3EnableToggled"
    )
    .forEach(({ event }) => {
      console.log("Yuma3EnableToggled:", event.data.toHuman());
    });
});

Runtime Info

View Source
Pallet Index
19
Event Index
1
First Version
v273
Current Version
v393