Prathamesh Musale
45e4fca670
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: cerc-io/sushiswap-watcher-ts#3 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
30 lines
621 B
GraphQL
30 lines
621 B
GraphQL
query events($blockHash: String!, $contractAddress: String!, $name: String){
|
|
events(blockHash: $blockHash, contractAddress: $contractAddress, name: $name){
|
|
block{
|
|
cid
|
|
hash
|
|
number
|
|
timestamp
|
|
parentHash
|
|
}
|
|
tx{
|
|
hash
|
|
index
|
|
from
|
|
to
|
|
}
|
|
contract
|
|
eventIndex
|
|
event{
|
|
... on PairCreatedEvent {
|
|
token0
|
|
token1
|
|
pair
|
|
null
|
|
}
|
|
}
|
|
proof{
|
|
data
|
|
}
|
|
}
|
|
} |