Call Workflow
This diagram shows the call execution flow: starting with update_end, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: EndUpdated and modifies storage: Crowdloans, and finally post-dispatch where ExtrinsicSuccess is emitted and fees are settled.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Click items to navigate. Pan and zoom to explore.
Used by: developerssubnet owners
The Big Picture
Adjust timeline to match conditions.
Use Cases
- Extend or shorten campaign
From Chain Metadata
Update the end block of a non-finalized crowdloan. The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan. Parameters: `crowdloan_id`: The id of the crowdloan to update the end block of. `new_end`: The new end block.
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | crowdloan_id | Compact<u32> Cpt CrowdloanId | crowdloan_id: Crowdloan identifier (SCALE compact -> integer) |
| 1 | new_end | Compact<u32> Cpt BlockNumberFor<T> | new_end: Block number (SCALE compact -> integer) |
Permissions
Origin
Signed
Required Role
Permission data inferred from metadata. May be incomplete.
Requirements
- Crowdloan not finalized
- Signer is creator
- New end in future
Effects
Events Emitted
Storage Modified
Postconditions
- End block updated
- EndUpdated event emitted
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);
// Build update_end call (typed, named args)
const crowdloan_id = 0;
const new_end = 0;
const tx = api.tx.Crowdloan.update_end({
crowdloan_id,
new_end,
});Runtime Info
- Pallet Index
- 27
- Call Index
- 7
- First Version
- v273
- Current Version
- v411