Tracks governance proposals on Cosmos based networks.
Votes
Deposits
GovernanceParameter
Proposals
SoftwareUpgrade
ParameterChange
CommunityPoolSpend
ClientUpdate
- API Key: https://thegraph.com/studio/apikeys/
- Base URL: https://gateway.thegraph.com/api
- Query URL format:
{base_url}
/api/{api-key}
/subgraphs/id/{subgraph_id}
Chain | Subgraph ID |
---|---|
Injective | SUBGRAPH_ID |
CosmosHub | SUBGRAPH_ID |
Osmosis | SUBGRAPH_ID |
- Osmosis
- Cosmos Hub
- Injective
https://docs.cosmos.network/v0.46/modules/gov/
The governance process is divided in a few steps that are outlined below:
- Proposal submission: Proposal is submitted to the blockchain with a deposit.
- Vote: Once deposit reaches a certain value (MinDeposit), proposal is confirmed and vote opens. Bonded Atom holders can then send TxGovVote transactions to vote on the proposal.
- Execution: After a period of time, the votes are tallied and depending on the result, the messages in the proposal will be executed.
SoftwareUpgradeProposals
query SoftwareUpgradeProposals{
softwareUpgradeProposals(orderBy:planHeight) {
id
planName
planInfo
planHeight
proposal{
id
proposer
transaction {
id
}
}
}
}
Proposals
query Proposals{
proposals(orderBy:block__number) {
id
block{
number
date
}
proposer
title
summary,
}
}
Deposits grouped by Proposals
query DepositsGroupedByProposals {
proposals(orderBy:block__number) {
id
title
deposits{
depositor
denom
amount
block{
number
date
}
}
}
}