vega-frontend-monorepo/apps/token/src/routes/staking/Staking.graphql

63 lines
976 B
GraphQL
Raw Normal View History

query Staking($partyId: ID!) {
party(id: $partyId) {
id
stake {
currentStakeAvailable
currentStakeAvailableFormatted @client
}
delegations {
amount
amountFormatted @client
epoch
node {
id
}
}
}
epoch {
id
timestamps {
start
end
expiry
}
}
nodes {
id
name
pubkey
infoUrl
location
ethereumAddress
stakedByOperator
stakedByDelegates
stakedTotal
pendingStake
stakedByOperatorFormatted @client
stakedByDelegatesFormatted @client
stakedTotalFormatted @client
pendingStakeFormatted @client
epochData {
total
offline
online
}
status
rankingScore {
rankingScore
stakeScore
performanceScore
votingPower
stakeScore
}
}
nodeData {
stakedTotal
stakedTotalFormatted @client
totalNodes
inactiveNodes
validatingNodes
uptime
}
}