stacker.news/api/typeDefs/rewards.js

17 lines
262 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
2022-12-08 00:04:02 +00:00
export default gql`
extend type Query {
expectedRewards: ExpectedRewards!
}
extend type Mutation {
donateToRewards(sats: Int!): Int!
}
type ExpectedRewards {
total: Int!
sources: [NameValue!]!
}
`