Keyan 0b0e36e3cb
Monthly rewards (#890)
* show placeholder for hidden stackers in top

* top rewardability views

* make territory revenue idependent job

* monthly rewards and leaderboard on rewards pages

* fix earn reschedule

* add query for rewards leaderboard

* reduce likelihood of rewards racing with views

* fix earn and refine values views
2024-03-01 10:28:55 -06:00

32 lines
522 B
JavaScript

import { gql } from 'graphql-tag'
export default gql`
extend type Query {
rewards(when: [String!]): [Rewards!]
meRewards(when: [String!]!): [MeRewards]
}
extend type Mutation {
donateToRewards(sats: Int!, hash: String, hmac: String): Int!
}
type Rewards {
total: Int!
time: Date!
sources: [NameValue!]!
leaderboard: UsersNullable
}
type Reward {
type: String
rank: Int
sats: Int!
item: Item
}
type MeRewards {
total: Int!
rewards: [Reward!]
}
`