This call was removed in v127

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

propose

Call Removed v123 → v126, v127 → v127 (removed) #2

Proposes a call for Senate voting.

Click items to navigate. Pan and zoom to explore.

Used by: validators

The Big Picture

Initiates the governance process.

Use Cases

  • Submit governance proposals

From Chain Metadata

Add a new proposal to either be voted on or executed directly. Requires the sender to be member. `threshold` determines whether `proposal` is executed directly (`threshold < 2`) or put up for voting. ## Complexity `O(B + M + P1)` or `O(B + M + P2)` where: `B` is `proposal` size in bytes (length-fee-bounded) `M` is members-count (code- and governance-bounded) branching is influenced by `threshold` where: `P1` is proposal execution complexity (`threshold < 2`) `P2` is proposals-count (code-bounded) (`threshold >= 2`)

Input Parameters

#NameTypeDescription
0
proposal
RuntimeCall proposal (RuntimeCall)
1
length_bound
Compact<u32> Cptlength_bound (Compact<u32>) (SCALE compact -> integer)
2
duration
u32 duration (u32)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Origin is a Senate member

Effects

Events Emitted

Postconditions

  • Proposal stored

Side Effects

  • Emits Proposed

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 });

// Build propose call
const proposal = 0 as any /* RuntimeCall */;
const length_bound = 0;
const duration = 0;

const call = api.tx[stringCamelCase("Senate")][stringCamelCase("propose")](
  proposal,
  length_bound,
  duration
);

Version History

v123 block 720,235 2 args
v127 block 806,973 3 args
v127 Removed

Runtime Info

Pallet Index
10
Call Index
2
First Version
v123
Removed In
v127