70 lines
2.2 KiB
YAML
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
|