forked from rmourey26/yearn-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
94 lines (94 loc) · 2.41 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RegistryV1
network: mainnet
source:
address: "0x3eE41C098f9666ed2eA246f4D2558010e59d63A0"
abi: RegistryV1Contract
startBlock: 10875398
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Vault
- Strategy
abis:
- name: RegistryV1Contract
file: ./abis/RegistryV1.json
- name: VaultV1Contract
file: ./abis/V1Contract.json
- name: ControllerV1Contract
file: ./abis/Controller.json
callHandlers:
- function: addVault(address)
handler: handleAddVaultCall
- function: addWrappedVault(address)
handler: handleAddWrappedVaultCall
- function: addDelegatedVault(address)
handler: handleAddDelegatedVaultCall
file: ./src/mappings/registryV1.ts
templates:
- kind: ethereum/contract
name: VaultV1Template
network: mainnet
source:
abi: V1Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Vault
- Deposit
- Withdraw
- Harvest
- Transfer
- AccountVaultBalance
- Account
- Token
abis:
- name: V1Contract
file: ./abis/V1Contract.json
- name: Controller
file: ./abis/Controller.json
- name: Strategy
file: ./abis/Strategy.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleShareTransfer
file: ./src/mapping.ts
- name: Strategy
kind: ethereum/contract
network: mainnet
source:
abi: Strategy
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- Vault
- Deposit
- Withdraw
- Harvest
- Transfer
- AccountVaultBalance
- Account
- Token
abis:
- name: Strategy
file: ./abis/Strategy.json
- name: V1Contract
file: ./abis/V1Contract.json
- name: Controller
file: ./abis/Controller.json
callHandlers:
- function: harvest()
handler: handleHarvest