vega-frontend-monorepo/apps/trading/components/rewards-container/Rewards.graphql

183 lines
3.2 KiB
GraphQL
Raw Normal View History

2023-11-15 21:46:19 +00:00
query RewardsPage($partyId: ID!) {
party(id: $partyId) {
id
vestingStats {
rewardBonusMultiplier
quantumBalance
epochSeq
2023-11-15 21:46:19 +00:00
}
activityStreak {
activeFor
isActive
inactiveFor
2023-11-15 21:46:19 +00:00
rewardDistributionMultiplier
rewardVestingMultiplier
epoch
tradedVolume
openVolume
2023-11-15 21:46:19 +00:00
}
vestingBalancesSummary {
epoch
vestingBalances {
asset {
id
symbol
decimals
quantum
}
balance
}
lockedBalances {
asset {
id
symbol
decimals
quantum
}
balance
untilEpoch
}
}
}
}
query ActiveRewards(
$isReward: Boolean
$partyId: ID
$direction: TransferDirection
$pagination: Pagination
) {
transfersConnection(
partyId: $partyId
isReward: $isReward
direction: $direction
pagination: $pagination
) {
edges {
node {
transfer {
amount
id
from
fromAccountType
to
toAccountType
asset {
id
symbol
decimals
name
quantum
status
}
reference
status
timestamp
kind {
... on RecurringTransfer {
startEpoch
endEpoch
dispatchStrategy {
dispatchMetric
dispatchMetricAssetId
marketIdsInScope
entityScope
individualScope
teamScope
nTopPerformers
stakingRequirement
notionalTimeWeightedAveragePositionRequirement
windowLength
lockPeriod
distributionStrategy
rankTable {
startRank
shareRatio
}
}
}
}
reason
}
fees {
transferId
amount
epoch
}
}
}
}
}
2023-11-15 21:46:19 +00:00
query RewardsHistory(
$partyId: ID!
$epochRewardSummariesPagination: Pagination
$partyRewardsPagination: Pagination
$fromEpoch: Int
$toEpoch: Int
) {
epochRewardSummaries(
filter: { fromEpoch: $fromEpoch, toEpoch: $toEpoch }
pagination: $epochRewardSummariesPagination
) {
edges {
node {
epoch
assetId
amount
rewardType
}
}
}
party(id: $partyId) {
id
rewardsConnection(
fromEpoch: $fromEpoch
toEpoch: $toEpoch
pagination: $partyRewardsPagination
) {
edges {
node {
amount
percentageOfTotal
receivedAt
rewardType
asset {
id
symbol
name
decimals
}
party {
id
}
epoch {
id
}
}
}
}
}
}
query RewardsEpoch {
epoch {
id
}
}
query MarketForRewards($marketId: ID!) {
market(id: $marketId) {
tradableInstrument {
instrument {
id
name
code
metadata {
tags
}
}
}
}
}