Open stephanie-olp opened 2 years ago
We have some data available (here) with the following query:
query DemocracyProposalsQuery {
substrateDemocracyProposals(limit: 10, where: {network_eq: polkadot}) {
id
rootAccount
proposalIndex
date
blockNumber
amount
account {
id
}
}
}
Notes on the things we can improve and missing data:
rootAccount
(which is the address hex string of the extrinsic's signer) and account
with an Id
which is the public address of the extrinsic's signer). In the context of a proposal this is the proposer.amount
with lockedAmount
or deposit
to make it a bit more explicit.method
, section
, meta
and args
) which helps to add more contextstatus
field (for example when the proposal moves to Referendum, was rejected, etc), we should also keep record of the dates the status was changed@geastwood FYI
Data that need to be indexed (can change) :
Right now we only have the ongoing democracy proposals. We would like to have all proposals, the ongoing, the one that passed but also the one that got canceled