-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
67 lines (67 loc) · 1.62 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Core
network: mainnet
source:
abi: Core
address: "0x5D7e616B2c0bf268494A482e315a60814F97dBC8"
startBlock: 14845882
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Core
abis:
- name: Core
file: ./abis/Core.json
- name: MasterChefVault
file: ./abis/MasterChefVault.json
- name: Token
file: ./abis/ERC20.json
eventHandlers:
- event: VaultRegistered(indexed address)
handler: handleVaultRegistered
- event: VaultRegistered(indexed address,indexed address)
handler: handleVaultRegistered_old
- event: VaultRemoved(indexed address)
handler: handleVaultRemoved
file: ./src/core.ts
templates:
- kind: ethereum
name: Vault
network: mainnet
source:
abi: MasterChefVault
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Vault
- Token
- Transaction
abis:
- name: Core
file: ./abis/Core.json
- name: MasterChefVault
file: ./abis/MasterChefVault.json
file: ./src/vault.ts
- kind: ethereum
name: Token
network: mainnet
source:
abi: Token
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Token
abis:
- name: Token
file: ./abis/ERC20.json
file: ./src/token.ts