This event was removed in v127

This event is no longer emitted in the current runtime. Existed from v123 to v127. Shown here for historical reference.

Proposed

Event Removed v123 → v127 (removed) #0

A Senate member has submitted a new proposal.

Useful for: validatorsanalytics

The Big Picture

Initiates the governance process.

Use Cases

  • Track governance activity

From Chain Metadata

A motion (given hash) has been proposed (by given account) with a threshold (given `MemberCount`).

Triggers

Emitted by

Preconditions

  • Origin is a Senate member

Effects

Postconditions

  • Proposal stored

Event Data

#NameTypeDescription
0
account
AccountId Account account address (hex -> SS58)
1
proposal_index
u32 proposal_index (u32)
2
proposal_hash
H256 proposal_hash (H256)
3
threshold
u32 threshold (u32)

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

Runtime Info

Pallet Index
10
Event Index
0
First Version
v123
Removed In
v127