forked from OlympusDAO/token-holders-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
109 lines (109 loc) · 3.22 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: gOHM
network: mainnet
source:
address: "0x0ab87046fBb341D058F17CBC4c1133F25a20a52f"
abi: gOHM
startBlock: 13674957
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: gOHM
file: ./abis/gOHM.json
# Handling the transfer event is enough, as minting/burning will result in a transfer
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferEthereum
file: ./src/handleEvent.ts
- kind: ethereum
name: OHMv1
network: mainnet
source:
address: "0x383518188c0c6d7730d91b2c03a03c837814a899"
abi: ERC20
startBlock: 12084967
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: ERC20
file: ./abis/ERC20.json
# Handling the transfer event is enough, as minting/burning will result in a transfer
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferEthereum
file: ./src/handleEvent.ts
# - kind: ethereum
# name: sOHMv1
# network: mainnet
# source:
# address: "0x04F2694C8fcee23e8Fd0dfEA1d4f5Bb8c352111F"
# abi: ERC20
# startBlock: 12622596
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.6
# language: wasm/assemblyscript
# entities:
# - Transfer
# abis:
# - name: ERC20
# file: ./abis/ERC20.json
# # Handling the transfer event is enough, as minting/burning will result in a transfer
# eventHandlers:
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransferEthereum
# file: ./src/handleEvent.ts
- kind: ethereum
name: OHMv2
network: mainnet
source:
address: "0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5"
abi: ERC20
startBlock: 13782589
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: ERC20
file: ./abis/ERC20.json
# Handling the transfer event is enough, as minting/burning will result in a transfer
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferEthereum
file: ./src/handleEvent.ts
# - kind: ethereum
# name: sOHMv2
# network: mainnet
# source:
# address: "0x04906695D6D12CF5459975d7C3C03356E4Ccd460"
# abi: ERC20
# startBlock: 13803969
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.6
# language: wasm/assemblyscript
# entities:
# - Transfer
# abis:
# - name: ERC20
# file: ./abis/ERC20.json
# # Handling the transfer event is enough, as minting/burning will result in a transfer
# eventHandlers:
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransferEthereum
# file: ./src/handleEvent.ts