sushiswap-watcher-ts/packages/sushiswap-watcher/subgraph-build/subgraph.yaml
Nabarun 31dd608608 Add stack for sushiswap subgraph watcher (#11)
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#11
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-06-19 07:47:10 +00:00

70 lines
2.2 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/abi/Uniswap/UniswapV2Factory.json
- name: Pair
file: Factory/abi/Uniswap/UniswapV2Pair.json
- name: SushiToken
file: Factory/abi/SUSHI/SushiToken.json
- name: ERC20
file: Factory/abi/ERC20/ERC20.json
- name: SymbolBytes32
file: Factory/abi/ERC20/SymbolBytes32.json
- name: NameBytes32
file: Factory/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/abi/Uniswap/UniswapV2Factory.json
- name: Pair
file: Pair/abi/Uniswap/UniswapV2Pair.json
- name: ERC20
file: Pair/abi/ERC20/ERC20.json
- name: SymbolBytes32
file: Pair/abi/ERC20/SymbolBytes32.json
- name: NameBytes32
file: Pair/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