Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New endpoint to query ongoing referenda from root and whitelisted caller and their timeline. #1431

Closed
IkerAlus opened this issue Apr 23, 2024 · 0 comments · Fixed by #1471
Closed
Labels
C0 - Relay Related to the Relay chain I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon

Comments

@IkerAlus
Copy link
Contributor

IkerAlus commented Apr 23, 2024

A new endpoint, potentially added as GET /pallets/onGoingReferenda to retrieve information of scheduled referenda of (potential) runtime upgrades and similar referenda created for root and whitelisted caller tracks of OpenGov. This information is currently served by referenda.referendumInfoFor: Option<PalletReferendaReferendumInfo> of the PJS API. The idea is to filter by track (0 and 1, for root and whitelisted caller respectively), and show clearly the relevant info regarding the timeline (in block numbers) of these ongoing referendas (enactment, submitted, deciding). Other information about the referenda may be added too.

Alternatives
At the moment, this info can be retrieved by the generic /pallets/{palletId}/storage but it is not straightforward and requires of specific knowledge to retrieve the relevant data.

More details
Check the runtime upgrade wiki page, in particular the second bullet point, for relevant info.

@IkerAlus IkerAlus added I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon C0 - Relay Related to the Relay chain labels Apr 23, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C0 - Relay Related to the Relay chain I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant