-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
80 lines (80 loc) · 2.15 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: sOHM_v1
network: mainnet
source:
address: "0x31932E6e45012476ba3A3A4953cbA62AeE77Fbbe"
abi: sOHM_v1
startBlock: 12084973
endBlock: 12622596
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PriceSnapshot
abis:
- name: sOHM_v1
file: ./abis/sOHM_v1.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: LogRebase(indexed uint256,uint256)
handler: handleLogRebase
file: ./src/sOHM_v1.ts
- kind: ethereum
name: sOHM_v2
network: mainnet
source:
address: "0x04F2694C8fcee23e8Fd0dfEA1d4f5Bb8c352111F"
abi: sOHM_v2
startBlock: 12622596
endBlock: 13803969
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PriceSnapshot
abis:
- name: sOHM_v2
file: ./abis/sOHM_v2.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: LogRebase(indexed uint256,uint256,uint256)
handler: handleLogRebase
file: ./src/sOHM_v2.ts
- kind: ethereum
name: sOHM_v3
network: mainnet
source:
address: "0x04906695D6D12CF5459975d7C3C03356E4Ccd460"
abi: sOHM_v3
startBlock: 13803969
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PriceSnapshot
abis:
- name: sOHM_v3
file: ./abis/sOHM_v3.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: LogRebase(indexed uint256,uint256,uint256)
handler: handleLogRebase
file: ./src/sOHM_v3.ts