Prathamesh Musale
ffc637f7a4
Part of [Generate watchers for sushiswap subgraphs deployed in graph-node ](https://www.notion.so/Generate-watchers-for-sushiswap-subgraphs-deployed-in-graph-node-b3f2e475373d4ab1887d9f8720bd5ae6) Co-authored-by: neeraj <neeraj.rtly@gmail.com> Reviewed-on: #5 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
39 lines
712 B
GraphQL
39 lines
712 B
GraphQL
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")
|
|
}
|