2023-08-15 17:41:51 +00:00
|
|
|
import gql from 'graphql-tag'
|
2023-08-29 21:05:09 +00:00
|
|
|
import { ITEM_FULL_FIELDS } from './items'
|
2023-08-15 17:41:51 +00: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 21:05:09 +00:00
|
|
|
${ITEM_FULL_FIELDS}
|
2023-08-30 00:13:21 +00:00
|
|
|
query meRewards($when: [String!]) {
|
2023-08-15 17:41:51 +00:00
|
|
|
rewards(when: $when) {
|
|
|
|
total
|
|
|
|
time
|
|
|
|
sources {
|
|
|
|
name
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
meRewards(when: $when) {
|
|
|
|
total
|
|
|
|
rewards {
|
|
|
|
type
|
|
|
|
rank
|
|
|
|
sats
|
2023-08-29 21:05:09 +00:00
|
|
|
item {
|
|
|
|
...ItemFullFields
|
|
|
|
text
|
|
|
|
}
|
2023-08-15 17:41:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}`
|