2023-08-15 12:41:51 -05:00
|
|
|
import gql from 'graphql-tag'
|
2023-08-29 16:05:09 -05:00
|
|
|
import { ITEM_FULL_FIELDS } from './items'
|
2023-08-15 12:41:51 -05:00
|
|
|
|
|
|
|
export const REWARDS = gql`
|
|
|
|
query rewards($when: String) {
|
|
|
|
rewards(when: $when) {
|
|
|
|
total
|
|
|
|
time
|
|
|
|
sources {
|
|
|
|
name
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`
|
|
|
|
|
|
|
|
export const ME_REWARDS = gql`
|
2023-08-29 16:05:09 -05:00
|
|
|
${ITEM_FULL_FIELDS}
|
2023-08-29 19:13:21 -05:00
|
|
|
query meRewards($when: [String!]) {
|
2023-08-15 12:41:51 -05:00
|
|
|
rewards(when: $when) {
|
|
|
|
total
|
|
|
|
time
|
|
|
|
sources {
|
|
|
|
name
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
meRewards(when: $when) {
|
|
|
|
total
|
|
|
|
rewards {
|
|
|
|
type
|
|
|
|
rank
|
|
|
|
sats
|
2023-08-29 16:05:09 -05:00
|
|
|
item {
|
|
|
|
...ItemFullFields
|
|
|
|
text
|
|
|
|
}
|
2023-08-15 12:41:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}`
|