mirror of
https://github.com/luxfi/uni-v4-subgraph.git
synced 2026-10-30 15:14:12 +00:00
70 lines
2.2 KiB
YAML
70 lines
2.2 KiB
YAML
specVersion: 0.0.4
|
|
description: Uniswap is a decentralized protocol for automated token exchange on Ethereum.
|
|
repository: https://github.com/Uniswap/v4-subgraph
|
|
schema:
|
|
file: ./schema.graphql
|
|
features:
|
|
- nonFatalErrors
|
|
- grafting
|
|
dataSources:
|
|
- source:
|
|
abi: PoolManager
|
|
address: "0x0000000000000000000000000000000000009010"
|
|
startBlock: 1
|
|
name: PoolManager
|
|
network: liquidity
|
|
kind: ethereum/contract
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
file: ./src/mappings/poolManager.mapping.ts
|
|
entities:
|
|
- Pool
|
|
- Token
|
|
abis:
|
|
- name: ERC20
|
|
file: ./abis/ERC20.json
|
|
- name: ERC20SymbolBytes
|
|
file: ./abis/ERC20SymbolBytes.json
|
|
- name: ERC20NameBytes
|
|
file: ./abis/ERC20NameBytes.json
|
|
- name: PoolManager
|
|
file: ./abis/PoolManager.json
|
|
- name: AggregatorHook
|
|
file: ./abis/AggregatorHook.json
|
|
eventHandlers:
|
|
- event: Initialize(indexed bytes32,indexed address,indexed
|
|
address,uint24,int24,address,uint160,int24)
|
|
handler: handleInitialize
|
|
- event: ModifyLiquidity(indexed bytes32,indexed
|
|
address,int24,int24,int256,bytes32)
|
|
handler: handleModifyLiquidity
|
|
- event: Swap(indexed bytes32,indexed
|
|
address,int128,int128,uint160,uint128,int24,uint24)
|
|
handler: handleSwap
|
|
- source:
|
|
abi: PositionManager
|
|
address: "0x0000000000000000000000000000000000009011"
|
|
startBlock: 1
|
|
name: PositionManager
|
|
network: liquidity
|
|
kind: ethereum/contract
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
file: ./src/mappings/positionManager.mapping.ts
|
|
entities:
|
|
- Position
|
|
abis:
|
|
- name: PositionManager
|
|
file: ./abis/PositionManager.json
|
|
eventHandlers:
|
|
- event: Subscription(indexed uint256,indexed address)
|
|
handler: handleSubscription
|
|
- event: Unsubscription(indexed uint256,indexed address)
|
|
handler: handleUnsubscription
|
|
- event: Transfer(indexed address,indexed address,indexed uint256)
|
|
handler: handleTransfer
|