sushiswap-watcher-ts/packages/sushiswap-watcher/subgraph-build/subgraph.yaml
Prathamesh Musale a5d88324df Generate watcher for sushiswap subgraph (#4)
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#4
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-12 04:49:33 +00:00

70 lines
2.3 KiB
YAML

specVersion: 0.0.6
description: Sushiswap
repository: https://github.com/sushiswap/sushiswap-subgraph
schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: mainnet
source:
address: "0x9b3336186a38e1b6c21955d112dbb0343ee061ee"
abi: Factory
startBlock: 3328632
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: Factory/Factory.wasm
entities: []
abis:
- name: Factory
file: Factory/node_modules/abi/Uniswap/UniswapV2Factory.json
- name: Pair
file: Factory/node_modules/abi/Uniswap/UniswapV2Pair.json
- name: SushiToken
file: Factory/node_modules/abi/SUSHI/SushiToken.json
- name: ERC20
file: Factory/node_modules/abi/ERC20/ERC20.json
- name: SymbolBytes32
file: Factory/node_modules/abi/ERC20/SymbolBytes32.json
- name: NameBytes32
file: Factory/node_modules/abi/ERC20/NameBytes32.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: onPairCreated
templates:
- kind: ethereum/contract
name: Pair
network: mainnet
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: templates/Pair/Pair.wasm
entities: []
abis:
- name: Factory
file: Pair/node_modules/abi/Uniswap/UniswapV2Factory.json
- name: Pair
file: Pair/node_modules/abi/Uniswap/UniswapV2Pair.json
- name: ERC20
file: Pair/node_modules/abi/ERC20/ERC20.json
- name: SymbolBytes32
file: Pair/node_modules/abi/ERC20/SymbolBytes32.json
- name: NameBytes32
file: Pair/node_modules/abi/ERC20/NameBytes32.json
eventHandlers:
- event: Sync(uint112,uint112)
handler: onSync
- event: Transfer(indexed address,indexed address,uint256)
handler: onTransfer
- event: Mint(indexed address,uint256,uint256)
handler: onMint
- event: Burn(indexed address,uint256,uint256,indexed address)
handler: onBurn
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: onSwap