vega-frontend-monorepo/apps/trading/lib/hooks/Games.graphql

41 lines
559 B
GraphQL

fragment TeamEntity on TeamGameEntity {
rank
volume
rewardMetric
rewardEarned
totalRewardsEarned
team {
teamId
membersParticipating {
individual
rank
}
}
}
fragment GameFields on Game {
id
epoch
numberOfParticipants
rewardAssetId
entities {
... on TeamGameEntity {
...TeamEntity
}
}
}
query Games($epochFrom: Int, $teamId: ID) {
games(
epochFrom: $epochFrom
teamId: $teamId
entityScope: ENTITY_SCOPE_TEAMS
) {
edges {
node {
...GameFields
}
}
}
}