-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
121 lines (121 loc) · 3.8 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
specVersion: 0.0.2
description: Tracks value of Visor Finance Hypervisors
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UniswapV3HypervisorFactory
network: mainnet
source:
address: "0xd12fa3E3B60CFb96a735aB57a071F0f324860929"
abi: UniswapV3HypervisorFactory
startBlock: 12767944
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/hypervisorFactory.ts
entities:
- Hypervisor
- Pool
abis:
- name: UniswapV3HypervisorFactory
file: ./abis/UniswapV3HypervisorFactory.json
- name: UniswapV3Hypervisor
file: ./abis/UniswapV3Hypervisor.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: UniswapV3Pool
file: ./abis/UniswapV3Pool.json
eventHandlers:
- event: HypervisorCreated(address,address,uint24,address,uint256)
handler: handleHypervisorCreated
- kind: ethereum/contract
name: UniswapV3HypervisorFactoryBeta2
network: mainnet
source:
address: "0xC878c38F0Df509a833D10De892e1Cf7D361e3A67"
abi: UniswapV3HypervisorFactory
startBlock: 12615883
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/hypervisorFactory.ts
entities:
- Hypervisor
- Pool
abis:
- name: UniswapV3HypervisorFactory
file: ./abis/UniswapV3HypervisorFactory.json
- name: UniswapV3Hypervisor
file: ./abis/UniswapV3Hypervisor.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: UniswapV3Pool
file: ./abis/UniswapV3Pool.json
eventHandlers:
- event: HypervisorCreated(address,address,uint24,address,uint256)
handler: handleHypervisorCreated
- kind: ethereum/contract
name: UniswapV3HypervisorFactoryBeta1
network: mainnet
source:
address: "0x0AC51Fb63D1915a77aB7a7Bb53B031407584dD4C"
abi: UniswapV3HypervisorFactory
startBlock: 12590273
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/hypervisorFactory.ts
entities:
- Hypervisor
- Pool
abis:
- name: UniswapV3HypervisorFactory
file: ./abis/UniswapV3HypervisorFactory.json
- name: UniswapV3Hypervisor
file: ./abis/UniswapV3Hypervisor.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: UniswapV3Pool
file: ./abis/UniswapV3Pool.json
eventHandlers:
- event: HypervisorCreated(address,address,uint24,address,uint256)
handler: handleHypervisorCreated
templates:
- name: UniswapV3Pool
kind: ethereum/contract
network: mainnet
source:
abi: UniswapV3Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Hypervisor
- HypervisorDayData
- Pool
abis:
- name: UniswapV3Hypervisor
file: ./abis/UniswapV3Hypervisor.json
- name: UniswapV3Pool
file: ./abis/UniswapV3Pool.json
eventHandlers:
- event: Swap(indexed address,indexed address,int256,int256,uint160,uint128,int24)
handler: handleSwap