sushiswap-watcher-ts/packages/route-processor-watcher/subgraph-build/schema.graphql

39 lines
712 B
GraphQL
Raw Normal View History

2024-06-06 12:54:45 +00:00
type RouteProcessor @entity {
# route processor address
id: ID!
# amount of routes processed
routeCount: BigInt!
# amount of users
userCount: BigInt!
}
type Route @entity {
# tx hash - tx index
id: ID!
# from address
from: Bytes!
# to address
to: Bytes!
# tokenIn address
tokenIn: Bytes!
# tokenOut address
tokenOut: Bytes!
# amount of tokenIn
amountIn: BigInt!
# min amount of tokenOut
amountOutMin: BigInt!
# amount of tokenOut
amountOut: BigInt!
# timestamp
timestamp: BigInt!
}
type User @entity {
# user address
id: ID!
# amount of routes processed
routeCount: BigInt!
# list of routes processed
#routes: [Route!]! @derivedFrom(field: "from")
}