mirror of
https://github.com/zoo-labs/uni-v3-subgraph.git
synced 2026-10-30 14:54:19 +00:00
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
specVersion: 0.0.4
|
|
description: Uniswap is a decentralized protocol for automated token exchange on Ethereum.
|
|
repository: https://github.com/luxfi/uniswap-v3-subgraph
|
|
schema:
|
|
file: ./schema.graphql
|
|
features:
|
|
- nonFatalErrors
|
|
- grafting
|
|
dataSources:
|
|
- kind: ethereum/contract
|
|
name: Factory
|
|
network: zoo
|
|
source:
|
|
address: "0x80bBc7C4C7a59C899D1B37BC14539A22D5830a84"
|
|
abi: Factory
|
|
startBlock: 1
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
file: ./src/mappings/factory.ts
|
|
entities:
|
|
- Pool
|
|
- Token
|
|
abis:
|
|
- name: Factory
|
|
file: ./abis/factory.json
|
|
- name: ERC20
|
|
file: ./abis/ERC20.json
|
|
- name: ERC20SymbolBytes
|
|
file: ./abis/ERC20SymbolBytes.json
|
|
- name: ERC20NameBytes
|
|
file: ./abis/ERC20NameBytes.json
|
|
- name: Pool
|
|
file: ./abis/pool.json
|
|
eventHandlers:
|
|
- event: PoolCreated(indexed address,indexed address,indexed uint24,int24,address)
|
|
handler: handlePoolCreated
|
|
templates:
|
|
- kind: ethereum/contract
|
|
name: Pool
|
|
network: zoo
|
|
source:
|
|
abi: Pool
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
file: ./src/mappings/pool/index.ts
|
|
entities:
|
|
- Pool
|
|
- Token
|
|
abis:
|
|
- name: Pool
|
|
file: ./abis/pool.json
|
|
- name: Factory
|
|
file: ./abis/factory.json
|
|
- name: ERC20
|
|
file: ./abis/ERC20.json
|
|
eventHandlers:
|
|
- event: Initialize(uint160,int24)
|
|
handler: handleInitialize
|
|
- event: Swap(indexed address,indexed address,int256,int256,uint160,uint128,int24)
|
|
handler: handleSwap
|
|
- event: Mint(address,indexed address,indexed int24,indexed
|
|
int24,uint128,uint256,uint256)
|
|
handler: handleMint
|
|
- event: Burn(indexed address,indexed int24,indexed int24,uint128,uint256,uint256)
|
|
handler: handleBurn
|
|
- event: Collect(indexed address,address,indexed int24,indexed
|
|
int24,uint128,uint128)
|
|
handler: handleCollect
|