import * as Types from '../base-types'; import gql from 'graphql-tag'; export const GetAllocationRewardsByDeploymentId = gql` query GetAllocationRewardsByDeploymentId($deploymentId: String!) { indexerAllocationRewards(filter: { deploymentId: { equalTo: $deploymentId } }) { aggregates { sum { reward } } } } `; export const GetAllocationRewardsByDeploymentIdAndIndexerId = gql` query GetAllocationRewardsByDeploymentIdAndIndexerId($indexerId: String!) { indexerAllocationRewards(filter: { indexerId: { equalTo: $indexerId } }) { groupedAggregates(groupBy: DEPLOYMENT_ID) { sum { reward } keys } } } `;