VotingPowerTrackingDisableScheduled

Event v385 → v402, v411 → current Changed in v411 #116

Voting power tracking has been scheduled for disabling.

View events on chain

From Chain Metadata

Voting power tracking has been scheduled for disabling. Tracking will continue until disable_at_block, then stop and clear entries.

Event Data

#NameTypeDescription
0
netuid
u16 NetUidnetuid: Subnet ID (u16, 0-65535)
1
disable_at_block
u64 disable_at_block (u64) (RAO -> TAO (/ 10^9))

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Subscribe to VotingPowerTrackingDisableScheduled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.VotingPowerTrackingDisableScheduled.get(block.hash);
  for (const evt of events) {
    console.log("VotingPowerTrackingDisableScheduled:", evt.payload);
  }
});

Version History

v385 block 7,782,670 2 args
v411 block 8,283,784 2 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
116
First Version
v385
Current Version
v411