-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
74 lines (72 loc) · 2.56 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: tokenContract
network: optimism
source:
abi: tokenContract
address: "0x4200000000000000000000000000000000000042"
startBlock: 6490467
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/token.ts
entities:
- Account
- AccountDailySnapshot
- Token
- TokenDailySnapshot
- TokenHourlySnapshot
- Transfer
abis:
- name: tokenContract
file: ./abis/optimism/tokenContract.json
###########################################
############## Price Oracle ###############
###########################################
# ERC20
- name: _ERC20
file: ./abis/Prices/ERC20.json
# Curve Contracts
- name: CurveRegistry
file: ./abis/Prices/Curve/Registry.json
- name: CurvePoolRegistry
file: ./abis/Prices/Curve/PoolRegistry.json
- name: CalculationsCurve
file: ./abis/Prices/Calculations/Curve.json
# YearnLens Contracts
- name: YearnLensContract
file: ./abis/Prices/YearnLens.json
# ChainLink Contracts
- name: ChainLinkContract
file: ./abis/Prices/ChainLink.json
# Uniswap Contracts
- name: UniswapRouter
file: ./abis/Prices/Uniswap/Router.json
- name: UniswapFactory
file: ./abis/Prices/Uniswap/Factory.json
- name: UniswapPair
file: ./abis/Prices/Uniswap/Pair.json
# SushiSwap Contracts
- name: SushiSwapRouter
file: ./abis/Prices/SushiSwap/Router.json
- name: SushiSwapFactory
file: ./abis/Prices/SushiSwap/Factory.json
- name: SushiSwapPair
file: ./abis/Prices/SushiSwap/Pair.json
- name: CalculationsSushiSwap
file: ./abis/Prices/Calculations/SushiSwap.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
# - event: DelegateChanged(indexed address,indexed address,indexed address)
# handler: handleDelegateChanged
# - event: DelegateVotesChanged(indexed address,uint256,uint256)
# handler: handleDelegateVotesChanged
# - event: OwnershipTransferred(indexed address,indexed address)
# handler: handleOwnershipTransferred